/* ==========================================================================
   PETRI — Startseite
   Ergänzt assets/petri.css um die Bausteine der Landingpage.
   ========================================================================== */

/* ------------------------------ SEKTIONS-BASIS ------------------------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
    font-size: clamp(1.9rem, 4.6vw, 2.9rem);
    margin-bottom: 16px;
}
.section-head p { color: var(--p-muted); font-size: clamp(1rem, 2vw, 1.12rem); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 15px;
    border: 1px solid rgba(255, 149, 0, 0.32);
    border-radius: var(--r-pill);
    background: var(--p-orange-soft);
    color: var(--p-orange);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hgl {
    background: linear-gradient(120deg, #ffc064 0%, var(--p-orange) 45%, var(--p-orange-hot) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ------------------------------ 1. HERO -------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(56px, 9vw, 110px) clamp(48px, 8vw, 96px);
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("hero-angler.jpg");
    background-size: cover;
    background-position: center 35%;
}
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 19, 26, 0.72) 0%, rgba(8, 26, 34, 0.86) 45%, var(--p-deep) 100%),
        radial-gradient(60% 60% at 78% 30%, rgba(255, 149, 0, 0.16), transparent 70%);
}

.hero__grid {
    display: grid;
    gap: clamp(40px, 6vw, 64px);
    grid-template-columns: 1fr;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 7.5vw, 4.4rem);
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}
.hero__lead {
    max-width: 540px;
    font-size: clamp(1.02rem, 2.2vw, 1.18rem);
    color: var(--p-muted);
    margin-bottom: 32px;
}
.hero .store-buttons { margin-bottom: 26px; }

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    color: var(--p-muted);
    font-size: 0.86rem;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 15px; height: 15px; fill: var(--p-orange); flex: 0 0 15px; }

/* Live-Ticker */
.ticker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding: 11px 20px 11px 16px;
    border: 1px solid var(--p-line);
    border-radius: var(--r-pill);
    background: rgba(4, 14, 19, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.88rem;
    max-width: 100%;
}
.ticker__dot {
    width: 8px; height: 8px; flex: 0 0 8px;
    border-radius: 50%;
    background: var(--p-green);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: puls 2.2s infinite;
}
.ticker__text {
    transition: opacity 0.35s var(--ease);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticker__text.wechsel { opacity: 0; }
@keyframes puls {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Hero-Visual: schwebendes Gerät */
.hero__visual { display: none; justify-content: center; }

@media (min-width: 940px) {
    .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
    .hero__visual { display: flex; }
}

/* ------------------------------ 2. GERÄTE-MOCKUP ----------------------- */
.device {
    position: relative;
    width: 268px;
    aspect-ratio: 1206 / 2622;
    padding: 10px;
    border-radius: 44px;
    background: linear-gradient(160deg, #2b3d45 0%, #0c1a20 55%, #223037 100%);
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}
.device__screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 35px;
    overflow: hidden;
    background: var(--p-deep);
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device::after {
    content: "";
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    width: 88px; height: 24px;
    border-radius: var(--r-pill);
    background: #050d11;
    z-index: 2;
}
.device--floating { animation: schweben 7s ease-in-out infinite; }
@keyframes schweben {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50%      { transform: translateY(-16px) rotate(-1.5deg); }
}

/* ------------------------------ 3. TRUST-STRIP ------------------------- */
.trust {
    border-block: 1px solid var(--p-line);
    background: rgba(4, 14, 19, 0.45);
}
.trust__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
    padding-block: clamp(32px, 5vw, 48px);
    text-align: center;
}
.trust__item strong {
    display: block;
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--p-text);
    margin-bottom: 4px;
}
.trust__item span {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--p-faint);
}

@media (min-width: 760px) {
    .trust__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------ 4. FEATURE-BENTO ----------------------- */
.bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.karte {
    position: relative;
    padding: clamp(24px, 3.5vw, 34px);
    border: 1px solid var(--p-line);
    border-radius: var(--r-lg);
    background: var(--p-surface);
    overflow: hidden;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.karte::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(70% 60% at 50% 0%, rgba(255, 149, 0, 0.14), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
}
.karte:hover { transform: translateY(-4px); border-color: rgba(255, 149, 0, 0.34); background: var(--p-surface-2); }
.karte:hover::before { opacity: 1; }

.karte__icon {
    width: 46px; height: 46px;
    margin-bottom: 20px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    background: var(--p-orange-soft);
    border: 1px solid rgba(255, 149, 0, 0.28);
}
.karte__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--p-orange); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.karte h3 { font-size: 1.22rem; margin-bottom: 10px; color: var(--p-text); }
.karte p { color: var(--p-muted); font-size: 0.97rem; }

.karte--gross { display: grid; gap: 26px; align-items: center; }
.karte--gross .karte__body { max-width: 460px; }
.karte--gross h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }

