/* ============================================================
   Kalina Art Photography — Premium CSS
   Design System: High-Gloss Portfolio
   Accent: Instagram Gradient  #f97738 → #e1306c → #c13584
   ============================================================ */

/* --- Global Design Tokens (CSS Custom Properties) --- */
:root {
    --insta-gradient: linear-gradient(to right, #f97738, #e1306c, #c13584);
    --insta-from:     #f97738;
    --insta-mid:      #e1306c;
    --insta-to:       #c13584;
    --surface:        #ffffff;
    --ink:            #1a1c1c;
    --ink-soft:       rgba(26, 28, 28, 0.5);
    --border-soft:    rgba(26, 28, 28, 0.1);
    --transition-std: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

/* Glass Nav — nahtlos auf dem Hero-Bild, Links bleiben scharf */
.glass-nav {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    /* Harter unterer Border für Lesbarkeit auf dunklen Hero-Bildern */
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 0 rgba(26, 28, 28, 0.06);
}

/* ============================================================
   BUTTONS
   ============================================================ */

/* Ghost Button (auf hellem Hintergrund) */
.ghost-button {
    position: relative;
    border: 1px solid var(--ink);
    color: var(--ink);
    transition: var(--transition-std);
    background: transparent;
    /* Verhindert Gradient-Bleed */
    isolation: isolate;
    overflow: hidden;
}

/* Gradient-Shine auf Hover via Pseudo-Element */
.ghost-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--insta-gradient);
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: -1;
}

.ghost-button:hover, .ghost-button:focus-visible {
    border-color: transparent !important;
    color: #ffffff !important;
}

.ghost-button:hover::after, .ghost-button:focus-visible::after {
    opacity: 1;
}

/* Ghost Button White (auf dunklem / Bild-Hintergrund) */
.ghost-button-white {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    transition: var(--transition-std);
    background: transparent;
    isolation: isolate;
    overflow: hidden;
    letter-spacing: 0.08em;
}

.ghost-button-white::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--insta-gradient);
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: -1;
}

.ghost-button-white:hover, .ghost-button-white:focus-visible {
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 8px 30px rgba(225, 48, 108, 0.4);
}

.ghost-button-white:hover::after, .ghost-button-white:focus-visible::after {
    opacity: 1;
}

/* ============================================================
   IMAGE INTERACTIONS
   ============================================================ */

.img-hover-scale {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Subtiler Gradient-Shimmer auf dem Image-Wrapper beim Hover */
.img-wrapper {
    position: relative;
}
.img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--insta-gradient);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: color; /* Legt Farbe über das Grayscale-Bild */
}
.img-wrapper:hover::after {
    opacity: 0.18;
}

/* ============================================================
   FLOATING ANIMATION
   ============================================================ */

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.10);
    }
    50% {
        transform: translateY(-14px);
        box-shadow: 0 35px 60px -18px rgba(0, 0, 0, 0.18);
    }
}

.floating-container {
    animation: subtleFloat 8s ease-in-out infinite;
    border-radius: 4px;
    will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .floating-container {
        animation: none;
        will-change: auto;
        box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.10);
    }
    .animate-ken-burns {
        animation: none;
    }
}

/* Animation Delays */
.delay-1 { animation-delay: 1.5s; }
.delay-2 { animation-delay: 3.0s; }

/* ============================================================
   KEN BURNS HERO EFFECT
   ============================================================ */

@keyframes kenBurns {
    0%   { transform: scale(1.0) translate(0, 0); }
    100% { transform: scale(1.12) translate(-2%, -1%); }
}

.animate-ken-burns {
    animation: kenBurns 22s ease-in-out infinite alternate;
}

/* ============================================================
   GLOW & SHADOW EFFECTS
   ============================================================ */

/* Legacy-Klasse erhalten — leitet auf neue Implementierung um */
.rose-shadow {
    text-shadow:
        0 2px 20px rgba(225, 48, 108, 0.55),
        0 0  50px rgba(249, 119, 56, 0.25);
}

/* Neue Premium-Klasse: weicher Insta-Glow auf den Buchstaben (Text-Glow) */
.insta-glow {
    color: #ffffff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 15px rgba(225, 48, 108, 0.45));
    transition: filter 0.5s ease;
}

.insta-glow:hover {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px rgba(225, 48, 108, 0.8));
}

