/* ============================================
   COMPONENTS.CSS – Fliesen Chudy
   "Luxury Craftsman" Komponenten
   ============================================ */

/* === HEADER / NAVIGATION === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--color-page-bg);
    transition: background 0.35s var(--ease-out-expo),
                box-shadow 0.35s var(--ease-out-expo);
}

.site-header .header-inner {
    height: 100%;
}

.site-header.scrolled {
    background: rgba(12, 11, 9, 0.98);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    height: 100%;
    gap: var(--space-sm);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    grid-column: 1;
    justify-self: start;
    position: relative;
    z-index: 1002;
}

.logo-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0;
    line-height: 1;
    transition: opacity 0.4s var(--ease-out-expo);
}

.logo-wordmark-part {
    font-family: var(--font-body);
    font-weight: 950;
    font-variation-settings: "wght" 950;
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--color-text-primary);
    white-space: nowrap;
    display: block;
    line-height: 0.9;
}

.logo:hover .logo-lockup,
.footer-logo:hover .logo-lockup {
    opacity: 0.7;
}

.main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-primary);
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    padding-top: clamp(2rem, 8vh, 4rem);
    padding-bottom: calc(var(--safe-area-bottom) + 2rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.nav-list {
    display: flex;
    gap: var(--space-md);
}

.nav-list a {
    color: var(--color-text-primary);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    white-space: nowrap;
    opacity: 0.6;
    transition: color 0.4s var(--ease-out-expo), opacity 0.4s var(--ease-out-expo);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent), rgba(196, 154, 108, 0.3));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s var(--ease-out-expo);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-white);
    opacity: 1;
}

.nav-list a.active {
    color: var(--color-accent);
}

.nav-list a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-list a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
    grid-column: 3;
    justify-self: end;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-primary);
    font-size: 0.875rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0.7;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.header-phone:hover {
    color: var(--color-accent);
    opacity: 1;
}

.phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.header-cta {
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    padding: 4px;
    grid-column: 3;
    justify-self: end;
    align-self: center;
    position: relative;
    z-index: 1002;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--color-white);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation – Premium Fullscreen Menu */
body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.nav-open .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    text-align: center;
}

body.nav-open .nav-list li {
    opacity: 0;
    transform: translateY(20px);
    animation: navItemIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.nav-open .nav-list li:nth-child(1) { animation-delay: 0.08s; }
body.nav-open .nav-list li:nth-child(2) { animation-delay: 0.14s; }
body.nav-open .nav-list li:nth-child(3) { animation-delay: 0.20s; }
body.nav-open .nav-list li:nth-child(4) { animation-delay: 0.26s; }
body.nav-open .nav-list li:nth-child(5) { animation-delay: 0.32s; }

@keyframes navItemIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.nav-open .nav-list a {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    opacity: 0.85;
    color: var(--color-text-primary);
    padding: 0.6rem 0;
    display: block;
    transition: opacity 0.3s ease, color 0.3s ease;
}

body.nav-open .nav-list a:hover,
body.nav-open .nav-list a:focus {
    opacity: 1;
    color: var(--color-accent);
}

body.nav-open .nav-list a.active {
    opacity: 1;
    color: var(--color-accent);
}

body.nav-open .nav-list a::after {
    display: none;
}

body.nav-open .site-header {
    background: var(--color-page-bg);
    box-shadow: none;
}

/* === BUTTONS === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-accent);
    color: #0c0b09;
    padding: 1rem 2.25rem;
    border: none;
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background 0.4s var(--ease-out-expo),
                transform 0.4s var(--ease-out-expo),
                box-shadow 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

/* Subtiler Lichtschimmer auf Hover */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.6s var(--ease-out-expo);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    color: #0c0b09;
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(196, 154, 108, 0.3),
                0 0 80px rgba(196, 154, 108, 0.06);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--color-accent);
    padding: 1rem 2.25rem;
    border: 1px solid rgba(196, 154, 108, 0.25);
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

/* Bottom-line grow on hover */
.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.5s var(--ease-out-expo);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(196, 154, 108, 0.08);
}

.btn-secondary:hover::after {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
}

