/* Arztrechnungen Landing Page, Papier und Petrol mit den Abrechnungsfarben der App */

:root {
    --paper: #F5F2EC;
    --paper-deep: #ECE7DE;
    --card: #FFFFFF;
    --ink: #13292C;
    --ink-soft: #3C5558;
    --muted: #6B7F81;
    --rule: rgba(19, 41, 44, 0.12);

    --petrol: #0E7C86;
    --petrol-deep: #0B3F45;
    --petrol-tint: #DCEBEA;
    --warm-tint: #F4E1D7;

    --pkv: #3D7BE0;
    --beihilfe: #8B5CD6;
    --own: #E4704F;

    --serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;

    --maxw: 1160px;
    --phone-radius: 13.5%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    font-family: var(--sans);
    font-size: 17px;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 1.6rem + 2.8vw, 3.9rem); }
h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
h3 { font-size: 1.45rem; }
h1 em, h2 em { font-style: italic; color: var(--petrol); }

.kicker {
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--petrol); display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 31em; }

.section__head { max-width: 640px; margin-bottom: 72px; }
.section__head p { color: var(--muted); font-size: 1.15rem; margin-top: 16px; }

/* ---------- App-Store-Badge ---------- */
.stores { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.store-badge { height: 48px; width: auto; }
.store-link { display: block; border-radius: 9px; }
.store-link:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }
.stores__soon { margin-top: 12px; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.cta .stores { justify-content: center; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(245, 242, 236, 0.88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--rule);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.brand__logo { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--ink-soft); font-size: 0.95rem; }
.nav__links a:hover { color: var(--petrol); }
.lang-switch { display: flex; align-items: center; }
.lang-switch button {
    border: none; background: none; cursor: pointer; font: inherit;
    font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); padding: 4px 6px;
}
.lang-switch button + button::before { content: "/"; margin-right: 10px; color: var(--rule); font-weight: 400; }
.lang-switch button.active { color: var(--ink); }

/* ---------- Telefon-Screenshots ---------- */
.phone {
    border-radius: var(--phone-radius) / 6.2%;
    box-shadow: 0 0 0 1px rgba(19, 41, 44, 0.08), 0 30px 60px -20px rgba(19, 41, 44, 0.35);
    background: var(--card);
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 112px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero__inner > * { min-width: 0; }
.hero__title { margin-bottom: 28px; }
.hero__cta { margin-top: 40px; }
.hero__note { margin-top: 20px; color: var(--muted); font-size: 0.95rem; max-width: 30em; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 340px); }
.hero__visual .phone { width: 100%; }

.receipt {
    position: absolute; left: -30%; bottom: 9%; width: 280px;
    background: var(--card); border-radius: 18px; padding: 20px 22px 18px;
    box-shadow: 0 0 0 1px rgba(19, 41, 44, 0.06), 0 24px 48px -16px rgba(19, 41, 44, 0.3);
    font-size: 0.92rem; font-variant-numeric: tabular-nums;
}
.receipt__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.receipt__who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.receipt__sum { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.split { display: flex; gap: 3px; height: 10px; margin-bottom: 14px; }
.split span { border-radius: 3px; }
.split__pkv { background: var(--pkv); flex: 25.5; }
.split__bh { background: var(--beihilfe); flex: 70; }
.split__own { background: var(--own); flex: 4.5; min-width: 8px; }
.receipt__rows div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--ink-soft); }
.receipt__rows dt { display: flex; align-items: center; gap: 9px; }
.receipt__rows dd { color: var(--ink); }
.receipt__rows .receipt__own { border-top: 1px dashed var(--rule); margin-top: 6px; padding-top: 8px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--pkv { background: var(--pkv); }
.dot--bh { background: var(--beihilfe); }
.dot--own { background: var(--own); }
.receipt__status {
    margin-top: 12px; font-size: 0.78rem; font-weight: 600; color: #2E8A57;
    display: flex; align-items: center; gap: 6px;
}
.receipt__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- So funktioniert es ---------- */
.how { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-deep); padding: 80px 0; }
.how__head { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.how__head h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); }
.how__head p { color: var(--muted); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.step { border-top: 2px solid var(--ink); padding-top: 22px; }
.step__num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--petrol); display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); }

