/* Öffentliche Seite von TierDoc Dani, im heutigen Bild der App („Nacht & Sonne“, konzept/design-richtlinien.md, app/lib/theme.dart):
   drei Farben (Dunkelblau, Nebel, wenig Gelb) auf Weiß, Plus Jakarta Sans, Zeilen mit feinen Linien statt Kästen, keine Verläufe.
   Ausnahme auf Wunsch: Die Kernfunktionen stehen wie in den App-Store-Bildern auf je einer weichen Farbfläche.
   Schrift, Bilder, Filme und das kleine Skript liegen auf demselben Server; keine Cookies, nichts von außen. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("schrift/PlusJakartaSans-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("schrift/PlusJakartaSans-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("schrift/PlusJakartaSans-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --ink: #17324f; --nebel: #edf1f5; --gelb: #ffd23f; --weiss: #ffffff; --leise: #5b6877; --linie: #e4e9ef; --rot-hell: #fcebe9;
  --rand: 1.5rem;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--weiss); color: var(--ink); font: 400 1.0625rem/1.6 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
header, main, footer { max-width: 44rem; margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }
body.start header, body.start main, body.start footer { max-width: 72rem; }
h1, h2, h3 { letter-spacing: -0.025em; word-spacing: 0.08em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.15; margin: 0.8rem 0 1rem; overflow-wrap: break-word; hyphens: auto; }
h2 { font-weight: 600; font-size: 1.25rem; line-height: 1.3; margin: 0 0 0.5rem; }
h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.25; margin: 0 0 0.35rem; }
p, ul, ol { margin: 0.5rem 0; overflow-wrap: break-word; }
ul, ol { padding-left: 1.3rem; }
img, video { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.klein { font-size: 0.875rem; color: var(--leise); }
.sprung { position: absolute; left: -999px; }
.sprung:focus { left: 1rem; top: 1rem; background: var(--weiss); padding: 0.5rem 0.8rem; border-radius: 8px; z-index: 5; }

/* Kopfzeile und Fuß */
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.2rem 1.5rem; padding-top: 1rem; padding-bottom: 0.8rem; }
.marke { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; text-decoration: none; padding: 0.3rem 0; }
.marke img { border-radius: 9px; display: block; }
nav { display: flex; flex-wrap: wrap; gap: 0.1rem 1.3rem; }
nav a { color: var(--leise); text-decoration: none; padding: 0.4rem 0; }
nav a:hover { color: var(--ink); text-decoration: underline; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
footer { color: var(--leise); font-size: 0.95rem; margin-top: 3rem; padding-top: 1.3rem; padding-bottom: 2.5rem; border-top: 1px solid var(--linie); }
footer nav { margin-bottom: 0.6rem; }

/* Entwurf: der Hinweis oben und die offenen Stellen. Beides verschwindet in der Fassung zum Veröffentlichen. */
mark { background: var(--rot-hell); color: inherit; padding: 0 0.15em; border-radius: 3px; }
.entwurf { font-size: 0.85rem; color: var(--leise); border-left: 3px solid #b3261e; padding-left: 0.8rem; }

/* Unterseiten: Rechtstexte und Hilfe, Abschnitte mit feiner Linie */
body:not(.start) main > section { border-top: 1px solid var(--linie); padding: 1.4rem 0 0.6rem; margin-top: 0.8rem; }
.inhaltsverzeichnis { display: block; background: var(--nebel); border-radius: 16px; padding: 0.4rem 1.2rem; }
.inhaltsverzeichnis ol { columns: 2 16rem; font-size: 0.95rem; list-style: none; padding-left: 0; }
.inhaltsverzeichnis li { padding: 0.15rem 0; break-inside: avoid; }

/* Startseite: Kopf */
.gross { font-size: 1.2rem; line-height: 1.5; word-spacing: 0.03em; }
.kopf { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; margin-top: 0.6rem; padding: 1.6rem 1.2rem 1.8rem; background: var(--nebel); border-radius: 32px; }
.dani { display: inline-flex; align-items: center; gap: 0.85rem; background: var(--weiss); border-radius: 999px; padding: 0.4rem 1.4rem 0.4rem 0.4rem; margin: 0 0 1.5rem; line-height: 1.3; font-size: 0.9rem; color: var(--leise); box-shadow: 0 12px 26px -18px rgba(23, 50, 79, 0.5); }
.dani img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; display: block; flex: none; }
.dani strong { display: block; color: var(--ink); font-weight: 800; font-size: 1.08rem; }
.kopf h1 { hyphens: manual; font-size: clamp(2.5rem, 11vw, 4.4rem); line-height: 1.04; letter-spacing: -0.04em; margin: 0 0 1.2rem; }
.strich { background: linear-gradient(var(--gelb), var(--gelb)) 0 92% / 100% 0.14em no-repeat; }
.kopf .gross { max-width: 30rem; color: var(--leise); margin: 0 0 1.5rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0 0 1rem; }
.knopf { display: inline-block; background: var(--ink); color: var(--weiss); font-weight: 600; padding: 0.8rem 1.4rem; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--ink); }
.knopf.bald { background: var(--weiss); border-color: var(--weiss); color: var(--ink); }
a.knopf:hover { background: #24466b; border-color: #24466b; color: var(--weiss); }
.kopf .klein { max-width: 28rem; }

/* Echtes Foto, davor das Telefon mit der App */
.buehne { position: relative; padding-bottom: 7rem; }
.buehne .foto { display: block; width: 92%; margin-left: auto; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.buehne .handy { position: absolute; left: 0; bottom: 0; width: min(33%, 13rem); }

/* Ein Bildschirm der App im Telefon */
.handy { background: var(--weiss); border: 7px solid var(--ink); border-radius: 2.2rem; overflow: hidden; line-height: 0; }
.handy img, .handy video { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1304; object-fit: cover; }

.teil { margin-top: 4.5rem; }
.teil > h2 { text-align: center; font-weight: 800; font-size: clamp(1.8rem, 6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.035em; margin-bottom: 0.7rem; }
.einleitung { color: var(--leise); max-width: 34rem; margin-left: auto; margin-right: auto; text-align: center; }

/* Kernfunktionen im Stil der App-Store-Bilder: je Funktion eine weiche Farbfläche mit Tatzen, Schild, großer Zeile und echten Karten der App */
.butter { --flaeche: #fff2d0; --marke: #ffe29b; --schrift: #6b4600; }
.blau { --flaeche: #e3f0fb; --marke: #c6def5; --schrift: #174a75; }
.himmel { --flaeche: #e9ecfa; --marke: #d1d8f4; --schrift: #2f3d7c; }
.salbei { --flaeche: #e3f2e8; --marke: #c3e3ce; --schrift: #175436; }
.nebel { --flaeche: #edf1f5; --marke: #dae2ea; --schrift: #17324f; }
.rosig { --flaeche: #fcebe9; --marke: #f3cbc4; --schrift: #8e2015; }
.mauve { --flaeche: #f0eaf8; --marke: #ddcfef; --schrift: #503573; }
.zeichen { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.zeichen .f { fill: #ffe29b; }
.zeichen .voll, .zeichen .voll * { fill: var(--ink); stroke: none; }
.alles { list-style: none; padding: 0; margin: 1.6rem 0 2.4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.alles li:last-child { grid-column: 1 / -1; }
.alles a { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; height: 100%; background: var(--flaeche); border-radius: 22px; padding: 1.1rem 0.7rem; text-align: center; text-decoration: none; line-height: 1.35; transition: transform 0.18s ease-out; }
.alles a:hover { transform: translateY(-3px); }
.plaettchen { display: grid; place-items: center; width: 3.7rem; height: 3.7rem; background: var(--weiss); border-radius: 18px; flex: none; box-shadow: 0 10px 20px -14px rgba(23, 50, 79, 0.5); }
.plaettchen .zeichen { width: 2.35rem; height: 2.35rem; }
.alles .was { display: flex; flex-direction: column; }
.alles strong { font-weight: 800; font-size: 1.05rem; color: var(--schrift); }
.alles .was span { font-size: 0.85rem; }
.tafel { position: relative; overflow: hidden; background: var(--flaeche); border-radius: 28px; padding: 2rem 1.1rem 2.2rem; margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; scroll-margin-top: 1rem; }
.tafel::before, .tafel::after { content: ""; position: absolute; width: 7rem; height: 7rem; background: var(--schrift); opacity: 0.07; pointer-events: none; -webkit-mask: url("bilder/tatze.svg") center / contain no-repeat; mask: url("bilder/tatze.svg") center / contain no-repeat; }
.tafel::before { right: -1.2rem; top: 1rem; transform: rotate(24deg); }
.tafel::after { left: -1.4rem; bottom: 1.5rem; transform: rotate(-22deg); }
.tafel-text { text-align: center; justify-self: center; max-width: 30rem; }
.schild { display: inline-flex; align-items: center; gap: 0.4rem; vertical-align: top; background: var(--marke); color: var(--schrift); font-weight: 800; font-size: 0.85rem; padding: 0.3rem 0.95rem; border-radius: 999px; margin: 0 0 0.8rem; }
.schild .zeichen { width: 1.25rem; height: 1.25rem; }
.schild .zeichen .f { fill: var(--weiss); }
.tafel h3 { font-weight: 800; font-size: clamp(1.7rem, 6.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 0.8rem; }
.schritte { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; counter-reset: schritt; }
.schritte li { counter-increment: schritt; background: var(--weiss); border-radius: 999px; padding: 0.35rem 0.8rem 0.35rem 0.4rem; font-weight: 600; font-size: 0.88rem; display: flex; align-items: center; gap: 0.45rem; }
.schritte li::before { content: counter(schritt); background: var(--gelb); border-radius: 50%; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; font-weight: 800; }
.tafel .hinweis { font-size: 0.85rem; color: var(--schrift); margin-top: 1rem; }
.karten { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 0.8rem; width: 100%; max-width: 24rem; justify-self: center; }
.karte { display: block; width: 100%; height: auto; border-radius: 18px; background: var(--weiss); box-shadow: 0 18px 34px -18px rgba(23, 50, 79, 0.45), 0 2px 8px rgba(23, 50, 79, 0.08); }
.karte.halb { width: calc(50% - 0.4rem); align-self: flex-start; }
.mitteilung { display: flex; gap: 0.75rem; padding: 0.85rem 0.95rem; font-size: 0.9rem; line-height: 1.4; }
.mitteilung img { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.mitteilung p { margin: 0; }
.mitteilung strong { display: block; }
.danach { margin-top: 1.4rem; }

/* Mit Skript gleiten die Karten herein, sobald die Tafel ins Bild kommt */
.tafel.wartet .karte { opacity: 0; transform: translateY(2.5rem) scale(0.96); }
.tafel.wartet .karte:nth-child(even) { transform: translate(2.5rem, 1rem) rotate(2.5deg); }
.tafel.wartet .karte:nth-child(odd) { transform: translate(-2.5rem, 1rem) rotate(-2.5deg); }
.tafel .karte { transition: opacity 0.5s ease-out, transform 0.65s cubic-bezier(0.2, 1.2, 0.3, 1); }
.tafel .karte:nth-child(2) { transition-delay: 0.12s; }
.tafel .karte:nth-child(3) { transition-delay: 0.24s; }
.tafel .karte:nth-child(4) { transition-delay: 0.36s; }
.tafel .karte:nth-child(n + 5) { transition-delay: 0.48s; }

/* Bewegtbilder: vier Telefone, laufen von selbst */
.schau { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; margin-top: 1.8rem; }
.bewegt { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.bewegt .handy { width: min(100%, 15rem); border-width: 5px; border-radius: 1.6rem; }
.bewegt video { pointer-events: none; -webkit-touch-callout: none; }
.bewegt figcaption { font-weight: 600; font-size: 0.95rem; text-align: center; line-height: 1.35; }
.mitte { text-align: center; }
.anhalten { font: inherit; font-size: 0.9rem; background: none; border: 0; color: var(--leise); text-decoration: underline; min-height: 44px; padding: 0.5rem 1rem; cursor: pointer; }
.anhalten[hidden] { display: none; }

/* Preise, Rechtliches, Hinweise */
.preise { list-style: none; padding: 0; margin: 1.6rem 0 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
.preise li { background: var(--nebel); border-radius: 22px; padding: 1.2rem 1rem; display: flex; flex-direction: column; text-align: center; }
.preise li:first-child { background: #fff2d0; }
.preis-name { font-weight: 600; color: var(--leise); }
.preis { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.2; }
.preis-zusatz { color: var(--leise); font-size: 0.95rem; }
.rechtliches { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
.rechtliches a { display: flex; flex-direction: column; height: 100%; border: 1.5px solid var(--linie); border-radius: 18px; padding: 0.9rem 1.1rem; text-decoration: none; line-height: 1.4; }
.rechtliches a:hover { border-color: var(--ink); }
.rechtliches strong { font-weight: 800; }
.rechtliches span { color: var(--leise); font-size: 0.9rem; }
.paar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 3rem; }
.paar section { border-top: 2px solid var(--ink); padding-top: 1.1rem; }

@media (min-width: 40rem) {
  :root { --rand: 2rem; }
  .alles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
  .alles li:last-child { grid-column: auto; }
  .alles a { flex-direction: row; text-align: left; align-items: center; gap: 0.9rem; padding: 1rem; }
  .tafel { padding: 2.6rem 2rem 2.8rem; }
  .schau { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .preise { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rechtliches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .paar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 56rem) {
  /* Tafeln: Text und Karten nebeneinander, abwechselnd links und rechts */
  .tafel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 3rem; padding: 3.5rem; }
  .tafel-text { text-align: left; }
  .tafel:nth-of-type(even) .tafel-text { order: 2; }
  .schritte { justify-content: flex-start; }
  .kopf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 3rem; padding: 3.2rem 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tafel .karte, .alles a { transition: none; }
}
