/*
Theme Name: Holzhandlung Bartholomäus
Theme URI: https://holzhandlung-bartholomaeus.de
Author: Custom
Description: Modernes One-Page Theme für Holzhandlung Bartholomäus
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: holzhandlung
*/

/* =============================================
   CSS Custom Properties
   ============================================= */
:root {
    --clr-darkest:    #0d0603;
    --clr-dark:       #1e0f07;
    --clr-rich:       #3d1f0a;
    --clr-mid:        #6b3512;
    --clr-warm:       #b5621e;
    --clr-gold:       #c98b2a;
    --clr-gold-bright:#e79818;
    --clr-cream:      #f5ede0;
    --clr-light:      #fdf9f4;
    --clr-text:       #1a0e06;
    --clr-textmid:    #4a2f1a;
    --clr-textlite:   #f0e4ce;

    --nav-height-full:    85px;
    --nav-height-scrolled: 56px;
    --section-padding-y: 75px;
    --radius: 4px;
    --transition: 0.3s ease;
    --max-width: 1100px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Raleway', sans-serif;
    color: var(--clr-text);
    background: var(--clr-light);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
    color: inherit;
}

.site-logo,
.hero-tagline,
.about-stat strong,
.holzarten-title,
.process-number {
    font-family: 'Playfair Display', serif;
}

/* =============================================
   Layout Helpers
   ============================================= */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin-inline: auto;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1.25rem;
}

.section-lead {
    font-size: 1.1rem;
    max-width: 60ch;
    opacity: 0.85;
}

/* =============================================
   Shared: Textured Sections
   All content sections share the same positioning
   setup and a rotated wood-grain ::before overlay.
   Each section sets --grain-pos / --grain-filter /
   --grain-opacity to vary the effect.
   ============================================= */
#bewertungen,
#ueber-uns,
#produkte,
#wie-wir-arbeiten,
#kontakt,
#site-footer,
.page-hero,
.page-content {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

#bewertungen,
#ueber-uns,
#produkte,
#wie-wir-arbeiten,
#kontakt {
    padding: var(--section-padding-y) 0;
}

@media (max-width: 768px) {
    :root {
        --section-padding-y: 60px;
    }
}

#bewertungen::before,
#ueber-uns::before,
#produkte::before,
#wie-wir-arbeiten::before,
#kontakt::before,
#site-footer::before,
.page-hero::before,
.page-content::before {
    content: '';
    position: absolute;
    width: max(220vw, 320vh);
    height: max(220vw, 320vh);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    background-image: url('images/textures/wood-texture-2.png');
    background-size: 800px auto;
    background-position: var(--grain-pos, 0 0);
    filter: var(--grain-filter, none);
    opacity: var(--grain-opacity, 0.05);
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    #bewertungen::before,
    #ueber-uns::before,
    #produkte::before,
    #wie-wir-arbeiten::before,
    #kontakt::before,
    #site-footer::before,
    .page-hero::before,
    .page-content::before {
        background-size: 420px auto;
    }
}

/* =============================================
   WordPress Admin Bar Offset
   ============================================= */
body.admin-bar #site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #site-header {
        top: 46px;
    }
}

/* =============================================
   Site Header / Navigation
   ============================================= */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height-full);
    background: transparent;
    transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
    height: var(--nav-height-scrolled);
    background: var(--clr-darkest);
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-inline: 5%;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
    flex-shrink: 0;
    transition: height var(--transition);
}

#site-header.scrolled .logo-img { height: 32px; }

.logo-text {
    display: flex;
    flex-direction: column;
}

.site-logo .logo-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    display: block;
    transition: font-size var(--transition);
}

.site-logo .logo-sub {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-gold-bright);
    display: block;
    transition: opacity var(--transition);
}

#site-header.scrolled .logo-title { font-size: 1.1rem; }
#site-header.scrolled .logo-sub   { opacity: 0; height: 0; overflow: hidden; }

