/* ============================================================
   HAARIVAN – Stylesheet
   Der wahrscheinlich modernste Friseursalon, den es gar nicht gibt.
   Ein Spaßprojekt von Orivan.
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS-VARIABLEN (Design-Tokens)
   ------------------------------------------------------------ */
:root {
    /* Farbpalette – Hell */
    --clr-bg:            #ffffff;
    --clr-bg-alt:        #f5f6f8;
    --clr-surface:       #ffffff;
    --clr-text:          #16181d;
    --clr-text-muted:    #5b6270;
    --clr-border:        #e6e8ec;

    /* Akzentfarben (modernes Violett/Blau) */
    --clr-accent:        #6c5ce7;
    --clr-accent-dark:   #5a4bd1;
    --clr-accent-light:  #a29bfe;
    --clr-accent-soft:   rgba(108, 92, 231, 0.10);
    --clr-star:          #f6b93b;

    /* Farbverlauf für Highlights */
    --gradient-accent:   linear-gradient(135deg, #6c5ce7 0%, #8e7bff 50%, #4a9df8 100%);

    /* Glassmorphism */
    --glass-bg:          rgba(255, 255, 255, 0.65);
    --glass-border:      rgba(255, 255, 255, 0.55);

    /* Schatten */
    --shadow-sm:  0 2px 8px  rgba(22, 24, 29, 0.06);
    --shadow-md:  0 8px 24px rgba(22, 24, 29, 0.09);
    --shadow-lg:  0 16px 48px rgba(22, 24, 29, 0.12);
    --shadow-accent: 0 10px 28px rgba(108, 92, 231, 0.35);

    /* Typografie */
    --font-head: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Layout */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --container-max: 1140px;
    --header-height: 72px;

    /* Übergänge */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dunkles Farbschema – wird per data-theme="dark" am <html> aktiviert */
[data-theme="dark"] {
    --clr-bg:            #101116;
    --clr-bg-alt:        #16181f;
    --clr-surface:       #1c1e27;
    --clr-text:          #f2f3f7;
    --clr-text-muted:    #9aa1b0;
    --clr-border:        #2a2d38;

    --clr-accent:        #8e7bff;
    --clr-accent-dark:   #7a66f2;
    --clr-accent-light:  #a99bff;
    --clr-accent-soft:   rgba(142, 123, 255, 0.14);

    --glass-bg:          rgba(28, 30, 39, 0.65);
    --glass-border:      rgba(255, 255, 255, 0.08);

    --shadow-sm:  0 2px 8px  rgba(0, 0, 0, 0.35);
    --shadow-md:  0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg:  0 16px 48px rgba(0, 0, 0, 0.55);
    --shadow-accent: 0 10px 28px rgba(142, 123, 255, 0.30);
}

/* ------------------------------------------------------------
   2. RESET & BASIS
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Anker landen nicht unter der Sticky-Navigation */
    scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
    font-family: var(--font-body);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

h1, h2, h3 {
    font-family: var(--font-head);
    line-height: 1.2;
}

/* Fokus-Stile für Tastaturbedienung (Barrierefreiheit) */
:focus-visible {
    outline: 3px solid var(--clr-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip-Link: erst bei Tastaturfokus sichtbar */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 1001;
    padding: 10px 18px;
    background: var(--clr-accent);
    color: #fff;
    border-radius: var(--radius-sm);
    transition: top var(--transition);
}

.skip-link:focus {
    top: 12px;
}

/* ------------------------------------------------------------
   3. LAYOUT-HELFER
   ------------------------------------------------------------ */
.container {
    width: min(100% - 48px, var(--container-max));
    margin-inline: auto;
}

.container--narrow {
    max-width: 780px;
}

.section {
    padding: 104px 0;
}

/* Abwechselnde Hintergrundfarbe für optische Trennung */
.section--alt {
    background: var(--clr-bg-alt);
    transition: background-color var(--transition);
}

/* Sektionsköpfe */
.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section__tag {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-accent);
    background: var(--clr-accent-soft);
    border-radius: var(--radius-full);
}

.section__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
}

.section__subtitle {
    margin-top: 12px;
    color: var(--clr-text-muted);
}

/* Glassmorphism-Basisklasse */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: transform var(--transition), box-shadow var(--transition),
                background-color var(--transition), color var(--transition);
    will-change: transform;
}

