/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --accent-color: #d4af37;
    --light-bg: #f8f8f8;
    --text-light: #666;
    --border-light: #e0e0e0;
    --header-height: 60px; /* NEU - für die Höhe des Headers */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: #fff;
}

/* Logo Section - NEU */
.logo-section {
    background: white;
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-section .logo-container {
    width: 100%;
    max-width: 1400px;
    padding: 0 5%;
    margin: 0 auto;
}

.logo-section .logo-container img {
    width: 100%;
    height: auto;
    /* KEINE max-height mehr - Logo nutzt volle Breite! */
    object-fit: contain;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Header im gescrollten Zustand */
/*header.scrolled nav {
    flex-direction: row;
    justify-content: center;
    padding: 1rem 5%;
}

header.scrolled .logo-container {
    display: none;
}

header.scrolled .nav-links {
    margin: 0;
} */

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.logo-container img {
    width: 100%;
    height: auto;
    max-width: 1400px;
    object-fit: contain;
} */

.nav-links {
    display: flex;
    list-style: none;
    gap: 4rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
    font-size: 1.6rem;
    letter-spacing: 3px;
    padding: 0.8rem 1rem;
    text-transform: uppercase;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Office Hours Section */
.office-hours {
    background: white;
    padding: 60px 5%;
    position: relative;
    overflow: hidden;
}

.office-hours::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.office-hours-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.office-hours h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.office-hours-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.hours-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.hours-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hours-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.hours-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.hours-card.highlight {
    background: var(--primary-color);
    color: white;
}

.hours-card.highlight h3 {
    color: var(--accent-color);
}

.hours-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Section */
.hero {
    margin-top: 0;
    padding: 80px 5%;
    /* DIESE ZEILE WURDE ENTFERNT: padding-top: calc(80px + var(--header-height, 250px)); */
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;  /* Angepasst von 0.1 auf 0.3 für bessere Sichtbarkeit */
    background-image: url('images/hero-aphrodite-desktop.png');  /* Korrekter Pfad mit images-Ordner */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* HIER EINFÜGEN - direkt nach der schließenden Klammer oben */
@media (orientation: portrait) {
    .hero-background {
        background-image: url('images/hero-aphrodite-mobile.png');
        background-position: center top;
        opacity: 0.3;
    }
}


.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 4px;
    font-family: 'Montserrat', sans-serif;
}

.hero .subtitle {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 3px;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

/* About Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.team-member {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-member h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 2px;
}

.team-member .title {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-member .avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0e0e0 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-color);
    overflow: hidden;
    border: 3px solid var(--accent-color);
    opacity: 0.9;
}

.team-member .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Team: Platzhalter-Avatar + Shukrane mittig (nur #ueber-uns) --- */

/* Platzhalter-Avatar (für Karten ohne <img>) */
#ueber-uns .avatar.avatar--placeholder {
    position: relative;
}

/* Kopf */
#ueber-uns .avatar.avatar--placeholder::before {
    content: "";
    position: absolute;
    width: 34%;
    height: 34%;
    left: 50%;
    top: 22%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.22);
}

/* Schultern */
#ueber-uns .avatar.avatar--placeholder::after {
    content: "";
    position: absolute;
    width: 62%;
    height: 40%;
    left: 50%;
    top: 52%;
    transform: translateX(-50%);
    border-radius: 999px 999px 20px 20px;
    background: rgba(26, 26, 26, 0.18);
}

/* Desktop/Landscape: Shukrane in 2. Reihe exakt mittig */
@media (min-width: 1200px) {
    #ueber-uns .team-grid {
        grid-template-columns: repeat(3, minmax(300px, 1fr));
    }
    #ueber-uns .team-member--center {
        grid-column: 2 / 3;
    }
}

/* Mobile: Shukrane ganz normal unten (keine erzwungene Mitte) */
@media (max-width: 900px) {
  #ueber-uns .team-member--center {
    grid-column: auto;
  }
}


/* Services Section */
#leistungen {
    background: var(--light-bg);
}

.services-container{
	column-count: 2;
	column-gap: 4rem;
	margin-top: 4rem;
	width: 100%;
}


/* Grid-Items dürfen schrumpfen -> verhindert horizontales Überlaufen */
#leistungen .service-category {
    min-width: 0;
}