/* Desktop nav menu */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: rgba(255,255,255,0.88);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3em 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--clr-gold);
    border-bottom-color: var(--clr-gold);
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile nav drawer */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .logo-img { height: 36px; }
    .site-logo .logo-title { font-size: 1.1rem; }
    .site-logo .logo-sub { display: none; }

    /* Reserve the fixed header's height as extra space ABOVE the centered
       hero content (rather than padding the centered content itself, which
       would only shift it down by half due to centering) so the eyebrow
       "Holzhandlung Bartholomäus" never sits underneath the logo text. */
    #hero {
        padding-top: var(--nav-height-full);
        min-height: calc(100vh + var(--nav-height-full));
        min-height: calc(100svh + var(--nav-height-full));
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(20, 10, 4, 0.98);
        padding: 1rem 0;
    }

    .nav-menu.is-open { display: flex; }

    .nav-menu a {
        display: block;
        width: 100%;
        text-align: left;
        font-family: 'Raleway', sans-serif;
        line-height: 1.3;
        padding: 0.85rem 5%;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        font-size: 0.95rem;
    }

    .nav-menu a:last-child { border-bottom: none; }
}

/* =============================================
   Section: Hero
   ============================================= */
#hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
}

/* blurred + darkened background image layer */
#hero::before {
    content: '';
    position: absolute;
    inset: -12px;
    background-image: var(--hero-bg, linear-gradient(135deg, #1e0f07 0%, #3d2010 45%, #5c3a18 100%));
    background-size: cover;
    background-position: center;
    filter: blur(3px) brightness(0.62) saturate(0.9);
    z-index: 0;
}

/* warm color overlay */
#hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(15, 7, 2, 0.30) 0%,
        rgba(20, 9, 3, 0.48) 60%,
        rgba(10, 5, 2, 0.70) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    max-width: 750px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--clr-gold);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-style: italic;
    color: rgba(255,255,255,0.80);
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
    margin-bottom: 2.5rem;
    max-width: 48ch;
    margin-inline: auto;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.85em 2em;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary {
    background: var(--clr-gold);
    color: var(--clr-darkest);
    border: 2px solid var(--clr-gold);
}

.btn-primary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    background: #e09d35;
    border-color: #e09d35;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}


/* =============================================
   Section: Bewertungen (Google reviews)
   ============================================= */
#bewertungen {
    --grain-pos: 140px 90px;
    --grain-filter: invert(1);
    --grain-opacity: 0.045;
    background: var(--clr-cream);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 3.5rem;
}

.review-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 1.75rem 1.5rem;
    border-radius: 2px;
    border-top: 3px solid var(--clr-gold);
    box-shadow: 0 4px 20px rgba(60, 30, 10, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(60, 30, 10, 0.14);
}

.review-stars {
    color: var(--clr-gold);
    font-size: 1.05rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.85rem;
}

.review-text {
    color: var(--clr-textmid);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-author {
    margin-top: auto;
    padding-top: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--clr-rich);
    font-size: 0.95rem;
}

.review-author span {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--clr-textmid);
}

.review-card-more {
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(201, 139, 42, 0.18);
    border: 1px solid rgba(201, 139, 42, 0.4);
    border-top: 3px solid var(--clr-gold);
    text-decoration: none;
}

.review-more-badge {
    height: 80px;
    margin-bottom: 0.85rem;
    filter:
        drop-shadow(1px 0 0 rgba(61, 31, 10, 0.14))
        drop-shadow(-1px 0 0 rgba(61, 31, 10, 0.14))
        drop-shadow(0 1px 0 rgba(61, 31, 10, 0.14))
        drop-shadow(0 -1px 0 rgba(61, 31, 10, 0.14));
}

.review-more-label {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--clr-rich);
    font-size: 1.05rem;
    line-height: 1.4;
}

.review-more-sub {
    margin-top: 0.4rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--clr-dark);
}