/* Gradient-Text-Utility (für Headlines, Labels) */
.text-insta-gradient {
    background: var(--insta-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   MODAL / OVERLAY (DOM-Struktur UNVERÄNDERT)
   ============================================================ */

#overlay-container {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.5);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#overlay-container.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-box {
    background: #ffffff;
    width: 90%;
    max-width: 800px;
    max-height: 80dvh;
    border-radius: 6px;
    padding: 3rem;
    position: relative;
    transform: translateY(24px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 30px 70px -15px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(26, 28, 28, 0.06);
    display: flex;
    flex-direction: column;
}

#overlay-container.active .modal-content-box {
    transform: translateY(0);
}

#modal-content {
    overflow-y: auto;
    font-family: inherit;
    line-height: 1.65;
    color: var(--ink-soft);
    padding-right: 1.5rem;
}

#modal-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

#modal-content p {
    margin-bottom: 1.25rem;
    color: var(--ink-soft);
    line-height: 1.65;
}

#modal-content strong {
    color: var(--ink);
    font-weight: 600;
}

#modal-content a {
    color: var(--insta-mid);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

#modal-content a:hover {
    opacity: 0.8;
}

/* Premium Scrollbar im Modal — Insta-Gradient */
#modal-content::-webkit-scrollbar       { width: 3px; }
#modal-content::-webkit-scrollbar-track { background: #f5f5f5; }
#modal-content::-webkit-scrollbar-thumb {
    background: var(--insta-gradient);
    border-radius: 2px;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
}

.modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-close span {
    font-size: 22px;
}

/* ============================================================
   COOKIE BANNER & PRIVACY TRIGGER
   ============================================================ */

.cookie-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    z-index: 1000;
    max-width: 320px;
    display: none;
    font-size: 13px;
    border: 1px solid rgba(26, 28, 28, 0.06);
    animation: slideUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

#privacy-trigger {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    z-index: 999;
    opacity: 0.75;
    transition: var(--transition-std);
    color: var(--ink);
    border: 1px solid var(--border-soft);
}

#privacy-trigger:hover {
    opacity: 1;
    transform: scale(1.08);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.12),
        0 0 0 2px rgba(225, 48, 108, 0.3);
}

.cookie-content p {
    margin-bottom: 1rem;
    line-height: 1.55;
    color: #555;
}

