/* ==========================================================
   Über-Uns-Seite – Editorial Layout, Timeline & Effekte
   ========================================================== */

:root {
    --about-amber: #c68c36;
}

/* ---------- Umrandete Schrift im Hero ---------- */
.about-text-stroke {
    color: transparent;
    -webkit-text-stroke: 2px var(--about-amber);
}

/* ---------- Großes Wasserzeichen im Hintergrund ---------- */
.about-watermark {
    position: absolute;
    top: 2rem;
    right: -2vw;
    font-size: clamp(6rem, 18vw, 18rem);
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.025);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.02em;
}

/* ---------- Rotierendes BBQ-Siegel ---------- */
.about-badge__spin {
    animation: about-spin 20s linear infinite;
}
@keyframes about-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---------- Sanfter Zoom auf dem Hero-Bild ---------- */
.about-slow-zoom {
    animation: about-zoom 24s ease-in-out infinite alternate;
}
@keyframes about-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

/* ---------- Bild-Collage (Unsere Geschichte) ---------- */
.about-collage__frame {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 75%;
    height: 90%;
    border: 2px solid var(--about-amber);
    z-index: 0;
    pointer-events: none;
    transition: transform 0.5s ease;
}
.about-collage:hover .about-collage__frame {
    transform: translate(6px, 6px);
}

/* ---------- Interaktive 12-Stunden-Timeline ---------- */
/* Linie läuft genau von der Mitte des ersten bis zur Mitte des letzten Punkts.
   Start und Länge setzt js/ueber-uns.js passend zu den Punkten. */
.about-timeline__line-bg,
.about-timeline__line-fill {
    position: absolute;
    left: 7px;              /* Mitte der Linie = 8px = Mitte der Punkte */
    top: 36px;              /* Fallback: Mitte des ersten Punkts */
    width: 2px;
    border-radius: 2px;
    pointer-events: none;
}
.about-timeline__line-bg {
    bottom: 0;
    background: rgba(255, 255, 255, 0.12);
}
.about-timeline__line-fill {
    height: 0;
    background: var(--about-amber);
    box-shadow: 0 0 12px rgba(198, 140, 54, 0.8);
    transition: height 0.15s ease-out;
    z-index: 1;
}

/* Punkte sitzen exakt auf der Linie (Abstand = Innenabstand der Timeline pl-8 / md:pl-12) */
.about-step__dot {
    position: absolute;
    left: -32px;
    top: 28px;
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    background: #0a0a0a;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    z-index: 2;
}
@media (min-width: 768px) {
    .about-step__dot {
        left: -48px;
    }
}

/* Aktiver Zustand beim Scrollen */
.about-step.is-active .about-step__dot {
    background: var(--about-amber);
    border-color: var(--about-amber);
    box-shadow: 0 0 0 6px rgba(198, 140, 54, 0.2);
    transform: scale(1.15);
}

.about-step.is-active .about-step__card {
    border-color: rgba(198, 140, 54, 0.5);
    transform: translateX(6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
}

/* ---------- Kodex-Karten (01, 02, 03) ---------- */
.about-pillar {
    transition: transform 0.45s ease, border-color 0.45s ease;
}
.about-pillar:hover {
    transform: translateY(-8px);
    border-color: rgba(198, 140, 54, 0.5);
}
.about-pillar__num {
    position: absolute;
    right: 16px;
    top: -10px;
    font-size: 6.5rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(198, 140, 54, 0.18);
    pointer-events: none;
    transition: -webkit-text-stroke-color 0.4s ease, transform 0.4s ease;
}
.about-pillar:hover .about-pillar__num {
    -webkit-text-stroke-color: rgba(198, 140, 54, 0.45);
    transform: scale(1.06);
}

/* ---------- Scroll-Reveal Animationen ---------- */
.about-js-active .about-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-js-active .about-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Barrierefreiheit: Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
    .about-badge__spin, .about-slow-zoom { animation: none !important; }
    .about-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Animierte Smoker-Zahlen (12h / 105–120°C / 100%) ---------- */
.about-stat {
    position: relative;
}

.about-stat__bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    overflow: hidden;
    position: relative;
}

.about-stat__fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--about-amber);
    transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* feuriger Farbverlauf für die 105–120°C Temperatur-Anzeige */
.about-stat__fill--heat {
    background: linear-gradient(90deg, var(--about-amber) 0%, #e0531f 100%);
}

/* Sobald im Bild: Balken fährt auf Zielbreite + Zahl bekommt kurzen Glow */
.is-counted .about-stat__fill {
    width: var(--target-width, 100%);
}

/* Pulsierender Glut-Punkt neben 105–120°C */
.about-ember-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #e0531f;
    box-shadow: 0 0 0 0 rgba(224, 83, 31, 0.7);
    animation: about-ember-pulse 1.8s infinite;
}

@keyframes about-ember-pulse {
    0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(224, 83, 31, 0.7); }
    70%  { transform: scale(1.1);  box-shadow: 0 0 0 8px rgba(224, 83, 31, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(224, 83, 31, 0); }
}