/* Teilhaber – Website: Seitengerüst (wie die claude.ai-Laufzeit es um die App legt) und Anmelde-Leiste.
   Farben und Schriften kommen aus den Variablen der App (app/index.html :root, hell und dunkel). */
:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
body{margin:0}
img{max-width:100%}
[hidden]{display:none!important}

/* Leiste über der App: scrollt mit, liegt unter Blättern und Seiten der App */
.thk{position:relative;z-index:1;box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 12px;max-width:560px;margin:0 auto;padding:8px max(20px,env(safe-area-inset-right,0px)) 0 max(20px,env(safe-area-inset-left,0px));font:14.5px/1.4 var(--f-body,system-ui,sans-serif);color:var(--ink-2,#4B5F51);text-align:center}
.thk b{color:var(--ink,#15301F);font-weight:600;overflow-wrap:anywhere}
.thk a,.thk-dlg a{color:inherit;text-underline-offset:2px}
.thk-recht{width:100%;margin:2px 0 0;font-size:13px;color:var(--ink-3,#5E7064)}
/* 2.39.3: „Konto anlegen“ und „Anmelden“ als Paar – umbrechen gemeinsam */
.thk-wahl{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
/* 2.30: Die Leiste oben hat unten Luft – das Kopf-Bild der App stößt nicht mehr an ihren Text */
.thk{padding-bottom:10px}
/* 2.30: Fußzeile am Ende der Seite – Konto (angemeldet) und Rechtliches. Steht über der festen Leiste der App. */
.thf{box-sizing:border-box;max-width:560px;margin:0 auto;padding:18px max(20px,env(safe-area-inset-right,0px)) 26px max(20px,env(safe-area-inset-left,0px));font:14px/1.5 var(--f-body,system-ui,sans-serif);color:var(--ink-2,#4B5F51);text-align:center}
.thf p{margin:0}
.thf a{color:inherit;text-underline-offset:2px}
.thf a:focus-visible{outline:3px solid var(--accent,#2D6A3E);outline-offset:2px}
.thf-apps{margin:0;font-size:14px;line-height:2;text-align:center}
.thf-apps a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
.thf-konto{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 12px}
.thf-konto b{color:var(--ink,#15301F);font-weight:600;overflow-wrap:anywhere}
.thf .thk-recht{margin:2px 0 0;font-size:14px;line-height:2}
.thf .thk-recht a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px} /* 2.32.1: Tippflächen mindestens 44 px */
/* mit Fußzeile braucht die App darunter nicht mehr den ganzen Platz für ihre Leiste – den hält jetzt die Fußzeile frei */
body:has(#th-fuss:not([hidden])) #app .wrap{padding-bottom:20px}
body:has(nav.tabbar) .thf{padding-bottom:calc(118px + env(safe-area-inset-bottom,0px))}
.thk-dlg .thk-recht{margin:16px 0 0;text-align:left}
.thk-dlg .thk-recht a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
.thk-btn{min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid var(--accent,#2D6A3E);background:var(--accent,#2D6A3E);color:var(--accent-ink,#fff);font:600 15.5px/1 var(--f-body,system-ui,sans-serif);cursor:pointer}
.thk-btn.ghost{background:transparent;color:var(--accent,#2D6A3E)}
.thk-btn:disabled{opacity:.6;cursor:default}
.thk-btn.danger{background:var(--down,#B3261E);border-color:var(--down,#B3261E);color:#fff}
.thk-frage{margin:8px 0 0;padding:12px 14px;border-radius:12px;border:1.5px solid var(--down,#B3261E)}
.thk-frage p{margin:0 0 10px}
.thk-btn:focus-visible,.thk a:focus-visible,.thk-dlg a:focus-visible{outline:3px solid var(--accent,#2D6A3E);outline-offset:2px}

/* Fenster (natives <dialog>) */
.thk-dlg{box-sizing:border-box;width:min(calc(100% - 32px),440px);max-height:min(90vh,720px);overflow:auto;border:0;border-radius:24px;padding:20px 22px 22px;background:var(--surface,#fff);color:var(--ink,#15301F);box-shadow:0 24px 60px rgba(8,22,16,.28);font:16px/1.5 var(--f-body,system-ui,sans-serif)}
.thk-dlg::backdrop{background:rgba(8,22,16,.42)}
.thk-dlg h2{margin:0 0 8px;font:700 24px/1.2 var(--f-display,system-ui,sans-serif)}
.thk-dlg p{margin:0 0 12px}
.thk-dlg label{display:block;font-weight:600;margin:4px 0 6px}
.thk-dlg input{box-sizing:border-box;width:100%;min-height:50px;padding:0 14px;border-radius:14px;border:1.5px solid var(--field,#7A967D);background:var(--surface-3,#F7FBF6);color:var(--ink,#15301F);font:16px var(--f-body,system-ui,sans-serif)}
.thk-dlg input:focus-visible{outline:3px solid var(--accent,#2D6A3E);outline-offset:1px}
.thk-knoepfe{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.thk-knoepfe .thk-btn{flex:1 1 auto}
.thk-meldung{min-height:1.5em;margin:10px 0 0;color:var(--ink-2,#4B5F51)}
.thk-meldung.fehler{color:var(--down,#B3261E);font-weight:600}
.thk-klein{font-size:13.5px;color:var(--ink-3,#5E7064)}
/* Anmelden mit Google oder Apple (12.11.2026): Knöpfe über dem E-Mail-Feld – nur wenn der Server sie meldet */
.thk-schnell{display:grid;gap:10px;margin:6px 0 14px}
.thk-schnell .thk-btn{width:100%;min-height:50px}
.thk-schnell .thk-meldung{min-height:0;margin:0}
.thk-schnell .thk-meldung:empty{display:none}
.thk-dlg .thk-schnell p{margin:0}
.thk-dlg .thk-oder{display:flex;align-items:center;gap:12px;margin:6px 0 0;font-size:13.5px;color:var(--ink-3,#5E7064)}
.thk-oder::before,.thk-oder::after{content:"";flex:1;height:1px;background:var(--line-2,#BFD5BA)}
/* Leiste: Hinweis nach einem Link, der nicht mehr gilt, oder nach einem Abbruch */
.thk .thk-hinweis{width:100%;color:var(--down,#B3261E);font-weight:600}

/* Leiste „App“ (js/pwa.js): neue Version, kein Internet, installieren, iPhone-Tipp – schwebt oben über der App */
.thp{position:fixed;z-index:60;left:50%;top:calc(env(safe-area-inset-top,0px) + 10px);transform:translateX(-50%);box-sizing:border-box;width:min(calc(100% - 24px),520px);padding:12px 14px;border-radius:18px;border:1.5px solid var(--line-2,#BFD5BA);background:var(--surface,#fff);color:var(--ink,#15301F);box-shadow:0 10px 30px rgba(8,22,16,.22);font:15px/1.45 var(--f-body,system-ui,sans-serif)}
.thp p{margin:0}
.thp-knoepfe{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.thp-knoepfe .thk-btn{flex:1 1 auto}
.thp[data-art="offline"]{border-color:var(--sun,#F2C14E)}
.thp .thk-btn:focus-visible{outline:3px solid var(--accent,#2D6A3E);outline-offset:2px}
.thk-link{min-height:44px;min-width:44px;padding:8px 0;border:0;background:none;color:var(--accent,#2D6A3E);font:600 15px/1.3 var(--f-body,system-ui,sans-serif);text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.thk-link:focus-visible{outline:3px solid var(--accent,#2D6A3E);outline-offset:2px}
/* 2.41: Auf der Startseite steht „Konto anlegen“ groß – oben dann nur „Anmelden“ (kein zweiter gleicher Knopf) */
html[data-startseite] #thk-neu,html[data-startseite] #th-konto:has(#thk-neu)>span:first-child:not(.thk-hinweis){display:none}
/* 2.49 (Wunsch 18.11.2026, 18:42): „Anmelden“ und „Konto anlegen“ stehen auf der Startseite untereinander in der Mitte – oben bleibt
   die Leiste leer und verschwindet; nur ein Hinweis (z. B. „Link abgelaufen“) bliebe dort stehen, ohne die Knöpfe */
html[data-startseite] #th-konto:has(#thk-neu):not(:has(.thk-hinweis)){display:none}
html[data-startseite] #th-konto .thk-wahl{display:none}
/* 2.54: mehrere Konten auf einem Gerät – Liste im Fenster „Deine Konten“ (das aktive mit dickem Rahmen und „✓ aktiv“, nicht nur
   Farbe), „Weiteres Konto anmelden“, Hinweis „Jetzt: …“ nach dem Wechsel */
.thk-konten{list-style:none;margin:6px 0 4px;padding:0;display:flex;flex-direction:column;gap:8px}
.thk-konto{box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:10px 12px;border-radius:14px;border:1.5px solid var(--line-2,#BFD5BA);background:none;color:inherit;font:inherit;text-align:left}
button.thk-konto{cursor:pointer}
button.thk-konto:focus-visible{outline:3px solid var(--accent,#2D6A3E);outline-offset:2px}
button.thk-konto:disabled{opacity:.6;cursor:default}
.thk-konto.on{border:2.5px solid var(--ink,#15301F);background:var(--accent-soft,#E3F1E0)}
.thk-av{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--accent-soft,#E3F1E0);color:var(--ink,#15301F);font-weight:800;font-size:15px}
.thk-konto.on .thk-av{background:var(--accent,#2D6A3E);color:var(--accent-ink,#fff)}
.thk-km{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.thk-km b{overflow-wrap:anywhere;font-weight:700;font-size:15.5px}
.thk-km small{font-size:13px;color:var(--ink-2,#4B5F51);overflow-wrap:anywhere}
.thk-zust{flex:none;font-size:13.5px;font-weight:800;color:var(--accent,#2D6A3E)}
.thk-konto.on .thk-zust{color:var(--ink,#15301F)}
.thk-plus{display:flex;align-items:center;gap:12px;min-height:48px;margin:4px 0 0;padding:6px 4px;border:0;background:none;color:var(--accent,#2D6A3E);font:700 15.5px/1.2 var(--f-body,system-ui,sans-serif);cursor:pointer;text-align:left}
.thk-plus:disabled{opacity:.6;cursor:default}
.thk-plus:focus-visible{outline:3px solid var(--accent,#2D6A3E);outline-offset:2px}
.thk-plus-i{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1.5px solid var(--accent,#2D6A3E);font-size:20px;line-height:1}
.thk-toast{position:fixed;z-index:70;left:50%;top:calc(env(safe-area-inset-top,0px) + 12px);transform:translateX(-50%);box-sizing:border-box;width:max-content;max-width:calc(100vw - 32px);padding:10px 16px;border-radius:12px;background:var(--ink,#15301F);color:var(--surface,#fff);font:600 14.5px/1.3 var(--f-body,system-ui,sans-serif);box-shadow:0 6px 20px rgba(0,0,0,.18);overflow-wrap:anywhere}
.thk-toast:empty{display:none}
/* 2.66: lesbarer Text in #app (nur ohne JavaScript zu sehen) */
.vorab{box-sizing:border-box;max-width:560px;margin:0 auto;padding:24px 20px;font:17px/1.6 system-ui,sans-serif}
.vorab h1{font-size:28px;line-height:1.2}
/* 2.66: Fußzeile – „Über Teilhaber“ als eigene Zeile, wie die Rechts-Links */
.thf-ueber{margin:2px 0 0;font-size:14px;line-height:2}