.btn--primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(108, 92, 231, 0.45);
}

.btn--ghost {
    background: transparent;
    color: var(--clr-text);
    border: 2px solid var(--clr-border);
}

.btn--ghost:hover {
    transform: translateY(-3px);
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.btn--small {
    padding: 10px 22px;
    font-size: 0.9rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* ------------------------------------------------------------
   5. PRELOADER
   ------------------------------------------------------------ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--clr-bg);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__scissors {
    font-size: 2.6rem;
    color: var(--clr-accent);
    animation: snip 1.1s ease-in-out infinite;
}

.preloader__text {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--clr-text-muted);
    animation: pulse 1.6s ease-in-out infinite;
}

/* Schere "schnippelt" */
@keyframes snip {
    0%, 100% { transform: rotate(-18deg) scale(1); }
    50%      { transform: rotate(18deg)  scale(1.12); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

/* ------------------------------------------------------------
   6. HEADER & NAVIGATION
   ------------------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color var(--transition), box-shadow var(--transition);
}

/* Zustand nach dem Scrollen: Glaseffekt + Schatten */
.header--scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(100% - 48px, var(--container-max));
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav__logo span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav__logo-icon {
    font-size: 1.1rem;
    color: var(--clr-accent);
    transform: rotate(-20deg);
    transition: transform var(--transition);
}

.nav__logo:hover .nav__logo-icon {
    transform: rotate(20deg);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__link {
    position: relative;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    border-radius: var(--radius-full);
    transition: color var(--transition), background-color var(--transition);
}

.nav__link:hover,
.nav__link--active {
    color: var(--clr-accent);
    background: var(--clr-accent-soft);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Dark-Mode-Umschalter */
.theme-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    transition: color var(--transition), border-color var(--transition),
                transform var(--transition), background-color var(--transition);
}

.theme-toggle:hover {
    color: var(--clr-accent);
    border-color: var(--clr-accent);
    transform: rotate(20deg);
}

/* Hamburger-Menü */
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
}

.nav__burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--clr-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* Burger → X Animation */
.nav__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger--open span:nth-child(2) { opacity: 0; }
.nav__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: calc(var(--header-height) + 48px) 0 80px;
    overflow: hidden;
    /* Dezenter Grundverlauf hinter den Blobs */
    background:
        radial-gradient(1200px 600px at 80% -10%, var(--clr-accent-soft), transparent 60%),
        var(--clr-bg);
    text-align: center;
    transition: background-color var(--transition);
}

/* Schwebende, weichgezeichnete Farbverläufe */
.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    pointer-events: none;
    animation: float 14s ease-in-out infinite alternate;
}

.hero__blob--1 {
    width: 480px;
    height: 480px;
    top: -120px;
    left: -140px;
    background: linear-gradient(135deg, #6c5ce7, #4a9df8);
}

.hero__blob--2 {
    width: 380px;
    height: 380px;
    bottom: -100px;
    right: -100px;
    background: linear-gradient(135deg, #8e7bff, #e056fd);
    animation-delay: -4s;
    animation-duration: 18s;
}

.hero__blob--3 {
    width: 260px;
    height: 260px;
    top: 40%;
    right: 18%;
    background: linear-gradient(135deg, #4a9df8, #6c5ce7);
    opacity: 0.3;
    animation-delay: -8s;
    animation-duration: 22s;
}

@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -30px) scale(1.08); }
    100% { transform: translate(-30px, 30px) scale(0.95); }
}

.hero__content {
    position: relative;
    z-index: 1;
}

/* Kleines Badge über der Überschrift */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    margin-bottom: 26px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-accent);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.hero__title {
    font-size: clamp(3.2rem, 10vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--clr-text) 30%, var(--clr-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subtitle {
    margin: 18px auto 38px;
    max-width: 560px;
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    color: var(--clr-text-muted);
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* Kennzahlen */
.hero__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(28px, 6vw, 72px);
    margin-top: 64px;
}

.hero__stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--clr-accent);
}