.review-card-more:hover .review-more-sub {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .review-grid {
        display: flex;
        align-items: stretch;
        grid-template-columns: none;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 1.25rem;
        padding-bottom: 0.5rem;
    }
    .review-grid::-webkit-scrollbar { display: none; }
    .review-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

/* =============================================
   Section: Über uns
   ============================================= */
#ueber-uns {
    --grain-pos: 0px 0px;
    --grain-filter: invert(1);
    --grain-opacity: 0.04;
    background: var(--clr-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-grid h2 { color: var(--clr-rich); margin-bottom: 1.25rem; }

.about-grid p {
    color: var(--clr-textmid);
    margin-bottom: 1rem;
}

.about-stat-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(100, 50, 10, 0.15);
}

.about-stat {
    text-align: center;
}

.about-stat strong {
    display: block;
    font-size: 2.2rem;
    color: var(--clr-gold);
    line-height: 1;
}

.about-stat span {
    font-size: 0.82rem;
    color: var(--clr-textmid);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* =============================================
   Photo Stack (Über uns)
   ============================================= */
.photo-stack {
    display: grid;
    width: 88%;
    max-width: 420px;
    margin: 2.5rem auto 1.5rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

.photo-stack:focus-visible {
    outline: 2px dashed var(--clr-gold);
    outline-offset: 14px;
    border-radius: 2px;
}

.photo-card {
    grid-area: 1 / 1;
    align-self: center;
    padding: 12px;
    background: #f8f3eb;
    border-radius: 1px;
    will-change: transform;
    transition:
        transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.45s ease;
}

/* Stack depth: deeper = lighter shadow, more offset */
.photo-card:nth-child(4) {
    z-index: 1;
    transform: rotate(8deg) translate(7px, 10px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 3px 10px rgba(0,0,0,0.10);
}
.photo-card:nth-child(3) {
    z-index: 2;
    transform: rotate(-5.5deg) translate(-5px, 6px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.10), 0 5px 16px rgba(0,0,0,0.13);
}
.photo-card:nth-child(2) {
    z-index: 3;
    transform: rotate(3.5deg) translate(3px, 4px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 6px 20px rgba(0,0,0,0.16);
}
.photo-card:nth-child(1) {
    z-index: 4;
    transform: rotate(-2.5deg);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.13),
        0 8px 28px rgba(0,0,0,0.21),
        0 20px 48px rgba(0,0,0,0.13);
}

/* Top card lifts on hover */
.photo-stack:not(.is-animating):hover .photo-card:nth-child(1) {
    transform: rotate(-2deg) translateY(-7px);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.15),
        0 14px 38px rgba(0,0,0,0.25),
        0 30px 64px rgba(0,0,0,0.15);
}

.photo-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    filter: contrast(1.04) saturate(0.86) sepia(0.08);
    transition: filter 0.4s ease;
}

.photo-stack:not(.is-animating):hover .photo-card:nth-child(1) img {
    filter: contrast(1.05) saturate(0.90) sepia(0.05);
}

/* Top card flies off on click */
@keyframes photo-fly-off {
    0%   { transform: rotate(-2.5deg); opacity: 1; }
    28%  { transform: rotate(-3.5deg) translateY(-14px) scale(1.01); opacity: 1; }
    100% { transform: rotate(14deg) translate(115%, 12px) scale(0.88); opacity: 0; }
}

.photo-card.is-leaving {
    animation: photo-fly-off 0.5s cubic-bezier(0.4, 0, 0.6, 1) forwards;
    z-index: 10 !important;
    pointer-events: none;
    transition: none !important;
}

.stack-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4rem;
}

.stack-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(201, 139, 42, 0.28);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.stack-dot:hover    { background: rgba(201, 139, 42, 0.6); }
.stack-dot.is-active { background: var(--clr-gold); transform: scale(1.35); }

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-stat-row {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.5rem;
    }
    .about-stat strong {
        font-size: 1.5rem;
    }
    .about-stat span {
        font-size: 0.68rem;
        letter-spacing: 0.03em;
    }
    .photo-stack {
        order: -1;
        width: 78%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =============================================
   Section: Produkte
   ============================================= */
#produkte {
    --grain-pos: 160px 110px;
    --grain-opacity: 0.25;
    --grain-filter: invert(1);
    background: var(--clr-dark);
    color: var(--clr-textlite);
}

#produkte .section-title,
#kontakt .section-title { color: var(--clr-cream); }

.produkte-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

.produkte-text p {
    color: rgba(240, 228, 206, 0.78);
    margin-bottom: 0.9rem;
}

.trocken-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.4em 1em;
    border: 1px solid var(--clr-gold);
    color: var(--clr-gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 2px;
    text-transform: uppercase;
}

.holzarten-title {
    font-size: 1.1rem;
    color: var(--clr-cream);
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(200,139,42,0.3);
    padding-bottom: 0.5rem;
}

.holzarten-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
}