.rechen-demo {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: var(--r-md);
    background: var(--p-sunken);
    border: 1px solid var(--p-line);
    font-variant-numeric: tabular-nums;
}
.rechen-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 0.92rem; color: var(--p-muted); }
.rechen-zeile b { color: var(--p-text); font-size: 1.02rem; font-weight: 700; }
.rechen-zeile--ergebnis {
    padding-top: 12px;
    border-top: 1px dashed var(--p-line-strong);
}
.rechen-zeile--ergebnis b { color: var(--p-orange); font-size: 1.5rem; }

@media (min-width: 780px) {
    .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .karte--gross { grid-column: span 3; grid-template-columns: 1fr 340px; padding: clamp(30px, 4vw, 44px); }
}

/* ------------------------------ 5. SHOWCASE ---------------------------- */
.showcase { border-top: 1px solid var(--p-line); }

.showcase__rail {
    display: flex;
    gap: 26px;
    padding: 14px var(--gutter) 34px;
    margin-inline: calc(var(--gutter) * -1);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.showcase__rail::-webkit-scrollbar { display: none; }

.shot {
    flex: 0 0 auto;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s var(--ease);
}
.shot .device { width: 246px; }
.shot__caption { margin-top: 22px; max-width: 250px; }
.shot__caption h4 { font-size: 1.05rem; margin-bottom: 4px; color: var(--p-text); }
.shot__caption p { font-size: 0.88rem; color: var(--p-muted); }

.rail-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: var(--p-faint);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (min-width: 1080px) {
    /* Sechs Kacheln sind breiter als der Viewport – die Schiene scrollt auch hier
       horizontal. "safe center" zentriert nur solange alles passt und lässt sonst
       den Anfang erreichbar. Das Padding fängt den Versatz und das Anheben beim
       Überfahren ab, damit der Scroll-Container sie nicht abschneidet. */
    .showcase__rail { justify-content: safe center; padding-block: 42px 58px; }
    .shot:hover { transform: translateY(-12px); }
    .shot:nth-child(even) { transform: translateY(22px); }
    .shot:nth-child(even):hover { transform: translateY(10px); }
}

/* ------------------------------ 6. ABLAUF ------------------------------ */
.schritte {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
    counter-reset: schritt;
}
.schritt {
    position: relative;
    padding: 28px 26px 28px 26px;
    border: 1px solid var(--p-line);
    border-radius: var(--r-lg);
    background: var(--p-surface);
}
.schritt::before {
    counter-increment: schritt;
    content: "0" counter(schritt);
    display: block;
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--p-orange);
}
.schritt h3 { font-size: 1.12rem; margin-bottom: 8px; }
.schritt p { color: var(--p-muted); font-size: 0.95rem; }

@media (min-width: 780px) {
    .schritte { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ------------------------------ 7. VEREINE ----------------------------- */
.verein-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 5vw, 60px);
    border: 1px solid rgba(255, 149, 0, 0.22);
    border-radius: var(--r-xl);
    background:
        radial-gradient(90% 120% at 10% 0%, rgba(255, 149, 0, 0.10), transparent 60%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.25));
    box-shadow: var(--shadow-md);
}
.verein-grid { display: grid; gap: clamp(32px, 5vw, 52px); grid-template-columns: 1fr; align-items: start; }
.verein-grid h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 16px; }
.verein-grid > div > p { color: var(--p-muted); margin-bottom: 26px; }

.merkmal-liste { list-style: none; display: grid; gap: 12px; }
.merkmal-liste li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.96rem;
    color: var(--p-text);
}
.merkmal-liste svg {
    width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px;
    fill: none; stroke: var(--p-orange); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

.rechner {
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid var(--p-line);
    border-radius: var(--r-lg);
    background: rgba(3, 12, 16, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.rechner__kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}
.rechner__kopf label { font-size: 0.94rem; font-weight: 600; color: var(--p-text); }
.rechner__kopf input {
    width: 96px;
    padding: 10px;
    text-align: center;
    font-size: 1.06rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--p-text);
    background: var(--p-sunken);
    border: 1px solid var(--p-line-strong);
    border-radius: var(--r-sm);
}
.rechner__kopf input:focus { outline: none; border-color: var(--p-orange); }

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 26px;
    margin: 10px 0 4px;
    background: transparent;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, var(--p-orange) var(--fuell, 10%), rgba(255, 255, 255, 0.12) var(--fuell, 10%));
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px; height: 24px;
    margin-top: -9px;
    border-radius: 50%;
    background: var(--p-gradient-cta);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.5);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--p-orange); }
input[type="range"]::-moz-range-thumb {
    width: 24px; height: 24px; border: none; border-radius: 50%;
    background: var(--p-orange); box-shadow: 0 4px 12px rgba(255, 122, 0, 0.5);
}

.rechner__skala { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--p-faint); margin-bottom: 22px; }