/* Lange Wörter/Zeichenfolgen dürfen umbrechen */
#leistungen .service-category,
#leistungen .service-title,
#leistungen .service-description {
    overflow-wrap: anywhere;
}

.service-category {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
	break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 4rem;
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

#leistungen .service-category h3{
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;       /* kleiner */
  line-height: 1.25;        /* sauberer Umbruch */
  font-weight: 500;         /* wirkt trotz kleiner Größe klar */
  letter-spacing: 1px;      /* weniger „gesperrt“ -> weniger verrutschen */
  text-transform: uppercase;
  
  display: flex;
  align-items: flex-start;  /* wichtig: bei 2 Zeilen sitzt alles oben sauber */
  gap: 1rem;

  margin-bottom: 1.2rem;

  min-height: calc(1.25em * 2); /* reserviert Platz für 2 Zeilen -> Karten wirken gleichmäßig */
}


#leistungen .service-category h3::before{
  content: '';
  width: 24px;              /* etwas kleiner, passend zur kleineren H3 */
  height: 24px;
  background: var(--accent-color);
  border-radius: 50%;
  opacity: 0.18;
  margin-top: 0.15em;       /* setzt den Kreis auf Höhe der ersten Zeile */
  flex: 0 0 24px;           /* Kreis bleibt stabil, drückt nichts weg */
}


.service-list {
    list-style: none;
}

.service-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li:hover {
    padding-left: 1rem;
    color: var(--accent-color);
}

.service-list li.active {
    color: var(--accent-color);
    padding-left: 1rem;
}

.service-title {
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.service-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.service-list li:hover .service-description,
.service-list li.active .service-description {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 15px;
}

.contact-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-detail {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-detail strong {
    color: var(--accent-color);
    min-width: 80px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    background: var(--light-bg);
}

/* Contact Form */
.contact-form {
    margin-top: 4rem;
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 15px;
}

.contact-form h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.submit-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    color: var(--text-light);
    line-height: 1.6;
}

.cookie-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-accept {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-accept:hover {
    background: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.cookie-decline {
    background: white;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-decline:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Legal Pages (Impressum & Datenschutz) */
main {
    margin-top: 0;  /* GEÄNDERT von 250px zu 0 */
    padding: 80px 5%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - 400px);
}

.impressum-content h1,
.datenschutz-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
}

.impressum-content h1::after,
.datenschutz-content h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.impressum-content h2,
.datenschutz-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 1px;
}

.datenschutz-content h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
}

.datenschutz-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 400;
}

.impressum-content p,
.datenschutz-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.impressum-content ul,
.impressum-content ol,
.datenschutz-content ul,
.datenschutz-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.impressum-content li,
.datenschutz-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.impressum-content a,
.datenschutz-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.impressum-content a:hover,
.datenschutz-content a:hover {
    text-decoration: underline;
}

.datenschutz-content strong {
    font-weight: 600;
    color: var(--primary-color);
}

.datenschutz-content .contact-block,
.impressum-content .contact-block {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.datenschutz-content .contact-block p,
.impressum-content .contact-block p {
    margin-bottom: 0.5rem;
}

/* Footer margin adjustment for legal pages */
.legal-page footer {
    margin-top: 80px;
}

/* Responsive Design */

/* Tablet / Landscape */
@media (max-width: 1024px) {
    /* Logo Section Tablet */
    .logo-section {
        padding: 2.5rem 0;
    }
    
    /* Logo nutzt IMMER volle Breite - keine max-height! */
    .logo-section .logo-container img {
        /* KEINE max-height - Logo skaliert mit Breite */
    }
    
    .nav-links {
        gap: 2rem;
    }
    
    .nav-links a {
        font-size: 1.4rem;
        padding: 0.6rem 0.8rem;
        letter-spacing: 2px;
    }
}

/* Mobile Portrait & kleine Tablets */
@media (max-width: 768px) {
    /* Logo Section Mobile */
    .logo-section {
        padding: 2rem 0;
    }
	
    
    /* Logo nutzt IMMER volle Breite - keine max-height! */
    .logo-section .logo-container img {
        /* KEINE max-height - Logo skaliert mit Breite */
    }

    /* Mobile Menu nur bei kleinen Bildschirmen */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .hero {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 2rem;
    }
	.contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
}


    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 60px 5%;
    }

    .office-hours-cards {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    /* Legal pages mobile adjustments */
    main {
        margin-top: 0;
    }

    .impressum-content h1,
    .datenschutz-content h1 {
        font-size: 2rem;
    }

    .impressum-content h2,
    .datenschutz-content h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
	
	/* Leistungen: 1 Spalte + schöner Abstand */
	.services-container{
    column-count: 1;
    column-gap: 0;
	}

	.service-category{
    margin-bottom: 2rem;
	}

}

