/* === ViSchön – Stylesheet === */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-bg: #faf8f5;
    --color-bg-alt: #f0ece6;
    --color-text: #3a3a3a;
    --color-text-light: #6b6b6b;
    --color-accent: #b08d6e;
    --color-accent-dark: #8c6d52;
    --color-dark: #2c2c2c;
    --color-white: #ffffff;
    --font-main: 'Georgia', 'Times New Roman', serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --max-width: 1100px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
/* viewport-fit=cover: seitliche Notch-Bereiche (Handy quer) frei halten */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }
}

/* Mobiler Termin-Knopf (nur ≤ 768px sichtbar, siehe Responsive) */
.mobile-book { display: none; }

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img { height: 55px; width: auto; }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    color: var(--color-text);
    text-transform: uppercase;
    font-family: sans-serif;
}

.main-nav a:hover { color: var(--color-accent); }

.btn-nav {
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 4px;
    font-weight: 600;
}

.btn-nav:hover { background: var(--color-accent-dark) !important; }

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* === Hero (statisches Startbild) === */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    max-height: 860px;
    overflow: hidden;
    margin-top: 80px;
    background: var(--color-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 45%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Salonbild: Schriftzug + Glasfront links/mittig frei lassen, Text rechts über Stühlen/Spiegeln */
    background: linear-gradient(to left, rgba(44,44,44,0.78) 0%, rgba(44,44,44,0.62) 36%, rgba(44,44,44,0.25) 50%, rgba(44,44,44,0) 58%);
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
}

.hero-content > * { grid-column: 2; justify-self: start; max-width: 520px; }

.hero-kicker {
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.hero-overlay h1 {
    color: var(--color-white);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.hero-text {
    color: var(--color-white);
    font-size: 1.15rem;
    margin-bottom: 1.8rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

/* === Sections === */
.section {
    padding: 5rem 0;
}

.section-alt { background: var(--color-bg-alt); }

.section h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.section hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 2.5rem auto;
    max-width: 80px;
}

/* Intro */
.intro-text {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.intro-text p { margin-bottom: 1rem; }
.intro-text strong { color: var(--color-dark); }

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.about-image img {
    border-radius: 8px;
    width: 100%;
    object-fit: cover;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-content h3 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--color-accent-dark);
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-content ul {
    list-style: none;
    padding: 0;
}

.about-content li {
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.about-content li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-accent-dark);
}

.service-card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.price-list {
    list-style: none;
    border-top: 1px solid var(--color-bg-alt);
    padding-top: 1rem;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.92rem;
    border-bottom: 1px dotted var(--color-bg-alt);
}

.price-list li span:last-child {
    font-weight: 600;
    color: var(--color-dark);
    white-space: nowrap;
}

/* CTA */
.cta-center { text-align: center; }

.btn {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background var(--transition);
}

.btn:hover { background: var(--color-accent-dark); color: var(--color-white); }

/* Gallery (Impressionen): 9 Bilder (Team/Ergebnis abwechselnd), einheitlicher 4:5-Zuschnitt; mobil 8 */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform var(--transition);
}

.gallery img:hover { transform: scale(1.03); }

/* Newsletter: ruhige Farbfläche statt Foto */
.newsletter {
    background: var(--color-bg-alt);
    text-align: center;
    border-top: 1px solid rgba(176,141,110,0.25);
    border-bottom: 1px solid rgba(176,141,110,0.25);
}

.newsletter h2 { margin-bottom: 0.5rem; }
.newsletter p { margin-bottom: 2rem; color: var(--color-text); font-size: 1.1rem; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.5rem;
}

.contact-info dt {
    font-weight: 600;
    font-family: sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent-dark);
}

.contact-info dd { margin: 0; }
.contact-info .route-wrap { display: block; margin-top: 0.6rem; }
.btn-route { padding: 0.6rem 1.4rem; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 480px) { .btn-route { padding: 0.55rem 0.9rem; font-size: 0.85rem; } }
.btn-route::before { content: "\27A4"; display: inline-block; margin-right: 0.5em; font-size: 0.9em; }

.parking {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img { opacity: 0.9; }

.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--color-white); }

.footer-contact p { margin-bottom: 0.5rem; font-size: 0.9rem; }

.footer-social h4 {
    font-size: 0.9rem;
    color: var(--color-white);
    margin-bottom: 0.8rem;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-social ul { list-style: none; }
.footer-social li { margin-bottom: 0.4rem; }

.footer-legal {
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}


/* Services: Leistungsliste + Buchungs-Button */
.service-card { display: flex; flex-direction: column; }
.service-list {
    list-style: none;
    border-top: 1px solid var(--color-bg-alt);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.service-list li {
    padding: 0.35rem 0 0.35rem 1.2rem;
    font-size: 0.92rem;
    border-bottom: 1px dotted var(--color-bg-alt);
    position: relative;
}
.service-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}
.btn-card { text-align: center; font-size: 0.85rem; padding: 0.75rem 1rem; }
.products-note {
    text-align: center;
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Team */
.team-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}
.team-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1.25rem;
}
/* Kopfbereich: rundes Porträt, Name, Rolle – zentriert */
.team-card-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;                 /* Abstand Bild -> Name */
    padding-bottom: 1rem;
    margin-bottom: 1rem;       /* Abstand Kopf -> Liste */
    border-bottom: 1px solid var(--color-bg-alt);
}
.team-card-head img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 22%;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px var(--color-bg-alt);
}
.team-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-dark);
    margin: 0 0 0.35rem;       /* Abstand Name -> Rolle */
}
.team-role {
    font-family: sans-serif;
    font-size: 0.72rem;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-accent-dark);
    margin: 0;
    min-height: 2.9em;         /* 2 Zeilen reservieren -> Trennlinien/Listen auf gleicher Höhe */
}
.team-services { list-style: none; margin: 0; padding: 0; }
.team-services li {
    font-size: 0.95rem;
    line-height: 1.45;
    padding: 0.25rem 0 0.25rem 1rem;
    position: relative;
}
.team-services li::before { content: '·'; position: absolute; left: 0.15rem; color: var(--color-accent); font-weight: bold; }