.holzarten-grid li {
    font-size: 0.88rem;
    color: rgba(240, 228, 206, 0.7);
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.holzarten-grid li::before {
    content: '';
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--dot-color, var(--clr-gold));
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}

@media (max-width: 768px) {
    .produkte-intro { grid-template-columns: 1fr; }
    .trocken-badges { justify-content: center; }
}

/* =============================================
   Section: Wie wir arbeiten
   ============================================= */
#wie-wir-arbeiten {
    --grain-opacity: 0;            /* photo background replaces the wood grain here */
    --process-cycle: 8s;          /* must match CYCLE_MS in process-showcase.js */
    background: var(--clr-dark);
    color: var(--clr-textlite);
    padding: 300px 0;
}

#wie-wir-arbeiten .section-title { color: var(--clr-cream); }
#wie-wir-arbeiten .section-lead  { color: rgba(240, 228, 206, 0.82); }

/* ── Crossfading photo background (one layer per step) ── */
.process-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.process-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.9s ease;
    will-change: opacity;
}

.process-bg-layer.is-active { opacity: 1; }

.process-bg::after {                /* dark overlay keeps text legible */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(20, 10, 4, 0.84) 0%,
        rgba(20, 10, 4, 0.62) 45%,
        rgba(20, 10, 4, 0.82) 100%);
}

.process-showcase .container { position: relative; z-index: 1; }

/* ── Step cards over the photo ── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.process-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: 1.75rem 1.5rem;
    border-radius: 3px;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition);
}

/* top border track */
.process-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: rgba(200, 139, 42, 0.25);
}

/* animated fill */
.process-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--clr-gold);
}

.process-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-4px);
}

.process-card.is-active {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-4px);
}

.process-card.is-active::after {
    animation: process-fill var(--process-cycle, 8s) linear forwards;
}


@keyframes process-fill {
    from { width: 0; }
    to   { width: 100%; }
}

.process-showcase.is-paused .process-card.is-active::after {
    animation-play-state: paused;
}

.process-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--clr-gold);
    opacity: 0.55;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.process-card h3 {
    font-size: 1.05rem;
    color: var(--clr-cream);
    margin-bottom: 0.75rem;
}

.process-card p {
    font-size: 0.88rem;
    color: rgba(240, 228, 206, 0.78);
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    .process-bg-layer { transition: none; }
    .process-card.is-active::after { animation: none; }
}

/* =============================================
   Section: Kontakt
   ============================================= */
#kontakt {
    --grain-pos: 80px 200px;
    --grain-filter: invert(1);
    --grain-opacity: 0.15;
    background: var(--clr-rich);
    color: var(--clr-textlite);
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.kontakt-info h3 {
    font-size: 1.1rem;
    color: var(--clr-gold);
    margin-bottom: 1rem;
}

.kontakt-address {
    font-style: normal;
    line-height: 2;
    color: rgba(240, 228, 206, 0.78);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.kontakt-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: rgba(240, 228, 206, 0.75);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.kontakt-detail svg {
    width: 16px; height: 16px;
    fill: var(--clr-gold);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Contact Form */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--clr-gold);
    margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75em 1em;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(200, 139, 42, 0.35);
    border-radius: var(--radius);
    color: var(--clr-cream);
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(240, 228, 206, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--clr-gold);
    background: rgba(255,255,255,0.12);
}

.contact-form select option { background: var(--clr-rich); color: var(--clr-cream); }

.contact-form textarea { min-height: 130px; resize: vertical; }

.contact-form button[type="submit"] {
    display: block;
    width: 100%;
    text-align: center;
}

.contact-success,
.contact-error {
    padding: 1rem 1.5rem;
    border: 1px solid;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.contact-success {
    background: rgba(100, 180, 80, 0.15);
    border-color: rgba(100, 180, 80, 0.4);
    color: #a8e09a;
}

.contact-error {
    background: rgba(220, 80, 60, 0.15);
    border-color: rgba(220, 80, 60, 0.4);
    color: #f0a09a;
}

@media (max-width: 768px) {
    .kontakt-grid { grid-template-columns: 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; gap: 0.5rem; margin-bottom: 0.5rem; }
    .contact-form .form-group { margin-bottom: 0.5rem; }
}

/* =============================================
   Section: Anfahrt (Google Maps)
   ============================================= */
#anfahrt {
    line-height: 0;
}