/* === SEKTIONS-LICHTEFFEKTE (subtle radial glows) === */
/* Leistungen: oben-rechts */
.section:nth-of-type(1)::after {
    content: '';
    position: absolute;
    top: -15%;
    right: -10%;
    width: 55%;
    height: 55%;
    background: radial-gradient(ellipse, rgba(196, 154, 108, 0.035) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
/* Referenzen: unten-links */
.section:nth-of-type(2)::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -8%;
    width: 50%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(196, 154, 108, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
/* Bewertungen: Mitte-oben */
.section:nth-of-type(3)::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 20%;
    width: 60%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(196, 154, 108, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
/* Lamurista: unten-rechts */
.section:nth-of-type(4)::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -5%;
    width: 45%;
    height: 45%;
    background: radial-gradient(ellipse, rgba(196, 154, 108, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
/* Ratgeber: oben-links */
.section:nth-of-type(6)::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -12%;
    width: 50%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(196, 154, 108, 0.035) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* === SEKTIONSÜBERGÄNGE (gradient divider) === */
.section + .section::before,
.section--alt + .section::before,
.section + .section--alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 154, 108, 0.08), transparent);
    z-index: 1;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    margin-top: calc(-1 * (var(--header-height) + var(--safe-area-top)));
    padding-top: calc(var(--header-height) + var(--safe-area-top));
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--color-bg-secondary);
    background-size: cover;
    background-position: center;
    transform: none !important;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(12, 11, 9, 0.78) 0%,
            rgba(12, 11, 9, 0.62) 34%,
            rgba(12, 11, 9, 0.24) 62%,
            rgba(12, 11, 9, 0.06) 100%
        ),
        linear-gradient(
            to top,
            rgba(12, 11, 9, 0.94) 0%,
            rgba(12, 11, 9, 0.68) 18%,
            rgba(12, 11, 9, 0.24) 60%,
            rgba(12, 11, 9, 0.48) 100%
        );
}

.hero--home .hero-bg::after {
    background: linear-gradient(
        to top,
        rgba(12, 11, 9, 1) 0%,
        rgba(12, 11, 9, 0.9) 12%,
        rgba(12, 11, 9, 0.5) 40%,
        rgba(12, 11, 9, 0.25) 60%,
        rgba(12, 11, 9, 0.4) 80%,
        rgba(12, 11, 9, 0.6) 100%
    );
}

/* Gold accent line at hero bottom */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(196, 154, 108, 0.25) 50%, transparent 90%);
    z-index: 3;
}

/* Vignette-Effekt für Kinoatmosphäre */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(12, 11, 9, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100vw - 2.5rem));
    max-width: 720px;
    min-width: 0;
    margin-left: max(var(--container-padding), calc((100vw - var(--max-width)) / 2 + var(--container-padding)));
    padding: 0;
    padding-top: clamp(2rem, 4vh, 4rem);
    text-align: left;
}

.hero-content > * {
    position: relative;
    z-index: 1;
}

.hero .kicker {
    margin-bottom: 1.35rem;
    text-shadow: 0 2px 12px rgba(12, 11, 9, 0.7);
}

.hero h1 {
    font-family: Georgia, 'Times New Roman', serif;
    max-width: 100%;
    margin-bottom: 1.5rem;
    font-size: clamp(2.25rem, 4.4vw, 3.75rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-shadow: 0 3px 20px rgba(12, 11, 9, 0.58);
}

.hero-subtitle {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    color: rgba(236, 230, 222, 0.86);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.55;
    text-shadow: 0 2px 14px rgba(12, 11, 9, 0.72);
}

.hero--home .kicker,
.hero--home h1,
.hero--home .hero-subtitle {
    text-shadow: none;
}

.hero--home .hero-subtitle {
    color: var(--color-text-secondary);
}

/* Hero button group */
.hero .btn-group {
    justify-content: flex-start;
    gap: 1rem;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.4;
    transition: opacity 0.4s ease;
    cursor: pointer;
}

.hero-scroll-indicator:hover {
    opacity: 0.7;
}

.hero-scroll-indicator span {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* === CARD === */
.card {
    background: transparent;
    overflow: hidden;
    border: none;
    transition: transform 0.6s var(--ease-out-expo),
                box-shadow 0.6s var(--ease-out-expo);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.card-image {
    aspect-ratio: 4 / 3;
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    overflow: hidden;
    position: relative;
}

/* Dezenter Overlay auf Hover */
.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 11, 9, 0.15);
    opacity: 0;
    transition: opacity 0.6s var(--ease-out-expo);
}

.card:hover .card-image::after {
    opacity: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease-out-expo),
                filter 1.4s var(--ease-out-expo);
}

