body {
    padding-top: 88px;
}
@media (min-width: 768px) {
    body {
        padding-top: 180px;
    }
}
.site-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    transition: box-shadow 0.4s ease, transform 0.35s ease;
}
.site-nav.nav-hidden {
    transform: translateY(-100%);
}
.site-nav .nav-top {
    transition: padding 0.4s ease;
}
.site-nav .nav-logo {
    transition: height 0.4s ease;
}
.site-nav .nav-bottom {
    max-height: 5rem;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, border-color 0.4s ease;
    opacity: 1;
}
.site-nav.is-shrunk {
    box-shadow: 0 4px 20px rgba(44, 44, 44, 0.06);
}
.site-nav.is-shrunk .nav-top {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.site-nav.is-shrunk .nav-logo {
    height: 2.75rem !important;
}
.site-nav.is-shrunk .nav-bottom {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-color: transparent;
}

.ritual-icon {
    filter: brightness(0) invert(1);
}

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: var(--icon) no-repeat center / contain;
            mask: var(--icon) no-repeat center / contain;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.flatpickr-calendar {
    background: #fbf9f4;
    border: 1px solid #D9B8C4;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(131, 69, 97, 0.12);
    font-family: "Source Sans Three", sans-serif;
}
.flatpickr-months .flatpickr-month,
.flatpickr-weekday {
    color: #834561;
    fill: #834561;
    background: transparent;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #834561;
    font-weight: 700;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: #834561 !important;
}
.flatpickr-day {
    color: #1b1c19;
    border-radius: 9999px;
}
.flatpickr-day:hover:not(.flatpickr-disabled) {
    background: #F5DCE6;
    border-color: #F5DCE6;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #834561;
    border-color: #834561;
    color: #ffffff;
}
.flatpickr-day.today:not(.selected) {
    border-color: #834561;
}
.flatpickr-day.flatpickr-disabled {
    color: #d9b8c4;
    text-decoration: line-through;
}

.time-picker-wrap {
    position: relative;
}
.time-picker {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fbf9f4;
    border: 1px solid #D9B8C4;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(131, 69, 97, 0.12);
    padding: 20px 16px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    z-index: 60;
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: "Source Sans Three", sans-serif;
}
.time-picker.is-open {
    display: grid;
}
.time-col-label {
    font-family: "Source Sans Three", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #834561;
    padding: 0 8px 10px;
    border-bottom: 1px solid rgba(217, 184, 196, 0.5);
    margin-bottom: 6px;
}
.time-col-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.time-slot {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: "Libre Caslon Text", serif;
    font-size: 17px;
    line-height: 1.2;
    color: #1b1c19;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.2s ease;
}
.time-slot:hover {
    background: rgba(245, 220, 230, 0.6);
    color: #834561;
    padding-left: 16px;
}
.time-slot.is-selected {
    background: #834561;
    color: #ffffff;
    padding-left: 16px;
}
.time-slot.is-selected:hover {
    background: #834561;
    color: #ffffff;
}

.hero-blobs {
    overflow: hidden;
    contain: paint;
}
.hero-blob {
    position: absolute;
    transform: translateZ(0);
}
.hero-blob-1 {
    top: -10%;
    right: -8%;
    width: 42%;
    max-width: 640px;
    opacity: 0.12;
    animation: heroDrift1 32s ease-in-out infinite;
}
.hero-blob-2 {
    bottom: -20%;
    left: -12%;
    width: 34%;
    max-width: 520px;
    opacity: 0.08;
    animation: heroDrift2 38s ease-in-out infinite;
}
.hero-blob-3 {
    top: 40%;
    left: 32%;
    width: 22%;
    max-width: 340px;
    opacity: 0.06;
    animation: heroDrift3 44s ease-in-out infinite;
    animation-delay: -8s;
}
.hero-blob-4 {
    top: -25%;
    left: 8%;
    width: 26%;
    max-width: 380px;
    opacity: 0.07;
    animation: heroDrift4 28s ease-in-out infinite;
    animation-delay: -14s;
}

@keyframes heroDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-24px, 18px) scale(1.04); }
}
@keyframes heroDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -22px) scale(1.05); }
}
@keyframes heroDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(18px, 26px) scale(0.96); }
}
@keyframes heroDrift4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-16px, 20px) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-blob {
        animation: none;
    }
}

.map-tile {
    filter: saturate(0.55) hue-rotate(-15deg) sepia(0.15) brightness(1.02);
    transition: filter 0.4s ease;
}
.map-frame:hover .map-tile {
    filter: saturate(0.85) hue-rotate(-8deg) sepia(0.05) brightness(1);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fbf9f4;
}
::-webkit-scrollbar-thumb {
    background: #D9B8C4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8E6B78;
}

