/* Rechts- und Vertragsseiten der Landing im Look der Landingpage v8:
   agb.html, datenschutz.html, impressum.html, widerruf.html (reine Textseiten) und
   widerrufen.html, kuendigen.html (Formulare, Logik in vertrag.js).
   Eigene kleine Datei statt landing.css: dort steht der groesste Teil der Gestaltung als
   style-Attribut am Element, Kopf und Fuss lassen sich von da nicht sauber uebernehmen.
   Farben, Schrift, Button und Fuss sind die der Landing (landing.css, index-v8.html).
   Die Klassen im Seiteninhalt (page-*, contract-*) heissen wie zuvor in style.css,
   damit die Texte und vertrag.js unberuehrt bleiben. */

/* Albert Sans, selbst gehostet, dieselben Dateien und Bereiche wie in landing.css. */
@font-face{font-family:'Albert Sans';font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/albert-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Albert Sans';font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/albert-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

*,*::before,*::after{box-sizing:border-box}
html{background:#F7F5F0;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
/* Spalte ueber die volle Hoehe: auf kurzen Seiten (Impressum) bleibt der Fuss unten. */
body{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:#F7F5F0;color:#3D3B37;font-family:'Albert Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-size:18px;line-height:1.55}
::selection{background:#CEEBC5;color:#0F2A4A}
a{text-underline-offset:3px}
a:focus-visible,button:focus-visible{outline:3px solid #4A7FB5;outline-offset:3px;border-radius:12px}

/* ── Kopf: Logo wie auf der Landing, rechts der Weg zurueck ── */
.hdr-in{max-width:1240px;margin:0 auto;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px 24px}
.hdr-brand{display:inline-flex;align-items:center;text-decoration:none}
.hdr-logo{display:block;height:36px;width:auto}
.hdr-home{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:16px;font-weight:500;line-height:1.2;color:#0F2A4A;text-decoration:none;white-space:nowrap;opacity:.78;transition:opacity 150ms ease}
.hdr-home:hover{opacity:1}
.hdr-home svg{display:block;flex:0 0 auto}
@media (max-width:640px){.hdr-in{padding-top:10px;padding-bottom:10px}.hdr-logo{height:30px}}
@media (max-width:400px){.hdr-logo{height:28px}.hdr-home{font-size:15px}}
@media (max-width:340px){.hdr-in{padding-left:16px;padding-right:16px}.hdr-logo{height:23px}}

/* ── Inhalt: eine Textspalte in lesbarer Breite ── */
.page-content{flex:1;width:100%;max-width:808px;margin:0 auto;padding:56px 24px 96px}
.page-title{margin:0;font-weight:800;font-size:clamp(1.6rem,7.4vw,3.25rem);line-height:1.06;letter-spacing:-.03em;color:#0F2A4A;text-wrap:balance;overflow-wrap:break-word;hyphens:auto}
/* Der goldene Punkt der Landing-Ueberschriften, als Zierde und nicht als Text. */
.page-title::after{content:".";color:#E8A832}
.page-body{margin-top:32px;font-size:17px;line-height:1.65;text-align:left}
.page-body p{margin:0 0 .85em;text-wrap:pretty}
.page-body h3{margin:2.2em 0 .5em;font-size:21px;font-weight:800;line-height:1.25;letter-spacing:-.01em;color:#0F2A4A;text-wrap:balance}
.page-body ul{margin:.4em 0 1em;padding-left:1.3em}
.page-body li{margin-bottom:.45em;padding-left:.15em}
.page-body li::marker{color:#4B8634}
.page-body a{color:#356A20;font-weight:500;text-decoration:underline;text-decoration-thickness:1.5px;overflow-wrap:anywhere}
.page-body a:hover{color:#0F2A4A}
.page-body strong{font-weight:700;color:#0F2A4A}
.page-body code{padding:.1em .4em;border-radius:6px;background:#EFECE6;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88em;overflow-wrap:anywhere}
@media (max-width:640px){.page-content{padding:36px 24px 72px}.page-body{margin-top:24px}}
@media (max-width:360px){.page-content{padding-left:20px;padding-right:20px}}

/* ── Vertrag widerrufen / kuendigen (§ 356a, § 312k BGB): Formular in einer weissen Karte ── */
.contract-form,.contract-done{margin:28px 0 32px;padding:32px;background:#FFFFFF;border:1px solid rgba(15,42,74,.08);border-radius:24px;box-shadow:0 40px 80px -52px rgba(15,42,74,.45)}
/* Das hidden-Attribut verliert sonst gegen die display-Regeln weiter unten. */
.contract-form[hidden],.contract-done[hidden],.contract-field[hidden],.contract-error[hidden]{display:none}
.contract-field{min-width:0;margin:0 0 22px;padding:0;border:0}
.contract-field>label,.contract-field>legend{display:block;margin-bottom:8px;padding:0;font-size:16px;font-weight:700;line-height:1.3;color:#0F2A4A}
/* 17px: unter 16px zoomt iOS beim Antippen in das Feld. */
.contract-field input[type="text"],.contract-field input[type="email"],.contract-field input[type="date"],.contract-field textarea{display:block;width:100%;min-height:54px;padding:13px 16px;border:1.5px solid #8E8A80;border-radius:14px;background:#FFFFFF;color:#141413;font:inherit;font-size:17px;line-height:1.4;transition:border-color 150ms ease}
.contract-field textarea{min-height:112px;resize:vertical}
.contract-field input:hover,.contract-field textarea:hover{border-color:#5E5B54}
.contract-field input[type="text"]:focus,.contract-field input[type="email"]:focus,.contract-field input[type="date"]:focus,.contract-field textarea:focus{border-color:#1B3D6B;outline:3px solid #4A7FB5;outline-offset:2px}
/* Auswahl "Art der Kuendigung": jede Option eine eigene Zeile zum Antippen. */
.contract-choice label{display:flex;align-items:flex-start;gap:12px;margin:0 0 8px;padding:13px 16px;border:1.5px solid #DAD5CB;border-radius:14px;font-weight:500;line-height:1.4;color:#3D3B37;cursor:pointer;transition:border-color 150ms ease,background 150ms ease}
.contract-choice label:hover{border-color:#8E8A80}
.contract-choice label:has(input:checked){border-color:#4B8634;background:#F1F8ED;color:#0F2A4A}
.contract-choice label:has(input:focus-visible){outline:3px solid #4A7FB5;outline-offset:2px}
.contract-choice input{flex:0 0 auto;width:20px;height:20px;margin:1px 0 0;accent-color:#4B8634}
.contract-choice input:focus-visible{outline:none}
.page-body p.contract-hint{margin:8px 0 0;font-size:15px;line-height:1.5;color:#5E5B54}
.page-body p.contract-error{margin:0 0 18px;padding:12px 16px;border-radius:14px;background:#FCEBEA;color:#8F1D1D;font-size:16px;font-weight:700;line-height:1.45}
/* Der gruene Button der Landing (.btn in landing.css). */
.contract-submit{display:flex;align-items:center;justify-content:center;width:100%;min-height:60px;padding:8px 30px;border:0;border-radius:999px;background:#79C15F;color:#0F2A4A;font:inherit;font-size:18px;font-weight:800;line-height:1.15;cursor:pointer;box-shadow:0 14px 30px -14px rgba(75,134,52,.8);transition:transform 150ms ease,background 200ms ease,box-shadow 200ms ease}
.contract-submit:hover{background:#6DB453;transform:translateY(-2px);box-shadow:0 20px 36px -14px rgba(75,134,52,.85)}
.contract-submit:disabled{opacity:.6;cursor:progress;transform:none}
.contract-submit+.contract-hint{margin-top:14px}
@media (min-width:641px){.contract-submit{width:auto;min-width:300px}}
/* Eingangsbestaetigung nach dem Absenden. */
.contract-done{border-color:#CEEBC5;background:#F4FAF1}
.contract-done h3{display:flex;align-items:center;gap:12px;margin:0 0 .6em}
.contract-done h3::before{content:"";flex:0 0 auto;width:32px;height:32px;border-radius:50%;background:#4B8634 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/18px 18px no-repeat}
.contract-done>:last-child{margin-bottom:0}
/* Honeypot: fuer Menschen und Screenreader unsichtbar, Bots fuellen es aus. */
.contract-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
@media (max-width:640px){.contract-form,.contract-done{margin:24px 0 28px;padding:24px 20px;border-radius:22px}}

/* ── Fuss: der dunkle Fuss der Landing ── */
.foot{background:#0B2140;color:#D6E5F3;padding:64px 24px 32px;font-size:15px;line-height:1.55}
.foot-in{max-width:1240px;margin:0 auto}
.foot-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:40px}
.foot-brand{flex:1 1 300px;min-width:0}
.foot-logo{display:block;height:40px;width:auto}
.foot-brand p{margin:16px 0 0}
.foot-brand p+p{margin-top:4px;color:#B9CFE6}
.foot a{display:inline-block;padding:6px 0;color:#D6E5F3;text-decoration:none}
.foot a:hover{color:#FFFFFF;text-decoration:underline}
.foot a[aria-current="page"]{color:#FFFFFF;font-weight:700}
.foot nav{display:flex;flex-direction:column;gap:8px}
.foot nav span{font-weight:700;color:#FFFFFF}
.follow{display:flex;align-items:center;gap:2px;margin:14px 0 0 -10px}
.foot a.follow-i{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border-radius:50%;transition:background 200ms ease,color 200ms ease}
.foot a.follow-i:hover{background:rgba(214,229,243,.12);text-decoration:none}
/* Die zwei Schaltflaechen muessen sich von den Textlinks abheben und auf jeder Seite stehen. */
.foot-contract{margin-top:28px;display:flex;flex-wrap:wrap;gap:12px}
.foot a.foot-btn{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:2px solid rgba(214,229,243,.6);border-radius:999px;font-size:15px;font-weight:700;color:#FFFFFF}
.foot a.foot-btn:hover{background:#FFFFFF;border-color:#FFFFFF;color:#0F2A4A;text-decoration:none}
.foot-end{margin-top:48px;padding-top:20px;border-top:1px solid rgba(214,229,243,.16);display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;color:#B9CFE6}
.foot .brand{font-weight:800;white-space:nowrap}
.foot .brand .bd{color:#E8A832}
.foot .brand .bc{color:#79C15F}
.foot-claims{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;padding:0;list-style:none}
.foot-claims li{position:relative;min-height:20px;padding-left:27px;line-height:20px;white-space:nowrap}
.foot-claims li::before{content:"";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background:rgba(152,225,127,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398E17F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px 11px no-repeat}
@media (max-width:640px){.foot{padding-top:48px}.foot-row{display:grid;grid-template-columns:repeat(3,auto);justify-content:space-between;gap:32px 16px}.foot-brand{grid-column:1/-1}}

@media (prefers-reduced-motion:reduce){.contract-submit,.hdr-home,.foot a.follow-i{transition:none}.contract-submit:hover{transform:none}}
/* "Du kannst diese Seite auch speichern oder drucken" (kuendigen.html): ohne Fuss und Schatten. */
@media print{html,body{background:#FFFFFF}.hdr-home,.foot{display:none}.contract-form,.contract-done{box-shadow:none}.page-content{padding-top:24px;padding-bottom:24px}}