.hero__stat span {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.hero__footnote {
    margin-top: 20px;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    opacity: 0.75;
}

/* Scroll-Hinweis unten */
.hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    animation: bounce 2.2s ease-in-out infinite;
    transition: color var(--transition), border-color var(--transition);
}

.hero__scroll:hover {
    color: var(--clr-accent);
    border-color: var(--clr-accent);
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}

/* ------------------------------------------------------------
   8. ÜBER UNS
   ------------------------------------------------------------ */
.about__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: start;
}

.about__card {
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about__text {
    font-size: 1.08rem;
}

.about__text + .about__text {
    margin-top: 18px;
    color: var(--clr-text-muted);
}

.about__features {
    display: grid;
    gap: 20px;
}

.about__feature {
    display: flex;
    gap: 18px;
    padding: 22px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about__feature:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.about__feature-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    color: var(--clr-accent);
    background: var(--clr-accent-soft);
    border-radius: var(--radius-sm);
}

.about__feature h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.about__feature p {
    font-size: 0.92rem;
    color: var(--clr-text-muted);
}

/* ------------------------------------------------------------
   9. LEISTUNGEN
   ------------------------------------------------------------ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.service-card {
    position: relative;
    padding: 36px 30px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition),
                border-color var(--transition);
    overflow: hidden;
}

/* Dezenter Farbverlauf am oberen Kartenrand, wird beim Hover sichtbar */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
    font-size: 1.5rem;
    color: var(--clr-accent);
    background: var(--clr-accent-soft);
    border-radius: var(--radius-md);
    transition: transform var(--transition), background var(--transition), color var(--transition);
}

.service-card:hover .service-card__icon {
    transform: rotate(-8deg) scale(1.1);
    background: var(--gradient-accent);
    color: #fff;
}

.service-card__title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card__text {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

/* ------------------------------------------------------------
   10. PREISE
   ------------------------------------------------------------ */
.prices__card {
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 48px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.prices__item {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 20px 4px;
}

.prices__item + .prices__item {
    border-top: 1px solid var(--clr-border);
}

.prices__service {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
}

.prices__service i {
    color: var(--clr-accent);
    font-size: 0.95rem;
}

/* Gepunktete Linie zwischen Leistung und Preis */
.prices__dots {
    flex: 1;
    border-bottom: 2px dotted var(--clr-border);
    transform: translateY(-4px);
}

.prices__amount {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-accent);
    white-space: nowrap;
}

.prices__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--clr-text-muted);
    background: var(--clr-accent-soft);
    border-radius: var(--radius-md);
}

.prices__note i {
    color: var(--clr-accent);
}

