/* dahoam.app - Webseite (Startseite + Rechtliches), Oktober 2026.
   Optik wie die App (lib/theme/app_theme.dart) und die Anbieterseiten (css/anbieter.css). */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-mid: #43A047;
    --primary-light: #66BB6A;
    --accent: #FFB300;
    --bg: #F6F8F4;
    --surface: #FFFFFF;
    --muted-bg: #EFF3EC;
    --text: #1C2A1D;
    --text2: #5C6B5D;
    --divider: #E2E8DF;
    --hero: linear-gradient(135deg, #1B5E20 0%, #2E7D32 40%, #43A047 75%, #66BB6A 100%);
    --radius: 22px;
    --shadow: 0 10px 30px rgba(27, 94, 32, .10);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .22);
    --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; display: inline-block; vertical-align: middle; overflow: hidden; max-width: 1.25em; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; font-variation-settings: 'FILL' 1, 'wght' 500; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Kopf ---------- */
.kopf { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .25s, box-shadow .25s; }
.kopf.fest, .kopf.hell { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); box-shadow: 0 1px 0 var(--divider); }
.kopf .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 22px; }
.marke img { width: 38px; height: 38px; }
.kopf.fest .marke, .kopf.hell .marke { color: var(--primary-dark); }
.menue { margin-left: auto; display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.menue a { display: flex; align-items: center; white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: rgba(255, 255, 255, .92); font-weight: 700; }
.menue a:hover { background: rgba(255, 255, 255, .14); }
.kopf.fest .menue a, .kopf.hell .menue a { color: var(--text); }
.kopf.fest .menue a:hover, .kopf.hell .menue a:hover { background: var(--muted-bg); }
.menue a.knopf { background: var(--accent); color: #1C2A1D !important; padding: 9px 18px; }
.menue a.knopf:hover { background: #FFC233; }
.burger { display: none; margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; border-radius: 10px; }
.burger .ms { font-size: 30px; }
.kopf.fest .burger, .kopf.hell .burger { color: var(--text); }
@media (max-width: 1020px) {
    .burger { display: block; }
    .menue { display: none; position: absolute; top: 68px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 10px; gap: 2px; }
    .menue.offen { display: flex; }
    .menue a { color: var(--text) !important; padding: 12px 16px; }
    .menue a:hover { background: var(--muted-bg); }
    .menue a.knopf { text-align: center; margin-top: 6px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--hero); color: #fff; padding: 120px 0 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 65%); right: -180px; top: -200px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.chip .ms { font-size: 18px; color: var(--accent); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin-bottom: 18px; }
.hero h1 span { color: #FFE082; }
.hero .lead { font-size: clamp(18px, 1.6vw, 20px); opacity: .95; max-width: 34em; margin-bottom: 26px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges a { display: block; border-radius: 10px; transition: transform .15s; }
.badges a:hover { transform: translateY(-2px); }
.badges img { height: 52px; width: auto; }
.hero-hinweis { margin-top: 18px; font-size: 14px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.hero-bild { position: relative; height: 600px; }
.handy { position: absolute; width: 270px; aspect-ratio: 600 / 1303; border-radius: 42px; background: #111; padding: 9px; box-shadow: var(--shadow-lg); }
.handy img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }
.hero-bild .handy.vorne { left: 50%; top: 40px; transform: translateX(-30%) rotate(3deg); z-index: 2; }
.hero-bild .handy.hinten { left: 50%; top: 90px; transform: translateX(-110%) rotate(-7deg); width: 240px; opacity: .97; }
.welle { display: block; width: 100%; height: 70px; margin-top: -40px; position: relative; z-index: 3; }
@media (max-width: 960px) {
    .hero { padding-top: 100px; }
    .hero .wrap { grid-template-columns: 1fr; text-align: center; }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .badges, .hero-hinweis { justify-content: center; }
    .hero-bild { height: 470px; margin-top: 10px; }
    .handy { width: 215px; border-radius: 34px; padding: 7px; }
    .handy img { border-radius: 28px; }
    .hero-bild .handy.hinten { width: 190px; }
}
@media (max-width: 420px) { .hero-bild { height: 420px; } .hero-bild .handy { width: 190px; } .hero-bild .handy.vorne { transform: translateX(-22%) rotate(3deg); } .hero-bild .handy.hinten { width: 165px; transform: translateX(-96%) rotate(-7deg); } }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 90px 0; }
.abschnitt.weiss { background: var(--surface); }
.kopfzeile { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.kopfzeile .klein { display: inline-block; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-bottom: 10px; }
.kopfzeile h2 { font-size: clamp(30px, 3.6vw, 44px); }
.kopfzeile p { color: var(--text2); font-size: 19px; }
@media (max-width: 700px) { .abschnitt { padding: 64px 0; } .kopfzeile { margin-bottom: 34px; } }

/* Funktionen */
.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.karte { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.karte:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27, 94, 32, .14); }
.symbol { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #E8F5E9, #C8E6C9); color: var(--primary); margin-bottom: 16px; }
.symbol .ms { font-size: 28px; }
.karte h3 { font-size: 20px; margin-bottom: 6px; }
.karte p { color: var(--text2); margin: 0; font-size: 16px; }
.karte .marker { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 800; color: var(--primary-dark); background: var(--muted-bg); padding: 3px 10px; border-radius: 999px; }
@media (max-width: 960px) { .raster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .raster { grid-template-columns: 1fr; gap: 14px; }
    .karte { padding: 18px; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: start; }
    .karte .symbol { width: 48px; height: 48px; border-radius: 14px; margin: 0; grid-row: span 3; }
    .karte .symbol .ms { font-size: 25px; }
    .karte h3 { font-size: 18px; margin: 2px 0 4px; }
    .karte p { font-size: 15.5px; }
    .karte .marker { justify-self: start; }
}

/* Einblicke (Screenshots) */
.galerie { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 24px 34px; margin: 0 -24px; justify-content: safe center; scrollbar-width: thin; }
.galerie figure { flex: 0 0 auto; margin: 0; scroll-snap-align: center; text-align: center; }
.galerie .handy { position: relative; width: 200px; border-radius: 34px; padding: 7px; box-shadow: 0 8px 18px rgba(0, 0, 0, .16); }
.galerie .handy img { border-radius: 28px; }
.galerie figcaption { margin-top: 14px; font-weight: 800; }
.galerie figcaption small { display: block; font-weight: 600; color: var(--text2); font-size: 14px; }

/* So geht's */
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.schritt { position: relative; background: var(--surface); border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--shadow); }
.schritt::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 26px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #1C2A1D; font-weight: 800; display: grid; place-items: center; font-size: 19px; box-shadow: 0 6px 14px rgba(255, 179, 0, .4); }
.schritt h3 { font-size: 20px; margin-top: 8px; }
.schritt p { color: var(--text2); margin: 0; }
@media (max-width: 800px) { .schritte { grid-template-columns: 1fr; gap: 34px; } }

/* Fuer Anbieter */
.anbieter { background: linear-gradient(180deg, #F1F7EF, #E5F1E2); }
.anbieter .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.anbieter h2 { font-size: clamp(30px, 3.6vw, 44px); }
.anbieter .lead { color: var(--text2); font-size: 19px; }
.vorteile { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.vorteile li { display: flex; gap: 12px; align-items: flex-start; }
.vorteile .ms { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--primary); background: #fff; border-radius: 12px; font-size: 22px; box-shadow: 0 4px 12px rgba(27, 94, 32, .1); max-width: none; }
.vorteile b { display: block; }
.vorteile span { color: var(--text2); font-size: 15.5px; line-height: 1.5; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.voll { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(46, 125, 50, .3); }
.btn.voll:hover { background: var(--primary-dark); }
.btn.rand { background: #fff; color: var(--primary-dark); border: 2px solid var(--primary); }
.btn.gelb { background: var(--accent); color: #1C2A1D; }
.anbieter-bild { position: relative; height: 560px; }
.anbieter-bild .handy { left: 50%; top: 10px; transform: translateX(-50%); }
.web-karte { position: absolute; left: 0; bottom: 40px; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; z-index: 3; max-width: 280px; }
.web-karte .ms { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 12px; max-width: none; }
.web-karte b { display: block; font-size: 15px; }
.web-karte small { color: var(--text2); }
@media (max-width: 960px) {
    .anbieter .wrap { grid-template-columns: 1fr; }
    .anbieter-bild { height: 480px; order: -1; }
    .anbieter-bild .handy { width: 215px; border-radius: 34px; padding: 7px; }
}
@media (max-width: 600px) { .vorteile { grid-template-columns: 1fr; } .web-karte { left: 50%; transform: translateX(-50%); bottom: 10px; width: max-content; max-width: calc(100% - 20px); } }

/* Preise */
.preise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.preis-karte { background: var(--bg); border: 1px solid var(--divider); border-radius: var(--radius); padding: 28px 26px; position: relative; display: flex; flex-direction: column; }
.preis-karte.hervor { background: #fff; border: 2px solid var(--primary); box-shadow: 0 18px 44px rgba(27, 94, 32, .16); }
.preis-badge { position: absolute; top: -13px; left: 26px; background: var(--accent); color: #1C2A1D; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 3px 12px; }
.preis-karte h3 { font-size: 22px; margin-bottom: 6px; }
.preis-zeile b { font-size: 32px; color: var(--primary-dark); }
.preis-zeile small { color: var(--text2); font-size: 15px; }
.preis-unter { color: var(--text2); font-size: 15px; margin: 2px 0 14px; }
.staffel { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 15px; }
.staffel td { padding: 7px 0; border-bottom: 1px dashed var(--divider); }
.staffel td:last-child { text-align: right; }
.preis-karte ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.preis-karte li { padding-left: 26px; position: relative; font-size: 15.5px; }
.preis-karte li::before { content: "check_circle"; font-family: 'Material Symbols Rounded'; font-variation-settings: 'FILL' 1; position: absolute; left: 0; top: 1px; color: var(--primary); font-size: 19px; }
.preis-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.preis-extra > div { display: flex; gap: 14px; align-items: center; background: var(--muted-bg); border-radius: 18px; padding: 16px 20px; }
.preis-extra .ms { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: var(--primary); max-width: none; }
.preis-extra b { display: block; }
.preis-extra span { color: var(--text2); font-size: 15px; }
.preis-fuss { text-align: center; color: var(--text2); font-size: 14.5px; max-width: 760px; margin: 22px auto 0; }
@media (max-width: 960px) { .preise { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .preis-extra { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: 0 4px 16px rgba(27, 94, 32, .07); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "expand_more"; font-family: 'Material Symbols Rounded'; font-size: 26px; margin-left: auto; color: var(--primary); transition: transform .2s; font-weight: normal; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > div { padding: 0 24px 20px; color: var(--text2); }
.faq details > div p:last-child { margin: 0; }

/* Download */
.download { padding: 0 0 90px; }
.download .box { background: var(--hero); color: #fff; border-radius: 32px; padding: 54px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.download .box::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; bottom: -220px; background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%); }
.download h2 { font-size: clamp(28px, 3.4vw, 42px); }
.download p { opacity: .95; font-size: 19px; max-width: 30em; }
.qr { background: #fff; border-radius: 22px; padding: 16px; text-align: center; color: var(--text); position: relative; z-index: 1; }
.qr img { width: 170px; height: 170px; }
.qr small { display: block; margin-top: 6px; font-weight: 700; color: var(--text2); }
@media (max-width: 800px) {
    .download .box { grid-template-columns: 1fr; padding: 36px 26px; text-align: center; }
    .download p { margin-left: auto; margin-right: auto; }
    .download .badges { justify-content: center; }
    .qr { display: none; }
}

/* ---------- Fuss ---------- */
.fuss { background: #12301A; color: rgba(255, 255, 255, .78); padding: 60px 0 28px; font-size: 15.5px; }
.fuss a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.fuss .marke { color: #fff; margin-bottom: 12px; }
.fuss h4 { color: #fff; margin: 4px 0 12px; font-size: 16px; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fuss-unten { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 14px; }
@media (max-width: 860px) { .fuss-raster { grid-template-columns: 1fr 1fr; } .fuss-raster > :first-child { grid-column: 1 / -1; } }

/* ---------- Rechtliche Seiten ---------- */
.seite-kopf { background: var(--hero); color: #fff; padding: 118px 0 50px; }
.seite-kopf h1 { font-size: clamp(32px, 4vw, 46px); margin: 0; }
.seite-kopf p { margin: 8px 0 0; opacity: .9; }
.legal-content { padding: 0 0 80px; }
.legal-content > .container, .legal-content > .wrap { max-width: 900px; margin: -24px auto 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 48px; position: relative; }
.legal-content h1 { font-size: 34px; color: var(--primary-dark); }
.legal-content h2 { font-size: 24px; margin-top: 34px; color: var(--primary-dark); }
.legal-content h3 { font-size: 19px; margin-top: 24px; }
.legal-content p, .legal-content li { color: #3B4A3C; }
.legal-content ul { padding-left: 22px; }
.legal-content a { overflow-wrap: anywhere; }
@media (max-width: 700px) { .legal-content > .container, .legal-content > .wrap { padding: 28px 20px; border-radius: 18px; margin-top: -18px; } }

/* ---------- Einblenden beim Scrollen (nur mit JS, nicht bei reduzierter Bewegung) ---------- */
.js .zeigen { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .zeigen.da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .zeigen { opacity: 1; transform: none; transition: none; }
    .karte, .btn, .badges a { transition: none; }
}