/* Sehr kleine Bildschirme - Hamburger Menü auch bei Landscape */
@media (max-width: 900px) and (orientation: landscape) {
    /* Logo Section Landscape kleine Geräte */
    .logo-section {
        padding: 1.5rem 0;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }
}

/* Formular-Nachrichten */
.form-message {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Feld-Validierung */
.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    animation: slideIn 0.2s ease-out;
}

/* Button-Zustände */
.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animationen */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Lade-Indikator */
.submit-button.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   CV / LEBENSLAUF PAGE STYLES (NEU)
   Diese Klassen sind isoliert und beeinflussen KEINE anderen Seiten.
   ========================================================================== */

/* Page Wrapper Adjustments */
body.cv-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.cv-page main {
    flex: 1;
}

/* CV Header (Spezifisch für Lebenslauf) */
.cv-header {
    position: relative;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
}

/* Back Link Style */
.back-link {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.back-link:hover {
    color: var(--accent-color);
}

/* CV Main Container */
.cv-container {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    align-items: flex-start;
}

/* Profile Column (Left) */
.cv-profile {
    flex: 0 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Avatar Wrapper - 750px Gold Circle */
.cv-avatar-wrapper {
    width: var(--cv-avatar-size, 750px);
    height: var(--cv-avatar-size, 750px);
    /* Damit es auf kleinen Bildschirmen nicht den Rahmen sprengt: */
	box-sizing: border-box; 	/* <-- NEU: Rahmen zählt in die 750px rein */
    max-width: 90vw;
    max-height: 90vw;
    
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 10px solid var(--accent-color); /* Der Goldene Rahmen */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: white;
    flex-shrink: 0;
}

.cv-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Typography CV */
.cv-profile h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    margin-top: 1rem;
}

.cv-subtitle {
    color: var(--accent-color);
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.cv-divider {
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 2rem auto;
    opacity: 0.5;
}

.cv-contact-mini {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Content Column (Right) */
.cv-content {
    flex: 1;
    min-width: 320px;
    max-width: 800px;
    padding-top: 2rem;
}

.cv-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    display: inline-block;
}

/* Timeline Components */
.timeline {
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr; /* Date | Content */
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--accent-color);
    text-align: right;
    padding-top: 5px;
    font-size: 1.1rem;
    position: relative;
}

/* Golden Dot */
.timeline-date::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 12px;
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
    transform: translateX(50%);
}

/* Vertical Line */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 140px;
    margin-left: 1rem;
    top: 24px;
    bottom: -48px;
    width: 1px;
    background: var(--border-light);
    transform: translateX(-50%);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.detail-text {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
    display: block;
    margin-top: 0.3rem;
}

/* Responsive CV Adjustments */
@media (max-width: 900px) {
    /* Header adjustments for mobile */
    .cv-header {
        display: flex;
        flex-direction: column;
        padding-bottom: 3rem; /* Platz für den Button unten */
    }

    .back-link {
        position: absolute;
        bottom: 10px;
        right: 50%;
        transform: translateX(50%);
        width: 100%;
        justify-content: center;
        top: auto;
    }

    .cv-avatar-wrapper {
        border-width: 6px; /* Etwas dünnerer Rahmen auf Mobile */
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding-left: 2rem;
        border-left: 2px solid var(--border-light);
    }

    .timeline-date {
        text-align: left;
    }

    /* Move Dot to Left */
    .timeline-date::after {
        left: -2rem;
        right: auto;
        transform: translateX(-50%) translateX(-2px);
        top: 6px;
    }

    /* Hide standard vertical line */
    .timeline-item::before {
        display: none;
    }
}