.card:hover .card-image img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.card-body {
    padding: 1.5rem 0.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.card-body h3 a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.4s var(--ease-out-expo);
}

.card-body h3 a:hover {
    color: var(--color-accent);
}

.card-body p {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.card-link {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    transition: gap 0.5s var(--ease-out-expo),
                color 0.4s var(--ease-out-expo);
    margin-top: auto;
}

/* Decorative line before arrow */
.card-link::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.5s var(--ease-out-expo);
}

.card-link::after {
    content: '\2192';
    transition: transform 0.5s var(--ease-out-expo);
    font-size: 1em;
}

.card:hover .card-link {
    gap: 0.75rem;
    color: var(--color-accent-hover);
}

.card:hover .card-link::before {
    width: 24px;
}

.card:hover .card-link::after {
    transform: translateX(4px);
}

/* Highlight-Variante */
.card--highlight {
    position: relative;
}

/* Card Grid */
.card-grid {
    display: grid;
    gap: var(--space-md);
}

.card-grid--3 {
    grid-template-columns: 1fr;
}

.card-grid--4 {
    grid-template-columns: 1fr;
}

/* === REVIEW CARD === */
.review-card {
    background: var(--color-bg-card);
    border: none;
    padding: 2rem 1.75rem;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s var(--ease-out-expo),
                box-shadow 0.6s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

/* Top accent line */
.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 1px;
    background: var(--color-accent);
    opacity: 0.4;
    transition: width 0.6s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35),
                0 0 40px rgba(196, 154, 108, 0.03);
    border-color: rgba(196, 154, 108, 0.08);
}

.review-card:hover::before {
    width: 100%;
    opacity: 0.7;
}

/* Decorative open-quote – subtle background element */
.review-quote-mark {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 4rem;
    line-height: 1;
    font-family: var(--font-heading);
    color: var(--color-accent);
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1.25rem;
}

.review-stars svg {
    width: 14px;
    height: 14px;
    fill: var(--color-accent);
}

.review-text {
    color: var(--color-text-primary);
    font-size: 1rem;
    font-style: italic;
    font-family: var(--font-heading);
    line-height: 1.65;
    margin: 0 0 1.25rem 0;
    padding: 0 0 1.25rem 0;
    border: none;
    border-bottom: 1px solid rgba(42, 37, 32, 0.3);
    flex: 1;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-top: auto;
}

.review-meta cite {
    font-style: normal;
    font-weight: 500;
    color: var(--color-text-primary);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.review-source {
    display: block;
    font-size: 0.8125rem;
    opacity: 0.5;
    margin-top: 0.125rem;
}

/* Avatar-Initialen */
.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 0;
    border: 1px solid rgba(196, 154, 108, 0.25);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

.review-meta-text {
    display: flex;
    flex-direction: column;
}

/* === REVIEWS MARQUEE === */
.reviews-section {
    overflow: visible;
}

.reviews-marquee {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 0.5rem 0 1.5rem;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 6%,
        black 94%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 6%,
        black 94%,
        transparent 100%
    );
}

.reviews-marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: reviews-scroll 40s linear infinite;
    will-change: transform;
}

.reviews-marquee-track:hover {
    animation-play-state: paused;
}

.reviews-marquee .review-card {
    width: 380px;
    min-width: 380px;
    flex-shrink: 0;
}

@keyframes reviews-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-3 * (380px + 1.5rem)));
    }
}

/* prefers-reduced-motion: pause animation */
@media (prefers-reduced-motion: reduce) {
    .reviews-marquee-track {
        animation-play-state: paused;
    }
}

/* === REVIEWS TRUST BAR === */
.reviews-trust-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    border: 1px solid rgba(196, 154, 108, 0.08);
    border-radius: 0;
    padding: 1rem 1.25rem;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.reviews-trust-score {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.reviews-trust-number {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2rem);
    color: var(--color-white);
    line-height: 1;
}

.reviews-trust-score-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reviews-trust-score-detail .reviews-trust-stars {
    display: flex;
    gap: 2px;
}

.reviews-trust-score-detail .reviews-trust-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--color-accent);
}

.reviews-trust-score-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

/* Gold gradient divider */
.reviews-trust-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
    opacity: 0.4;
    flex-shrink: 0;
}