.map-embed {
    position: relative;
    width: 100%;
    height: 560px;
    background: var(--clr-cream);
}

@media (max-width: 600px) {
    .map-embed { height: 360px; }
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    text-align: center;
    padding: 2rem;
    background:
        linear-gradient(rgba(13, 6, 3, 0.55), rgba(13, 6, 3, 0.55)),
        url('images/textures/wood-texture-2.png') center / 800px auto;
    color: var(--clr-textlite);
}

.map-placeholder p {
    max-width: 56ch;
    font-size: 0.92rem;
    line-height: 1.6;
}

.map-embed.is-loaded .map-placeholder { display: none; }

/* =============================================
   Cookie Consent Banner
   ============================================= */
.cookie-banner {
    position: fixed;
    right: 1.25rem;
    bottom: calc(1.25rem + 48px + 0.75rem);
    left: auto;
    z-index: 1000;
    width: calc(100% - 2.5rem);
    max-width: 380px;
    background: var(--clr-darkest);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
}

.cookie-banner-inner p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(240, 228, 206, 0.78);
}

.cookie-banner-inner a {
    color: var(--clr-gold);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner-actions .btn {
    padding: 0.7em 1.6em;
    font-size: 0.78rem;
}

@media (max-width: 600px) {
    .cookie-banner {
        right: 1rem;
        left: 1rem;
        bottom: calc(1rem + 40px + 0.5rem);
        width: auto;
        max-width: none;
    }
}

.cookie-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--clr-gold);
    color: var(--clr-darkest);
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.cookie-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background: #e09d35;
}

.cookie-fab[hidden] { display: none; }

@media (max-width: 768px) {
    .cookie-fab {
        right: 1rem;
        bottom: 1rem;
        width: 40px;
        height: 40px;
    }
    .cookie-fab svg {
        width: 24px;
        height: 24px;
    }
}

/* =============================================
   Site Footer
   ============================================= */
#site-footer {
    --grain-pos: 320px 170px;
    --grain-opacity: 0.15;
    margin-top: auto;
    background: var(--clr-darkest);
    padding: 2.5rem 0;
    color: var(--clr-cream);
    font-size: 0.82rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(240, 228, 206, 0.45);
    transition: color var(--transition);
}

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

.footer-login-hint {
    color: rgba(240, 228, 206, 0.3);
    text-decoration: none;
    transition: color var(--transition);
    white-space: nowrap;
}

.footer-login-hint:hover { color: rgba(240, 228, 206, 0.75); }

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-links { justify-content: center; }
}

/* =============================================
   Page Template (Impressum / Datenschutz)
   ============================================= */
.page-hero {
    --grain-pos: 220px 30px;
    --grain-opacity: 0.08;
    padding-top: var(--nav-height-full);
    background: var(--clr-dark);
    padding-bottom: 3rem;
    text-align: center;
    color: #fff;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    padding-top: 3rem;
}

.page-content {
    --grain-pos: 360px 130px;
    --grain-filter: invert(1);
    --grain-opacity: 0.04;
    flex: 1 0 auto;
    padding: 4rem 0 6rem;
    background: var(--clr-light);
}

.page-content h2 {
    font-size: 1.4rem;
    color: var(--clr-rich);
    margin: 2rem 0 0.75rem;
}

.page-content h3 {
    font-size: 1.1rem;
    color: var(--clr-mid);
    margin: 1.5rem 0 0.5rem;
}

.page-content p,
.page-content ul,
.page-content ol {
    color: var(--clr-textmid);
    margin-bottom: 1rem;
    max-width: 72ch;
}

.page-content ul, .page-content ol { padding-left: 1.5rem; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

.page-content a { color: var(--clr-warm); text-decoration: underline; }

.page-content address {
    font-style: normal;
    color: var(--clr-textmid);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    max-width: 72ch;
}

.page-content strong { color: var(--clr-rich); }

/* =============================================
   Utility / Animations
   ============================================= */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: none;
}