/* ------------------------------------------------------------
   11. GALERIE & LIGHTBOX
   ------------------------------------------------------------ */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery__item {
    position: relative;
    padding: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery__item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.gallery__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery__item:hover img {
    transform: scale(1.06);
}

/* Overlay mit Lupe beim Hover */
.gallery__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: #fff;
    background: rgba(22, 24, 29, 0.45);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery__item:hover .gallery__overlay,
.gallery__item:focus-visible .gallery__overlay {
    opacity: 1;
}

/* Lightbox-Vollbildansicht */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    background: rgba(10, 11, 15, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity var(--transition);
}

/* hidden-Attribut respektieren (display: flex würde es sonst überschreiben) */
.lightbox[hidden] {
    display: none;
}

.lightbox--visible {
    opacity: 1;
}

.lightbox__figure {
    max-width: min(880px, 90vw);
    text-align: center;
}

.lightbox__figure img {
    max-height: 74vh;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lightbox__figure figcaption {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.lightbox__close,
.lightbox__nav {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    font-size: 1.2rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    transition: background var(--transition), transform var(--transition);
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: var(--clr-accent);
    transform: scale(1.08);
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
}

/* ------------------------------------------------------------
   11b. VORHER/NACHHER-SLIDER
   Position der Trennlinie wird über die CSS-Variable --pos
   gesteuert (per JS aus dem Range-Input gesetzt).
   ------------------------------------------------------------ */
.ba {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    /* Fester Rahmen: Fotos beliebiger Größe werden per object-fit
       zugeschnitten und bleiben so immer deckungsgleich */
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    /* Verhindert, dass Touch-Gesten die Seite scrollen statt zu schieben */
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.ba__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* Vorher-Ebene: liegt exakt über dem Nachher-Bild
   und wird rechts von --pos abgeschnitten */
.ba__before {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

/* "Vorher" bekommt einen tristen Graustufen-Look – so ist der
   Unterschied auch sichtbar, wenn beide Fotos identisch sind */
.ba__before .ba__img {
    filter: grayscale(1) contrast(0.92) brightness(0.94);
}

/* Senkrechte Trennlinie mit Scheren-Griff */
.ba__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos, 50%);
    width: 3px;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.ba__handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
    color: var(--clr-accent);
    background: #fff;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

/* Beschriftungs-Chips oben links/rechts */
.ba__label {
    position: absolute;
    top: 16px;
    padding: 6px 14px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(22, 24, 29, 0.55);
    border-radius: var(--radius-full);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}

.ba__label--before { left: 16px; }
.ba__label--after  { right: 16px; }

/* Unsichtbarer Range-Input über dem gesamten Bild:
   liefert Maus-, Touch- und Tastatursteuerung gratis */
.ba__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
}

/* Sichtbarer Fokusring für Tastaturnutzung am Container */
.ba:has(.ba__range:focus-visible) {
    outline: 3px solid var(--clr-accent);
    outline-offset: 3px;
}

.beforeafter__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 520px;
    margin: 24px auto 0;
    font-size: 0.88rem;
    color: var(--clr-text-muted);
    text-align: center;
}

.beforeafter__note i {
    color: var(--clr-accent);
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   12. BEWERTUNGEN
   ------------------------------------------------------------ */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.review-card__stars {
    display: flex;
    gap: 4px;
    color: var(--clr-star);
    font-size: 0.95rem;
}

.review-card__text {
    flex: 1;
    font-size: 1.02rem;
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Avatar mit Initialen statt Foto */
.review-card__avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.review-card__author strong {
    display: block;
    font-family: var(--font-head);
    font-size: 0.98rem;
}

.review-card__author span {
    font-size: 0.82rem;
    color: var(--clr-text-muted);
}

/* ------------------------------------------------------------
   13. FAQ (Accordion)
   ------------------------------------------------------------ */
.faq__list {
    display: grid;
    gap: 16px;
}

.faq__item {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq__item--open {
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-md);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 26px;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    transition: color var(--transition);
}

.faq__question:hover {
    color: var(--clr-accent);
}

.faq__icon {
    flex-shrink: 0;
    color: var(--clr-accent);
    transition: transform var(--transition);
}

.faq__item--open .faq__icon {
    transform: rotate(45deg);
}

/* Antwort wird über max-height animiert (per JS gesetzt) */
.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq__answer p {
    padding: 0 26px 24px;
    color: var(--clr-text-muted);
}

/* ------------------------------------------------------------
   14. KONTAKT
   ------------------------------------------------------------ */
.contact__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact__form {
    padding: clamp(28px, 5vw, 44px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form__group {
    margin-bottom: 22px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
}

.form__input {
    width: 100%;
    padding: 14px 18px;
    font: inherit;
    color: var(--clr-text);
    background: var(--clr-bg);
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition),
                background-color var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 4px var(--clr-accent-soft);
}

.form__textarea {
    resize: vertical;
    min-height: 130px;
}

/* Fehlerzustand: rote Umrandung + Meldung */
.form__input--invalid {
    border-color: #e74c3c;
}

.form__error {
    display: block;
    min-height: 1.2em;
    margin-top: 6px;
    font-size: 0.82rem;
    color: #e74c3c;
}

.form__success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 18px;
    font-size: 0.92rem;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.10);
    border-radius: var(--radius-sm);
}

.contact__info {
    display: grid;
    gap: 20px;
}

.contact__info-item {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact__info-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact__info-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
    color: var(--clr-accent);
    background: var(--clr-accent-soft);
    border-radius: var(--radius-sm);
}

.contact__info-item h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact__info-item p {
    font-size: 0.92rem;
    color: var(--clr-text-muted);
}

/* ------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------ */
.footer {
    padding: 72px 0 32px;
    background: var(--clr-bg-alt);
    border-top: 1px solid var(--clr-border);
    transition: background-color var(--transition);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--clr-border);
}

.footer__claim {
    margin-top: 14px;
    max-width: 300px;
    font-size: 0.92rem;
    color: var(--clr-text-muted);
}

.footer__links h3,
.footer__social h3 {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer__links ul {
    display: grid;
    gap: 10px;
}

.footer__links a {
    font-size: 0.92rem;
    color: var(--clr-text-muted);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--clr-accent);
}

/* Humorvoller 404-Link */
.footer__404 {
    font-style: italic;
}

.footer__social-icons {
    display: flex;
    gap: 12px;
}

.footer__social-icons a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    font-size: 1rem;
    color: var(--clr-text-muted);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    transition: color var(--transition), background var(--transition),
                transform var(--transition), border-color var(--transition);
}

.footer__social-icons a:hover {
    color: #fff;
    background: var(--gradient-accent);
    border-color: transparent;
    transform: translateY(-4px);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 28px;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.footer__bottom a {
    font-weight: 600;
    color: var(--clr-accent);
}

.footer__bottom a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------
   16. "NACH OBEN"-BUTTON
   ------------------------------------------------------------ */
.to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    font-size: 1.05rem;
    color: #fff;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--transition), visibility var(--transition),
                transform var(--transition);
}

.to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    transform: translateY(-4px);
}