/* Marken-Slideshow (produkte.html) — fortlaufende Bilder je Partner-Marke */
.brand-slideshow {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.brand-slideshow .brand-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1.1s ease-in-out, transform 6s ease-out;
    will-change: opacity;
}
.brand-slideshow .brand-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .brand-slideshow .brand-slide {
        transition: none;
        transform: none;
    }
    .brand-slideshow .brand-slide.is-active {
        transform: none;
    }
}

/* <picture> ist nur ein Container fuer die WebP-Quelle - gestylt wird das <img>. */
picture {
    display: contents;
}

/* --- Hero-Panel (index.html): breites Bildpanel, Text liegt links darauf --- */
.hero-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid #F5DCE6;
    box-shadow: 0 18px 50px -18px rgba(44, 44, 44, 0.22);
    display: flex;
    align-items: center;
    min-height: 27rem;
}
@media (min-width: 768px) {
    .hero-card {
        min-height: 34rem;
    }
}

/* Nachfahren-Selektor, nicht ">": das <img> steckt in einem <picture>, das
   dank display:contents keine eigene Box erzeugt.
   max-width muss mit - Tailwinds Preflight setzt img { max-width: 100% }. */
.hero-card-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 62% 40%;
}
@media (min-width: 768px) {
    .hero-card-image {
        /* Breiter als das Panel, damit das Gesicht rechts neben der
           Textspalte sitzt statt darunter. */
        width: 122%;
        right: auto;
        object-position: left 40%;
    }
}

/* Aufheller unter dem Text - dunkelrose Schrift auf hellem Foto braucht
   einen ruhigen Grund, sonst wird sie unleserlich. */
.hero-card-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom,
        rgba(240, 221, 227, 0.96) 0%,
        rgba(240, 221, 227, 0.92) 46%,
        rgba(240, 221, 227, 0.60) 76%,
        rgba(240, 221, 227, 0.20) 100%);
}
@media (min-width: 768px) {
    .hero-card-scrim {
        background: linear-gradient(95deg,
            rgba(240, 221, 227, 0.97) 0%,
            rgba(240, 221, 227, 0.94) 30%,
            rgba(240, 221, 227, 0.74) 46%,
            rgba(240, 221, 227, 0.28) 63%,
            rgba(240, 221, 227, 0) 78%);
    }
}

.hero-card-text {
    position: relative;
    z-index: 1;
    max-width: 32rem;
    padding: 2.5rem 1.75rem;
    /* Sanfter heller Schein statt Schlagschatten: haelt die dunkle Schrift
       auch dort lesbar, wo der Verlauf schon transparent wird. */
    text-shadow: 0 1px 10px rgba(251, 249, 244, 0.85);
}
@media (min-width: 768px) {
    .hero-card-text {
        padding: 3.5rem 3rem;
    }
}

/* --- Icon-Set: waehlt die Maske fuer .icon aus ---
   Wurzelrelativ, weil url() in einer Custom Property gegen DIESE
   Datei aufgeloest wird, nicht gegen das Dokument. --- */
.icon-arrow-forward { --icon: url(/assets/icons/arrow_forward.svg?v=0fe76b2b); }
.icon-arrow-right-alt { --icon: url(/assets/icons/arrow_right_alt.svg?v=0fe76b2b); }
.icon-arrow-upward { --icon: url(/assets/icons/arrow_upward.svg?v=9091e9ab); }
.icon-calendar-today { --icon: url(/assets/icons/calendar_today.svg?v=f73444e3); }
.icon-call { --icon: url(/assets/icons/call.svg?v=940a3830); }
.icon-check { --icon: url(/assets/icons/check.svg?v=dca43b6e); }
.icon-checkroom { --icon: url(/assets/icons/checkroom.svg?v=799ebbd3); }
.icon-diversity-1 { --icon: url(/assets/icons/diversity_1.svg?v=a7e6d914); }
.icon-face-retouching-natural { --icon: url(/assets/icons/face_retouching_natural.svg?v=699b80b9); }
.icon-footprint { --icon: url(/assets/icons/footprint.svg?v=9346f7ec); }
.icon-info { --icon: url(/assets/icons/info.svg?v=5abe47e9); }
.icon-local-shipping { --icon: url(/assets/icons/local_shipping.svg?v=b29e53a0); }
.icon-location-on { --icon: url(/assets/icons/location_on.svg?v=202cb2d1); }
.icon-mail { --icon: url(/assets/icons/mail.svg?v=c46941e5); }
.icon-menu { --icon: url(/assets/icons/menu.svg?v=d689f138); }
.icon-palette { --icon: url(/assets/icons/palette.svg?v=76734f08); }
.icon-pan-tool { --icon: url(/assets/icons/pan_tool.svg?v=47db78b9); }
.icon-pedal-bike { --icon: url(/assets/icons/pedal_bike.svg?v=5035e42a); }
.icon-spa { --icon: url(/assets/icons/spa.svg?v=c501e187); }

