/* Laris-Design (CI Entwurf 9 in Petrol, 16.10.2026): Petrol #1D6A60, Knöpfe/Schrift #134A43, Honig #E8B04C.
   Schriften Nunito (Titel) und Atkinson Hyperlegible (Text), lokal ausgeliefert. Texte mindestens 7 : 1 Kontrast.
   Bewusst nur helles Erscheinungsbild: für ältere Menschen gut lesbar, gleich wie die Prototypen. */
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("fonts/nunito-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
  --ground: #E9EFED; --card: #FAFCFB; --white: #FFFFFF; --text: #17302B; --muted: #3E524D; --line: #D0DCD8;
  --petrol: #1D6A60; --accent: #134A43; --soft: #D5E9E4; --honey: #E8B04C; --honey-l: #F5D48C; --honey-d: #5E400A;
  --ok: #1A5230; --ok-soft: #DCEFE2; --crit: #84201A; --crit-soft: #F6DAD5; --warn: #5E400A; --warn-soft: #FBEBC8;
  --gelb: #F2C230; --blau: #1A529A; --violett: #5B3FA0; --rot: #A3261B;
  --title: "Nunito", "Trebuchet MS", Verdana, sans-serif; --font: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.45; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--title); font-weight: 900; line-height: 1.18; margin: 0; text-wrap: balance; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Knöpfe und Felder ---------- */
.big { border: 0; border-radius: 999px; min-height: 60px; padding: 14px 26px; font-family: var(--title); font-weight: 900; font-size: 21px; }
.big.primary { background: var(--accent); color: var(--white); }
.big.ghost { background: transparent; color: var(--muted); border: 2px solid var(--line); }
.big.danger { background: var(--rot); color: var(--white); }
.big:disabled { opacity: .4; cursor: default; }
.btn { border: 2px solid var(--line); background: var(--white); border-radius: 12px; min-height: 44px; padding: 8px 14px; font-weight: 700; font-size: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn.danger { border-color: var(--crit); color: var(--crit); }
.btn:disabled { opacity: .45; cursor: default; }
.link { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 16px; padding: 8px 4px; min-height: 44px; }
.feld { display: grid; gap: 4px; font-size: 16px; }
.feld input, .feld select, .feld textarea, input.eingabe { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--white); font-size: 18px; min-height: 48px; width: 100%; }
.feld input[type="range"] { border: 0; padding: 0; min-height: 36px; background: transparent; accent-color: var(--accent); }
.feld input:focus, .feld select:focus, .feld textarea:focus, input.eingabe:focus { border-color: var(--accent); outline: none; }
.icon-btn { border: 0; background: var(--card); border-radius: 12px; min-width: 44px; height: 44px; padding: 0 12px; font-weight: 700; font-size: 15px; color: var(--muted); }

/* ---------- Hinweisflächen ---------- */
.notice { border-radius: 16px; padding: 12px 14px; font-size: 16px; }
.notice.warn { background: var(--crit-soft); color: var(--crit); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.info { background: var(--soft); color: var(--accent); }
.notice.honig { background: var(--honey-l); color: var(--honey-d); }
.pill { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--soft); color: var(--accent); white-space: nowrap; }
.pill.alarm { background: var(--crit-soft); color: var(--crit); }
.pill.hinweis { background: var(--warn-soft); color: var(--warn); }
.pill.grau { background: var(--ground); color: var(--muted); }
.pill.ki { background: var(--accent); color: var(--white); }
.foot { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Heimo ---------- */
.heimo { flex: none; display: block; }
.heimo .hm-float, .heimo .hm-eyes, .heimo .hm-mouth, .heimo .hm-extra { transform-box: fill-box; transform-origin: center; }
.heimo .hm-leaf { transform-box: fill-box; transform-origin: 0% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .heimo { animation: hmIn .45s ease-out both; }
  .heimo .hm-float { animation: hmFloat 3.4s ease-in-out infinite; }
  .heimo .hm-leaf { animation: hmLeaf 3.4s ease-in-out infinite; }
  .heimo .hm-eyes { animation: hmBlink 5s infinite; }
  .heimo.talking .hm-mouth { animation: hmTalk .9s ease-in-out infinite; }
  .heimo .hm-extra { animation: hmBob 2.2s ease-in-out infinite; }
  .screen { animation: fadeUp .3s ease-out both; }
}
@keyframes hmIn { from { transform: translateY(8px) scale(.94); opacity: .3; } }
@keyframes hmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes hmLeaf { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-9deg); } }
@keyframes hmBlink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
@keyframes hmTalk { 0%, 100% { transform: scaleY(1); } 25% { transform: scaleY(.3); } 60% { transform: scaleY(.9); } }
@keyframes hmBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes fadeUp { from { transform: translateY(8px); opacity: .4; } }
.heimo-row { display: flex; align-items: flex-end; gap: 12px; }
.bubble { position: relative; background: var(--card); border-radius: 20px 20px 20px 6px; padding: 12px 16px; font-size: 18px; box-shadow: 0 2px 0 var(--line); min-width: 0; }
.bubble b { color: var(--accent); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--title); font-weight: 900; font-size: 24px; }

