/* Gute Hunde Community. Farben, Schrift und Bausteine folgen der Marketing-Seite gute-hunde.de. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.503e7cbdb484.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.e5e6761eaecb.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.5b629bd8abb4.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.408ecc6630e8.woff2") format("woff2"); }

:root {
  --navy: #13294B; --navy-800: #1E3560; --navy-700: #3A476B; --navy-300: #A1B3CF;
  --navy-200: #C7D2E3; --navy-100: #E1E7F0; --navy-50: #F2F5F9;
  --amber: #FFB500; --amber-400: #FFBF20; --amber-100: #FFF3C6; --amber-50: #FFFBEB; --amber-800: #985008;
  --bg: #FFFFFF; --bg-subtle: #F7F8FA; --text: #13294B; --muted: #5B6B82; --border: #E2E6EC;
  --ok: #15803d; --error: #b91c1c;
  --radius: .75rem; --radius-sm: .5rem;
  --shadow: 0 4px 6px -1px rgb(19 41 75 / .06), 0 2px 4px -2px rgb(19 41 75 / .06);
  --shadow-lg: 0 20px 40px -12px rgb(19 41 75 / .15);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Fünf Schriftstufen für alles außer Überschriften. Neue Bausteine nehmen eine davon, keine eigenen Werte. */
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.3rem;
  --measure: 40rem; --wide: 72rem; --gut: clamp(1rem, 4.5vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
/* Navy statt Weiß: iOS färbt in der installierten App den Bereich unter der Statusleiste nach dem Hintergrund von html. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; background: var(--navy); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font); color: var(--text); background: var(--bg); font-size: var(--fs-lg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
.scroller { display: contents; }
/* Installierte App: Kopfleiste und Tabbar stehen fest, nur der Inhalt dazwischen scrollt und federt nach wie in
   einer nativen App. Im Browser scrollt weiter die ganze Seite (.scroller ist dort unsichtbar). */
@media (display-mode: standalone) {
  /* Die Seite selbst federt nicht mehr, nur .scroller. Sonst wandern Kopfleiste und Tabbar mit. */
  html, body { height: 100%; overflow: hidden; overscroll-behavior-y: none; }
  /* Fest am Bildschirm wie die Tabbar. 100dvh ist in der installierten App auf iOS höher als der sichtbare Bereich,
     dann rutscht das Ende der Seite unter die Tabbar. */
  body { position: fixed; inset: 0; height: auto; min-height: 0; }
  .head { flex: none; }
  .scroller { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); }
}
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 4.2vw, 2.1rem); }
h3 { font-size: var(--fs-lg); font-weight: 700; }
p, ul, ol { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2 * var(--gut), var(--wide)); margin-inline: auto; }
/* Im Querformat auf dem iPhone nicht unter die Kamera-Aussparung rutschen (viewport-fit=cover in base.html). */
@supports (padding: max(0px)) {
  .wrap { width: min(100% - 2 * max(var(--gut), env(safe-area-inset-left), env(safe-area-inset-right)), var(--wide)); }
}
.measure { max-width: var(--measure); }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--navy); padding: .6rem 1rem; z-index: 99; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Honigtopf gegen Bots: für Menschen und Screenreader unsichtbar. */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 3rem; padding: .8rem 1.5rem; border-radius: var(--radius); border: 0; font: inherit; font-weight: 700; font-size: var(--fs-md); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; line-height: 1.2; text-align: center; }
.btn:active { transform: scale(.98); }
.btn--amber { background: var(--amber); color: var(--navy); }
.btn--amber:hover { background: var(--amber-400); color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-800); color: #fff; }
.btn--ghost { background: var(--navy-50); color: var(--navy); }
.btn--ghost:hover { background: var(--navy-100); color: var(--navy); }

.label { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-700); margin-bottom: .6rem; }
.on-dark .label { color: var(--amber); }