.reviews-trust-google {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.reviews-trust-google-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.reviews-trust-google-count {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.reviews-trust-google-verified {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    opacity: 0.7;
}

/* Social Proof line under headline */
.reviews-social-proof {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: 0;
    margin-bottom: 0;
}

.reviews-social-proof strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Google CTA Button */
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: transparent;
    color: var(--color-text-secondary);
    padding: 0.875rem 1.75rem;
    border: 1px solid rgba(196, 154, 108, 0.2);
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    -webkit-tap-highlight-color: transparent;
}

.btn-google:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-google svg {
    flex-shrink: 0;
}

/* === TRUST-LEISTE === */
/* Mobile-first: Vertikale Karten im 2x2 Grid */
.trust-bar {
    background: var(--color-bg-secondary);
    padding: 1.25rem 0;
    position: relative;
    border-top: 1px solid rgba(196, 154, 108, 0.08);
    border-bottom: 1px solid rgba(196, 154, 108, 0.08);
}

.trust-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    align-items: stretch;
}

/* Hidden on mobile, shown on tablet+ */
.trust-divider {
    display: none;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(196, 154, 108, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}

/* Linked trust items */
.trust-item--google,
.trust-item--lamurista {
    transition: opacity 0.3s ease;
}

.trust-item--google:hover,
.trust-item--lamurista:hover {
    opacity: 0.8;
}

.trust-item--google > svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

/* Text block: label + sublabel */
.trust-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1875rem;
}

/* Primary line */
.trust-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.2;
}

.trust-main strong {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
}

/* Stars in accent color */
.trust-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: var(--color-accent);
}

/* Secondary line */
.trust-sub {
    font-size: 0.6875rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

/* Large number (30+, 2013, 4,8) */
.trust-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
    flex-shrink: 0;
}

/* Lamurista wordmark */
.trust-lamurista {
    height: 22px;
    width: auto;
    filter: invert(1);
    opacity: 0.9;
    flex-shrink: 0;
}

/* Flag */
.trust-flag {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Accent glow variant (über-uns LP) */
.trust-number.accent-glow {
    color: var(--color-accent);
}

/* Über-uns trust detail (alternative structure) */
.trust-detail {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.trust-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.2;
}

.trust-sublabel {
    font-size: 0.6875rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

/* Accent-colored number in trust stat */
.trust-stat-number {
    color: var(--color-accent);
    font-size: 1rem;
}

/* === TEXT-BILD SEKTION === */
.text-image {
    display: grid;
    gap: var(--space-lg);
    align-items: center;
}

.text-image--reverse .text-image-visual {
    order: -1;
}

.text-image-visual {
    aspect-ratio: 3 / 4;
    background: var(--color-bg-secondary);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    overflow: hidden;
    position: relative;
}

.text-image-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease-out-expo),
                filter 1.4s var(--ease-out-expo);
}

.text-image:hover .text-image-visual img {
    transform: scale(1.05);
    filter: brightness(1.03) contrast(1.02);
}

/* Subtle gold border accent on image */
.text-image-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(196, 154, 108, 0);
    transition: border-color 0.8s var(--ease-out-expo);
    pointer-events: none;
    z-index: 1;
}

.text-image:hover .text-image-visual::after {
    border-color: rgba(196, 154, 108, 0.12);
}

.text-image-content {
    padding-top: var(--space-sm);
}

.text-image-content h2 {
    margin-bottom: var(--space-sm);
}

.text-image-content .kicker {
    display: flex;
}

.text-image-content .btn-primary,
.text-image-content .btn-secondary {
    margin-top: var(--space-sm);
}

/* === FAQ AKKORDEON === */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

/* Active accent glow left */
.faq-item.active {
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-sm);
}

.faq-item.active .faq-question {
    color: var(--color-accent);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    gap: var(--space-sm);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--color-accent);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
}

.faq-icon svg {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
    padding-bottom: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* === KONTAKT CTA SEKTION === */
.cta-section {
    background: var(--color-bg-secondary);
    text-align: left;
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 154, 108, 0.15), transparent);
}

/* Radial glow hinter CTA – dramatischer */
.cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(196, 154, 108, 0.06) 0%, rgba(196, 154, 108, 0.02) 40%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    margin-bottom: var(--space-sm);
}

.cta-section p {
    max-width: 600px;
}

.cta-phone {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-accent);
    margin: var(--space-sm) 0 var(--space-xs);
    transition: color 0.4s var(--ease-out-expo),
                letter-spacing 0.4s var(--ease-out-expo);
    letter-spacing: 0.02em;
}