.cookie-content a {
    background: var(--insta-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-accept {
    background: var(--insta-gradient);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-accept:hover, .btn-accept:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
    opacity: 0.95;
}

.btn-refuse {
    background: transparent;
    border: 1px solid rgba(26, 28, 28, 0.12);
    color: var(--ink-soft);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-std);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-refuse:hover, .btn-refuse:focus-visible {
    background: rgba(26, 28, 28, 0.03);
    border-color: rgba(26, 28, 28, 0.2);
    color: var(--ink);
}

/* ============================================================
   DIVIDER / ROSE-DIVIDER (legacy-kompatibel)
   ============================================================ */

.rose-divider {
    border-top: 1px solid rgba(225, 48, 108, 0.2) !important;
    box-shadow: 0 -8px 20px -8px rgba(225, 48, 108, 0.25);
}

/* ============================================================
   iOS SCROLL LOCK (Mobile Lightbox)
   ============================================================ */

body.is-locked {
    position: fixed;
    width: 100%;
    overflow-y: scroll;
}

/* ============================================================
   MOBILE-FIRST OPTIMIERUNG — Responsive Overrides
   Alle Anpassungen erfolgen ausschließlich via CSS.
   HTML-Struktur, Texte und Bildquellen bleiben unverändert.
   ============================================================ */

/* -----------------------------------------------------------
   1. Globale Layout-Grenzen (Anti-Horizontal-Scroll)
   ----------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* -----------------------------------------------------------
   2. Text-Overflow & Silbentrennung — alle Text-Container
      und Überschriften global absichern
   ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
p, span, a, li, button, label,
div, section, article, aside {
    overflow-wrap: break-word;
    word-wrap: break-word;          /* Ältere Browser-Fallback */
    -webkit-hyphens: auto;          /* Safari / iOS */
    -ms-hyphens: auto;              /* IE 11 Fallback */
    hyphens: auto;
}

/* -----------------------------------------------------------
   3. Responsive Typografie — Mobile-Basis mit clamp()
      Die Tailwind-Klassen text-headline-md (48px) und
      text-display-lg (84px) sind für Mobile zu groß.
      Wir überschreiben sie mit fluiden clamp()-Werten.
   ----------------------------------------------------------- */

/* text-headline-md: 48px Desktop → ~26px Mobile (fluid) */
.text-headline-md {
    font-size: clamp(1.6rem, 5vw + 0.5rem, 3rem) !important;
    line-height: 1.25 !important;
}

/* text-display-lg: 84px Desktop → ~36px Mobile (fluid) */
.text-display-lg {
    font-size: clamp(2.25rem, 8vw + 0.5rem, 5.25rem) !important;
    line-height: 1.12 !important;
}

/* text-4xl (Tailwind): used on section headlines */
.text-4xl {
    font-size: clamp(1.5rem, 4vw + 0.75rem, 2.25rem) !important;
    line-height: 1.25 !important;
}

/* text-3xl: Mobile-Menu & Drawer Titles */
.text-3xl {
    font-size: clamp(1.35rem, 3.5vw + 0.5rem, 1.875rem) !important;
}

/* text-2xl: Kontakt-Formular Heading */
.text-2xl {
    font-size: clamp(1.2rem, 3vw + 0.4rem, 1.5rem) !important;
}

/* -----------------------------------------------------------
   4. Responsive Spacing — Mobile-First Edge Margins
      Tailwind px-edge-margin = 4rem ist auf Mobile zu weit.
      Tailwind py-section-gap = 10rem erzeugt zu viel Abstand.
      Wir überschreiben via class-Selektor für Mobile-First.
   ----------------------------------------------------------- */

/* Mobile: reduziertes horizontales Padding (1.25rem) */
.px-edge-margin {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

/* Mobile: reduzierter vertikaler Section-Abstand (3rem) */
.py-section-gap {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Babybauch/Familie/Headshots: img-wrapper Unterabstand auf Mobile */
@media (max-width: 767px) {
    .img-wrapper.aspect-square {
        margin-bottom: 1.5rem;
    }

    /* Drawer: volle Breite auf Mobile, schmalerer Header-Padding */
    .p-8 {
        padding: 1.25rem !important;
    }

    /* Modal: kleineres Padding auf Mobile */
    .modal-content-box {
        padding: 1.5rem !important;
        width: 95% !important;
        max-height: 88dvh !important;
    }

    /* Cookie-Banner: Breite anpassen damit er nicht über den Rand geht */
    .cookie-container {
        left: 1rem !important;
        right: 1rem !important;
        bottom: 1rem !important;
        max-width: calc(100vw - 2rem) !important;
    }

    #privacy-trigger {
        left: 1rem !important;
        bottom: 1rem !important;
    }

    /* Hero: weniger top-Padding auf kleinen Geräten */
    .pt-32 {
        padding-top: 5rem !important;
    }

    /* Hero py-section-gap ebenfalls reduzieren */
    .py-section-gap {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Kontakt-Grid: mb-4 für Let's-Connect-Heading */
    #kontakt .text-4xl {
        margin-bottom: 0.75rem !important;
    }

    /* Rezensionen/Portfolio: Karten auf Mobile etwas breiter (90%) */
    .flex-none.w-\[85\%\] {
        width: 90% !important;
    }
}

/* -----------------------------------------------------------
   5. Responsive Spacing — Desktop hochskalieren (≥ 768px)
   ----------------------------------------------------------- */
@media (min-width: 768px) {

    /* Desktop: volle Edge-Margin (4rem) wiederherstellen */
    .px-edge-margin {
        padding-left: 4rem !important;
        padding-right: 4rem !important;
    }

    /* Desktop: voller Section-Gap (10rem) wiederherstellen */
    .py-section-gap {
        padding-top: 10rem !important;
        padding-bottom: 10rem !important;
    }

    /* Drawer: Standard-Padding auf Desktop */
    .p-8 {
        padding: 2rem !important;
    }

    /* Modal: Standard-Größe auf Desktop */
    .modal-content-box {
        padding: 3rem !important;
        width: 90% !important;
        max-height: 80dvh !important;
    }

    /* Hero: reguläres pt-32 auf Desktop */
    .pt-32 {
        padding-top: 8rem !important;
    }
}

