/* ===== VARIABLEN ===== */
:root {
    /* Farben */
    --primary: #b76d84;
    --primary-hover: #a2576e;
    --primary-light: rgba(183, 109, 132, 0.08);
    --secondary: #f8e1e7;
    --text: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --bg: #f9f5f6;
    --footer-bg: #5e3a4e;
    
    /* Effekte */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Layout */
    --border-radius: 8px;
    --max-width: 1200px;
}

/* ===== BASIS-STYLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typografie */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 400;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); }

p {
    font-weight: 300;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== HELPER CLASSES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.section-container {
    max-width: min(1200px, 90%);
    margin: 0 auto;
    padding: 0 1rem;
  }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

/* ===== KOMPONENTEN ===== */
/* Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: min(1200px, 90%);
    margin: 0 auto;
    padding: 1rem;
}

.logo img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text);
    margin: 5px 0;
    transition: var(--transition);
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    margin: 1rem 0;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: url('../assets/ah-sakurashero.png') center/cover no-repeat;
  }

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
  }

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--white);
}

/* Projekte */
.projects {
    padding: 5rem 0;
  }

#projects-heading {
    font-weight: 600;
}
  
.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.project-gallery article {
    margin-bottom: 4rem;
  }

.project-gallery article:nth-child(odd) .project-content {
    flex-direction: row;
  }
  .project-gallery article:nth-child(even) .project-content {
    flex-direction: row-reverse;
}

.project-card {
    overflow: hidden;
    margin-bottom: 3rem;
}

.project-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.project-text {
    flex: 1;
    padding: 2rem;
}

.project-category {
    display: inline-block;
    opacity: 0;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-light);
    border-radius: 50px;
    transform: translateY(-10px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.project-category.loaded {
    opacity: 1;
    transform: translateY(0);
  }

.project-text h3 {
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.project-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    transform: translateX(4px);
}

.project-image {
    flex: 1;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Projekt-Detailseiten */
.project-header-section {
    padding: 40px 0;
}

.project-header-container {
    padding: 2rem 0;
  }

.project-header-section,
.project-intro,
.project-overview,
.resume-grid {
  max-width: min(1200px, 90%);
  margin: 0 auto;
  padding: 0 1rem;
}

.project-intro {
    padding: 180px 0 80px;
    text-align: center;
}

.project-intro .container {
    padding: 2rem 0;
  }

.project-meta {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.project-meta:hover:after {
    width: 80px;
}

.project-overview, .resume-grid {
    padding: 4rem 0;
}

.overview-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.overview-container h3 {
    margin-bottom: 15px;
  }
  
.overview-container p, 
.overview-container ul {
    margin-top: 0;
    margin-bottom: 25px;
  }
  
.overview-container img {
    margin: 20px 0;
}

ul.custom-bullets {
    list-style-type: none;
    padding-left: 0;
}
  
ul.custom-bullets li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 5px;
}
  
ul.custom-bullets li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-hover);
}

#skills ul.custom-bullets {
    margin: 10px 0 10px 0;
}

.project-details {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--primary-light);
    border-radius: var(--border-radius);
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.projekt-bild {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
  }
  .lightbox-content {
    margin: auto !important;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    border-radius: 8px;
  }
  .close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
  }
  .close:hover {
    color: #ccc;
  }

.detail-item {
    flex: 1;
    min-width: 200px;
}

.detail-item h3 {
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tools-used {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tools-used li {
    background: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--white);
}

.employment-titel {
    font-size: 20px;
    font-weight: 800;
}

/* Kontakt */
.pink-bg {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.pink-resume {
    padding: 4rem 0 1rem 0;
}

.contact h2 {
    color: var(--white);
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.ab-test-results {
    font-family: 'Inter', sans-serif;
    max-width: 800px;
    margin: 2rem auto;
    background: #f9fafc;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }
  
  .ab-test-results h3 {
    color: #2d3748;
    margin-top: 0;
    font-size: 1.25rem;
  }
  
  .ab-test-results table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
  }
  
  .ab-test-results th {
    background: var(--primary);
    color: white;
    padding: 12px;
    text-align: left;
  }
  
  .ab-test-results td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .ab-test-results .winner {
    font-weight: 600;
    background-color: var(--secondary);
  }
  
  .ab-test-results .footnote {
    font-size: 0.8rem;
    color: #718096;
    text-align: right;
    margin-top: 0.5rem;
  }

  .ab-test-results tr:hover {
    background-color: var(--primary-light);
  }

  .resume-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.sidebar {
    flex: 1;
    max-width: 300px;
}
.content {
    flex: 2;
}

/* Footer */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    max-width: min(1200px, 90%);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .left-column {
    border-right: 1px solid #eee;
    padding-right: 20px;
  }

.resume-grid  section {
    margin-bottom: 40px;
  }

.resume-grid  article {
    margin-bottom: 25px;
  }

#about-me p {
    margin-bottom: 10px;
}

  .skill-list {
    list-style-type: none;
    padding-left: 0;
  }

  .skill-list li {
    background: #f0f0ff;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
  }

.inline-list {
    list-style: none;         
    padding: 0;              
    display: flex;      
    justify-content: space-between;               
    align-items: baseline;     
    margin: 0 0 5px 0;            
}

#Employment .custom-bullets {
    margin-bottom: 15px;
}
  
  .item-title {
    font-weight: bold;         
  }
  
  .item-date {
    color: #666;               
    font-style: italic;
  }

  .resume-download {
    text-align: center;
    margin: 40px 0;
  }
  
  .resume-download h2 {
    font-size: 2em;
    margin-bottom: 10px;
  }
  
  .resume-download p {
    font-size: 1.2em;
    margin-bottom: 20px;
  }
  
  .resume-download .btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.2em;
    color: #fff;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 5px;
  }
  
  .resume-download .btn:hover {
    background-color: #0056b3;
  }

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .toggle-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .toggle-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .toggle-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        height: 70vh;
        min-height: 400px;
    }
    
    .project-content {
        flex-direction: column !important;
    }
    
    .project-image {
        height: 300px;
        width: 100%;
        order: 1;
    }
    
    .project-text {
        order: 2;
        padding: 1.5rem;
    }
    
    .overview-container,
    .project-details {
        grid-template-columns: 1fr;
    }

    .resume-container {
        flex-direction: column;
    }
    .sidebar, .content {
        max-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
    }

    .ab-test-results table {
        display: block;
        overflow-x: auto;
      }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero {
        height: 60vh;
        min-height: 300px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .project-intro {
        padding: 120px 0 60px;
    }
}