.cta-phone:hover {
    color: var(--color-accent-hover);
    letter-spacing: 0.06em;
    text-shadow: 0 0 40px rgba(196, 154, 108, 0.2);
}

/* === FOOTER === */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: none;
    padding: var(--space-xl) 0 var(--space-md);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 154, 108, 0.2), rgba(196, 154, 108, 0.1), transparent);
}

.footer-grid {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.footer-logo .logo-lockup {
    gap: 0.16em;
}

.footer-logo .logo-wordmark-part {
    font-size: 1rem;
}

.footer-tagline {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    font-family: var(--font-heading);
    font-style: italic;
}

.footer-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    font-weight: 500;
    font-family: var(--font-body);
}

.footer-address p {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.footer-address a {
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.footer-address a:hover {
    color: var(--color-accent);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

/* === STICKY MOBILE CTA-BAR === */
.mobile-cta-bar {
    display: none;
}

/* === WHATSAPP BUTTON === */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: rgba(37, 211, 102, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    z-index: 90;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2);
    transition: transform 0.4s var(--ease-out-expo),
                box-shadow 0.4s var(--ease-out-expo),
                background 0.4s var(--ease-out-expo);
    text-decoration: none;
    animation: whatsappPulse 3s ease-in-out 4s infinite;
}

@keyframes whatsappPulse {
    0%, 85%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2); }
    90% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2), 0 0 0 8px rgba(37, 211, 102, 0.08); }
    95% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2), 0 0 0 16px rgba(37, 211, 102, 0); }
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
    background: #25D366;
    color: #fff;
}

/* === IMAGE PLACEHOLDER === */
.img-placeholder {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, #1a1815 50%, var(--color-bg-secondary) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    padding: var(--space-sm);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle noise on placeholders to simulate real image */
.img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding-left: var(--space-md);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-md);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-md) - 4px);
    top: 0.35rem;
    width: 9px;
    height: 9px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--color-bg-primary), 0 0 12px rgba(196, 154, 108, 0.2);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.timeline-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

/* === VORTEILE GRID === */
.benefits-grid {
    display: grid;
    gap: var(--space-md);
}

.benefit-item {
    display: flex;
    gap: var(--space-sm);
}

.benefit-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(196, 154, 108, 0.08);
    border: 1px solid rgba(196, 154, 108, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: rgba(196, 154, 108, 0.12);
    border-color: rgba(196, 154, 108, 0.3);
}

.benefit-icon svg {
    display: block;
}

.benefit-content h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
}

.benefit-content p {
    font-size: 0.9375rem;
}

/* === PROZESS / SCHRITTE === */
.process-steps {
    display: grid;
    gap: var(--space-md);
    counter-reset: step;
}

.process-step {
    counter-increment: step;
    display: flex;
    gap: var(--space-sm);
}

.process-step::before {
    content: counter(step);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
}

.process-step h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
}

.process-step p {
    font-size: 0.9375rem;
}


/* === KONTAKT OPTIONEN === */
.contact-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
}

.contact-option {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-option:hover {
    border-color: rgba(196, 154, 108, 0.3);
    transform: translateY(-2px);
}

.contact-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-sm);
    color: var(--color-accent);
    background: rgba(196, 154, 108, 0.08);
    border: 1px solid rgba(196, 154, 108, 0.15);
    border-radius: 14px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-option:hover .contact-option-icon {
    background: rgba(196, 154, 108, 0.12);
    border-color: rgba(196, 154, 108, 0.3);
}

.contact-option-icon svg {
    display: block;
}

.contact-option h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.contact-option-value {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.contact-option-value::after {
    content: '';
    position: absolute;
    inset: 0;
}

.contact-option p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* === KONTAKTFORMULAR === */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-wrapper h2 {
    margin-bottom: var(--space-xs);
}

.contact-form-wrapper > p {
    margin-bottom: var(--space-md);
}

.form-grid {
    display: grid;
    gap: var(--space-sm);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(30, 27, 23, 0.5);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.1),
                0 4px 20px rgba(196, 154, 108, 0.05);
    background: rgba(30, 27, 23, 0.7);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.5;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9187' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
    color: var(--color-text-secondary) !important;
    line-height: 1.5;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    flex-shrink: 0;
    accent-color: var(--color-accent);
}

.form-checkbox a {
    color: var(--color-accent);
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-submit {
    width: 100%;
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
}

.form-message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: var(--space-sm);
    font-size: 0.9375rem;
}