.preis {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}
.preis__wert { font-size: clamp(2.4rem, 6vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.preis__einheit { color: var(--p-muted); font-size: 0.98rem; }
.preis__note { color: var(--p-faint); font-size: 0.84rem; margin-bottom: 22px; }

@media (min-width: 900px) {
    .verein-grid { grid-template-columns: 1fr 420px; }
}

/* ------------------------------ 8. FAQ --------------------------------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
    border: 1px solid var(--p-line);
    border-radius: var(--r-md);
    background: var(--p-surface);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.faq details[open] { border-color: rgba(255, 149, 0, 0.3); background: var(--p-surface-2); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 650;
    font-size: 1rem;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    width: 10px; height: 10px;
    flex: 0 0 10px;
    border-right: 2px solid var(--p-orange);
    border-bottom: 2px solid var(--p-orange);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq p { padding: 0 22px 20px; color: var(--p-muted); font-size: 0.95rem; }

/* ------------------------------ 9. SCHLUSS-CTA ------------------------- */
.schluss {
    text-align: center;
    padding: clamp(44px, 7vw, 84px) clamp(24px, 5vw, 60px);
    border: 1px solid var(--p-line);
    border-radius: var(--r-xl);
    background:
        radial-gradient(80% 110% at 50% 0%, rgba(255, 149, 0, 0.14), transparent 65%),
        rgba(4, 14, 19, 0.55);
}
.schluss h2 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 16px; }
.schluss p { color: var(--p-muted); max-width: 520px; margin: 0 auto 32px; }
.schluss .store-buttons { justify-content: center; }

/* ------------------------------ 10. MODAL ------------------------------ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1200; /* muss über dem Cookie-Hinweis liegen */
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
    background: rgba(4, 12, 17, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal.aktiv { display: flex; animation: einblenden 0.25s var(--ease); }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }

.modal__box {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin-block: auto;
    padding: clamp(26px, 4vw, 38px);
    border: 1px solid var(--p-line-strong);
    border-radius: var(--r-xl);
    background: linear-gradient(160deg, #12303b, #0a1e26);
    box-shadow: var(--shadow-lg);
}
.modal__box h3 { font-size: 1.5rem; margin-bottom: 8px; padding-right: 40px; }
.modal__box > p { color: var(--p-muted); font-size: 0.95rem; margin-bottom: 26px; }
.modal__close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border: 1px solid var(--p-line);
    border-radius: 50%;
    background: var(--p-surface);
    color: var(--p-muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.modal__close:hover { color: var(--p-text); border-color: var(--p-orange); }

/* ------------------------------ 11. COOKIE-HINWEIS --------------------- */
.cookie {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translate(-50%, calc(100% + 40px));
    z-index: 1100;
    width: min(760px, calc(100% - 32px));
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--p-line-strong);
    border-radius: var(--r-lg);
    background: rgba(9, 28, 36, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
    opacity: 0;
}
.cookie.sichtbar { transform: translate(-50%, 0); opacity: 1; }
.cookie h4 { font-size: 1rem; margin-bottom: 6px; }
.cookie p { font-size: 0.87rem; color: var(--p-muted); }
.cookie__tasten { display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 700px) {
    .cookie { flex-direction: row; align-items: center; gap: 26px; padding: 22px 26px; }
    .cookie__tasten { flex-direction: row; flex: 0 0 auto; }
}

/* ------------------------------ ZWISCHEN-CTA ------------------------------ */
.zwischen-cta {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 42px;
    padding: 26px;
    border: 1px solid var(--p-line-strong);
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.10), rgba(9, 28, 36, 0.9));
}
.zwischen-cta h3 { font-size: 1.35rem; margin-bottom: 6px; }
.zwischen-cta p  { color: var(--p-muted); font-size: 0.95rem; }

@media (min-width: 860px) {
    .zwischen-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 34px;
        padding: 30px 34px;
    }
    .zwischen-cta .store-buttons { flex: 0 0 auto; flex-wrap: nowrap; }
}

/* --------------------- MITLAUFENDE DOWNLOAD-LEISTE (mobil) --------------------- */
.dl-leiste {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px 10px 14px;
    border: 1px solid var(--p-line-strong);
    border-radius: var(--r-lg);
    background: rgba(9, 28, 36, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}
/* Muss nach der Basisregel stehen: sonst gewinnt display:flex gegen [hidden] */
.dl-leiste[hidden] { display: none; }
.dl-leiste.sichtbar { transform: translateY(0); opacity: 1; }
.dl-leiste__text { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dl-leiste__text img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
}
.dl-leiste__text span {
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--p-muted);
    min-width: 0;
}
.dl-leiste__text strong { font-size: 0.95rem; color: var(--p-text); letter-spacing: 0.04em; }
.dl-leiste .btn { flex: 0 0 auto; }

/* Ab Tablet-Breite trägt die Kopfzeile den Download-Knopf bereits sichtbar */
@media (min-width: 900px) {
    .dl-leiste { display: none; }
}