/* Kopf */
.head { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; padding-top: env(safe-area-inset-top); }
.head__bar { display: flex; align-items: center; justify-content: space-between; height: 3.75rem; }
.head__logo { display: block; color: #fff; width: 5.4rem; }
.head__logo:hover { color: #fff; }
.head__logo svg { width: 100%; height: auto; }
.nav { display: none; }
.nav a { color: var(--navy-200); text-decoration: none; font-weight: 600; font-size: var(--fs-md); padding: .5rem .2rem; }
.nav a:hover, .nav a[aria-current=page] { color: #fff; }
.nav--setup { display: flex; align-items: center; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem; font-weight: 700; font-size: var(--fs-md); padding: .5rem .2rem; min-height: 2.75rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu__icon { width: 1.4rem; height: 1.4rem; }
.menu__panel { position: absolute; right: 0; top: calc(100% + .5rem); background: #fff; color: var(--navy); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 14rem; padding: .5rem; display: grid; }
.menu__panel a { text-decoration: none; padding: .8rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.menu__panel a:hover, .menu__panel a[aria-current=page] { background: var(--navy-50); color: var(--navy); }
/* Dein Menü hinter dem eigenen Bild oben rechts, auf allen Breiten. */
.menu--me summary { padding: .25rem 0; }
.menu--me .menu__panel { min-width: 16.5rem; }
.menu--me .avatar { border: 2px solid var(--amber); }
.menu--me summary:hover .avatar, .menu--me[open] .avatar { border-color: #fff; }
.menu__who { margin: 0; padding: .6rem 1rem .7rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; font-size: var(--fs-sm); color: var(--muted); overflow-wrap: anywhere; }
.menu__legal { display: none; border-top: 1px solid var(--border); margin-top: .4rem; padding-top: .4rem; }
.menu__panel .menu__legal a { font-weight: 500; font-size: var(--fs-sm); color: var(--muted); padding: .6rem 1rem; }
/* Eingeloggt gibt es keinen Fuß wie auf einer Website. Impressum und Datenschutz stehen als ruhige Zeile
   unter dem Profil und in den Einstellungen, von jeder Seite zwei Tipps entfernt. Am Rechner bleibt die Zeile
   auf jeder Seite, dort stört sie nicht. Seiten ohne Leiste (Login, erstes Profil, Bezahlung) behalten den Fuß. */
body:has(.tabbar) .foot { background: none; color: var(--muted); margin-top: 3rem; padding: 0 0 1.6rem; }
body:has(.tabbar) .foot p, body:has(.tabbar) .foot .foot__logo { display: none; }
body:has(.tabbar) .foot .foot__legal { border: 0; margin: 0; padding: 0; justify-content: center; color: var(--muted); }
body:has(.tabbar) .foot a { color: var(--muted); }
body:has(.tabbar) .foot a:hover { color: var(--navy); }
@media (max-width: 51.99rem) {
  .menu__legal { display: grid; }
  body:has(.menu__legal) .foot { display: none; }
  body:has(.tabbar):not([data-section=profil]) .foot { display: none; }
}
/* Leiste unten auf dem Handy. Ab 52rem übernimmt die Navigation oben. */
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 20; height: calc(var(--tabbar-h) + var(--tabbar-safe)); display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--border); padding-bottom: var(--tabbar-safe); }
/* Der Home-Balken braucht nicht den ganzen sicheren Bereich, die Leiste darf etwas hineinragen. */
:root { --tabbar-h: 4.5rem; --tabbar-safe: max(.25rem, calc(env(safe-area-inset-bottom) - .9rem)); }
.tabbar a { display: grid; justify-items: center; gap: .2rem; padding: .5rem .2rem .55rem; color: var(--muted); text-decoration: none; font-size: var(--fs-xs); font-weight: 700; }
.tabbar a .icon { width: 1.4rem; height: 1.4rem; }
.tabbar a { position: relative; }
.tabbar a[aria-current=page] { color: var(--navy); }
/* Der aktive Bereich trägt einen gelben Strich am oberen Rand, damit er auf einen Blick erkennbar ist. */
.tabbar a[aria-current=page]:not(.tabbar__upload)::before { content: ""; position: absolute; top: -1px; left: 50%; width: 1.8rem; height: 3px; margin-left: -.9rem; border-radius: 0 0 3px 3px; background: var(--amber); }
.tabbar a[aria-current=page] .icon { stroke-width: 2.4; }
.tabbar .tabbar__upload .icon { width: 2.1rem; height: 2.1rem; padding: .35rem; margin-top: -.15rem; border-radius: 999px; background: var(--amber); color: var(--navy); }
body:has(.tabbar) { padding-bottom: calc(var(--tabbar-h) + var(--tabbar-safe)); }
@media (min-width: 52rem) {
  .head__logo { width: 6.2rem; }
  .menu:not(.menu--me) { display: none; }
  .nav { display: flex; align-items: center; gap: 1.6rem; }
  .nav:has(+ .menu--me) { margin-left: auto; margin-right: 1.6rem; }
  .tabbar { display: none; }
  body:has(.tabbar) { padding-bottom: 0; }
}

/* Fuß */
.foot { background: var(--navy); color: var(--navy-200); margin-top: 4rem; padding: 2.5rem 0 2rem; font-size: var(--fs-md); }
.foot a { color: var(--navy-200); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__logo { width: 6.5rem; color: #fff; margin-bottom: 1rem; }
.foot__name { white-space: nowrap; }
/* Auf dem Handy steht das Logo schon oben in der Kopfleiste, der Fuß bleibt knapp. */
@media (max-width: 51.99rem) {
  .foot { margin-top: 2.5rem; padding: 1.5rem 0; }
  .foot__logo { display: none; }
  .foot p { margin: 0; }
  .foot__legal { margin-top: 1rem; padding-top: 1rem; }
}
.foot__legal { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 1.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: var(--fs-sm); color: var(--navy-300); }

/* Abschnitte */
.section { padding: 3rem 0; }
.section--subtle { background: var(--bg-subtle); }
.section__head { margin-bottom: 1.6rem; max-width: var(--measure); }
.section__head p { color: var(--muted); margin: .7rem 0 0; }
@media (min-width: 52rem) { .section { padding: 4.5rem 0; } }

.hero { background: var(--navy); color: #fff; padding: 2.6rem 0 3rem; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__lede { color: var(--navy-200); font-size: var(--fs-lg); margin: 1rem 0 1.6rem; max-width: 34rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 1.6rem 0 0; color: var(--navy-200); font-size: var(--fs-sm); padding: 0; list-style: none; }
.hero__proof li::before { content: "✓"; color: var(--amber); font-weight: 800; margin-right: .4rem; }
@media (min-width: 52rem) { .hero { padding: 4.5rem 0 5rem; } }

.grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1.2rem 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.card__kicker { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-800); }
.card__title { font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; }
.card__text { color: var(--muted); font-size: var(--fs-md); margin: 0; line-height: 1.5; }

.box { border-radius: var(--radius); padding: 1.5rem; background: var(--bg-subtle); border: 1px solid var(--border); }
.box h1 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-bottom: .7rem; }
.box p:last-child { margin-bottom: 0; }
.box--amber { background: var(--amber-50); border-color: var(--amber-100); }
.install__share { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; }
.box .btn { margin-top: .4rem; }

/* Schmale Seiten für Meldungen wie "Danke" oder "Bestätigt" */
.notice { padding: 3rem 0 1rem; }
.notice .box { max-width: var(--measure); }

/* Wartelisten-Formular */
.signup { display: grid; gap: .6rem; max-width: 30rem; }
.signup__row { display: grid; gap: .6rem; }
@media (min-width: 30rem) { .signup__row { grid-template-columns: 1fr auto; } }
.signup input[type=email] { width: 100%; min-height: 3rem; padding: .8rem 1rem; font: inherit; font-size: var(--fs-md); color: var(--navy); background: #fff; border: 2px solid var(--border); border-radius: var(--radius-sm); }
.signup input[type=email]:focus { outline: none; border-color: var(--amber); }
.signup__note { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.signup__msg { font-size: var(--fs-md); margin: 0; font-weight: 600; }
.signup__msg[data-state=ok] { color: var(--ok); }
.signup__msg[data-state=error] { color: var(--error); }
.on-dark .signup input[type=email] { border-color: transparent; }
.on-dark .signup input[type=email]:focus { border-color: var(--amber); }
.on-dark .signup__note { color: var(--navy-300); }
.on-dark .signup__note a { color: var(--navy-200); }
.on-dark .signup__msg[data-state=ok] { color: #4ade80; }
.on-dark .signup__msg[data-state=error] { color: #fca5a5; }
.signup.htmx-request .btn { opacity: .6; pointer-events: none; }

/* ---------- Mitgliederbereich ---------- */

.page { padding: 2rem 0 1rem; }
.page__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.page__head h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.page__head p { color: var(--muted); margin: .4rem 0 0; }
.narrow { max-width: 36rem; }
.stack > * + * { margin-top: 2.5rem; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.btn--small { min-height: 2.4rem; padding: .5rem 1rem; font-size: var(--fs-sm); border-radius: var(--radius-sm); }
.btn--link { background: none; color: var(--muted); padding: .5rem .2rem; min-height: 0; font-weight: 600; text-decoration: underline; }
.btn--link:hover { color: var(--error); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.nav form, .menu__panel form { display: contents; }
.nav button { background: none; border: 0; font: inherit; cursor: pointer; color: var(--navy-200); font-weight: 600; font-size: var(--fs-md); padding: .5rem .2rem; }
.nav button:hover { color: #fff; }
.nav .btn--amber { min-height: 2.5rem; padding: .55rem 1.1rem; font-size: var(--fs-sm); color: var(--navy); }
.menu__panel button { background: none; border: 0; font: inherit; cursor: pointer; text-align: left; color: var(--navy); padding: .8rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.menu__panel button:hover { background: var(--navy-50); }

/* Meldungen */
.flash { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .5rem; }
.flash li { padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--amber-50); border: 1px solid var(--amber-100); border-left: 4px solid var(--amber); font-weight: 600; font-size: var(--fs-md); }
.flash li.error { background: #fef2f2; border-color: #fecaca; border-left-color: var(--error); }

/* Formulare */
.form { display: grid; gap: 1.2rem; }
.more__body { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
.more > summary { cursor: pointer; font-weight: 700; color: var(--navy-700); }
.more--inline { margin-top: .7rem; }
.more--inline > summary { font-size: var(--fs-sm); }
.more--inline .choices { margin-top: .6rem; }
.field { display: grid; gap: .35rem; }
.field > label, .field legend { font-weight: 700; font-size: var(--fs-md); padding: 0; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field input[type=text], .field input[type=email], .field input[type=number], .field input[type=search], .field input[type=date], .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .9rem; font: inherit; font-size: var(--fs-md); color: var(--navy); background: #fff; border: 2px solid var(--border); border-radius: var(--radius-sm);
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); }
.field__help { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.field__error, .form__error { font-size: var(--fs-sm); color: var(--error); font-weight: 600; margin: 0; list-style: none; padding: 0; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--error); }
.field-row { display: grid; gap: 1.2rem; }
@media (min-width: 34rem) { .field-row { grid-template-columns: 1fr 1fr; } }

/* Auswahl als Chips: Checkbox bleibt bedienbar, sieht aber aus wie ein Etikett */
.choices { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.choices div { display: contents; }
.choices label { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; background: var(--navy-50); border: 2px solid transparent; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; user-select: none; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label:has(input:checked) { background: var(--navy); color: #fff; }
.choices label:has(input:focus-visible) { border-color: var(--amber); }

/* Themen-Etiketten und Filter */
.tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: .5rem 0 0; }
.tags li { padding: .2rem .65rem; border-radius: 999px; background: var(--navy-50); color: var(--navy-700); font-size: var(--fs-xs); font-weight: 700; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; margin: 0 0 1.4rem; scrollbar-width: none; }
.chips a { flex: none; padding: .5rem .9rem; border-radius: 999px; background: var(--navy-50); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.chips a[aria-current=true] { background: var(--navy); color: #fff; }
.chips__count { display: inline-block; min-width: 1.2rem; margin-left: .15rem; padding: 0 .3rem; border-radius: 999px; background: rgb(19 41 75 / .1); font-size: var(--fs-xs); text-align: center; }
.chips a[aria-current=true] .chips__count { background: rgb(255 255 255 / .2); }
/* Ein Chip zum Aufklappen: Auswahlliste des Systems, die aussieht wie die Chips daneben. Gesetzt ist sie dunkel. */
.chipselect { flex: none; position: relative; }
.chipselect select { appearance: none; -webkit-appearance: none; height: 100%; min-height: 2.35rem; padding: .5rem 2rem .5rem .9rem; border: 0; border-radius: 999px; background: var(--navy-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313294B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center / .9rem; color: var(--navy); font: inherit; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; max-width: 14rem; text-overflow: ellipsis; }
.chipselect.is-set select { background-color: var(--navy); color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.chipselect select:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
/* Suche und Filter: überall dasselbe Paar. Oben ein Suchfeld, darunter eine Reihe Chips. */
.filters { margin: 0 0 1.4rem; }
.filters .chips { margin: 0; align-items: stretch; }
@media (min-width: 52rem) { .filters .chips { flex-wrap: wrap; overflow: visible; } }
.filters__search { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; padding: 0 .9rem; min-height: 2.9rem; border-radius: 999px; background: var(--navy-50); color: var(--muted); max-width: 36rem; }
.filters__search .icon { flex: none; width: 1.15rem; height: 1.15rem; }
.filters__search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: var(--fs-md); color: var(--navy); padding: .5rem 0; }
.filters__search input:focus { outline: none; }
.filters__search:focus-within { box-shadow: 0 0 0 2px var(--amber); }

/* Menschen und Hunde */
.avatar { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--navy); color: var(--amber); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-lg); flex: none; }
.avatar--lg { width: 4.5rem; height: 4.5rem; font-size: 1.6rem; }
.avatar--sm { width: 2.2rem; height: 2.2rem; font-size: var(--fs-sm); }
.avatar--dog { background: var(--navy-100); color: var(--navy-700); }
img.avatar { object-fit: cover; height: 3.2rem; }
img.avatar--lg { height: 4.5rem; }
img.avatar--sm { height: 2.2rem; }
.person--link { text-decoration: none; margin-top: 1.2rem; font-weight: 600; }
.person--link > span { display: grid; }
.person { display: flex; align-items: center; gap: .9rem; }
.person__name { font-weight: 800; font-size: var(--fs-lg); line-height: 1.25; }
.person__meta { color: var(--muted); font-size: var(--fs-sm); }
a.card { text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--navy-200); box-shadow: var(--shadow); color: inherit; }
.dog__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; }
.dog__meta { color: var(--muted); font-size: var(--fs-sm); margin: .15rem 0 0; }
.prose-text { white-space: pre-line; max-width: var(--measure); }
.empty { padding: 1.6rem; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty .btn { margin-top: .8rem; }

.section__head--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; max-width: none; }
/* Eigener Knopf statt des Datei-Felds des Browsers (config/widgets.py). Das Input liegt unsichtbar im Label. */
.filepick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.filepick__btn { position: relative; cursor: pointer; }
.filepick__btn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.filepick__btn:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.filepick__name { font-size: var(--fs-sm); color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.field .filepick input[type=file] { padding: 0; border: 0; }
.field input[type=file] { width: 100%; padding: .6rem; font: inherit; font-size: var(--fs-md); background: #fff; border: 2px dashed var(--border); border-radius: var(--radius-sm); }
.file-preview { display: flex; align-items: center; gap: .8rem; margin-top: .4rem; }
.file-preview video { width: 7rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); background: var(--navy-50); }
.file-preview p { margin: 0; font-size: var(--fs-sm); color: var(--muted); overflow-wrap: anywhere; }
.field input[type=file]::file-selector-button { font: inherit; font-weight: 700; margin-right: .8rem; padding: .45rem .9rem; border: 0; border-radius: var(--radius-sm); background: var(--navy-50); color: var(--navy); cursor: pointer; }
.crop { margin-top: .8rem; }
.crop__stage { max-width: 22rem; height: 22rem; max-height: 70vw; background: var(--navy-50); border-radius: var(--radius-sm); overflow: hidden; }
.crop__stage img { display: block; max-width: 100%; }
/* Der Ausschnitt wird rund gezeigt, so wie das Bild später im Profil erscheint. */
.crop .cropper-view-box, .crop .cropper-face { border-radius: 50%; }
.photo-field { display: flex; align-items: center; gap: 1rem; }
.photo-field > div { flex: 1; min-width: 0; display: grid; gap: .5rem; }
.check { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }

/* Hunde */
.dogcard { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.dogcard__photo, .doghero__photo { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--navy-50); color: var(--navy-300); font-weight: 800; font-size: 3rem; text-decoration: none; }
.dogcard__photo img, .doghero__photo img { width: 100%; height: 100%; object-fit: cover; }
.dogcard__body { padding: 1rem 1.2rem 1.2rem; }
.dogcard h3 a { text-decoration: none; }
.doghero { display: grid; gap: 1.5rem; }
.doghero__photo { border-radius: var(--radius); overflow: hidden; font-size: 5rem; }
.doghero .page__head { margin-bottom: .6rem; align-items: start; }
@media (min-width: 46rem) { .doghero { grid-template-columns: minmax(0, 22rem) 1fr; align-items: start; gap: 2.5rem; } }

/* Videos */
.icon { width: 1.1em; height: 1.1em; flex: none; }
.vcard { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.vcard:hover { border-color: var(--navy-200); box-shadow: var(--shadow); color: inherit; }
/* Bild und Video liegen im festen Rahmen, damit Hochkant-Aufnahmen die Karte nicht in die Länge ziehen. */
.vcard__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.vcard__thumb video, .vcard__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vcard__blank { display: grid; place-items: center; width: 100%; height: 100%; background: var(--navy); color: #fff; }
.vcard__blank .icon { width: 2.4rem; height: 2.4rem; }
.vcard__thumb .badge { position: absolute; left: .7rem; top: .7rem; }
.vcard__body { padding: .9rem 1.1rem 1.1rem; display: grid; gap: .25rem; }
.vcard__title { font-weight: 700; line-height: 1.3; }
.vcard__meta { color: var(--muted); font-size: var(--fs-sm); }
.vcard__counts { display: flex; flex-wrap: wrap; margin-top: .3rem; color: var(--navy-700); font-size: var(--fs-sm); font-weight: 600; }
.vcard__counts > span + span::before { content: "·"; margin: 0 .4rem; color: var(--muted); }
.watch { max-width: 52rem; }
.player { background: #000; border-radius: var(--radius); overflow: hidden; }
.player video { width: 100%; max-height: 75vh; }
/* Der Rahmen hat die Form des Videos. Hochkant-Videos füllen so das Handy, statt winzig im Querformat zu stecken. */
.player__frame { --w: 16; --h: 9; position: relative; aspect-ratio: var(--w) / var(--h); width: min(100%, calc(82vh * var(--w) / var(--h))); margin-inline: auto; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__note { margin: 0; padding: 2.2rem 1.4rem; color: #fff; text-align: center; }
.watch__head { margin: 1.2rem 0 0; display: flex; align-items: start; justify-content: space-between; gap: .8rem; }
.watch__head h1 { font-size: clamp(1.4rem, 4.5vw, 2rem); margin: 0; }
.watch__by { display: inline-flex; align-items: center; gap: .6rem; margin: .7rem 0 0; color: var(--navy); text-decoration: none; font-size: var(--fs-md); }
.watch__meta { margin: .6rem 0 0; font-size: var(--fs-sm); color: var(--muted); }
.watch__meta a { color: inherit; }
.watch .prose-text { margin-top: 1rem; }
/* Menü „⋯“ für Seltenes: bearbeiten, melden, löschen. */
.more { position: relative; flex: none; }
.more summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--muted); }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover, .more[open] > summary { background: var(--navy-50); color: var(--navy); }
.more summary .icon { width: 1.4rem; height: 1.4rem; }
.more__panel { position: absolute; right: 0; top: calc(100% + .3rem); z-index: 5; min-width: 12rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; display: grid; }
.more__panel a, .more__panel button, .more__confirm summary { display: block; width: auto; height: auto; padding: .7rem .9rem; border-radius: var(--radius-sm); text-align: left; font: inherit; font-weight: 600; font-size: var(--fs-md); color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer; place-items: initial; }
.more__panel a:hover, .more__panel button:hover { background: var(--navy-50); }
.more__panel form { margin: 0; }
.more__confirm form { padding: 0 .9rem .7rem; }
.more--small { position: absolute; top: -.4rem; right: 0; }
.more--small summary { width: 2rem; height: 2rem; }
.comment__body { position: relative; }
.comment__head { padding-right: 2.2rem; }
/* Abstimmung auf der Videoseite: ein Kasten mit Text links und Knopf rechts. */
.ballot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: 1.2rem 0 0; padding: .8rem 1rem; border-radius: var(--radius); background: var(--navy-50); }
.ballot__what { margin: 0; display: grid; gap: .1rem; font-weight: 600; }
.ballot form { margin: 0; }
.reactions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 0; }
.reaction { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--navy-100); background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: var(--fs-md); cursor: pointer; }
.reaction:hover { border-color: var(--navy-300); }
.reaction[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.reaction[aria-pressed=true] .icon { fill: var(--amber); stroke: var(--amber); }
.reaction__count { font-weight: 800; }
.comments { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comments h2 { font-size: var(--fs-xl); margin-bottom: 1.2rem; }
.comments__list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 1.2rem; }
.comment { display: flex; gap: .8rem; align-items: start; }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; font-size: var(--fs-sm); }
.comment__head a { font-weight: 700; text-decoration: none; }
.comment p { margin: .2rem 0 0; }
.comment .btn--link { padding: .2rem 0; }
.comments__form textarea { min-height: 5rem; }
.thread { display: grid; gap: .8rem; }
.thread--trainer { padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--navy-50); border: 1px solid var(--navy-100); }
.thread__replies { list-style: none; margin: 0; padding: 0 0 0 1.2rem; border-left: 2px solid var(--border); display: grid; gap: .9rem; }
.thread__reply { padding-left: 1.2rem; }
.thread__reply summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--navy-700); }
.thread__reply .form { margin-top: .6rem; }
.thread__reply textarea { min-height: 3.5rem; }
.vcard__text { margin: .2rem 0 0; color: var(--text); font-size: var(--fs-sm); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.vtags--small { margin: .3rem 0 0; }
.vtags--small li { font-size: var(--fs-xs); padding: .1rem .5rem; }
.vcard__answered { font-size: var(--fs-sm); font-weight: 700; color: var(--navy-700); }
.mcard { display: grid; gap: .7rem; align-content: start; }
.mcard .badge { width: fit-content; }
.mcard__dog { display: flex; gap: .6rem; align-items: start; text-decoration: none; font-size: var(--fs-sm); }
.mcard__topics { display: block; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.howto summary { cursor: pointer; font-weight: 700; }
.howto__steps { margin: .8rem 0 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.howto .actions { margin-top: 1rem; }
.vtags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.vtags:empty { display: none; }
.vtags li { padding: .2rem .65rem; border-radius: 999px; background: var(--navy-50); color: var(--navy); font-size: var(--fs-sm); font-weight: 700; }
.vtags a { text-decoration: none; color: inherit; }
.vtags .vtags__topic { background: var(--navy-50); color: var(--navy-700); }
.vtags .vtags__stranger { background: #fff; border: 1px dashed var(--navy-300); }
.upload__progress { display: none; gap: .5rem; font-size: var(--fs-sm); font-weight: 600; }
.upload.htmx-request .upload__progress, .upload.is-uploading .upload__progress { display: grid; }
.upload__progress progress { width: 100%; height: .7rem; accent-color: var(--amber); }
.upload.htmx-request .btn { opacity: .6; pointer-events: none; }
.badge.badge--show { background: var(--navy-100); color: var(--navy); }
.badge.badge--question { background: var(--navy); color: #fff; }
.badge.badge--team { background: var(--navy); color: #fff; }

/* Mitgliedschaft */
.facts { display: grid; gap: .6rem; margin: 1rem 0 0; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: #dcfce7; color: #166534; }
.badge--warn { background: var(--amber-100); color: var(--amber-800); }
.badge--off { background: var(--navy-100); color: var(--navy-700); }
.testmode { margin-top: 1.2rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--navy-50); font-size: var(--fs-sm); color: var(--navy-700); }

/* ---------- Fragebogen, Konto, Live, Runde, Team ---------- */

@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
.stack--tight > * + * { margin-top: 1.2rem; }
.box__title { font-size: var(--fs-lg); margin: 0 0 .5rem; }
.box__title a { text-decoration: none; }
.box--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.box--navy .label { color: var(--amber); }
.box--navy a { color: #fff; }
.box--navy .small { color: var(--navy-200); }
.box--danger { background: #fef2f2; border-color: #fecaca; }
.btn--danger { background: var(--error); color: #fff; }
.btn--danger:hover { background: #991b1b; color: #fff; }
.actions--between { justify-content: space-between; }
.actions--profilehead { margin: 0; gap: .5rem; }
.btn--icon { padding: .5rem; min-width: 2.4rem; }
.btn--icon .icon { width: 1.25rem; height: 1.25rem; }
/* Einstellungen: Zeilen wie in den Einstellungen des Handys. Eine Zeile, ein Ziel. */
.settings__title { margin: 1.8rem 0 .5rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-700); }
.settings { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.settings li + li { border-top: 1px solid var(--border); }
.settings li > a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding: .7rem 1.1rem; text-decoration: none; }
.settings li > a::after { content: "›"; flex: none; font-size: var(--fs-xl); line-height: 1; color: var(--navy-300); }
.settings li > a:hover { background: var(--navy-50); color: var(--navy); }
.settings li > a > span { display: grid; min-width: 0; }
.settings li > a > span > span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.settings--box { padding: 1rem 1.1rem; }
.settings--box p { margin: 0 0 .8rem; font-size: var(--fs-md); }
.settings--box .actions { margin: 0 0 .8rem; }
.settings--box summary { cursor: pointer; }
.settings--box details .field { margin: .6rem 0; }
.settings__end { margin-top: 2rem; }
.check--block { align-items: flex-start; font-weight: 500; font-size: var(--fs-md); line-height: 1.45; }
.check--block input { margin-top: .2rem; flex: none; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
code { background: var(--navy-50); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; word-break: break-all; }
.monthyear { display: grid; grid-template-columns: 3fr 2fr; gap: .6rem; max-width: 24rem; }
.origin:not(:has(option[value=tierschutz_ausland]:checked)) .origin__country { display: none; }
.field input[type=month] { width: 100%; min-height: 3rem; padding: .7rem .9rem; font: inherit; font-size: var(--fs-md); color: var(--navy); background: #fff; border: 2px solid var(--border); border-radius: var(--radius-sm); }

.progress { height: .45rem; background: var(--navy-100); border-radius: 999px; overflow: hidden; margin-bottom: 1.4rem; }
.progress__bar { height: 100%; background: var(--amber); border-radius: 999px; transition: width .3s; }
.survey { margin-top: 1rem; }
.field .survey__title { display: block; font-size: clamp(1.4rem, 4.5vw, 1.9rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; margin-bottom: .5rem; padding: 0; }
.survey .choices { margin-top: .9rem; }
.survey .choices label { padding: .7rem 1.1rem; font-size: var(--fs-md); }
.choices--scale label { min-width: 3rem; justify-content: center; }
.scale-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--fs-sm); margin-top: .5rem; max-width: 36rem; }
.survey__photo { width: 9rem; height: 9rem; object-fit: cover; border-radius: var(--radius); margin: .6rem 0; }
.survey__foot { margin-top: 2rem; }
.flash li.info { background: var(--navy-50); border-color: var(--navy-100); border-left-color: var(--navy); }

.steps { padding-left: 1.2rem; margin: 0 0 1rem; display: grid; gap: .4rem; }
.qr svg { width: 12rem; height: 12rem; background: #fff; border-radius: var(--radius-sm); }

.calls { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.call__when { font-weight: 700; margin: 0 0 .6rem; }
.box--navy .call__when { color: #fff; }
.votes-left { padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--navy-50); border: 1px solid var(--navy-100); margin-bottom: 1.2rem; }
article.vcard:hover { box-shadow: none; border-color: var(--border); }
.vcard a.vcard__thumb { display: block; }
.vcard a.vcard__title { text-decoration: none; }
.vcard--selected { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.vcard__vote { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .6rem; }
.vcard__votes { font-weight: 800; }
.vcard__vote .reaction { min-height: 2.4rem; padding: .35rem .9rem; font-size: var(--fs-sm); }
.reaction:disabled { opacity: .45; cursor: not-allowed; }
.badge--rank { background: var(--navy); color: #fff; }
.submit-row { display: grid; gap: .6rem; margin-top: .6rem; }
@media (min-width: 34rem) { .submit-row { grid-template-columns: 1fr auto; align-items: center; } }

.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin: 0; }
.kpis div { padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); }
.kpis dt { color: var(--muted); font-size: var(--fs-sm); }
.kpis dd { margin: 0; font-size: 2rem; font-weight: 800; line-height: 1.2; }
.kpis span { font-size: var(--fs-sm); color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.table th { text-align: left; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .5rem .6rem; border-bottom: 2px solid var(--border); }
.table td { padding: .7rem .6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr.is-selected { background: var(--amber-50); }
.table .reaction { min-height: 2.2rem; padding: .3rem .8rem; font-size: var(--fs-sm); }
#rangliste { overflow-x: auto; }
.callqueue { list-style: none; padding: 0; margin: 0; display: grid; gap: 3rem; max-width: 60rem; }
.callqueue h2 { margin-bottom: .2rem; }
.stat__title { font-size: var(--fs-md); line-height: 1.3; }
.bars { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .45rem; }
.bars li { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 2rem; align-items: center; gap: .6rem; font-size: var(--fs-sm); }
.bars__track { height: .6rem; background: var(--navy-50); border-radius: 999px; overflow: hidden; }
.bars__track span { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
.bars__count { text-align: right; font-weight: 700; }
.quotes { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .5rem; font-size: var(--fs-sm); }
.quotes li { padding: .6rem .8rem; background: var(--navy-50); border-radius: var(--radius-sm); white-space: pre-line; }
/* Mit sieben Einträgen braucht die Navigation mehr Platz, darunter bleibt das Menü. */
@media (min-width: 52rem) and (max-width: 66rem) { .nav { gap: 1rem; } .nav a, .nav button { font-size: var(--fs-sm); } }

/* Einwilligungs-Banner, übernommen von der Website */
.consent { position: fixed; z-index: 50; left: .75rem; right: .75rem; bottom: .75rem; max-width: 30rem; margin-left: auto; background: #fff; color: var(--navy); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.1rem 1.2rem; font-size: var(--fs-sm); }
.consent h2 { font-size: var(--fs-md); margin-bottom: .4rem; }
.consent p { margin: 0 0 .7rem; color: var(--muted); }
.consent__more summary { cursor: pointer; font-weight: 700; margin-bottom: .5rem; }
.consent__more label { display: flex; gap: .5rem; align-items: center; margin: .35rem 0; }
.consent__more .btn { margin: .4rem 0 .6rem; min-height: 2.5rem; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.consent__actions .btn { min-height: 2.75rem; padding: .6rem .8rem; font-size: var(--fs-sm); }

/* Startseite: eine Aufgabe, die Woche, der Feed */
.page__head + .nextstep { margin-top: 0; }
/* Startseite: links, was jetzt dran ist, rechts die Community. Auf dem Handy untereinander. */
.stack--start > * + * { margin-top: 1.4rem; }
.startgrid { display: grid; gap: 2rem; }
.startgrid > * { min-width: 0; }
@media (min-width: 60rem) { .startgrid { grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); gap: 3rem; align-items: start; } }
.startgrid .section__head { margin-bottom: .8rem; }
.startgrid .section__head h2 { font-size: var(--fs-xl); }
.startgrid .tiles { grid-template-columns: repeat(3, 1fr); }
/* Auf dem Handy reicht eine Reihe, am Rechner ist rechts Platz für zwei. */
@media (max-width: 59.99rem) { .startgrid .tiles li:nth-child(n+4) { display: none; } }
.install { padding: .9rem 1.1rem; border: 1px dashed var(--border); border-radius: var(--radius); font-size: var(--fs-sm); color: var(--muted); }
.install p { margin: 0 0 .5rem; }
.install strong { color: var(--navy); }
.install__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.install__hide { background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-sm); color: var(--muted); text-decoration: underline; cursor: pointer; }
.nextstep .box__title { font-size: clamp(1.3rem, 3.5vw, 1.6rem); }
.nextstep .actions { align-items: center; }
.week { display: grid; gap: .8rem; }
@media (min-width: 40rem) { .week { grid-template-columns: repeat(2, 1fr); } }
.week__item { display: grid; gap: .15rem; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.week__item .label { margin-bottom: .2rem; }
.week__item:hover { border-color: var(--navy-300); }
.vcard__thumb .vcard__round { left: auto; right: .7rem; background: #fff; color: var(--navy); }
.feed__more { margin-top: 1.4rem; font-weight: 700; }

/* Diese Woche: Einreichen, Abstimmen, Call als Zeitleiste. */
.timeline { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0; }
.timeline__step { position: relative; display: grid; gap: .1rem; padding: 0 0 1rem 1.9rem; color: var(--muted); }
.timeline__step::before { content: ""; position: absolute; left: .3rem; top: .35rem; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--navy-200); background: #fff; }
.timeline__step:not(:last-child)::after { content: ""; position: absolute; left: .67rem; top: 1.3rem; bottom: .1rem; width: 2px; background: var(--navy-100); }
.timeline__step strong { color: var(--text); font-weight: 600; }
.timeline__when { font-size: var(--fs-sm); }
.timeline__step.is-now::before { border-color: var(--amber); background: var(--amber); }
.timeline__step.is-now strong { font-weight: 800; }
.timeline__step.is-now .timeline__when { color: var(--amber-800); font-weight: 700; }
.timeline__step.is-done::before { border-color: var(--navy-300); background: var(--navy-300); }
.timeline__step.is-done strong { color: var(--muted); }
.box .timeline { margin-bottom: 1rem; }
.ask { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.ask summary { cursor: pointer; font-weight: 700; }
.ask form { display: grid; gap: .9rem; margin-top: .9rem; }
.vcard--question .vcard__body { gap: .45rem; }
.vcard__kicker { margin: 0; }
p.vcard__title { margin: 0; }

/* Erste Schritte auf der Startseite */
.first-steps { padding: 1rem 1.25rem; }
.first-steps__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; cursor: pointer; list-style: none; }
.first-steps__head::-webkit-details-marker { display: none; }
.first-steps__head .label { margin: 0; }
.first-steps[open] .first-steps__head { margin-bottom: .8rem; }
.first-steps:not([open]) .first-steps__head .small::after { content: " ›"; }
.first-steps__list { margin: 0 0 .8rem; padding: 0; list-style: none; display: grid; gap: .5rem; }
.first-steps__list li { display: flex; align-items: center; gap: .7rem; }
.first-steps__list li::before { content: ""; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--border); }
.first-steps__list li.is-done { color: var(--muted); text-decoration: line-through; }
.first-steps__list li.is-done::before { border-color: var(--amber); background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313294B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7.5'/%3E%3C/svg%3E") center / .8rem no-repeat; }
.first-steps__list a { font-weight: 700; }
.first-steps__hide { background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-sm); color: var(--muted); text-decoration: underline; cursor: pointer; }
.timeline__mine { display: block; font-size: var(--fs-sm); color: var(--navy-700); margin-top: .15rem; }
.badge.badge--new { background: var(--navy-50); color: var(--navy-700); }

/* ---------- Konzept 2026: Kopfleiste, Feed, Lernen, Austausch, Profil ---------- */

/* Kopfleiste: Glocke und Sprechblase mit Zähler, Hochladen als Knopf */
.headicons { display: flex; align-items: center; gap: .2rem; margin-left: auto; margin-right: -.4rem; }
.headicon { position: relative; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; color: var(--navy-200); }
.headicon:hover { color: #fff; background: rgb(255 255 255 / .08); }
.headicon .icon { width: 1.45rem; height: 1.45rem; }
/* Glocke, Nachrichten und das eigene Bild zeigen, wenn man gerade dort ist. */
.headicon[aria-current=page] { color: #fff; background: rgb(255 255 255 / .14); }
.headicon--me { display: none; margin-left: .3rem; }
.headicon--me .avatar { border: 2px solid transparent; }
.headicon--me:hover .avatar, .headicon--me[aria-current=page] .avatar { border-color: var(--amber); }
.headicon--me[aria-current=page] { background: none; }
.count { display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: var(--amber); color: var(--navy); font-size: var(--fs-xs); font-weight: 800; line-height: 1; }
.headicon .count { position: absolute; top: .2rem; right: .1rem; }
.nav .nav__upload { gap: .3rem; }
.nav .nav__upload .icon { width: 1.1rem; height: 1.1rem; }
@media (min-width: 52rem) {
  .nav:has(+ .headicons) { margin-left: auto; margin-right: 1rem; }
  .headicons { margin-left: 0; margin-right: 0; }
  .headicon--me { display: grid; }
  .menu__mobile { display: none !important; }
}

/* Reiter als Segmente (Lernen, Upload, Galerie) */
.page__head--tight { margin-bottom: .9rem; }
.segtabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .25rem; padding: .25rem; margin: 0 0 1.6rem; max-width: 44rem; background: var(--navy-50); border-radius: var(--radius); }
.segtabs a { display: block; padding: .55rem .4rem; border-radius: var(--radius-sm); text-align: center; text-decoration: none; font-weight: 700; font-size: var(--fs-sm); color: var(--navy-700); white-space: nowrap; }
.segtabs a[aria-current=page] { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.segtabs--small { margin: 0; width: fit-content; }
.segtabs--small a { padding: .35rem .8rem; font-size: var(--fs-sm); }
.section__head:has(.segtabs) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; max-width: none; }
.backlink { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; color: var(--navy-700); }
.backlink .icon { width: 1.2rem; height: 1.2rem; }
.step__title { font-size: clamp(1.5rem, 5vw, 2.2rem); margin-bottom: 1.2rem; }
.h3 { font-size: var(--fs-lg); font-weight: 800; margin: 2rem 0 .8rem; }
.lede { font-size: var(--fs-lg); color: var(--navy-700); }
.prose { max-width: var(--measure); margin-top: 1.2rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .3rem; }
.ok { color: var(--ok); }
.inline { display: inline; margin: 0; }
.btn--light { background: rgb(255 255 255 / .12); color: #fff; }
.btn--light:hover { background: rgb(255 255 255 / .2); color: #fff; }
.badge.badge--trainer { background: var(--navy); color: #fff; }
.box--ok { background: #f0fdf4; border-color: #bbf7d0; }

/* Fortschritt */
.progress--thin { height: .3rem; margin: .5rem 0 .3rem; }
.progress--dark { background: rgb(255 255 255 / .15); margin: 1rem 0 .6rem; }
span.progress { display: block; }
span.progress__bar { display: block; }

/* Startseite: Live-Call-Karte und „Heute für dich“ */
/* Nächster Live-Call auf der Startseite: helle Karte mit Datumsblatt links. */
.callrow { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.callrow__when { grid-row: span 2; align-self: start; display: grid; justify-items: center; min-width: 3.4rem; padding: .45rem .5rem .5rem; border-radius: var(--radius-sm); background: var(--navy); color: #fff; line-height: 1.1; }
.callrow__when span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-200); }
.callrow__when strong { font-size: 1.5rem; font-weight: 800; }
.callrow__body { min-width: 0; }
.callrow__body:first-child { grid-column: 1 / -1; }
.callrow__body .label { margin-bottom: .25rem; }
.callrow__body h2 { font-size: var(--fs-lg); line-height: 1.3; letter-spacing: -.01em; }
.callrow__body p:not(.label) { margin: .15rem 0 0; color: var(--muted); font-size: var(--fs-md); }
.callrow__links { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin-top: .7rem; font-size: var(--fs-sm); font-weight: 700; }
.callrow__body:first-child + .callrow__links { grid-column: 1 / -1; }
.callrow__links a { text-decoration: none; display: inline-block; padding: .35rem 0; }
.callrow__links a::after { content: "›"; color: var(--navy-300); font-weight: 400; margin-left: .2rem; }
.callrow__links .small { font-weight: 500; }
.recnote { color: var(--muted); }
.recnote--on { display: inline-flex; gap: .4rem; align-items: start; }
.recnote--on .icon { flex: none; width: 1rem; height: 1rem; margin-top: .25rem; }
.section__head:has(> a.small) { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; max-width: none; margin-bottom: 1rem; }
.section__head h2 { font-size: clamp(1.25rem, 3.6vw, 1.6rem); }
.todaycard { display: grid; gap: .2rem; padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-left: 4px solid var(--amber); border-radius: var(--radius); text-decoration: none; background: #fff; }
.todaycard:hover { border-color: var(--navy-200); border-left-color: var(--amber); color: inherit; box-shadow: var(--shadow); }
.todaycard .label { margin: 0; }
.todaycard strong { font-size: var(--fs-lg); line-height: 1.3; }
.todaycard .small { color: var(--muted); }
.reminder { display: flex; align-items: start; gap: .5rem; margin: 1rem 0; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--bg-subtle); border: 1px solid var(--border); font-size: var(--fs-sm); }
.reminder .icon { margin-top: .2rem; flex: none; }

/* Raster wie bei Instagram */
.tiles { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
@media (min-width: 40rem) { .tiles { gap: .5rem; } }
@media (min-width: 60rem) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; }
@media (min-width: 40rem) { .tile { border-radius: var(--radius-sm); } }
.tile img, .tile video, .tile .vcard__blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tile:hover img { opacity: .9; }
.tile__lock, .tile__clap { position: absolute; display: inline-flex; align-items: center; gap: .2rem; padding: .15rem .4rem; border-radius: 999px; background: rgb(19 41 75 / .7); color: #fff; font-size: var(--fs-xs); font-weight: 700; }
.tile__lock { top: .35rem; right: .35rem; }
.tile__clap { left: .35rem; bottom: .35rem; }
.tile__clap .icon, .tile__lock .icon { width: .9rem; height: .9rem; }

/* Profil */
.stats { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; color: var(--muted); font-size: var(--fs-sm); }
.stats strong { display: block; color: var(--navy); font-size: var(--fs-xl); font-weight: 800; line-height: 1.2; }
.actions--profile { margin: 0 0 1.2rem; gap: .5rem; }
.actions--profile form { margin: 0; }
.actions--profile .btn .icon { width: 1rem; height: 1rem; }
.menu--more summary { padding: .5rem .9rem; min-height: 2.4rem; }
.menu--more .menu__panel { left: 0; right: auto; z-index: 5; }
.dogcard .tags a { text-decoration: none; color: inherit; }
.dogcard .tags a:hover { text-decoration: underline; }
.rules { padding-left: 1.3rem; display: grid; gap: .6rem; margin: 0 0 1rem; }
.form__group { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem; margin: 0; display: grid; gap: 1rem; }
.form__group > legend { font-weight: 800; padding: 0 .4rem; }

/* Upload: Sichtbarkeit als zwei Karten */
.vischoice { display: grid; gap: .6rem; margin-top: .3rem; }
@media (min-width: 34rem) { .vischoice { grid-template-columns: 1fr 1fr; } }
.vischoice label { position: relative; display: flex; gap: .7rem; align-items: start; padding: .9rem 1rem; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: var(--fs-sm); line-height: 1.4; }
.vischoice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vischoice label:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
.vischoice label:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.vischoice strong { display: block; font-size: var(--fs-md); }
.vischoice label span span { color: var(--muted); }
.vischoice__icon { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy-100); }
.vischoice label:has(input:checked) .vischoice__icon { background: var(--navy); color: var(--amber); }
.file-preview--error p { color: var(--error); font-weight: 600; }
.privnote, .watch__exercise { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-sm); font-weight: 600; }
.privnote { padding: .3rem .8rem; border-radius: 999px; background: var(--navy-50); }
.watch__exercise { margin: .6rem 0 0; }
.player__photo { display: block; width: 100%; max-height: 80vh; object-fit: contain; background: #000; }

/* Übungs-Links aus „#slug“ und die Auswahl beim Tippen */
.xlink { font-weight: 700; color: var(--navy); text-decoration-color: var(--amber); }
.xlink::before { content: "#"; opacity: .6; margin-right: .05em; }
.field, .compose { position: relative; }
.xpicker { position: absolute; z-index: 30; left: 0; right: 0; bottom: 100%; margin: 0 0 .3rem; padding: .3rem; list-style: none; max-height: 14rem; overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.xpicker li { padding: .55rem .7rem; border-radius: var(--radius-sm); cursor: pointer; font-size: var(--fs-sm); font-weight: 600; }
.xpicker li::before { content: "#"; color: var(--navy-300); margin-right: .2rem; }
.xpicker li.is-active, .xpicker li:hover { background: var(--navy-50); }

/* Feed wie Reels: hochkant, ein Beitrag pro Bildschirm, einrasten beim Wischen */
.feed { --feed-top: 6.2rem; }
.feed__top { position: sticky; top: calc(3.75rem + env(safe-area-inset-top)); z-index: 10; background: var(--navy); color: #fff; padding: .4rem 0 0; }
@media (display-mode: standalone) { .feed__top { top: 0; } }
.feed__tabs { display: flex; justify-content: center; gap: 1.4rem; }
.feed__tools { position: absolute; top: .25rem; right: calc(var(--gut) - .5rem); display: flex; }
.feed__tools a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: var(--navy-200); }
.feed__tools a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.feed__tools .icon { width: 1.3rem; height: 1.3rem; }
@media (max-width: 30rem) { .feed__tabs { justify-content: flex-start; padding-left: var(--gut); gap: 1.1rem; } }
.feed__tabs a { padding: .35rem 0 .45rem; text-decoration: none; font-weight: 700; font-size: var(--fs-md); color: var(--navy-300); border-bottom: 3px solid transparent; }
.feed__tabs a[aria-current=page] { color: #fff; border-bottom-color: var(--amber); }
.feed__filter > summary { position: absolute; top: .25rem; right: calc(var(--gut) - .5rem + 4.8rem); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: var(--navy-200); cursor: pointer; list-style: none; }
.feed__filter > summary::-webkit-details-marker { display: none; }
.feed__filter > summary .icon { width: 1.3rem; height: 1.3rem; }
.feed__filter[open] > summary { color: #fff; background: rgb(255 255 255 / .12); }
.feed__filter.is-set > summary::after { content: ""; position: absolute; top: .45rem; right: .45rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--amber); }
.chips--feed { margin: 0; padding: .5rem var(--gut) .6rem; }
.chips--feed a { background: rgb(255 255 255 / .1); color: #fff; padding: .35rem .8rem; font-size: var(--fs-sm); }
.chips--feed a[aria-current=true] { background: #fff; color: var(--navy); }
.reels { display: grid; gap: 0; background: #000; }
.reel { position: relative; height: calc(100svh - 3.75rem - var(--feed-top) - var(--tabbar-h) - var(--tabbar-safe)); min-height: 26rem; scroll-snap-align: start; overflow: hidden; color: #fff; background: #000; }
@media (min-width: 52rem) {
  .reels { justify-items: center; gap: 1rem; padding: 1rem 0; background: var(--bg-subtle); }
  .reel { height: min(82vh, 52rem); aspect-ratio: 9 / 16; border-radius: var(--radius); }
}
html:has(.reels) { scroll-snap-type: y proximity; scroll-padding-top: calc(3.75rem + var(--feed-top-h, 6.1rem) + env(safe-area-inset-top)); }
@media (min-width: 52rem) { html:has(.reels) { scroll-padding-top: calc(3.75rem + 6.1rem + 1rem); } }
.reel__media { position: absolute; inset: 0; display: grid; place-items: center; }
.reel__media img, .reel__media video, .reel__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.reel__media img + iframe { z-index: 1; }
.reel::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, rgb(0 0 0 / .65)); pointer-events: none; z-index: 2; }
.reel__info { position: absolute; left: 0; right: 4.2rem; bottom: 0; z-index: 3; padding: 1rem 1rem 1.1rem; display: grid; gap: .3rem; font-size: var(--fs-sm); text-shadow: 0 1px 3px rgb(0 0 0 / .4); }
.reel__info p { margin: 0; }
.reel__who { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; }
.reel__who:hover { color: #fff; }
.reel__dog { color: rgb(255 255 255 / .85); }
.reel__topic { display: inline-block; margin-left: .2rem; padding: .05rem .5rem; border-radius: 999px; background: rgb(255 255 255 / .18); font-size: var(--fs-xs); font-weight: 700; }
.reel__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.reel__text .xlink { color: var(--amber); }
.reel__exercise { display: inline-flex; align-items: center; gap: .35rem; width: fit-content; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; text-decoration: none; font-weight: 700; font-size: var(--fs-sm); text-shadow: none; }
.reel__exercise:hover { color: var(--navy); }
.reel__side { position: absolute; right: .5rem; bottom: 1rem; z-index: 3; display: grid; gap: .8rem; justify-items: center; }
.reel__applause { margin: 0; }
.reel__btn { display: grid; justify-items: center; gap: .1rem; background: none; border: 0; color: #fff; font: inherit; font-size: var(--fs-xs); font-weight: 700; cursor: pointer; padding: .2rem; text-shadow: 0 1px 3px rgb(0 0 0 / .5); }
.reel__btn .icon { width: 2rem; height: 2rem; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .4)); }
.reel__btn[aria-pressed=true] .icon { fill: var(--amber); stroke: var(--amber); }
.more--reel summary { color: #fff; }
.more--reel summary:hover, .more--reel[open] > summary { background: rgb(255 255 255 / .15); color: #fff; }
.more--reel .more__panel { top: auto; bottom: calc(100% + .3rem); color: var(--navy); }
.reels__more { padding: 1.5rem; text-align: center; color: #fff; }
.reels__more a { color: inherit; }
.feed__alt { margin-top: 1rem; }
/* Kommentare als Fenster von unten */
.sheet { position: fixed; inset: auto 0 0 0; z-index: 40; width: 100%; max-width: 40rem; max-height: 75vh; margin: 0 auto; padding: .6rem 1.1rem 1.4rem; overflow-y: auto; border: 0; border-radius: var(--radius) var(--radius) 0 0; background: #fff; color: var(--navy); box-shadow: 0 -10px 40px rgb(0 0 0 / .25); }
.sheet__bar { position: sticky; top: -.6rem; display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; background: #fff; z-index: 1; }
.sheet__close { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: var(--navy-50); color: var(--navy); cursor: pointer; }
.sheet .comments { margin-top: .4rem; padding-top: .6rem; }
.clap { display: inline-flex; align-items: center; gap: .25rem; background: none; border: 0; padding: .2rem 0; font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); cursor: pointer; }
.clap .icon { width: 1rem; height: 1rem; }
.clap[aria-pressed=true] { color: var(--amber-800); }
.clap[aria-pressed=true] .icon { fill: var(--amber); stroke: var(--amber-800); }

/* Lernen: Guide */
.guidehead { padding: 1.3rem 1.4rem; }
.guidehead__top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.guidehead .box__title { color: #fff; margin: 0; }
.guidehead__days { margin: 0; text-align: right; line-height: 1; font-size: var(--fs-md); color: var(--navy-200); }
.guidehead__days strong { font-size: 2.2rem; color: var(--amber); font-weight: 800; }
.guidehead__days span { display: block; font-size: var(--fs-xs); margin-top: .3rem; text-transform: uppercase; letter-spacing: .1em; }
.guidehead__next { display: flex; align-items: center; gap: .4rem; margin: 0; }
.guidehead__next strong { color: #fff; }
.guidecard { max-width: 36rem; }
.guidecard .box__title { color: #fff; }
.diary { display: flex; align-items: center; gap: .9rem; margin: 1rem 0; padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; text-decoration: none; }
.diary:hover { border-color: var(--navy-200); color: inherit; }
.diary > .icon { width: 2.4rem; height: 2.4rem; padding: .5rem; border-radius: var(--radius-sm); background: var(--amber-50); color: var(--amber-800); }
.diary > span { display: grid; line-height: 1.35; }
.diary > span span { font-size: var(--fs-sm); color: var(--muted); }
.gtimeline { list-style: none; padding: 0; margin: .8rem 0 1.6rem; display: grid; }
.gsection { margin: 1.8rem 0 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-700); }
.gmore { margin: -1rem 0 0 2.8rem; }
.gall { margin: 1.6rem 0; border-top: 1px solid var(--border); }
.gall summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; font-weight: 700; cursor: pointer; list-style: none; }
.gall summary::-webkit-details-marker { display: none; }
.gall summary::before { content: "›"; margin-right: .5rem; color: var(--navy-300); display: inline-block; transition: transform .15s; }
.gall[open] summary::before { transform: rotate(90deg); }
.gall summary .small { margin-left: auto; font-weight: 500; }
.gtimeline__item { position: relative; display: flex; gap: .9rem; padding-bottom: .9rem; }
.gtimeline__item:not(:last-child)::before { content: ""; position: absolute; left: .95rem; top: 2rem; bottom: 0; width: 2px; background: var(--navy-100); }
.gtimeline__dot { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--navy-200); background: #fff; color: var(--navy); }
.gtimeline__dot .icon { width: 1rem; height: 1rem; }
.gtimeline__body { flex: 1; display: grid; gap: .1rem; padding: .55rem .9rem .6rem; border-radius: var(--radius-sm); border: 1px solid var(--border); text-decoration: none; background: #fff; }
a.gtimeline__body:hover { border-color: var(--navy-200); color: inherit; }
.gtimeline__day { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gtimeline__title { font-weight: 700; line-height: 1.35; }
.gtimeline__item.is-erledigt .gtimeline__dot { border-color: var(--ok); background: var(--ok); color: #fff; }
.gtimeline__item.is-erledigt .gtimeline__title { color: var(--muted); }
.gtimeline__item.is-heute .gtimeline__dot { border-color: var(--amber); background: var(--amber); }
.gtimeline__item.is-heute .gtimeline__body { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.gtimeline__item.is-gesperrt .gtimeline__dot { border-color: var(--border); background: var(--bg-subtle); color: var(--muted); }
.gtimeline__item.is-gesperrt .gtimeline__body { background: var(--bg-subtle); color: var(--muted); }

/* Übungen, Handouts, Bibliothek */
.xlist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
@media (min-width: 52rem) { .xlist { grid-template-columns: 1fr 1fr; } }
.xcard { display: flex; align-items: center; gap: .9rem; padding: .6rem .7rem .6rem .6rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.xcard form { margin: 0; }
.xcard__thumb { position: relative; flex: none; display: grid; place-items: center; width: 5.4rem; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--navy); color: #fff; }
.xcard__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xcard__thumb--doc { background: var(--navy-50); color: var(--navy-700); width: 3.2rem; aspect-ratio: 1; }
.xcard__thumb--doc .icon { width: 1.4rem; height: 1.4rem; }
.xcard__done { position: absolute; right: .25rem; bottom: .25rem; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--ok); color: #fff; }
.xcard__done .icon { width: .8rem; height: .8rem; }
.xcard__body { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.xcard__title { font-weight: 700; line-height: 1.3; text-decoration: none; }
.xcard__meta { font-size: var(--fs-sm); color: var(--muted); }
.xcard .progress { margin: .3rem 0 0; }
.star { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: none; color: var(--navy-300); cursor: pointer; }
.star .icon { width: 1.35rem; height: 1.35rem; }
.star:hover { background: var(--navy-50); }
.star[aria-pressed=true] { color: var(--amber); }
.star[aria-pressed=true] .icon { fill: var(--amber); }
.xmarks { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.xmarks form { margin: 0; }
.xmarks .reaction { min-height: 2.4rem; padding: .35rem .9rem; font-size: var(--fs-sm); }
.reaction--ok[aria-pressed=true] { background: var(--ok); border-color: var(--ok); }
.reaction--ok[aria-pressed=true] .icon { fill: none; stroke: #fff; }
.howsteps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .7rem; }
.howsteps li { counter-increment: step; position: relative; padding-left: 2.6rem; min-height: 1.9rem; }
.howsteps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy); color: var(--amber); font-weight: 800; font-size: var(--fs-sm); }
.notes { padding-left: 1.2rem; display: grid; gap: .4rem; }
.practice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin: 1.2rem 0; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--bg-subtle); border: 1px solid var(--border); }
.practice > div { flex: 1 1 12rem; }
.practice form { margin: 0; }
.practice .progress { margin: .4rem 0 .2rem; }
.practice__count { margin: 0; }
.pdf { width: 100%; height: 80vh; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 1rem; }
.hits { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .4rem; }
.hits a { display: flex; gap: .7rem; padding: .55rem .8rem; border-radius: var(--radius-sm); background: var(--bg-subtle); text-decoration: none; }
.hits a:hover { background: var(--navy-50); }
.rec { display: grid; gap: 1.2rem; }
@media (min-width: 60rem) { .rec { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }
.rec__now { margin: .6rem 0 0; font-weight: 700; }
.chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; max-height: 70vh; overflow-y: auto; }
.chapters li { display: grid; gap: .1rem; padding: .45rem .6rem; border-radius: var(--radius-sm); }
.chapters li.is-now { background: var(--amber-50); box-shadow: inset 3px 0 0 var(--amber); }
.chapters li > a:first-child { display: flex; gap: .7rem; text-decoration: none; font-weight: 600; line-height: 1.35; }
.chapters__time { flex: none; min-width: 3.2rem; font-variant-numeric: tabular-nums; color: var(--navy-700); font-weight: 800; }
.chapters__x { margin-left: 3.9rem; font-size: var(--fs-sm); }
.player--team { margin-bottom: 1rem; }
.quiz { margin-top: 1rem; }
.quiz__question { font-size: var(--fs-xl); font-weight: 800; line-height: 1.3; margin: .4rem 0 1rem; }
.quiz__choices { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.quiz__choice { display: block; width: 100%; text-align: left; padding: .9rem 1.1rem; border-radius: var(--radius); border: 2px solid var(--border); background: #fff; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }
button.quiz__choice:hover { border-color: var(--navy-300); }
.quiz__choice.is-correct { border-color: var(--ok); background: #f0fdf4; }
.quiz__choice.is-picked { border-color: var(--error); background: #fef2f2; }
.checkin { margin-top: 1.4rem; }
.checkin__question { font-size: var(--fs-lg); font-weight: 800; }
.checkin__answers { display: grid; gap: .5rem; margin: 1rem 0 .6rem; }
@media (min-width: 40rem) { .checkin__answers { grid-template-columns: repeat(3, 1fr); } .checkin__answers .btn { font-size: var(--fs-sm); padding: .7rem .8rem; } }
/* Karte im Seitenfluss, kein Fenster über der Seite: Sie soll anbieten, nicht unterbrechen. */
.support { margin: 1rem 0 0; padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-subtle); color: var(--navy); }
.support__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.support__head h2 { font-size: var(--fs-lg); }
.support__head .label { margin: 0; }
.support p { font-size: var(--fs-md); }
.support__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.support__actions .btn { min-height: 2.6rem; font-size: var(--fs-sm); }

/* Nachrichten und „Frag Marle“ */
.convo { display: flex; align-items: center; gap: .8rem; padding: .8rem .4rem; border-bottom: 1px solid var(--border); text-decoration: none; }
.convo:hover { background: var(--bg-subtle); color: inherit; }
.convo--ask { margin-bottom: .6rem; padding: .9rem 1rem; border: 1px solid var(--navy-100); border-radius: var(--radius); background: var(--navy-50); }
.convo--ask:hover { background: var(--navy-100); }
img.avatar { object-fit: cover; }
.convo__body { flex: 1; min-width: 0; display: grid; }
.convo__last { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo.is-unread .convo__last { color: var(--navy); font-weight: 700; }
.convo__meta { display: grid; justify-items: end; gap: .2rem; font-size: var(--fs-sm); color: var(--muted); }
.page--chat { padding-top: 0; }
.chathead { position: sticky; top: calc(3.75rem + env(safe-area-inset-top)); z-index: 5; display: flex; align-items: center; gap: .6rem; padding: .7rem 0; margin-bottom: 1rem; background: var(--bg); border-bottom: 1px solid var(--border); }
@media (display-mode: standalone) { .chathead { top: 0; } }
.chathead .person { flex: 1; gap: .6rem; text-decoration: none; }
.chathead .person > span:not(.avatar) { display: block; }
.chat { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .7rem; }
.chat__item { display: grid; justify-items: start; gap: .15rem; max-width: 85%; }
.chat__item.is-own { justify-self: end; justify-items: end; }
.chat__item.is-auto { justify-self: center; justify-items: center; max-width: 100%; }
.chat__bubble { padding: .6rem .9rem; border-radius: 1.1rem 1.1rem 1.1rem .3rem; background: var(--navy-50); overflow-wrap: anywhere; }
.chat__bubble p { margin: 0; }
.chat__bubble img, .chat__bubble video { max-width: 16rem; border-radius: .7rem; margin-top: .3rem; }
.chat__bubble audio { max-width: 16rem; margin-top: .3rem; }
.is-own .chat__bubble { border-radius: 1.1rem 1.1rem .3rem 1.1rem; background: var(--navy); color: #fff; }
.is-own .chat__bubble a { color: #fff; }
.is-own .chat__bubble .xlink { color: var(--amber); }
.is-team .chat__bubble { background: var(--amber-50); border: 1px solid var(--amber-100); }
.is-auto .chat__bubble { background: none; border: 1px dashed var(--navy-200); color: var(--muted); font-size: var(--fs-sm); text-align: center; border-radius: var(--radius); }
.chat__who { font-size: var(--fs-xs); font-weight: 700; color: var(--navy-700); }
.chat__meta { font-size: var(--fs-xs); color: var(--muted); display: inline-flex; gap: .4rem; align-items: center; }
.chat__meta .btn--link { font-size: var(--fs-xs); padding: 0; border: 0; background: none; cursor: pointer; }
.chat__video { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
.compose { position: sticky; bottom: calc(var(--tabbar-h) + var(--tabbar-safe)); z-index: 4; display: grid; gap: .4rem; padding: .6rem 0 .8rem; background: var(--bg); border-top: 1px solid var(--border); }
@media (min-width: 52rem) { .compose { bottom: 0; } }
@media (display-mode: standalone) { .compose { bottom: 0; } }
.compose__row { display: flex; align-items: end; gap: .3rem; }
.compose__row textarea { flex: 1; min-width: 0; min-height: 2.75rem; max-height: 9rem; padding: .6rem .9rem; font: inherit; font-size: var(--fs-md); line-height: 1.4; resize: none; border: 2px solid var(--border); border-radius: 1.4rem; color: var(--navy); field-sizing: content; }
.compose__row textarea:focus { outline: none; border-color: var(--amber); }
.compose__tool, .compose__send { flex: none; display: grid; place-items: center; width: 2.3rem; height: 2.75rem; border: 0; border-radius: 50%; background: none; color: var(--navy-700); cursor: pointer; }
.compose__tool:hover { background: var(--navy-50); }
.compose__tool .icon, .compose__send .icon { width: 1.35rem; height: 1.35rem; }
.compose__send { background: var(--amber); color: var(--navy); width: 2.75rem; }
.compose__about, .compose__file { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.compose__share summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 700; color: var(--navy-700); }
.compose__share select { margin-top: .4rem; width: 100%; min-height: 2.6rem; padding: .4rem .6rem; font: inherit; border: 2px solid var(--border); border-radius: var(--radius-sm); }
.suggest { margin: 1rem 0; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--border); }
.notes-list { list-style: none; padding: 0; margin: 0; display: grid; }
.notes-list li > a, .notes-list li > span { display: flex; align-items: center; gap: .8rem; padding: .8rem .4rem; border-bottom: 1px solid var(--border); text-decoration: none; }
.notes-list li > a > span:last-child, .notes-list li > span > span:last-child { display: grid; }
.notes-list li.is-unread { background: var(--amber-50); }
.notes-list .avatar .icon { width: 1rem; height: 1rem; color: var(--amber); }
.inbox { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .4rem; }
.inbox a { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; }
.inbox a:hover { border-color: var(--navy-200); color: inherit; }
.inbox a > span:last-child { display: grid; flex: 1; }
.inbox--done a { border-style: dashed; }
.light { flex: none; width: .9rem; height: .9rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px #dcfce7; }
.light--gelb { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-100); }
.light--rot { background: var(--error); box-shadow: 0 0 0 3px #fecaca; }
p > .icon, .small > .icon { display: inline-block; vertical-align: -.15em; }
/* Aufklappbare Formularteile heißen auch „more“, sind aber kein ⋯-Menü. */
.form details.more:not(:has(.more__panel)) { position: static; }
.form details.more:not(:has(.more__panel)) > summary { display: list-item; list-style: revert; width: auto; height: auto; border-radius: 0; color: var(--navy-700); }
.form details.more:not(:has(.more__panel)) > summary:hover, .form details.more[open]:not(:has(.more__panel)) > summary { background: none; color: var(--navy); }
.segtabs a { display: flex; align-items: center; justify-content: center; gap: .4rem; }
.segtabs a .icon { width: 1rem; height: 1rem; }

/* Hochladen: erst die Datei. Die Angaben erscheinen, sobald eine gewählt ist oder das Formular Fehler zeigt. */
.upload__rest { display: grid; gap: 1.2rem; }
.upload:not(.upload--open):has(.filepick input[type=file]:invalid) .upload__rest { display: none; }
.upload:not(.upload--open):has(.filepick input[type=file]:invalid) .filepick__btn { background: var(--amber); color: var(--navy); border-color: var(--amber); padding: .9rem 1.4rem; }

/* Bewegung dient nur der Orientierung: weicher Seitenwechsel und eine spürbare Antwort auf Tippen. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
.btn, .chips a, .segtabs a, .tabbar a, .headicon, .clap { transition: transform .08s ease, background-color .12s ease, color .12s ease; }
.btn:active, .chips a:active, .tabbar a:active, .headicon:active, .clap:active { transform: scale(.96); }
@keyframes pop { 50% { transform: scale(1.25); } }
.clap[aria-pressed=true] .icon { animation: pop .25s ease; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .btn, .chips a, .segtabs a, .tabbar a, .headicon, .clap { transition: none; }
  .btn:active, .chips a:active, .tabbar a:active, .headicon:active, .clap:active { transform: none; }
  .clap[aria-pressed=true] .icon { animation: none; }
}

/* Zweite Review-Runde */
.backrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; }
.person .person__text { display: grid; line-height: 1.3; }
.person .person__text > * { display: block; }
/* Aufklappbares ohne eigene Gestaltung bekommt überall denselben ruhigen Schalter. */
details.fold > summary, details:not([class]) > summary { cursor: pointer; font-weight: 700; font-size: var(--fs-sm); color: var(--navy-700); }
details.fold > summary::marker, details:not([class]) > summary::marker { color: var(--navy-300); }
details.fold[open] > summary { margin-bottom: 1rem; }
@media (max-width: 30rem) { .callrow__links { grid-column: 1 / -1; } }
/* Dritte Runde: Der Knopf „Video auswählen“ sagt schon, worum es geht, die Feldbeschriftung bleibt für Screenreader. */
.upload .field:has(> .filepick) > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.watch__meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.watch__meta:empty { display: none; }