/* ---------- Funktionen ---------- */
.features { padding: 128px 0 112px; }
.showcase {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
    margin-bottom: 112px;
}
.showcase--flip .showcase__media { order: 2; }
.showcase__media {
    background: var(--petrol-tint); border-radius: 28px; padding: 56px 40px 0;
    display: flex; justify-content: center; align-items: flex-start; gap: 24px;
    height: 520px; overflow: hidden;
}
.showcase__media .phone { width: 260px; flex-shrink: 0; }
.showcase__media--split { background: linear-gradient(90deg, var(--pkv) 0 25.5%, var(--beihilfe) 25.5% 95.5%, var(--own) 95.5%) top / 100% 6px no-repeat, var(--petrol-tint); }
.showcase__media--warm { background: var(--warm-tint); }
.showcase__media--pair { background: var(--paper-deep); }
.showcase__media--pair .phone { width: 220px; }
.showcase__media--pair .phone + .phone { margin-top: 48px; }
.showcase__num { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; color: var(--petrol); display: block; margin-bottom: 18px; }
.showcase__text h3 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); margin-bottom: 18px; }
.showcase__text p { font-size: 1.15rem; color: var(--ink-soft); max-width: 28em; }

.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 1px solid var(--rule); padding-top: 40px; }
.more__item h3 { font-size: 1.25rem; margin-bottom: 10px; }
.more__item p { color: var(--ink-soft); }

/* ---------- Mac ---------- */
.mac { background: var(--petrol-deep); color: #fff; padding: 112px 0 120px; }
.mac__head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 48px; }
.mac__head p { color: rgba(255, 255, 255, 0.72); font-size: 1.1rem; }
.mac__tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.mac__tabs button {
    font: inherit; font-size: 0.92rem; cursor: pointer; color: rgba(255, 255, 255, 0.7);
    background: none; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; padding: 7px 14px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mac__tabs button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.mac__tabs button[aria-selected="true"] { background: #fff; color: var(--petrol-deep); border-color: #fff; font-weight: 600; }
.mac__tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mac__stage img { display: none; width: 100%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35)); }
.mac__stage img.active { display: block; }

/* ---------- Datenschutz ---------- */
.privacy { padding: 128px 0; }
.privacy__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.privacy h2 { max-width: 10em; }
.privacy__desc { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 32px; }
.facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.facts li {
    padding: 16px 0 16px 30px; border-bottom: 1px solid var(--rule); font-weight: 600; position: relative;
}
.facts li::before {
    content: ""; position: absolute; left: 2px; top: 50%; width: 12px; height: 7px; margin-top: -6px;
    border-left: 2px solid var(--petrol); border-bottom: 2px solid var(--petrol); transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq { padding: 0 0 128px; }
.faq__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; border-top: 1px solid var(--rule); padding-top: 64px; }
.faq__list details { border-bottom: 1px solid var(--rule); }
.faq__list summary {
    list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
    font-size: 1.12rem; font-weight: 600;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--petrol); transition: transform 0.2s ease;
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list summary:hover { color: var(--petrol); }
.faq__list details p { color: var(--ink-soft); padding: 0 40px 24px 0; }

/* ---------- Abschluss ---------- */
.cta { background: var(--paper-deep); border-top: 1px solid var(--rule); padding: 112px 0; text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__logo { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 32px; box-shadow: 0 16px 32px -12px rgba(11, 63, 69, 0.45); }
.cta p { color: var(--ink-soft); font-size: 1.15rem; margin: 18px 0 36px; max-width: 30em; }

/* ---------- Footer ---------- */
.footer { background: var(--paper-deep); border-top: 1px solid var(--rule); padding: 32px 0; color: var(--muted); font-size: 0.92rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--petrol); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero { padding: 56px 0 80px; }
    .hero__inner { grid-template-columns: 1fr; gap: 56px; }
    .hero__visual { width: min(70%, 300px); }
    .receipt { left: -45%; width: 260px; }
    .showcase { grid-template-columns: 1fr; gap: 40px; margin-bottom: 88px; }
    .showcase--flip .showcase__media { order: 0; }
    .mac__head, .privacy__inner, .faq__inner { grid-template-columns: 1fr; gap: 32px; }
    .more, .steps { grid-template-columns: 1fr; gap: 32px; }
    .nav__links { display: none; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .hero__visual { width: 62%; margin-left: 30%; }
    .receipt { left: -50%; bottom: 6%; width: 230px; padding: 16px 16px 14px; font-size: 0.85rem; }
    .store-badge { height: 44px; }
    .showcase__media { height: 420px; padding: 40px 20px 0; }
    .showcase__media .phone { width: 220px; }
    .showcase__media--pair .phone { width: 160px; }
    .features, .privacy { padding: 88px 0; }
    .mac { padding: 88px 0; }
    .mac__tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px 24px; padding: 0 24px; scrollbar-width: none; }
    .mac__tabs button { flex-shrink: 0; }
    .facts { grid-template-columns: 1fr; }
    .faq { padding-bottom: 88px; }
    .cta { padding: 88px 0; }
}