.form-message--success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #6fcf97;
}

.form-message--error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef7070;
}

@media (min-width: 768px) {
    .contact-options {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .form-group--full {
        grid-column: 1 / -1;
    }
}


/* === RECHTLICHE SEITEN (Impressum, Datenschutz) === */
.legal-content h2 {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.legal-content ul {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
}

.legal-content li {
    margin-bottom: var(--space-xs);
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(196, 154, 108, 0.3);
    transition: text-decoration-color 0.3s ease, color 0.3s ease;
}

.legal-content a:hover {
    color: var(--color-accent-hover);
    text-decoration-color: var(--color-accent-hover);
}

.legal-content strong {
    color: var(--color-white);
}


/* === GOOGLE MAPS CONSENT (2-Click-Lösung) === */
.maps-consent-placeholder {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.maps-consent-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    padding: var(--space-md);
}

.maps-consent-inner {
    text-align: center;
    max-width: 400px;
}

.maps-consent-inner p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
    line-height: 1.6;
}

.maps-consent-inner a {
    color: var(--color-accent);
    text-decoration: underline;
}

.maps-consent-actions {
    margin-top: var(--space-md);
}

/* === IMAGE VIEWER === */
body.image-viewer-open {
    overflow: hidden;
}

body.image-viewer-open .page-scroll {
    overflow: hidden;
}

.image-viewer-trigger {
    cursor: zoom-in;
}

.image-viewer-trigger:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.card-image.image-viewer-trigger::after,
.text-image-visual.image-viewer-trigger::after {
    pointer-events: none;
}

.image-viewer-trigger > img {
    pointer-events: none;
}

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    padding:
        max(1rem, var(--safe-area-top))
        max(1rem, env(safe-area-inset-right, 1rem))
        max(1rem, calc(var(--safe-area-bottom) + 1rem))
        max(1rem, env(safe-area-inset-left, 1rem));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s var(--ease-out-expo);
}

.image-viewer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.image-viewer[hidden] {
    display: none;
}

.image-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 11, 9, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.image-viewer-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1480px);
    height: min(100%, 920px);
    min-height: 0;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 3rem;
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.image-viewer-figure {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.image-viewer-image {
    width: 100%;
    height: 100%;
    max-height: calc(100dvh - 8.5rem);
    object-fit: contain;
    background: var(--color-bg-primary);
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.38);
}

.image-viewer-meta {
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-text-primary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.image-viewer-caption {
    color: var(--color-text-primary);
}

.image-viewer-counter {
    flex-shrink: 0;
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.image-viewer-button {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(236, 230, 222, 0.22);
    border-radius: 999px;
    background: rgba(30, 27, 23, 0.76);
    color: var(--color-white);
    transition: color 0.25s ease,
                border-color 0.25s ease,
                background 0.25s ease,
                transform 0.25s var(--ease-out-expo);
}

.image-viewer-button:hover,
.image-viewer-button:focus-visible {
    color: var(--color-accent-hover);
    border-color: rgba(196, 154, 108, 0.6);
    background: rgba(30, 27, 23, 0.92);
    transform: translateY(-1px);
    outline: none;
}

.image-viewer-button svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.image-viewer-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.image-viewer-prev {
    justify-self: start;
}

.image-viewer-next {
    justify-self: end;
}

@media (max-width: 767px) {
    .image-viewer {
        padding:
            max(0.75rem, var(--safe-area-top))
            max(0.75rem, env(safe-area-inset-right, 0.75rem))
            max(0.75rem, var(--safe-area-bottom))
            max(0.75rem, env(safe-area-inset-left, 0.75rem));
    }

    .image-viewer-shell {
        height: 100%;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 3rem minmax(0, 1fr) auto;
        gap: 0.75rem;
    }

    .image-viewer-close {
        top: 0;
        right: 0;
        grid-column: 2;
        justify-self: end;
    }

    .image-viewer-figure {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 0.75rem;
    }

    .image-viewer-image {
        max-height: calc(100dvh - 8.25rem);
    }

    .image-viewer-meta {
        align-items: flex-start;
        font-size: 0.8125rem;
    }

    .image-viewer-nav {
        grid-row: 3;
        width: 3.25rem;
        height: 3.25rem;
    }

    .image-viewer-prev {
        grid-column: 1;
        justify-self: start;
    }

    .image-viewer-next {
        grid-column: 2;
        justify-self: end;
    }

}