/* ---------- Text-Seiten (Datenschutz, Impressum) ---------- */
.text-seite { padding: 24px 16px 40px; }
.text-spalte { max-width: 760px; margin: 0 auto; background: var(--card); border-radius: 20px; padding: 24px 28px; box-shadow: 0 2px 0 var(--line); }
.text-spalte h1 { font-size: 30px; margin: 8px 0 12px; }
.text-spalte h2 { font-size: 21px; margin: 22px 0 6px; }
.text-spalte li { margin: 4px 0; }

/* ---------- Startseite ---------- */
.start { max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; display: grid; gap: 18px; }
.kacheln { display: grid; gap: 12px; }
.kachel { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 16px; text-decoration: none; color: var(--text); }
.kachel:hover { border-color: var(--accent); }
.kachel b { display: block; font-family: var(--title); font-weight: 900; font-size: 20px; }
.kachel span span { color: var(--muted); font-size: 16px; }
.kachel .dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--soft); }

/* ---------- Team-Bereich ---------- */
.kopf { position: sticky; top: 0; z-index: 5; background: var(--card); border-bottom: 1px solid var(--line); }
.kopf-innen { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kopf .brand { font-size: 20px; }
.reiter { display: flex; gap: 4px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: thin; }
.reiter button { border: 0; background: transparent; border-radius: 10px; padding: 8px 12px; min-height: 44px; font-weight: 700; font-size: 16px; color: var(--muted); white-space: nowrap; }
.reiter button[aria-current="page"] { background: var(--soft); color: var(--accent); }
.inhalt { max-width: 1180px; margin: 0 auto; padding: 18px 16px 48px; display: grid; gap: 16px; }
.raster { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.karte { background: var(--card); border-radius: 20px; padding: 16px 18px; box-shadow: 0 2px 0 var(--line); display: grid; gap: 10px; min-width: 0; }
.karte h2 { font-size: 20px; }
.karte h3 { font-size: 17px; }
.karte .unter { color: var(--muted); font-size: 15px; }
.zeile { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zeile.zwischen { justify-content: space-between; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px; display: grid; gap: 2px; }
.stat b { font-family: var(--title); font-weight: 900; font-size: 30px; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: 15px; color: var(--muted); }
.liste { display: grid; gap: 8px; }
.eintrag { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: 10px 14px; font-size: 16px; }
.eintrag > span { min-width: 0; }
.eintrag small { display: block; color: var(--muted); font-size: 14px; }
.eintrag.alarm { border-color: var(--crit); }
.eintrag.hinweis { border-color: var(--honey); }
.tabelle-wrap { overflow-x: auto; }
table.tabelle { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--white); border-radius: 12px; overflow: hidden; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tabelle th { background: var(--soft); color: var(--accent); font-weight: 700; }
.tabelle td.mitte { text-align: center; }
.tagebuch { display: grid; gap: 6px; max-height: 460px; overflow-y: auto; }
.tagebuch div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; font-size: 15px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.tagebuch time { color: var(--muted); font-variant-numeric: tabular-nums; }
.tagebuch small { color: var(--muted); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; }
.ergebnis { font-size: 15px; background: var(--white); border-radius: 12px; padding: 10px 12px; border: 2px dashed var(--line); white-space: pre-wrap; }
.ergebnis.abgelehnt { border-color: var(--crit); color: var(--crit); }
.matrix td.ja { background: var(--ok-soft); color: var(--ok); font-weight: 700; text-align: center; }
.matrix td.nein { color: var(--muted); text-align: center; }
.anmelden { max-width: 440px; margin: 40px auto; padding: 0 16px; display: grid; gap: 14px; }
.markdown h1, .markdown h2, .markdown h3 { margin: 12px 0 4px; font-size: 18px; }
.markdown p { margin: 6px 0; }

/* ---------- Gespräch mit Heimo ---------- */
.gespraech { display: grid; gap: 10px; max-height: 52vh; overflow-y: auto; padding: 4px; }
.msg { max-width: 88%; border-radius: 18px; padding: 10px 14px; font-size: 18px; white-space: pre-wrap; }
.msg.heimo-msg { background: var(--card); border: 2px solid var(--line); justify-self: start; border-bottom-left-radius: 6px; }
.msg.ich { background: var(--accent); color: var(--white); justify-self: end; border-bottom-right-radius: 6px; }
.msg.regel { background: var(--crit-soft); color: var(--crit); border-color: var(--crit); }
.vorschlag { display: grid; gap: 8px; background: var(--honey-l); color: var(--honey-d); border-radius: 18px; padding: 12px 14px; }
.vorschlag .knopfreihe .big { min-height: 52px; font-size: 19px; }
.mic { display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 22px; min-height: 76px; background: var(--petrol); color: var(--white); font-family: var(--title); font-weight: 900; font-size: 21px; }
.mic.aktiv { background: var(--rot); }
.mic:disabled { opacity: .5; }

@media screen and (max-width: 640px) {
  .kopf-innen { gap: 6px; }
  .reiter { order: 3; flex-basis: 100%; }
  .text-spalte { padding: 18px 16px; }
}