/* ------------------------------------------------------------
   17. SCROLL-REVEAL-ANIMATIONEN
   Elemente mit .reveal faden beim Scrollen sanft ein (per JS).
   ------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ohne JavaScript bleibt alles sichtbar */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* ------------------------------------------------------------
   18. UNTERSEITEN (404, Impressum, Datenschutz)
   ------------------------------------------------------------ */
.page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.page__code {
    font-family: var(--font-head);
    font-size: clamp(5rem, 18vw, 10rem);
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page__title {
    margin: 18px 0 10px;
    font-size: clamp(1.4rem, 4vw, 2rem);
}

.page__text {
    max-width: 480px;
    margin-bottom: 32px;
    color: var(--clr-text-muted);
}

.page__content {
    max-width: 720px;
    margin-top: 24px;
    text-align: left;
}

.page__content h2 {
    margin: 28px 0 10px;
    font-size: 1.2rem;
}

.page__content p {
    color: var(--clr-text-muted);
    margin-bottom: 10px;
}

/* ------------------------------------------------------------
   19. RESPONSIVE DESIGN
   ------------------------------------------------------------ */

/* Tablet */
@media (max-width: 992px) {
    .section {
        padding: 84px 0;
    }

    .about__grid,
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .nav__cta {
        display: none;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .section {
        padding: 68px 0;
    }

    /* Mobiles Menü: ausklappbares Panel unter dem Header */
    .nav__burger {
        display: flex;
    }

    .nav__list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 18px 24px 26px;
        background: var(--clr-bg);
        border-bottom: 1px solid var(--clr-border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition),
                    visibility var(--transition);
    }

    .nav__list--open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav__link {
        display: block;
        padding: 13px 16px;
        font-size: 1.02rem;
    }

    .hero__stats {
        gap: 24px 40px;
    }

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

    .lightbox__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
    }

    .lightbox__nav--prev { left: 12px; }
    .lightbox__nav--next { right: 12px; }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .to-top {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
    }
}

/* Sehr kleine Geräte */
@media (max-width: 420px) {
    .container {
        width: calc(100% - 32px);
    }

    .hero__break {
        display: none;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .prices__service {
        white-space: normal;
    }
}