/* Unsere Arbeiten (Vorher/Nachher) */
.ba-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 2rem;
}
.ba-tab {
    background: var(--color-white);
    border: 1px solid var(--color-accent);
    color: var(--color-accent-dark);
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-family: sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.ba-tab:hover, .ba-tab.active { background: var(--color-accent); color: var(--color-white); }
.ba-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.ba-item[hidden], .ba-tabs[hidden], .ba-tab[hidden] { display: none; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ba-img { position: relative; }
.ba-img img { width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; border-radius: 8px; }
.ba-img span {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    background: rgba(44,44,44,0.75);
    color: var(--color-white);
    font-family: sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}
.ba-group[hidden], .ba-more-wrap[hidden] { display: none; }
.ba-group { margin-bottom: 3rem; }
.ba-group-title { text-align: center; margin-bottom: 1.5rem; }
.ba-group .ba-grid { margin-bottom: 1.5rem; }
/* Eingeklappt: nur eine volle Reihe (Desktop 3 Paare; Tablet/Handy siehe Media Queries) */
.ba-group.is-collapsed .ba-item:nth-child(n+4) { display: none; }
.ba-more-wrap { text-align: center; }
.ba-more {
    background: var(--color-white);
    border: 1px solid var(--color-accent);
    color: var(--color-accent-dark);
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
    font-family: sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}
.ba-more:hover { background: var(--color-accent); color: var(--color-white); }
.ba-more:focus-visible { outline: 2px solid var(--color-accent-dark); outline-offset: 3px; }
.ba-social { text-align: center; }
.ba-social p a { color: var(--color-accent-dark); text-decoration: underline; }
.ba-social p { margin-bottom: 1rem; color: var(--color-text-light); }
.ba-social .btn { margin: 0.25rem; }

/* Navigation: mehr Punkte -> etwas kompakter */
.main-nav ul { gap: 1.4rem; }

/* === Responsive === */
@media (max-width: 1024px) {
    .ba-grid { grid-template-columns: repeat(2, 1fr); }
    .ba-group.is-collapsed .ba-item:nth-child(n+3) { display: none; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .menu-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid rgba(0,0,0,0.06);
        padding: 1rem 0;
    }

    .main-nav.open { display: block; }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .main-nav li { width: 100%; text-align: center; }

    .main-nav a {
        display: block;
        padding: 0.8rem 1.5rem;
    }

}

/* Tablet + Mobil: Bild oben (Schriftzug + Glasfront frei), Text darunter auf dunkler Fläche */
@media (max-width: 1100px) {
    .hero { height: auto; min-height: 0; max-height: none; }
    .hero-bg {
        position: static;
        display: block;
        height: clamp(360px, 50vw, 520px);
        object-position: 50% 50%;
    }
    .hero-overlay {
        position: static;
        display: block;
        background: var(--color-dark);
        padding: 1.8rem 0 2.5rem;
    }
    .hero-content { display: block; }
    .hero-content > * { max-width: 640px; }
}

@media (max-width: 768px) {
    /* Fester „Termin buchen“-Knopf unten; body-Abstand, damit Footer nicht verdeckt wird */
    body { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
    .mobile-book {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 95;
        padding: 0.65rem max(1rem, env(safe-area-inset-left)) calc(0.65rem + env(safe-area-inset-bottom));
        background: rgba(250, 248, 245, 0.94);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
    }
    /* Erst einblenden, wenn der Hero-Knopf aus dem Bild ist (main.js, IntersectionObserver) */
    .mobile-book.is-hidden {
        opacity: 0;
        transform: translateY(100%);
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    }
    .mobile-book .btn {
        display: block;
        text-align: center;
        padding: 0.85rem 1rem;
        border-radius: 6px;
    }

    /* Mobil: Bildausschnitt so, dass Schriftzug + Glasfront komplett sichtbar sind */
    .hero-bg {
        height: clamp(280px, 50vh, 440px);
        object-position: 24% 50%;
    }
    .hero-text { font-size: 1.05rem; margin-bottom: 1.4rem; }
    .ba-grid { grid-template-columns: 1fr; }

    .about-grid { grid-template-columns: 1fr; }
    .about-content h2 { text-align: center; }

    .services-grid { grid-template-columns: 1fr; }

    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery .gallery-desktop-only { display: none; }

    .contact-grid { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand { display: flex; justify-content: center; }
}

@media (max-width: 600px) {
    /* Team: kompakte Karten, Bild links neben Name/Rolle */
    .team-grid { grid-template-columns: 1fr; gap: 1rem; }
    .team-card { padding: 1.1rem 1.1rem 1.2rem; }
    .team-card-head {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding-bottom: 0.9rem;
        margin-bottom: 0.8rem;
    }
    .team-card-head img { width: 76px; height: 76px; box-shadow: 0 0 0 3px var(--color-bg-alt); }
    .team-card h3 { font-size: 1.15rem; }
    .team-role { min-height: 0; }
}

@media (max-width: 480px) {
    .gallery { gap: 0.6rem; }
}

/* Reduzierte Bewegung: fester Termin-Knopf ohne Gleit-/Blend-Animation */
@media (prefers-reduced-motion: reduce) {
    .mobile-book, .mobile-book.is-hidden { transition: none; transform: none; }
}