/* Icon-Groessen (.icon skaliert ueber font-size) */
.icon-16 {
    font-size: 16px;
}
.icon-20 {
    font-size: 20px;
}
.icon-24 {
    font-size: 24px;
}
.icon-32 {
    font-size: 32px;
}

/* Gestaffeltes Einblenden fuer .reveal-up */
.reveal-delay-1 {
    transition-delay: 0.1s;
}
.reveal-delay-2 {
    transition-delay: 0.2s;
}

/* Zeit-Picker auf schmalen Displays: Inhalt (2 Spalten + Abstand + Innenabstand)
   war 234px breit bei 221px Panel und wurde rechts abgeschnitten. */
@media (max-width: 480px) {
    .time-picker {
        padding: 16px 10px;
        gap: 10px;
    }
    .time-col-label {
        letter-spacing: 0.08em;
        padding: 0 4px 10px;
    }
    .time-slot {
        padding: 8px 8px;
    }
    .time-slot:hover,
    .time-slot.is-selected {
        padding-left: 12px;
    }
}

/* --- Touch-Ziele: mind. 44x44 px (WCAG 2.5.8) ---
   Die Utilities p-2 / -mr-2 stecken nicht im vorkompilierten Tailwind-Build,
   deshalb hier direkt. */
/* Nur mobil: die ID-Spezifitaet wuerde sonst Tailwinds .md\:hidden
   (display:none ab 768px) ueberschreiben und den Knopf auf Desktop zeigen. */
@media (max-width: 767.98px) {
    #mobileToggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        /* haelt das Icon optisch buendig am Rand, trotz groesserer Klickflaeche */
        margin-right: -0.5rem;
    }
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* --- Menue-Knopf: drei Balken, die sich beim Oeffnen zum X drehen --- */
.nav-burger {
    position: relative;
    display: block;
    width: 24px;
    height: 18px;
}
.nav-burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.18s ease;
}
.nav-burger span:nth-child(1) { top: 0; }
.nav-burger span:nth-child(2) { top: 8px; }
.nav-burger span:nth-child(3) { top: 16px; }

#mobileToggle.is-open .nav-burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#mobileToggle.is-open .nav-burger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.4);
}
#mobileToggle.is-open .nav-burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Menue rollt von oben nach unten aus --- */
#mobileMenu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.22s ease,
                /* erst am Ende ausblenden, sonst bricht die Animation ab */
                visibility 0s linear 0.38s;
}
#mobileMenu.is-open {
    max-height: 32rem;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.22s ease,
                visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
    .nav-burger span,
    #mobileMenu {
        transition: none;
    }
}

/* --- Sichtbarer Tastaturfokus (WCAG 2.4.7) ---
   Weder der Tailwind-Build noch diese Datei hatten bisher Fokus-Stile.
   :focus-visible statt :focus, damit der Rahmen nur bei Tastaturbedienung
   erscheint und nicht bei jedem Mausklick. */
:focus-visible {
    outline: 3px solid #834561;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Auf dunklen Flaechen braucht der Rahmen einen hellen Ton */
.bg-primary:focus-visible,
a.bg-primary:focus-visible,
button.bg-primary:focus-visible,
#backToTop:focus-visible {
    outline-color: #F5DCE6;
    outline-offset: 3px;
}

/* Das Radio liegt visuell versteckt unter seinem Label (.peer.sr-only) -
   der Fokus muss deshalb am sichtbaren Label erscheinen. */
.peer.sr-only:focus-visible + span {
    outline: 3px solid #834561;
    outline-offset: 3px;
}

/* Sprungmarke zum Inhalt: liegt ausserhalb des Bildes und wird erst
   beim Antabben sichtbar. */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    background: #834561;
    color: #ffffff;
    font-size: 1rem;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
}

/* Formularfelder tragen Tailwinds focus:ring-0, das setzt
   "outline: 2px solid transparent" und schlaegt mit 0-2-0 die Regel oben.
   Die ID hebt die Spezifitaet auf 1-1-0, damit der Rahmen auch hier kommt. */
#kontaktForm :focus-visible {
    outline: 3px solid #834561;
    outline-offset: 3px;
}
#kontaktForm textarea:focus-visible,
#kontaktForm input[type="text"]:focus-visible,
#kontaktForm input[type="email"]:focus-visible,
#kontaktForm input[type="tel"]:focus-visible {
    /* dicht am Feld, da diese Eingaben nur eine Unterlinie haben */
    outline-offset: 2px;
}
