/* HGG Community – warm, leicht verspielt, professionell. */
/* Schriften liegen in /fonts (Inter und Inter Display, SIL Open Font License) – damit sieht die App auf jedem Gerät gleich aus. */
@font-face { font-family: "HGG Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "HGG Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "HGG Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-700.woff") format("woff"); }
@font-face { font-family: "HGG Text"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/inter-800.woff") format("woff"); }
/* Richtung „Sanft“: Überschriften und große Zahlen aufrecht und etwas leichter. Die Regeln fragen weiter nach „kursiv 800“ – dahinter liegt jetzt die aufrechte 700er-Schrift. */
@font-face { font-family: "HGG Display"; font-style: italic; font-weight: 800; font-display: swap; src: url("/fonts/inter-700.woff") format("woff"); }
/* Unterzeilen in Rot („Hof-Cockpit“, „Community“): feine Kursive statt Handschrift, kleiner gesetzt. */
@font-face { font-family: "HGG Hand"; font-style: normal; font-weight: 400 800; font-display: swap; size-adjust: 68%; src: url("/fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "HGG Hand Ersatz"; font-weight: 400 800; font-style: normal; size-adjust: 68%; src: local("Segoe UI Italic"), local("SegoeUI-Italic"), local("Helvetica Neue Italic"), local("HelveticaNeue-Italic"), local("Roboto Italic"), local("Roboto-Italic"), local("Arial Italic"), local("Arial-ItalicMT"), local("Liberation Sans Italic"), local("DejaVu Sans Oblique"); }

:root, .pola, .pola-blank, .lp-push, .ck-qr, #printArea, .light-island {
  --blue: #033A97; --blue-2: #2A5BC0; --blue-soft: #EAF0FA;
  --red: #C41E26; --red-2: #E83037; --red-soft: #FDECEC;
  --green: #1A6B3C; --green-soft: #E9F5EC;
  --orange: #D9822B; --orange-soft: #FFF4E0; --brown: #9A5200;
  --purple: #6A47B0; --purple-soft: #F1ECFA;
  --cream: #FAF6EF; --sand: #F0E7DA; --line: #F3ECE1; --line-2: #E2D5C2;
  --ink: #1F2A44; --text: #3B3226; --muted: #7A6B58; --faint: #766753;
  --surface: #FFFFFF; --surface-2: #FFFFFF; --glass: rgba(255, 255, 255, .88);
  --blue-ink: #033A97; --red-ink: #C41E26; --green-ink: #1A6B3C; --brown-ink: #9A5200; --text-2: #5C4E3C;
  --brand-a: #0C49B1; --brand-b: #033A97; --field-line: #DCCFBB; --chip-line: #DFD3C1; --track: #EFE6D8; --cell: #F4EDE2; --soft-btn: #F1E9DD;
  --radius: 18px;
  --font: "HGG Text", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "HGG Display", "HGG Text", Inter, -apple-system, "Segoe UI", Arial, sans-serif;
  --hand: "HGG Hand", "HGG Text", Inter, sans-serif;
  --nav-h: 72px;
  --tile-shadow: 0 1px 2px rgba(31, 42, 68, .06), 0 6px 18px rgba(31, 42, 68, .07);
  --card-shadow: 0 0 0 1px rgba(122, 96, 60, .09), 0 1px 2px rgba(74, 52, 24, .04), 0 10px 24px -14px rgba(74, 52, 24, .18);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #1D57D2; --blue-2: #3B74E6; --blue-soft: #111F3D;
  --red: #D92B33; --red-2: #F0464D; --red-soft: #3A1518;
  --green: #1F8A4E; --green-soft: #0F2A1B;
  --orange: #E3923A; --orange-soft: #33230E; --brown: #B8690F;
  --purple: #8A68D8; --purple-soft: #231B3A;
  --cream: #000000; --sand: #1E1E21; --line: #232327; --line-2: #34343A;
  --ink: #F4F4F5; --text: #E3E3E6; --muted: #A3A3AB; --faint: #93939B;
  --surface: #141416; --surface-2: #1C1C1F; --glass: rgba(8, 8, 10, .82);
  --blue-ink: #8FB2FF; --red-ink: #FF7C82; --green-ink: #6FD49A; --brown-ink: #F0B56E; --text-2: #C9C9CF;
  --brand-a: #2B66E0; --brand-b: #174CC4; --field-line: #3A3A41; --chip-line: #3A3A41; --track: #1C1C1F; --cell: #222226; --soft-btn: #26262A;
  --tile-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
  --card-shadow: 0 0 0 1px rgba(255, 255, 255, .07);
}
/* Helle Inseln (Fotopapier, Handy-Bild der Startseite, QR-Code) behalten ihre helle Schrift-Grundfarbe. */
.pola, .pola-blank, .lp-push, .ck-qr, #printArea, .light-island { color: var(--text); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; }
img { max-width: 100%; display: block; }
a { color: var(--blue-ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(3, 58, 151, .45); outline-offset: 2px; }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

.disp { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; }
.hand { font-family: var(--hand); font-weight: 600; font-size: 19px; color: var(--red-ink); line-height: 1.15; }
.h1 { margin: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 28px; line-height: 1.1; color: var(--blue-ink); }
.h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); }
.kick { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; color: var(--faint); line-height: 1.5; }

/* Kopf und Navigation */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand); }
.top .logo { height: 30px; width: auto; }
.top .title { font-family: var(--hand); font-weight: 700; font-size: 28px; color: var(--blue-ink); line-height: 1; }
.top .spacer { flex: 1; }
.pill { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--red-soft); color: var(--red-ink); font-weight: 700; font-size: 13px; border: 0; }
.topnav { display: none; }
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; background: var(--surface); border-top: 1px solid var(--sand); }
.tab { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 700; text-decoration: none; }
.tab svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--blue-ink); }
.tab-plus { color: var(--blue-ink); }
.tab-plus .plus { width: 54px; height: 54px; margin-top: -26px; border-radius: 27px; background: var(--blue); color: #FFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(3, 58, 151, .35); }
.tab-plus .plus svg { stroke-width: 2.6; }
.dot { position: absolute; top: 10px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 4px; background: var(--red-2); }
main { max-width: 760px; margin: 0 auto; padding: 0 0 calc(var(--nav-h) + 28px); min-height: 70vh; }
.pad { padding: 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.between { justify-content: space-between; }

@media (min-width: 900px) {
  .nav { display: none; }
  .topnav { display: flex; gap: 4px; margin-left: 24px; }
  .topnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-weight: 700; text-decoration: none; }
  .topnav a.on { background: var(--blue-soft); color: var(--blue-ink); }
  .topnav a.cta { background: var(--blue); color: #FFF; }
  main { max-width: 1120px; padding-bottom: 48px; }
  .top { padding: 0 32px; height: 68px; }
  .wide-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
}

/* Bausteine */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.card.p { padding: 16px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--blue); color: #FFFFFF; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-red { background: var(--red); }
.btn-ghost { background: var(--surface); color: var(--blue-ink); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn-soft { background: var(--sand); color: var(--text); }
.btn-small { width: auto; min-height: 40px; font-size: 14px; padding: 0 16px; }
.link { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: none; padding: 0; color: var(--blue-ink); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.inp, .sel, .ta { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); }
.ta { min-height: 96px; padding: 12px 14px; resize: vertical; }
.inp:focus, .sel:focus, .ta:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(3, 58, 151, .15); }
.lbl { display: block; margin: 14px 0 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.chk { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 14px; line-height: 1.45; cursor: pointer; }
.chk input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--blue); }
.bar { height: 8px; border-radius: 4px; background: var(--sand); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--green); width: 0; }
.bar.warn i { background: var(--orange); }
.warn { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--brown-ink); font-size: 12px; font-weight: 700; }
.ok-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-size: 12px; font-weight: 700; }
.err { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--red-soft); color: #9A1219; font-size: 13.5px; line-height: 1.45; }
.infobox { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--blue); display: flex; flex-direction: column; gap: 10px; }
.note { padding: 12px 14px; border-radius: 14px; background: #FFF9E8; box-shadow: 0 2px 0 #F0E2BF; }
.note:nth-child(even) { background: #EEF6EE; box-shadow: 0 2px 0 #D6E8D6; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.mate { flex: none; width: 30px; height: 30px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; color: #FFF; font-size: 12px; font-weight: 700; background: var(--blue); }
.mate.c1 { background: var(--red); } .mate.c2 { background: var(--green); } .mate.c3 { background: var(--purple); } .mate.c4 { background: var(--brown); } .mate.c5 { background: #0E8A8A; }

/* Toast und Sheet */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #FFF; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.sheet-bg { position: fixed; z-index: 50; inset: 0; background: rgba(31, 42, 68, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--surface); animation: up .22s ease-out; }
.grab { width: 44px; height: 5px; margin: 4px auto 14px; border-radius: 3px; background: var(--line-2); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 900px) { .sheet-bg { align-items: center; } .sheet { border-radius: 24px; } }

/* Feed */
.sorts { display: flex; gap: 8px; padding: 14px 16px 12px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.tile { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--sand); border: 0; padding: 0; cursor: pointer; animation: fade .4s ease-out both; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .ov { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; padding: 26px 10px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: #FFF; font-size: 13px; font-weight: 700; text-align: left; }
.tile .new { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--red); color: #FFF; font-size: 11px; font-weight: 700; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.heart { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .92); color: var(--red-ink); font-weight: 800; font-size: 13px; cursor: pointer; }
.heart svg { width: 18px; height: 18px; fill: none; stroke: var(--red-ink); stroke-width: 2.2; }
.heart.on svg { fill: var(--red-ink); }
.endblock { margin: 22px 16px 0; padding: 20px; border-radius: var(--radius); background: var(--blue); color: #FFF; text-align: center; }
.post-big { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: var(--sand); }
.morning { margin: 14px 16px 0; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.morning button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.wx-mini { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-ink); }
.door-mini { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--red); color: #FFF; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-weight: 800; }

/* Advent */
.advent-hero { padding: 26px 18px 30px; background: radial-gradient(1200px 400px at 50% -10%, #1C4CA8, #0B2A5E 60%, #081E44); color: #FFF; text-align: center; }
.advent-hero .hand { color: #FFE8C2; font-size: 30px; }
.advent-hero .h1 { color: #FFF; font-size: 32px; }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; }
@media (min-width: 640px) { .doors { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .doors { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }
.door { position: relative; aspect-ratio: 1; border-radius: 14px; border: 0; padding: 0; overflow: hidden; cursor: pointer; background: #0B2A5E; color: #FFF; }
.door .n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 34px; }
.door .lab { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, .35); }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.door.today { background: var(--red); box-shadow: 0 0 0 3px #FFE8C2; }
.door.lastchance { background: var(--orange); }
.door.expired img { opacity: .9; }
.door.expired .lab { background: rgba(31, 42, 68, .75); }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 2px dashed var(--red); background: var(--red-soft); }
.code-box b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; letter-spacing: .08em; color: var(--red-ink); }

/* Stall */
.horse { display: flex; gap: 14px; align-items: center; margin: 16px 16px 14px; padding: 14px; }
.horse .av { flex: none; width: 64px; height: 64px; border-radius: 32px; background: var(--blue); color: #FFF; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 28px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--red-2); }
.seg { display: flex; gap: 4px; margin: 0 16px; padding: 4px; border-radius: 999px; background: var(--sand); overflow-x: auto; scrollbar-width: none; }
.seg a, .seg button, .seg span { flex: 1 0 auto; min-height: 38px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: none; color: var(--text-2); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.seg .on { background: var(--surface); color: var(--blue-ink); box-shadow: 0 2px 6px rgba(90, 60, 20, .12); }
.wx { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #FFF; }
.wx .t { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 38px; line-height: 1; }
.wx .hint { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 12px; font-weight: 700; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.tchk { flex: none; width: 30px; height: 30px; border-radius: 15px; border: 2px solid var(--line-2); background: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.tchk svg { width: 14px; height: 14px; stroke: #FFF; stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tchk.on { background: var(--green); border-color: var(--green); }
.ttl { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.tsub { font-size: 12.5px; color: var(--muted); }
.done .ttl { text-decoration: line-through; color: var(--faint); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal .h { font-size: 11px; font-weight: 700; color: var(--faint); padding-bottom: 4px; }
.cal .d { position: relative; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.cal .d.today { background: var(--blue); color: #FFF; }
.cal .d.past { color: #807360; }
.cal .dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.cal .dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--c); }
.cal .d.rd { box-shadow: inset 0 0 0 2px var(--orange); }
.cal .d.rd.mine { background: var(--orange-soft); color: var(--ink); }
.cal .d.rd.mine.today { background: var(--blue); color: #FFF; }
.legend .lg-rd i { background: transparent; box-shadow: inset 0 0 0 2px var(--orange); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 5px; background: var(--c); }
.appt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.appt .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--c); font-weight: 800; font-size: 13px; }
.due { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--bg); color: var(--c); }
.due.over { background: var(--red-soft); color: var(--red-ink); }
.iconbtn { flex: none; width: 40px; height: 40px; border: 0; border-radius: 20px; background: #FAF4EA; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--faint); }
.iconbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn.on { background: var(--blue-soft); color: var(--blue-ink); }
.t-hufschmied { --c: #033A97; --bg: #EAF0FA; } .t-tierarzt { --c: #C41E26; --bg: #FDECEC; } .t-impfung { --c: #6A47B0; --bg: #F1ECFA; }
.t-wurmkur { --c: #1A6B3C; --bg: #E9F5EC; } .t-zahnarzt { --c: #D9822B; --bg: #FFF4E0; } .t-physio { --c: #0E8A8A; --bg: #E4F4F4; }
.t-sattler { --c: #8A5A2B; --bg: #F5ECE2; } .t-sonstiges { --c: #5C4E3C; --bg: #F3ECE1; } .t-feed { --c: #D9822B; --bg: #FFF4E0; }
.tdot { flex: none; width: 10px; height: 10px; border-radius: 5px; background: var(--c); }
.feed-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.feed-row:last-child { border-bottom: 0; }
.feed-row .when { font-size: 12px; font-weight: 700; color: var(--brown-ink); }
.feed-row .amt { font-weight: 700; color: var(--blue-ink); white-space: nowrap; }
.feed-edit { display: grid; grid-template-columns: 110px minmax(0, 1fr) 90px 40px; gap: 6px; align-items: center; margin-bottom: 8px; }
.feed-edit .inp, .feed-edit .sel { min-height: 44px; font-size: 16px; padding: 0 8px; }
.plan { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 4px; font-size: 11px; text-align: center; align-items: center; }
.plan b { font-weight: 700; color: var(--faint); }
.slot { height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #FFF; font-weight: 700; font-size: 12px; border: 0; cursor: pointer; background: var(--line); color: var(--faint); }
.slot.c1 { background: var(--red); color: #FFF; } .slot.c2 { background: var(--green); color: #FFF; } .slot.c3 { background: var(--purple); color: #FFF; } .slot.c4 { background: var(--brown); color: #FFF; } .slot.c5 { background: #0E8A8A; color: #FFF; }
.slot-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.slot-row:last-child { border-bottom: 0; }
.slot-row .tm { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 14px; color: var(--blue-ink); line-height: 1.15; }
.slot-row.locked { background: repeating-linear-gradient(135deg, #FAF6EF 0 8px, #F3ECE1 8px 16px); }
.slot-row.locked .tm, .slot-row.past .tm { color: var(--faint); }
.slot-row.past { opacity: .55; }
.slot-row.mine { background: var(--blue-soft); }
.capbar { display: block; width: 90px; height: 5px; margin-top: 6px; border-radius: 3px; background: #E8DCCB; overflow: hidden; }
.capbar i { display: block; height: 100%; background: var(--green); width: 0; }
.capbar.full i { background: var(--red); }
.sbtn { min-width: 92px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--blue); background: var(--surface); color: var(--blue-ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.sbtn.on { background: var(--blue); color: #FFF; }
.sbtn:disabled { border-color: var(--line-2); color: var(--faint); background: transparent; cursor: default; }
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; text-align: center; }
.badge .ic { width: 52px; height: 52px; border-radius: 26px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 18px; background: var(--blue-soft); color: var(--blue-ink); }
.badge.off .ic { background: var(--line); color: #C9BFAF; }
.badge .l { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.rank { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.rank:last-child { border-bottom: 0; }
.rank.me { background: var(--blue-soft); }
.stat { flex: 1; padding: 12px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; color: var(--blue-ink); line-height: 1.1; }
.challenge-hero { padding: 16px; border-radius: 20px; background: linear-gradient(160deg, #0B2A5E, var(--blue)); color: #FFF; }
.challenge-hero .hand { color: #FFE8C2; font-size: 26px; }
.res { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.res:last-child { border-bottom: 0; }
.ask { display: flex; flex-direction: column; gap: 10px; }
.ask button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--surface); text-align: left; cursor: pointer; }
.ask b { font-size: 15.5px; color: var(--blue-ink); }
.ask span { font-size: 13px; color: var(--muted); }
.legal { max-width: 720px; }
.legal.stack { gap: 4px; }
.legal h2 { font-size: 17px; margin: 22px 0 8px; color: var(--ink); }
.legal p, .legal li { line-height: 1.6; }
.admin-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 14px; }
.admin-item img { width: 120px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.foot { padding: 24px 16px 8px; text-align: center; font-size: 12.5px; color: var(--faint); }
.foot a { color: var(--muted); margin: 0 6px; }
.rchip { position: relative; display: inline-flex; cursor: pointer; }
.rchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rchip span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 600; }
.rchip input:checked + span { background: var(--blue); border-color: var(--blue); color: #FFF; }
.rchip input:focus-visible + span { outline: 3px solid rgba(3, 58, 151, .45); outline-offset: 2px; }
.fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.fs legend { padding: 0; }
.link-plain { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.rank-img { width: 40px; height: 50px; object-fit: cover; border-radius: 8px; }
.white { color: #FFF; }
details summary { cursor: pointer; padding: 6px 0; color: var(--blue-ink); }
details[open] summary { margin-bottom: 6px; }
.horse .h1 { font-size: 24px; }
.appt { color: inherit; text-decoration: none; }
a.card { color: inherit; text-decoration: none; }
.morning .hand { font-size: 23px; }
.badge.card { padding: 12px 6px; }
.endblock .hand { color: #FFE8C2; font-size: 26px; }
.file-btn { margin-bottom: 4px; }
.sr:focus-visible + * { outline: 3px solid rgba(3, 58, 151, .45); }
#photo:focus-visible { position: static; width: auto; height: auto; clip: auto; }
.cd { margin: 16px auto 14px; max-width: 420px; padding: 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); }
.cd-lab { display: block; margin-bottom: 10px; color: rgba(255, 255, 255, .85); }
.cd-row { display: flex; justify-content: center; gap: 8px; }
.cd-box { min-width: 68px; padding: 8px 6px 6px; border-radius: 10px; background: var(--surface); color: var(--blue-ink); display: flex; flex-direction: column; align-items: center; }
.cd-box b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-box span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cd-box.red { background: var(--red); color: #FFF; } .cd-box.red span { color: rgba(255, 255, 255, .85); }
.advent-hero .btn { margin: 0 auto; }
.door.locked { background: linear-gradient(160deg, #164AA8 0%, #0B2B6E 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.door.locked::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 8px; margin-left: -4px; background: rgba(255, 255, 255, .08); }
.door.locked::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 9px; }
.chero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px 16px 6px; }
.chero-k { font-size: 24px; padding-right: 48px; }
.chero-t { font-size: 34px; line-height: 1.02; }
.chero-p { margin: 0; max-width: 480px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.chero-p b { color: var(--ink); }
.chero .x { position: absolute; top: 18px; right: 16px; width: 40px; height: 40px; border-radius: 20px; border: 0; background: var(--surface); color: var(--muted); font-size: 20px; cursor: pointer; box-shadow: 0 2px 10px rgba(90, 60, 20, .1); }
.friends { display: flex; flex-wrap: wrap; gap: 8px; }
.friend { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); box-shadow: 0 2px 10px rgba(90, 60, 20, .08); font-size: 13.5px; }
.friend b { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 4px; border-radius: 16px; background: var(--red-soft); color: var(--red-ink); font-family: var(--display); font-style: italic; font-weight: 800; }
/* Polaroids: leicht schräg, am Handy kleiner, ab 900 px neben dem Text */
.polas { display: block; position: relative; height: 210px; margin: 4px 6px 8px; }
.pola { position: absolute; padding: 7px 7px 30px; background: #FFF; border-radius: 4px; box-shadow: 0 12px 26px rgba(90, 60, 20, .16), 0 2px 4px rgba(90, 60, 20, .08); }
.pola img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.pola span { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 16px; color: var(--text); white-space: nowrap; overflow: hidden; }
.pola0 { left: 0; top: 14%; width: 36%; height: 74%; transform: rotate(-6deg); }
.pola1 { left: 31%; top: 0; width: 38%; height: 80%; transform: rotate(3deg); z-index: 2; }
.pola2 { left: 63%; top: 18%; width: 36%; height: 74%; transform: rotate(-3deg); z-index: 3; }
.tape { position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; margin-left: -32px; background: rgba(232, 48, 55, .22); transform: rotate(-3deg); border-radius: 2px; z-index: 1; }
.pola-tag { position: absolute; right: 0; bottom: -6px; z-index: 4; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .02em; }
@media (prefers-reduced-motion: no-preference) {
  .pola { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .polas:hover .pola0 { transform: rotate(-9deg) translateX(-6px); }
  .polas:hover .pola2 { transform: rotate(-1deg) translateX(6px); }
}
@media (min-width: 900px) {
  .chero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 40px 16px 10px; }
  .chero-k { font-size: 28px; }
  .chero-t { font-size: 48px; }
  .chero .x { top: 20px; }
  .polas { height: 320px; margin: 0; }
  .pola { padding: 10px 10px 38px; }
  .pola span { bottom: 8px; font-size: 21px; }
  .pola0 { left: 0; top: 12%; width: 38%; height: 70%; }
  .pola1 { left: 31%; top: 0; width: 38%; height: 74%; }
  .pola2 { left: 62%; top: 20%; width: 37%; height: 70%; }
  .tape { top: -12px; width: 84px; height: 24px; margin-left: -42px; }
}
/* Leerer Feed: Polaroid-Platzhalter */
.empty-pola { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 18px; }
.empty-pola p { margin: 0; max-width: 420px; }
.pola-blank { width: 150px; height: 180px; padding: 9px 9px 34px; margin-bottom: 8px; background: #FFF; border-radius: 4px; box-shadow: 0 12px 26px rgba(90, 60, 20, .14); transform: rotate(-4deg); position: relative; display: flex; }
.pola-blank::before { content: ""; flex: 1; border-radius: 2px; border: 2px dashed var(--line-2); background: var(--cream); }
.pola-plus { position: absolute; left: 0; right: 0; top: 52px; text-align: center; font-size: 34px; color: var(--line-2); font-weight: 300; }
.pola-cap { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 18px; color: var(--muted); }
/* Mitmachen: Kopf mit Polaroids, Startkarte */
.mm-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.mm-text .h1 { font-size: 28px; hyphens: manual; -webkit-hyphens: manual; }
.mm-text p { margin: 0; }
.mm-text p b { color: var(--ink); }
.mm-soon { display: flex; gap: 16px; align-items: center; }
.mm-days { flex: none; width: 64px; height: 64px; border-radius: 18px; background: var(--red-soft); color: var(--red-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.mm-days b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 28px; }
.mm-days span { font-size: 11px; font-weight: 700; margin-top: 2px; }
.mm-links { margin-top: 8px; gap: 18px; }
@media (min-width: 900px) {
  .mm-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 36px; padding-top: 32px; }
  .mm-text .h1 { font-size: 42px; }
  .polas-mm { height: 280px; }
}
.login { position: relative; overflow: hidden; }
.login-wall { position: relative; height: 170px; overflow: hidden; background: #011A4A; }
.login-cols { columns: 3; column-gap: 8px; padding: 0 8px; transform: translateY(-40px); }
.login-cols img { width: 100%; margin-bottom: 8px; border-radius: 8px; break-inside: avoid; }
.login-wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 58, 151, .1), var(--cream) 98%); }
.login-inner { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 0 16px 24px; margin-top: -36px; }
.login-t { font-size: 36px; }
.login-k { margin-top: 6px; }
.login-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.login-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--muted); }
.login-list b { color: var(--ink); }
.login-ic { flex: none; width: 24px; height: 24px; border-radius: 12px; background: var(--red); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.login-ic svg { width: 13px; height: 13px; stroke: #FFF; stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.login-note { text-align: center; margin: 10px 0 0; }
.login-form .card { box-shadow: var(--card-shadow), 0 16px 34px rgba(90, 60, 20, .1); }
@media (min-width: 900px) {
  main:has(.login) { max-width: none; padding-bottom: 0; }
  .login { min-height: calc(100vh - 73px); }
  .login-wall { position: absolute; inset: 0; height: auto; }
  .login-cols { columns: 6; column-gap: 14px; padding: 0 14px; transform: translateY(-80px); }
  .login-cols img { margin-bottom: 14px; border-radius: 10px; }
  .login-wall::after { background: linear-gradient(90deg, rgba(3, 58, 151, .97) 0%, rgba(3, 58, 151, .9) 45%, rgba(3, 58, 151, .35) 100%); }
  .login-inner { max-width: 1120px; margin: 0 auto; padding: 72px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: 'head form' 'feats form'; column-gap: 56px; row-gap: 0; align-items: center; }
  .login-head { grid-area: head; align-self: end; }
  .login-form { grid-area: form; }
  .login-feats { grid-area: feats; align-self: start; }
  .login-k { display: none; }
  .login-head .hand { color: #FFE8C2; font-size: 30px; }
  .login .login-t { color: #FFF; font-size: 56px; }
  .login-list { margin-top: 26px; gap: 14px; }
  .login-list li { color: rgba(255, 255, 255, .82); font-size: 15px; }
  .login-list b { color: #FFF; }
  .login-note { color: rgba(255, 255, 255, .85); }
  .login-note a { color: #FFF; }
}
.lock { position: absolute; top: 6px; left: calc(50% + 4px); width: 19px; height: 19px; border-radius: 10px; background: #5C4E3C; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--surface); z-index: 2; }
.lock svg { width: 11px !important; height: 11px !important; stroke: #FFF !important; stroke-width: 3 !important; fill: none; }
.tab-plus .plus { position: relative; }
.tab-plus .lock { top: -3px; left: auto; right: -3px; background: var(--red); }
.tab-plus { position: relative; }
.lock:not(.hidden) ~ .dot { display: none; }
body.is-start .nav, body.is-start .topnav, body.is-start #hearts { display: none; }
body.is-start main { padding-bottom: 24px; }
.mini { max-width: 920px; margin: 0 auto; padding: 36px 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mini-hi { margin: 0; font-size: 28px; }
.mini-cards.one { max-width: 460px; }
.mini-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; }
.mini-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--card-shadow), 0 18px 40px rgba(90, 60, 20, .1); color: var(--text); text-decoration: none; transition: transform .25s ease; }
.mini-card:hover { transform: translateY(-3px); }
.mini-pic { height: 170px; background: var(--sand); }
.mini-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.mini-door { height: 170px; display: flex; align-items: center; justify-content: center; background: radial-gradient(600px 240px at 50% 0%, #1C4CA8, #0B2A5E 70%); }
.mini-box { position: relative; width: 86px; height: 86px; border-radius: 14px; background: var(--red); display: flex; align-items: center; justify-content: center; color: #FFF; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 40px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); overflow: hidden; }
.mini-box::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 12px; margin-left: -6px; background: rgba(255, 255, 255, .22); }
.mini-box::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 12px; margin-top: -6px; background: rgba(255, 255, 255, .22); }
.mini-box span { position: relative; z-index: 1; }
.mini-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.mini-t { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; line-height: 1.05; color: var(--blue-ink); }
.mini-x { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.mini-go { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; color: var(--blue-ink); }
.mini-cd { font-size: 13px; font-weight: 700; color: var(--brown-ink); background: var(--orange-soft); padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .mini { padding-top: 72px; } .mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } .mini-cards.one { grid-template-columns: minmax(0, 1fr); } .mini-pic, .mini-door { height: 220px; } .mini-box { width: 110px; height: 110px; font-size: 52px; } .mini-t { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .sheet, .tile { animation: none; } }

/* Stall-Vorschau ohne Anmeldung */
.pv{margin:14px 16px 6px;padding:16px;border-radius:16px;background:#FFF7E8;box-shadow:inset 0 0 0 1.5px #F1D9A8;display:flex;flex-direction:column;gap:10px}
.pv-tag{align-self:flex-start;padding:3px 10px;border-radius:999px;background:var(--blue,#033A97);color:#fff;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.pv-t{margin:0;font-size:14px;line-height:1.5;color: var(--text-2)}.pv-t b{color:#1F2A44}
.pv-seg span{cursor:default}
.pv-body .task,.pv-body .appt{pointer-events:none}
.pv-login{scroll-margin:90px}
/* Fotowettbewerb-Erklärung nach dem Login */
.ci-prize{margin:4px 0 12px;padding:12px 14px;border-radius:14px;background:#FDECEC;color:#9A1219;font-size:14px;font-weight:600}
.ci-steps{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.ci-step{display:flex;gap:14px;align-items:flex-start;padding:12px;border-radius:16px;background:#FAF6EF}
.ci-step b{display:block;font-size:15px;color:#1F2A44}
.ci-step .t{display:block;margin-top:2px;font-size:13px;line-height:1.45;color:#7A6B58}
.ci-d{flex:none;width:56px;border-radius:10px;overflow:hidden;background:var(--surface);box-shadow:0 0 0 1px #EFE6D8;text-align:center}
.ci-m{display:block;padding:3px 0 2px;background:#C41E26;color:#fff;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.ci-n{display:block;padding:4px 0 5px;font-family:Archivo,sans-serif;font-style:italic;font-weight:800;font-size:24px;line-height:1;color:#033A97}
.ci-btns{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.ci-link{text-align:center;color:#7A6B58}

/* Desktop-Kopfzeile: Schlösser, Anmelden, Profil */
.tlock { display: none; }
.hdr-login, .hdr-me { display: none; }
@media (min-width: 900px) {
  .topnav a { gap: 7px; }
  .tlock { display: inline-flex; width: 18px; height: 18px; border-radius: 9px; background: #5C4E3C; align-items: center; justify-content: center; }
  .tlock.hidden { display: none; }
  .tlock svg { width: 10px; height: 10px; stroke: #FFF; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .hdr-login { display: inline-flex; align-items: center; min-height: 40px; margin-left: 10px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red-ink); font-weight: 700; text-decoration: none; }
  .hdr-me { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: 10px; border-radius: 20px; background: var(--red); color: #FFF; font-weight: 700; text-decoration: none; }
  .hdr-login.hidden, .hdr-me.hidden { display: none; }
}
@media (min-width: 900px) { .topnav a, .hdr-login { white-space: nowrap; } }
@media (min-width: 900px) and (max-width: 1180px) { #hearts { display: none; } .topnav { margin-left: 12px; } .topnav a { padding: 0 10px; } }


/* ---------- Hof-Infos für Einsteller ---------- */
.hofinfo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hours { display: grid; grid-template-columns: 36px 1fr; gap: 4px 10px; margin-top: 8px; font-size: 14px; }
.hours .d { font-weight: 700; color: var(--ink); }
.em { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.em:last-child { border-bottom: 0; }
.em-l { flex: none; min-width: 96px; font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.em b { font-size: 15px; color: var(--blue-ink); white-space: nowrap; }
.em-112 b { color: var(--red-ink); font-size: 18px; }
.rules { margin: 8px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.ck-link { border: 2px solid var(--blue); text-decoration: none; color: inherit; }
@media (min-width: 900px) { .hofinfo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Hof-Cockpit ---------- */
main:has(.ck) { max-width: 1280px; }
.ck { display: flex; flex-direction: column; }
.ck-side { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.ck-brand { display: flex; flex-direction: column; gap: 2px; }
.ck-name { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 20px; color: var(--blue-ink); line-height: 1.15; }
.ck-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.ck-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.ck-nav a.on { background: var(--blue); box-shadow: none; color: #FFFFFF; }
.ck-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #FFF; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ck-out { display: none; font-size: 13.5px; font-weight: 600; }
.ck-main { padding: 16px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ck-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ck-head p { margin: 4px 0 0; }
.ck-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ck-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--card-shadow); color: inherit; text-decoration: none; }
.ck-kpi b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 32px; line-height: 1; color: var(--blue-ink); }
.ck-kpi span { font-size: 13px; color: var(--muted); }
a.ck-kpi:hover { box-shadow: var(--card-shadow), inset 0 0 0 1.5px var(--blue-soft); }
.ck-todo ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ck-todo li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ck-todo li a { font-weight: 700; }
.ck-todo li.ok { color: var(--faint); text-decoration: line-through; }
.ck-tick { flex: none; width: 22px; height: 22px; border-radius: 11px; box-shadow: inset 0 0 0 2px var(--line-2); display: inline-flex; align-items: center; justify-content: center; }
.ck-todo li.ok .ck-tick { background: var(--green); box-shadow: none; }
.ck-tick svg { width: 13px; height: 13px; stroke: #FFF; stroke-width: 3; fill: none; }
.ck-todo .bar { margin-top: 10px; }
.ck-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.ck-when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 8px; }
.ck-when > div:first-child { grid-column: 1 / -1; }
@media (min-width: 560px) { .ck-when { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } .ck-when > div:first-child { grid-column: auto; } }
.ck-actions { align-items: flex-end; gap: 0; }
.ck-req .ck-line .row { margin-top: 6px; }
.ck-line { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ck-line.row { flex-direction: row; align-items: center; gap: 10px; }
.ck-line:last-child { border-bottom: 0; }
.ck-today { display: flex; flex-direction: column; gap: 4px; }
.ck-slot { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: var(--cream); font-size: 13.5px; }
.ck-slot.locked { background: repeating-linear-gradient(135deg, #FAF6EF 0 8px, #F3ECE1 8px 16px); }
.ck-slot .tm { font-family: var(--display); font-style: italic; font-weight: 800; color: var(--blue-ink); min-width: 46px; }
.ck-fac { display: grid; grid-template-columns: minmax(0, 2fr) 64px 1fr 1fr 1fr; gap: 6px; align-items: center; }
.ck-fac .inp, .ck-fac .sel { min-height: 44px; padding: 0 8px; font-size: 16px; }
.ck-f { display: block; min-width: 0; }
.ck-fl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ck-fac-h { font-size: 11.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.ck-hours { display: grid; grid-template-columns: 96px auto 1fr 10px 1fr; gap: 8px; align-items: center; }
.ck-hours .inp { min-height: 44px; padding: 0 8px; }
.ck-hours .chk { padding: 0; font-size: 12.5px; }
.ck-em { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.ck-em .inp { min-height: 44px; padding: 0 10px; font-size: 16px; }
.ta-tall { min-height: 160px; }
.ck-table { overflow-x: auto; }
.ck-tr { display: grid; grid-template-columns: minmax(140px, 1.3fr) minmax(160px, 1.6fr) 56px 100px 84px; gap: 10px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 14px; min-width: 600px; }
.ck-th { font-size: 11.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.ck-empty { max-width: 640px; }

/* Heatmap: eine Farbe (HGG-Blau), hell = frei, dunkel = voll. Gesperrt = Schraffur. */
.hm-scroll { margin-top: 12px; overflow-x: auto; }
.hm { display: flex; flex-direction: column; gap: 3px; min-width: 320px; }
.hm-row { display: flex; gap: 3px; align-items: center; }
.hm-day { flex: none; width: 26px; font-size: 12px; font-weight: 700; color: var(--muted); }
.hm-h { flex: 1 0 18px; font-size: 10.5px; color: var(--faint); text-align: left; }
.hm-c { flex: 1 0 18px; height: 26px; border-radius: 4px; display: inline-block; }
.hm-c.l0 { background: #F3ECE1; }
.hm-c.l1 { background: #C9D7EF; }
.hm-c.l2 { background: #8EAAE0; }
.hm-c.l3 { background: #4A73C4; }
.hm-c.l4 { background: #033A97; }
.hm-c.lna { background: repeating-linear-gradient(135deg, #FAF6EF 0 4px, #E2D5C2 4px 6px); }
.hm-legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.hm-legend .hm-c { flex: none; width: 18px; height: 14px; }
.hm-legend span + .hm-c, .hm-legend .lna { margin-left: 4px; }

@media (min-width: 900px) {
  .ck { flex-direction: row; align-items: flex-start; gap: 8px; padding: 24px 24px 0; }
  .ck-side { position: sticky; top: 84px; flex: none; width: 240px; padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--card-shadow); }
  .ck-nav { flex-direction: column; overflow: visible; gap: 2px; }
  .ck-nav a { justify-content: space-between; background: none; box-shadow: none; border-radius: 12px; }
  .ck-nav a:hover { background: var(--cream); }
  .ck-nav a.on { background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; }
  .ck-out { display: block; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
  .ck-main { flex: 1; padding: 0 0 0 16px; }
  .ck-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ck-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .ck-grid-wide { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ck-fac { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .ck-fac-h { display: none; }
  .ck-f-name { grid-column: 1 / -1; }
  .ck-fl { position: static; width: auto; height: auto; clip: auto; display: block; margin: 4px 0 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
  .ck-hours { grid-template-columns: 1fr auto; }
  .ck-hours > span[aria-hidden] { display: none; }
  .ck-em { grid-template-columns: 1fr 1fr; }
  .ck-em .inp:first-child { grid-column: span 2; }
}
@media (max-width: 899px) { .ck-brand { display: none; } .ck-side { padding-bottom: 0; } }

/* ---------- Nachträge aus Prüfbericht 3 ---------- */
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 12px 16px; border-radius: 10px; background: var(--blue); color: #FFF; font-weight: 700; border: 0; }
.skip:focus { top: 8px; }
.load { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 90; background: var(--red, #C41E26); opacity: 0; pointer-events: none; }
.load.on { opacity: 1; width: 85%; transition: width 8s cubic-bezier(.1, .7, .2, 1); }
.pre { white-space: pre-line; }
/* Lange Namen ohne Leerzeichen dürfen das Layout nicht sprengen. */
.ttl, .tsub, .rank, .rank span, .task .grow, .card p, .slot, .ck-kpi, .mate + span, td, th { overflow-wrap: anywhere; min-width: 0; }
.rank .grow, .task .grow, .row > .grow { min-width: 0; }
/* Kontrast (WCAG AA): Schrift auf farbigen Flächen dunkler bzw. Fläche kräftiger. */
.chk input[type=checkbox], .chk input[type=radio] { width: 24px; height: 24px; flex: 0 0 24px; }
.door.lastchance { background: #A85A00; }
.t-zahnarzt { --c: #9A5200; --bg: #FFF4E0; }
.t-physio { --c: #0A6B6B; --bg: #E4F4F4; }
.badge.off .ic { color: #6B5E4C; }

/* Sehr lange Wörter ohne Leerzeichen dürfen keine Zeile sprengen (Mengen, Notfall-Bezeichnungen, Stallnamen). */
.feed-row { grid-template-columns: 78px minmax(0, 1fr) minmax(0, auto); }
.feed-row .amt { white-space: normal; overflow-wrap: anywhere; max-width: 40vw; text-align: right; }
.em > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.em-l { flex: 0 1 auto; }
.em b { white-space: normal; }
.ck-head > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
body { overflow-wrap: break-word; }
.feed-row > *, .rules li, .note { min-width: 0; overflow-wrap: anywhere; }
.slot-row > * { min-width: 0; overflow-wrap: break-word; }


/* Admin-Prüfung: Vorschaubild neben dem Foto, damit beide geprüft werden. */
.admin-pics { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.admin-thumb { margin: 0; }
.admin-thumb img { width: 120px; height: auto; border-radius: 8px; border: 2px solid var(--line); display: block; }
.admin-log { margin-top: 10px; }

/* Medikamente */
.t-med { --c: #8A2E6B; --bg: #F8EAF3; }
.med { padding: 12px 14px; background: var(--bg); border-radius: 14px; box-shadow: var(--tile-shadow); display: flex; flex-direction: column; gap: 8px; }
.med-slots .sbtn { min-height: 40px; }

/* Stall-Termine und Brett-Rubriken */
.sev { padding: 12px 14px; background: var(--bg); border-radius: 14px; box-shadow: var(--tile-shadow); display: flex; flex-direction: column; gap: 8px; }
.sev-h { min-height: 40px; }
.chip-k { align-self: flex-start; font-size: 12px; padding: 2px 10px; min-height: 0; }
.note.note-order { background: var(--red-soft); box-shadow: var(--tile-shadow); }

/* Admin: System & Fehler */
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-b { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; }
.seg-b.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.sys-check { display: flex; gap: 10px; align-items: flex-start; }
.sys-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: none; background: #2E7D32; }
.sys-warn .sys-dot { background: #B26A00; } .sys-bad .sys-dot { background: #C62828; }
/* Status als Kachel: dezenter Rundum-Schatten, Farbe nur als Punkt und leichte Tönung – keine Ränder an einer Seite. */
.sys-head, .sys-err { box-shadow: var(--tile-shadow); }
.sys-head.sys-warn, .sys-err.sys-warn { background: #FFF8EC; } .sys-head.sys-bad, .sys-err.sys-bad { background: #FDF0F0; }
.sys-err.sys-done { opacity: .7; }
.sys-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; background: #F6F3EE; padding: 10px; border-radius: 8px; max-height: 320px; overflow: auto; }
.sys-log { font-family: inherit; font-size: 13px; }

/* Benachrichtigungen einschalten */
.notify { display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--tile-shadow); }
.notify-ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); }
.notify-ic.big { width: 56px; height: 56px; border-radius: 18px; }
.notify-ic.big svg { width: 28px; height: 28px; }
.stack-s { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pad-x { padding: 0 16px; margin-top: 14px; }
.guide { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide li { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; background: var(--surface); box-shadow: var(--tile-shadow); }
.guide-pic { flex: none; }
.guide-pic svg { display: block; width: 104px; height: auto; }
.guide-end { background: var(--green-soft); box-shadow: none; }

/* Admin: Dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kpi { padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--tile-shadow); min-width: 0; }
.kpi b { display: block; font-size: 26px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi i { display: block; font-style: normal; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.dash-sec { display: flex; flex-direction: column; gap: 10px; }
.dash-sec > .kick { margin-top: 8px; }
.chart { padding: 14px 14px 10px; border-radius: 16px; background: var(--surface); box-shadow: var(--tile-shadow); min-width: 0; }
.chart-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chart-h b { color: var(--ink); font-size: 14px; }
.chart-h span { font-size: 12px; color: var(--muted); }
.dbars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 120px; margin-top: 12px; border-bottom: 1px solid var(--line-2); }
.dbars .dbar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; }
.dbars .dbar i { display: block; width: 100%; max-width: 18px; margin: 0 auto; border-radius: 4px 4px 0 0; background: var(--blue-2); min-height: 0; }
.dbars .dbar.zero i { background: transparent; }
.dbars .dbar:hover i, .dbars .dbar:focus-visible i { background: var(--blue); }
.dbars .dbar .tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 8px; z-index: 2; pointer-events: none; }
.dbars .dbar:hover .tip, .dbars .dbar:focus-visible .tip { display: block; }
.dbars-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 4px; }
.funnel { display: grid; gap: 8px; margin-top: 10px; }
.funnel-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.funnel-track { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.funnel-track i { display: block; height: 100%; border-radius: 999px; background: var(--blue-2); }
.funnel-row b { font-variant-numeric: tabular-nums; color: var(--ink); }
.top-list { display: grid; gap: 8px; margin-top: 10px; }
.top-row { display: flex; align-items: center; gap: 10px; }
.top-row img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.top-row .grow { min-width: 0; overflow-wrap: anywhere; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.dash-table th, .dash-table td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--line); }
.dash-table th:first-child, .dash-table td:first-child { text-align: left; }
.dash-2 { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
details.dash-more summary { cursor: pointer; font-size: 13px; color: var(--blue-ink); margin-top: 8px; }

/* ---------- Startseite für Besucher (start.js) ---------- */
body.is-start main { max-width: 1120px; }
.lp { display: flex; flex-direction: column; gap: 56px; padding: 0 16px 8px; }
.lp-hand { font-size: 24px; }
.lp-h1 { margin: 6px 0 0; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 36px; line-height: 1.04; letter-spacing: -.015em; color: var(--blue-ink); hyphens: manual; }
.lp-h2 { margin: 4px 0 0; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 26px; line-height: 1.1; color: var(--blue-ink); }
.lp-h2.white { color: #FFF; }
.lp-h3 { margin: 4px 0 0; font-size: 21px; line-height: 1.25; font-weight: 800; color: var(--ink); }
.lp-h4 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.lp-lead { margin: 14px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--text-2); max-width: 34em; }
.lp-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.lp-sec { display: flex; flex-direction: column; scroll-margin-top: 84px; }

/* Hero */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 28px; }
.lp-copy { display: flex; flex-direction: column; }
.lp-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.lp-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.lp-facts li { display: inline-flex; align-items: center; gap: 7px; }
.lp-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--green); }

.lp-visual { position: relative; height: 470px; max-width: 420px; width: 100%; margin: 0 auto; }
.lp-photo { position: absolute; right: 0; top: 0; width: 62%; height: 360px; border-radius: 26px; overflow: hidden; box-shadow: 0 20px 44px rgba(90, 60, 20, .18); transform: rotate(2.5deg); }
.lp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 18% 40%; }
.lp-phone { position: absolute; left: 0; bottom: 0; width: 300px; height: 590px; padding: 10px; border-radius: 46px; background: #141A2A; box-shadow: 0 30px 60px rgba(20, 26, 42, .32), inset 0 0 0 2px #2B3247; transform: scale(.76); transform-origin: left bottom; }
.lp-notch { position: absolute; z-index: 2; left: 50%; top: 18px; width: 90px; height: 24px; margin-left: -45px; border-radius: 14px; background: #141A2A; }
.lp-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: var(--cream); display: flex; flex-direction: column; }
.lp-sbar { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 26px 0 30px; font-size: 13px; font-weight: 700; color: var(--ink); }
.lp-sbar-r { display: inline-flex; gap: 3px; align-items: flex-end; }
.lp-sbar-r i { display: block; width: 4px; border-radius: 1px; background: var(--ink); }
.lp-sbar-r i:nth-child(1) { height: 5px; } .lp-sbar-r i:nth-child(2) { height: 8px; } .lp-sbar-r i:nth-child(3) { height: 11px; }
.lp-apptop { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--sand); }
.lp-apptop img { height: 20px; width: auto; }
.lp-apptop span { font-family: var(--hand); font-weight: 700; font-size: 22px; color: var(--blue-ink); }
.lp-screen .horse { margin: 12px 12px 10px; padding: 10px; gap: 10px; }
.lp-screen .horse .av { width: 44px; height: 44px; font-size: 18px; }
.lp-screen .horse .h1 { font-size: 20px; }
.lp-screen .seg { margin: 0 12px; }
.lp-screen .seg span { min-height: 30px; font-size: 12px; }
.lp-sbody { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; flex: 1 1 auto; }
.lp-screen .card.p { padding: 11px 13px; }
.lp-screen .task { padding: 9px 12px; gap: 10px; }
.lp-screen .tchk { width: 24px; height: 24px; }
.lp-screen .mate { width: 26px; height: 26px; font-size: 11px; }
.lp-screen .ttl { font-size: 13.5px; }
.lp-screen .tsub { font-size: 11.5px; }
.lp-tabbar { display: flex; justify-content: space-around; align-items: center; height: 58px; padding-bottom: 6px; background: var(--surface); border-top: 1px solid var(--sand); }
.lp-tabbar span { display: inline-flex; color: var(--muted); }
.lp-tabbar span.on { color: var(--blue-ink); }
.lp-tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lp-tabbar .lp-plus { width: 40px; height: 40px; margin-top: -16px; border-radius: 20px; background: var(--blue); color: #FFF; align-items: center; justify-content: center; }
.task.done .ttl { text-decoration: line-through; text-decoration-color: rgba(31, 42, 68, .35); }

.lp-push { position: absolute; z-index: 3; right: 0; top: 250px; width: 230px; display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 16px; background: rgba(255, 255, 255, .97); box-shadow: 0 14px 34px rgba(31, 42, 68, .18); font-size: 12.5px; line-height: 1.4; color: var(--text); }
.lp-push b { color: var(--ink); }
.lp-push-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--red); color: #FFF; display: inline-flex; align-items: center; justify-content: center; }
.lp-push-ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-done { position: absolute; z-index: 3; right: 14px; bottom: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--surface); box-shadow: 0 10px 26px rgba(31, 42, 68, .16); font-size: 13px; font-weight: 700; color: var(--ink); }
.lp-done .tchk { width: 24px; height: 24px; cursor: default; }

/* Häkchen-Listen */
.lp-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.lp-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.lp-tick { flex: none; width: 22px; height: 22px; margin-top: 0; border-radius: 11px; background: var(--green-soft); color: var(--green-ink); display: inline-flex; align-items: center; justify-content: center; }
.lp-tick svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Funktionen mit App-Ausschnitt */
.lp-feat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line-2); }
.lp-ftext p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.lp-num { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 15px; color: var(--red-ink); letter-spacing: .04em; }
.lp-panel { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 24px; background: linear-gradient(160deg, #F4EBDD, #EFE4D3); }
.lp-panel .card { box-shadow: var(--tile-shadow); }
.lp-panel .note p { margin: 4px 0 0; font-size: 13.5px; }
.lp-ptitle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 0; }
.lp-ptitle .chip { min-height: 34px; cursor: default; }
.lp-panel .sbtn { display: inline-flex; align-items: center; justify-content: center; cursor: default; }

/* Kacheln */
.lp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.lp-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--tile-shadow); }
.lp-tile p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.lp-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue-ink); margin-bottom: 6px; }
.lp-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lp-med .lp-ic { background: #F8EAF3; color: #8A2E6B; }
.lp-win .lp-ic { background: #E4F4F4; color: #0A6B6B; }
.lp-bell .lp-ic, .lp-heart .lp-ic { background: var(--red-soft); color: var(--red-ink); }
.lp-gift .lp-ic { background: var(--orange-soft); color: var(--brown-ink); }

/* Band für Stallbetreiber */
.lp-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 28px 20px; border-radius: 28px; background: radial-gradient(700px 300px at 10% 0%, #1C4CA8, #0B2A5E 75%); color: #E6ECF8; }
.lp-band .lp-hand { color: #FFE8C2; }
.lp-band p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; }
.lp-band .lp-list li { color: #FFF; }
.lp-band .lp-tick { background: rgba(255, 255, 255, .16); color: #FFF; }
.lp-btn-white { margin-top: 22px; background: #FFF; color: #033A97; }
.lp-cockpit { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 20px 44px rgba(0, 0, 0, .25); }
.lp-ck-top { display: flex; flex-direction: column; }
.lp-ck-top .hand { font-size: 20px; }
.lp-ck-top b { font-size: 17px; color: var(--ink); }
.lp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-kpis div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--cream); text-align: center; }
.lp-kpis b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; color: var(--blue-ink); line-height: 1.1; }
.lp-kpis span { font-size: 11.5px; color: var(--muted); line-height: 1.25; }

/* Schritte, Installieren, Abschluss */
.lp-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.lp-ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lp-ol li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--tile-shadow); font-size: 14.5px; line-height: 1.5; }
.lp-ol b { color: var(--ink); font-size: 15.5px; }
.lp-stepn { flex: none; width: 36px; height: 36px; border-radius: 18px; background: var(--blue); color: #FFF; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 17px; }
.lp-install { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--blue-soft); }
.lp-install p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: #3F4A63; }
.lp-install .lp-ic { background: var(--surface); margin: 0; }
.lp-final { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; padding: 30px 20px; border-radius: 28px; background: var(--surface); box-shadow: var(--tile-shadow); text-align: center; }
.lp-final .hand { margin: 0; font-size: 30px; }
.lp-final .btn { max-width: 340px; }
.lp-login { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

@media (min-width: 560px) {
  .lp-ctas { flex-direction: row; }
  .lp-ctas .btn { width: auto; padding: 0 28px; }
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .lp { gap: 84px; padding: 0 16px 16px; }
  .lp-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-top: 56px; }
  .lp-h1 { font-size: 56px; }
  .lp-h2 { font-size: 36px; }
  .lp-lead { font-size: 18px; }
  .lp-visual { height: 560px; max-width: 500px; }
  .lp-photo { height: 440px; width: 60%; }
  .lp-phone { transform: scale(.9); }
  .lp-push { top: 300px; right: -6px; }
  .lp-feat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 40px 0; }
  .lp-feat.lp-rev .lp-ftext { order: 2; }
  .lp-panel { padding: 24px; }
  .lp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .lp-band { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 48px; }
  .lp-btn-white { width: auto; align-self: flex-start; padding: 0 28px; }
  .lp-band-text { display: flex; flex-direction: column; }
  .lp-steps { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 20px; }
  .lp-final { padding: 44px; }
}
@media (max-width: 370px) { .lp-phone { transform: scale(.68); } .lp-visual { height: 430px; } .lp-push { width: 200px; } }
@media (prefers-reduced-motion: no-preference) {
  .lp-push { animation: lp-pop .6s .5s both cubic-bezier(.2, .8, .3, 1.2); }
  .lp-done { animation: lp-pop .6s 1.1s both cubic-bezier(.2, .8, .3, 1.2); }
}
@keyframes lp-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Abstände & Knöpfe (Layout-Prüfung 25.11.) ---------- */
/* Formulare ohne .stack: Absende-Knopf und Links darunter bekommen Luft */
form:not(.stack) > .btn { margin-top: 16px; }
form:not(.stack) > .btn + .btn { margin-top: 10px; }
form:not(.stack) > .btn + .link, form:not(.stack) > .btn + .row { margin-top: 10px; }
.pill, .sbtn { flex-shrink: 0; }
/* Mehrzeilige Knöpfe sauber zentriert statt linksbündig */
.btn { text-align: center; line-height: 1.25; }
.btn:not(.btn-small) { padding-top: 10px; padding-bottom: 10px; }
/* Kurze Beschriftungen in Pillen nie umbrechen */
.due, .pill, .sbtn, .mini-cd, .chip-k, .hdr-login, .lp-ptitle > .ok-badge { white-space: nowrap; }
.appt > .due, .card.p.row > .warn { flex: none; white-space: nowrap; }
/* Fußzeile nie hinter der unteren Leiste (inkl. iPhone-Home-Balken und überstehendem Plus-Knopf) */
main { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 44px); }
@media (min-width: 900px) { main { padding-bottom: 48px; } }
body.is-start main { padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
/* Startseite: Anmelden oben rechts auch am Handy (dort gibt es keine untere Leiste) */
@media (max-width: 899px) {
  body.is-start .hdr-login:not(.hidden) { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red-ink); font-weight: 700; font-size: 14px; text-decoration: none; }
}
/* Größere Tippflächen ohne optische Änderung */
.tchk { position: relative; }
.tchk::after { content: ""; position: absolute; inset: -8px; }
.morning button { min-height: 44px; }
.ck-actions { gap: 6px; }
/* Raster und Eingabezeilen: mindestens 8 px Abstand */
.plan { gap: 6px; }
.ck-em { gap: 8px; }
.ck-em + .ck-em { margin-top: 4px; }
/* Startseite: Linie erst zwischen den Funktionen, nicht unter der Überschrift */
.lp-head + .lp-feat { border-top: 0; padding-top: 4px; }
/* Zeilen mit Knöpfen in Formularen ohne Raster (z. B. Futterplan bearbeiten) und Felder direkt vor Knöpfen */
form:not(.stack) > .row { margin-top: 12px; }
:not(.row):not(.stack):not(.chips) > :is(.inp, .sel, .ta) + :is(.btn, .row, .sbtn, .chips) { margin-top: 14px; }
/* Updates im Admin-Bereich */
.upd .upd-pick { align-self: flex-start; }
.upd-run { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--blue-soft); color: var(--ink); }
.upd-spin { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 3px solid rgba(3, 58, 151, .2); border-top-color: var(--blue); animation: upd-rot 1s linear infinite; }
@keyframes upd-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .upd-spin { animation-duration: 3s; } }
.upd-ok { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--green-soft); color: var(--ink); }
.upd-ok .lp-tick { background: var(--green); color: #FFF; font-weight: 800; }
.upd-bad { color: #9A1219; }
.card-inner { padding-top: 4px; }

/* ---------- Startseite: Feinschliff ---------- */
.lp-h1 span { display: block; }
.lp-h1 .lp-h1-red { color: var(--red-ink); }
.lp-lead { text-wrap: pretty; }
.lp-h2, .lp-h3 { text-wrap: balance; }
.lp-facts { gap: 8px; }
.lp-facts li { gap: 6px; padding: 5px 11px 5px 7px; border-radius: 999px; background: var(--surface); box-shadow: var(--tile-shadow); font-size: 13px; color: var(--ink); }
.lp-facts li::before { content: none; }
.lp-facts svg { width: 14px; height: 14px; padding: 2px; border-radius: 7px; background: var(--green); stroke: #FFF; stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; box-sizing: content-box; }
/* Weicher Farbschein hinter dem Handy */
.lp-visual::before { content: ""; position: absolute; z-index: -1; left: -8%; right: -8%; top: 8%; bottom: -4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(42, 91, 192, .16), rgba(42, 91, 192, 0)); }
.lp-visual { isolation: isolate; }
.lp-phone { z-index: 1; }
.lp-push, .lp-done { z-index: 4; }
/* Am Handy: Hinweise über dem Foto statt über dem Handy-Bildschirm */
@media (max-width: 899px) {
  .lp-push { top: 18px; right: 0; width: 196px; padding: 9px 11px; font-size: 12px; }
  .lp-push-ic { width: 26px; height: 26px; }
  .lp-done { right: 0; bottom: 30px; font-size: 12.5px; }
  .lp-photo { top: 74px; height: 330px; }
  .lp-visual { margin-top: 4px; }
  .lp-hero { gap: 26px; }
  /* Aktionskarten kompakter */
  .mini-pic, .mini-door { height: 150px; }
  .mini-box { width: 72px; height: 72px; font-size: 34px; }
  .mini-body { padding: 16px 18px 18px; gap: 6px; }
  .mini-t { font-size: 23px; }
  .mini-x { font-size: 14.5px; }
  /* Kleine Helfer als kompakte Zeilen: Symbol links, Text rechts */
  .lp-tile { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 14px 16px; align-items: start; }
  .lp-tile .lp-ic { grid-row: span 2; margin: 0; }
  .lp-tile p { font-size: 13.5px; }
  .lp-grid { gap: 10px; }
}
.lp-tile { transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .lp-tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(31, 42, 68, .06), 0 12px 28px rgba(31, 42, 68, .1); } }
/* Abschluss mit Bildern */
.lp-final { flex-direction: column; gap: 22px; text-align: center; overflow: hidden; }
.lp-final-text { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lp-final-text .muted { margin: 0; }
.lp-final-text .btn { margin-top: 6px; width: 100%; max-width: 340px; }
.lp-final-pics { display: flex; justify-content: center; }
.lp-final-pics img { width: 96px; height: 120px; object-fit: cover; border-radius: 16px; border: 4px solid #FFF; box-shadow: 0 10px 24px rgba(90, 60, 20, .18); }
.lp-final-pics img:nth-child(1) { transform: rotate(-6deg) translateY(6px); margin-right: -14px; }
.lp-final-pics img:nth-child(2) { position: relative; z-index: 1; transform: translateY(-4px); }
.lp-final-pics img:nth-child(3) { transform: rotate(6deg) translateY(6px); margin-left: -14px; }
@media (min-width: 900px) {
  .lp-final { flex-direction: row; justify-content: center; gap: 56px; text-align: left; padding: 48px 56px; }
  .lp-final-text { align-items: flex-start; max-width: 460px; }
  .lp-final-text .btn { width: auto; padding: 0 30px; }
  .lp-final-pics img { width: 132px; height: 168px; }
  .lp-h1 { font-size: 60px; }
}
/* Einblenden beim Scrollen */
@media (prefers-reduced-motion: no-preference) {
  .lp-rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
  .lp-rv.lp-in { opacity: 1; transform: none; }
}
.lp { overflow-x: hidden; overflow-x: clip; }
.mm-text .hand, .empty-pola .hand { font-size: 22px; }
.pv-login-top { margin: 0 16px 14px; }
/* Anlagen: einzeln entfernen, neue über ＋ */
.ck-fac { grid-template-columns: minmax(0, 2fr) 64px 1fr 1fr 1fr 44px; }
.ck-fac-del { width: 44px; height: 44px; border-radius: 22px; color: var(--muted); }
.ck-fac-del span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ck-fac-del:hover { color: var(--red-ink); background: var(--red-soft); }
.ck-fac-add { align-self: flex-start; }
/* Uhrzeit- und Datumsfelder: am iPhone nicht breiter als ihre Spalte */
input.inp[type=time], input.inp[type=date] { display: block; width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; text-align: left; }
input.inp[type=time]::-webkit-date-and-time-value, input.inp[type=date]::-webkit-date-and-time-value { text-align: left; }
@media (max-width: 560px) {
  .ck-fac { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ck-fac-del { grid-column: 1 / -1; justify-self: start; width: auto; height: 40px; padding: 0 12px; gap: 6px; margin-top: 4px; color: var(--red-ink); background: var(--red-soft); font-size: 13px; font-weight: 700; }
  .ck-fac-del span { position: static; width: auto; height: auto; clip: auto; }
  .ck-fac-del svg { width: 16px; height: 16px; }
}
/* Hof-Cockpit: Pferde am Hof */
.ck-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ck-hgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 760px) { .ck-hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ck-horse { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--cream); }
.av-s { flex: none; width: 36px; height: 36px; border-radius: 18px; background: var(--blue); color: #FFF; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 16px; }
/* Schmale Handys (320 px): nichts darf breiter als der Bildschirm werden */
.sorts { flex-wrap: wrap; }
.feed-edit { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr) minmax(0, .9fr) 40px; }
@media (min-width: 420px) { .feed-edit { grid-template-columns: 110px minmax(0, 1fr) 90px 40px; } }
.inp, .sel, .ta { max-width: 100%; min-width: 0; }
.sheet { overflow-x: hidden; }

/* Safari/WebKit (Mac, iPhone, iPad): Auswahl-, Datums- und Uhrzeitfelder sehen aus wie alle anderen Felder.
   Safari ignoriert bei nativen Auswahlfeldern die Höhe und setzt den Text in Datums-/Uhrzeitfeldern ohne
   eigene Darstellung oben an – darum feste Höhe über Innenabstand statt Mindesthöhe, und ein eigener Pfeil. */
select.sel { -webkit-appearance: none; -moz-appearance: none; appearance: none; height: 48px; min-height: 48px; padding: 0 38px 0 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C4E3C' 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 12px center / 16px 16px; }
input.inp[type=time], input.inp[type=date] { height: 48px; min-height: 48px; padding: 12px 14px; line-height: 21px; }
input.inp[type=time]::-webkit-datetime-edit, input.inp[type=date]::-webkit-datetime-edit,
input.inp[type=time]::-webkit-datetime-edit-fields-wrapper, input.inp[type=date]::-webkit-datetime-edit-fields-wrapper { padding: 0; line-height: 21px; }
input.inp[type=time]::-webkit-calendar-picker-indicator, input.inp[type=date]::-webkit-calendar-picker-indicator { margin: 0 0 0 4px; padding: 0; }
.ck-fac select.sel, .feed-edit select.sel { height: 44px; min-height: 44px; padding: 0 28px 0 8px; background-position: right 8px center; background-size: 14px 14px; }
.ck-fac input.inp[type=time], .ck-fac input.inp[type=date] { height: 44px; min-height: 44px; padding: 10px 8px; line-height: 21px; }
/* Häkchen und Auswahlpunkte selbst zeichnen – Safari ignoriert sonst Größe und Farbe. */
.chk input[type=checkbox], .chk input[type=radio] { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; flex: 0 0 24px; margin: 0; border: 2px solid var(--line-2); border-radius: 7px; background: var(--surface) no-repeat center / 16px 16px; cursor: pointer; }
.chk input[type=radio] { border-radius: 50%; }
.chk input[type=checkbox]:checked { border-color: var(--blue); background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.chk input[type=radio]:checked { border-color: var(--blue); box-shadow: inset 0 0 0 5px #FFFFFF; background: var(--blue); }
.chk input:focus-visible { outline: 3px solid rgba(3, 58, 151, .45); outline-offset: 2px; }
.ck-hours .chk input[type=checkbox] { width: 20px; height: 20px; flex-basis: 20px; background-size: 14px 14px; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸"; display: inline-block; width: 1em; transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
a, button, label, summary { -webkit-tap-highlight-color: rgba(3, 58, 151, .12); }

/* Reitplan */
.slot.rest { background: repeating-linear-gradient(135deg, #F3ECE1 0 6px, #E9E0D2 6px 12px); color: var(--muted); }
.slot.taken { cursor: default; }

button.d { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0; width: 100%; }
.cal button.d:focus-visible { outline: 3px solid rgba(3, 58, 151, .45); outline-offset: 1px; }
.tile .ov > :first-child { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; min-width: 0; }

/* Gewinnerbild */
.winner { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; margin: 4px 16px 14px; padding: 14px; border-radius: 20px; background: var(--surface); border: 2px solid var(--blue); }
.winner-pic { width: 96px; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--sand); }
.winner-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.winner-name { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--blue-ink); overflow-wrap: anywhere; }
.tile .new.win { background: var(--blue); }

/* Stall-Einladung per Link/QR-Code */
.ck-join-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; }
.ck-qr { display: block; width: 132px; height: 132px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #FFF; }
.ck-qr svg { display: block; width: 100%; height: 100%; }
.ck-joinurl { font-weight: 700; font-size: 13.5px; overflow-wrap: anywhere; }
@media (max-width: 380px) { .ck-join-row { grid-template-columns: minmax(0, 1fr); justify-items: start; } }
#printArea { display: none; }
@media print {
  body.printing > :not(#printArea) { display: none !important; }
  body.printing { background: #FFF !important; }
  body.printing #printArea { display: block; }
  .pr-sheet { font-family: inherit; color: #000; text-align: center; padding: 12mm 10mm; }
  .pr-brand { font-size: 14pt; font-weight: 800; letter-spacing: .04em; color: #033A97; }
  .pr-title { font-size: 34pt; line-height: 1.1; margin: 8mm 0 4mm; }
  .pr-sub { font-size: 14pt; margin: 0 auto 8mm; max-width: 150mm; }
  .pr-qr { width: 110mm; height: 110mm; margin: 0 auto 8mm; }
  .pr-qr svg { width: 100%; height: 100%; }
  .pr-steps { display: inline-block; text-align: left; font-size: 15pt; line-height: 1.7; margin: 0 auto 6mm; padding-left: 8mm; }
  .pr-url { font-size: 12pt; font-weight: 700; }
}

/* ---------- Feinschliff 1.9: ruhiger, feiner, einheitlicher ---------- */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "kern", "calt"; }
::selection { background: rgba(3, 58, 151, .16); }
/* Überschriften: enger gesetzt, klare Stufen */
.h1, .lp-h1, .chero-t, .disp { letter-spacing: -.022em; font-stretch: normal; }
.h2 { font-size: 17.5px; font-weight: 700; letter-spacing: -.012em; }
.ttl { letter-spacing: -.005em; }
/* Kleine Überzeilen: normale Schreibweise statt gesperrter Großbuchstaben */
.kick { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.ck-fac-h, .ck-th { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
/* Zahlen in Zeiten, Daten und Zählern stehen sauber untereinander */
.tsub, .tm, .due, .cal, .plan, .pill, .rank, .ck-kpi b, .stat b, .wx .t, .slot-row, .hm, .inp[type=time], .inp[type=date] { font-variant-numeric: tabular-nums; }
/* Knöpfe: feine Tiefe, spürbares Drücken */
.btn { letter-spacing: -.006em; transition: transform .08s ease-out, box-shadow .12s ease-out, filter .12s ease-out; }
.btn:not(.btn-ghost):not(.btn-soft):not(.btn-red) { background-image: linear-gradient(180deg, var(--brand-a) 0%, var(--brand-b) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(3, 30, 80, .25), 0 8px 18px -10px rgba(3, 58, 151, .65); }
.btn-red { background-image: linear-gradient(180deg, #D0262E 0%, #B81A22 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(90, 10, 14, .25), 0 8px 18px -10px rgba(196, 30, 38, .6); }
.btn-ghost { box-shadow: inset 0 0 0 1px rgba(3, 58, 151, .5), 0 1px 2px rgba(31, 42, 68, .05); }
.btn-soft { background: var(--soft-btn); box-shadow: inset 0 0 0 1px rgba(122, 96, 60, .1); }
.btn:active:not(:disabled), .sbtn:active:not(:disabled), .chip:active { transform: translateY(1px); filter: brightness(.97); }
.sbtn { border-width: 1px; border-color: rgba(3, 58, 151, .5); transition: transform .08s ease-out; }
.sbtn.on { border-color: var(--blue); background-image: linear-gradient(180deg, var(--brand-a) 0%, var(--brand-b) 100%); }
.chip { border-width: 1px; border-color: var(--chip-line); box-shadow: 0 1px 2px rgba(74, 52, 24, .04); transition: transform .08s ease-out; }
.chip.on { box-shadow: none; }
.iconbtn { background: var(--cell); box-shadow: inset 0 0 0 1px rgba(122, 96, 60, .08); }
/* Felder: feine Linie, ruhiger Rand beim Tippen */
.inp, .sel, .ta { border-width: 1px; border-color: var(--field-line); border-radius: 13px; box-shadow: inset 0 1px 2px rgba(74, 52, 24, .04); transition: border-color .12s, box-shadow .12s; }
.inp::placeholder, .ta::placeholder { color: #A39683; }
.inp:focus, .sel:focus, .ta:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(3, 58, 151, .12); }
.lbl { font-size: 13px; font-weight: 600; letter-spacing: -.003em; }
/* Karten und Hinweise */
.card, .ck-kpi { border-radius: 20px; }
.infobox { border: 0; box-shadow: inset 0 0 0 1.5px rgba(3, 58, 151, .55), 0 10px 24px -16px rgba(3, 58, 151, .45); border-radius: 20px; }
.note { box-shadow: 0 0 0 1px rgba(160, 130, 50, .12), 0 8px 18px -14px rgba(120, 90, 20, .35); }
.note:nth-child(even) { box-shadow: 0 0 0 1px rgba(60, 120, 60, .12), 0 8px 18px -14px rgba(30, 90, 40, .3); }
.warn, .ok-badge, .due { font-weight: 600; letter-spacing: 0; }
.pill { font-weight: 600; box-shadow: inset 0 0 0 1px rgba(196, 30, 38, .1); }
.err { box-shadow: inset 0 0 0 1px rgba(196, 30, 38, .12); }
.task, .slot-row { border-bottom-color: var(--line); }
/* Umschalter (Heute · Termine · …) */
.seg { background: var(--track); box-shadow: inset 0 0 0 1px rgba(122, 96, 60, .07); }
.seg a, .seg button, .seg span { font-weight: 600; transition: color .12s; }
.seg .on { font-weight: 700; box-shadow: 0 0 0 1px rgba(122, 96, 60, .08), 0 2px 6px -1px rgba(74, 52, 24, .16); }
/* Kopf und Menü: leicht durchscheinend, feine Linie */
.top { background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom-color: rgba(122, 96, 60, .14); }
.nav { background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-top-color: rgba(122, 96, 60, .14); }
.tab { font-weight: 600; font-size: 11px; letter-spacing: 0; transition: color .12s; }
.tab.on { font-weight: 700; }
.tab svg { stroke-width: 1.75; }
.tab-plus .plus { background-image: linear-gradient(180deg, var(--brand-a) 0%, var(--brand-b) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 4px rgba(255, 255, 255, .9), 0 10px 20px -8px rgba(3, 58, 151, .6); }
/* Pferde-Kopf, Wetter, Kalender, Pläne */
.horse .av { box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--red-2), 0 6px 14px -6px rgba(3, 58, 151, .5); }
.wx { background: linear-gradient(140deg, #04358A 0%, #0B4BB6 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 14px 28px -18px rgba(3, 58, 151, .8); border-radius: 20px; }
.cal .d { border-radius: 11px; transition: background-color .12s; }
.cal .d.rd { box-shadow: inset 0 0 0 1.5px rgba(217, 130, 43, .85); }
.cal .d.today { box-shadow: 0 4px 10px -4px rgba(3, 58, 151, .6); }
.cal .d.rd.today { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7), 0 4px 10px -4px rgba(3, 58, 151, .6); }
.legend .lg-rd i { box-shadow: inset 0 0 0 1.5px var(--orange); }
.slot { border-radius: 10px; background: var(--cell); transition: transform .08s ease-out; }
.slot:active { transform: scale(.94); }
.slot.c1, .slot.c2, .slot.c3, .slot.c4, .slot.c5, .mate { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.plan b { font-weight: 600; }
/* Bilder */
.tile { border-radius: 18px; box-shadow: var(--tile-shadow); }
.tile .ov { background: linear-gradient(transparent, rgba(12, 16, 28, .62)); font-weight: 600; }
.tile .new { font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.winner { border: 0; box-shadow: inset 0 0 0 1.5px rgba(3, 58, 151, .55), 0 14px 28px -18px rgba(3, 58, 151, .5); }
/* Fenster von unten, Meldungen */
.sheet-bg { background: rgba(22, 30, 50, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet { border-radius: 28px 28px 0 0; box-shadow: 0 -12px 40px -12px rgba(22, 30, 50, .35); }
.grab { width: 38px; height: 4px; background: #DDD1BF; }
.toast { border-radius: 16px; font-weight: 600; background: rgba(27, 36, 60, .96); box-shadow: 0 12px 30px -8px rgba(15, 20, 40, .5); }
/* Hof-Cockpit am PC */
.ck-nav a { box-shadow: inset 0 0 0 1px var(--chip-line); }
.ck-kpi { transition: transform .12s ease-out, box-shadow .12s ease-out; }
@media (hover: hover) {
  a.ck-kpi:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(122, 96, 60, .1), 0 14px 28px -14px rgba(74, 52, 24, .28); }
  .btn:hover:not(:disabled) { filter: brightness(1.05); }
  .chip:hover { border-color: #CDBFA9; }
}
@media (prefers-reduced-motion: reduce) { .btn, .sbtn, .chip, .slot, .ck-kpi, .tab { transition: none; } }
.cd-box span, .em-l { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12px; }
.wx .kick { color: rgba(255, 255, 255, .78); }

/* ---------- Wetterkarte: Symbol je Wetter, leicht bewegt ---------- */
.wx { position: relative; overflow: hidden; isolation: isolate; }
.wx > .grow, .wx > .wx-ic { position: relative; z-index: 1; }
.wx-ic { flex: none; width: 52px; height: 52px; fill: none; stroke: #FFF; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.wx-ic g, .wx-ic path, .wx-ic circle { transform-box: fill-box; transform-origin: center; }
.wx-ic .wx-solid { fill: #0A46AC; }
.wx-ic .wx-stars circle, .wx-ic .wx-snowy circle, .wx-ic .wx-rainy circle { fill: #FFF; stroke: none; }
.wx-up { transform: translateY(-5px); }
.wx-small { transform: translate(-7px, -7px) scale(.72); }
.wx-low { transform: translate(4px, 4px); }
.wx-rays { animation: wx-spin 36s linear infinite; }
.wx-sun circle { animation: wx-breathe 5s ease-in-out infinite; }
.wx-cloud { animation: wx-drift 7s ease-in-out infinite; }
.wx-low.wx-cloud { animation-name: wx-drift-low; }
.wx-moon { animation: wx-rock 8s ease-in-out infinite; }
.wx-stars circle { animation: wx-twinkle 3.2s ease-in-out infinite; }
.wx-stars circle:nth-child(2) { animation-delay: -1.1s; } .wx-stars circle:nth-child(3) { animation-delay: -2.2s; }
.wx-drops > * { animation: wx-drip 1.5s linear infinite; }
.wx-drops > :nth-child(2) { animation-delay: -.5s; } .wx-drops > :nth-child(3) { animation-delay: -1s; }
.wx-snowy > * { animation-name: wx-flake; animation-duration: 3.2s; }
.wx-snowy > :nth-child(2) { animation-delay: -1.1s; } .wx-snowy > :nth-child(3) { animation-delay: -2.1s; }
.wx-bolt { animation: wx-flash 6s ease-in-out infinite; }
.wx-fogl path { animation: wx-slide 6s ease-in-out infinite; } .wx-fogl path:nth-child(2) { animation-direction: reverse; }
.wx-windl path { stroke-dasharray: 44; animation: wx-gust 4.5s ease-in-out infinite; }
.wx-windl path:nth-child(2) { animation-delay: -.6s; } .wx-windl path:nth-child(3) { animation-delay: -1.2s; }
/* Hintergrund */
.wx-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.wx-fx i { position: absolute; top: -12px; display: block; background: #FFF; opacity: 0; will-change: transform; }
.wx-fx i:nth-child(1) { left: 6%; } .wx-fx i:nth-child(2) { left: 17%; } .wx-fx i:nth-child(3) { left: 29%; } .wx-fx i:nth-child(4) { left: 41%; } .wx-fx i:nth-child(5) { left: 52%; }
.wx-fx i:nth-child(6) { left: 63%; } .wx-fx i:nth-child(7) { left: 74%; } .wx-fx i:nth-child(8) { left: 84%; } .wx-fx i:nth-child(9) { left: 93%; } .wx-fx i:nth-child(10) { left: 35%; }
/* Schnee: kleine Flocken, langsam und leicht schräg */
.wx-k-snow .wx-fx i, .wx-k-sleet .wx-fx i:nth-child(even) { width: 4px; height: 4px; border-radius: 50%; animation: wx-snowfall 9s linear infinite; }
.wx-k-snow .wx-fx i:nth-child(3n) { width: 3px; height: 3px; animation-duration: 12s; } .wx-k-snow .wx-fx i:nth-child(4n) { width: 5px; height: 5px; animation-duration: 7.5s; }
/* Regen: feine Striche, zügig */
.wx-k-rain .wx-fx i, .wx-k-storm .wx-fx i, .wx-k-sleet .wx-fx i:nth-child(odd) { width: 1.5px; height: 13px; border-radius: 1px; animation: wx-rainfall 1.25s linear infinite; }
.wx-k-hail .wx-fx i { width: 3.5px; height: 3.5px; border-radius: 50%; animation: wx-rainfall 1.05s linear infinite; }
.wx-fx i:nth-child(1) { animation-delay: -.3s; } .wx-fx i:nth-child(2) { animation-delay: -4.1s; } .wx-fx i:nth-child(3) { animation-delay: -1.7s; } .wx-fx i:nth-child(4) { animation-delay: -6.4s; } .wx-fx i:nth-child(5) { animation-delay: -2.9s; }
.wx-fx i:nth-child(6) { animation-delay: -5.2s; } .wx-fx i:nth-child(7) { animation-delay: -.9s; } .wx-fx i:nth-child(8) { animation-delay: -7.3s; } .wx-fx i:nth-child(9) { animation-delay: -3.6s; } .wx-fx i:nth-child(10) { animation-delay: -8.2s; }
.wx-k-rain .wx-fx i:nth-child(odd), .wx-k-storm .wx-fx i:nth-child(odd), .wx-k-hail .wx-fx i:nth-child(odd) { animation-duration: 1.5s; }
/* Gewitter: ganz selten ein Aufleuchten */
.wx-k-storm .wx-fx::after { content: ""; position: absolute; inset: 0; background: #FFF; opacity: 0; animation: wx-lightning 7s linear infinite; }
/* Sonne: weiches Leuchten oben links */
.wx-k-sun .wx-fx i, .wx-k-partly .wx-fx i:first-child { top: -70px; left: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 221, 138, .5), rgba(255, 221, 138, 0) 68%); opacity: 1; animation: wx-glow 6s ease-in-out infinite; }
/* Wolken: zwei weiche Schleier, die langsam ziehen */
.wx-k-cloud .wx-fx i, .wx-k-partly .wx-fx i:nth-child(2) { top: 18%; left: -30%; width: 55%; height: 46px; border-radius: 40px; background: rgba(255, 255, 255, .09); opacity: 1; filter: blur(10px); animation: wx-pass 26s linear infinite; }
.wx-k-cloud .wx-fx i:nth-child(2) { top: 55%; width: 40%; animation-duration: 34s; animation-delay: -14s; }
/* Nebel: drei Bänder */
.wx-k-fog .wx-fx i { left: -20%; width: 140%; height: 18px; border-radius: 12px; background: rgba(255, 255, 255, .1); opacity: 1; filter: blur(6px); animation: wx-fogmove 11s ease-in-out infinite alternate; }
.wx-k-fog .wx-fx i:nth-child(1) { top: 22%; } .wx-k-fog .wx-fx i:nth-child(2) { top: 50%; animation-duration: 14s; } .wx-k-fog .wx-fx i:nth-child(3) { top: 76%; animation-duration: 9s; }
/* Wind: feine Linien, die durchziehen */
.wx-k-wind .wx-fx i { left: -30%; width: 26%; height: 1.5px; border-radius: 1px; animation: wx-sweep 3.4s ease-in infinite; }
.wx-k-wind .wx-fx i:nth-child(1) { top: 24%; } .wx-k-wind .wx-fx i:nth-child(2) { top: 46%; animation-delay: -1.2s; width: 18%; } .wx-k-wind .wx-fx i:nth-child(3) { top: 66%; animation-delay: -2.1s; } .wx-k-wind .wx-fx i:nth-child(4) { top: 84%; animation-delay: -.5s; width: 14%; }
/* Nacht: Sterne funkeln */
.wx-k-moon .wx-fx i, .wx-k-partly-night .wx-fx i { width: 2.5px; height: 2.5px; border-radius: 50%; animation: wx-twinkle-bg 4s ease-in-out infinite; }
.wx-k-moon .wx-fx i:nth-child(1), .wx-k-partly-night .wx-fx i:nth-child(1) { top: 18%; left: 38%; } .wx-k-moon .wx-fx i:nth-child(2), .wx-k-partly-night .wx-fx i:nth-child(2) { top: 62%; left: 58%; }
.wx-k-moon .wx-fx i:nth-child(3), .wx-k-partly-night .wx-fx i:nth-child(3) { top: 30%; left: 78%; } .wx-k-moon .wx-fx i:nth-child(4), .wx-k-partly-night .wx-fx i:nth-child(4) { top: 74%; left: 90%; }
.wx-k-moon .wx-fx i:nth-child(5) { top: 14%; left: 93%; } .wx-k-moon .wx-fx i:nth-child(6) { top: 82%; left: 30%; }
@keyframes wx-spin { to { transform: rotate(360deg); } }
@keyframes wx-breathe { 50% { transform: scale(1.07); } }
@keyframes wx-drift { 0%, 100% { transform: translateX(-1.5px); } 50% { transform: translateX(1.5px); } }
@keyframes wx-drift-low { 0%, 100% { transform: translate(2.5px, 4px); } 50% { transform: translate(5.5px, 4px); } }
@keyframes wx-rock { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes wx-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes wx-drip { 0% { transform: translateY(-3px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(5px); opacity: 0; } }
@keyframes wx-flake { 0% { transform: translate(0, -3px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(2px, 5px); opacity: 0; } }
@keyframes wx-flash { 0%, 86%, 100% { opacity: .25; } 90%, 94% { opacity: 1; } 92% { opacity: .4; } }
@keyframes wx-slide { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }
@keyframes wx-gust { 0% { stroke-dashoffset: 44; opacity: 0; } 30% { opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: .35; } }
@keyframes wx-snowfall { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 10% { opacity: .55; } 50% { transform: translate3d(14px, 80px, 0); } 90% { opacity: .5; } 100% { transform: translate3d(4px, 170px, 0); opacity: 0; } }
@keyframes wx-rainfall { 0% { transform: translate3d(0, -10px, 0) rotate(12deg); opacity: 0; } 15% { opacity: .32; } 100% { transform: translate3d(-34px, 170px, 0) rotate(12deg); opacity: .2; } }
@keyframes wx-lightning { 0%, 91%, 100% { opacity: 0; } 92% { opacity: .22; } 93% { opacity: .04; } 94% { opacity: .16; } 96% { opacity: 0; } }
@keyframes wx-glow { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes wx-pass { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(340%, 0, 0); } }
@keyframes wx-fogmove { from { transform: translate3d(-6%, 0, 0); } to { transform: translate3d(6%, 0, 0); } }
@keyframes wx-sweep { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 20% { opacity: .5; } 100% { transform: translate3d(620%, 0, 0); opacity: 0; } }
@keyframes wx-twinkle-bg { 0%, 100% { opacity: .15; } 50% { opacity: .8; } }
/* Wer weniger Bewegung eingestellt hat, sieht das Symbol ohne Bewegung und keinen bewegten Hintergrund. */
@media (prefers-reduced-motion: reduce) { .wx-ic *, .wx-fx i, .wx-fx::after { animation: none !important; } .wx-k-snow .wx-fx i, .wx-k-rain .wx-fx i, .wx-k-storm .wx-fx i, .wx-k-sleet .wx-fx i, .wx-k-hail .wx-fx i, .wx-k-wind .wx-fx i { display: none; } }

/* ---------- Dunkelmodus: was nicht über die Farb-Variablen läuft ---------- */
[data-theme="dark"] .t-hufschmied { --c: #8FB2FF; --bg: #111F3D; } [data-theme="dark"] .t-tierarzt { --c: #FF7C82; --bg: #3A1518; } [data-theme="dark"] .t-impfung { --c: #B9A2F5; --bg: #231B3A; }
[data-theme="dark"] .t-wurmkur { --c: #6FD49A; --bg: #0F2A1B; } [data-theme="dark"] .t-zahnarzt, [data-theme="dark"] .t-feed { --c: #F0B56E; --bg: #33230E; } [data-theme="dark"] .t-physio { --c: #5FD0D0; --bg: #0D2B2B; }
[data-theme="dark"] .t-sattler { --c: #D9A877; --bg: #2B2015; } [data-theme="dark"] .t-sonstiges { --c: #C9C9CF; --bg: #232327; } [data-theme="dark"] .t-med { --c: #F09CCB; --bg: #33162A; }
[data-theme="dark"] .inp, [data-theme="dark"] .sel, [data-theme="dark"] .ta { background-color: var(--surface-2); box-shadow: none; }
[data-theme="dark"] .inp::placeholder, [data-theme="dark"] .ta::placeholder { color: #7C7C85; }
[data-theme="dark"] select.sel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9C9CF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
[data-theme="dark"] .inp:focus, [data-theme="dark"] .sel:focus, [data-theme="dark"] .ta:focus { border-color: var(--blue-ink); box-shadow: 0 0 0 4px rgba(143, 178, 255, .18); }
[data-theme="dark"] :focus-visible { outline-color: rgba(143, 178, 255, .7); }
[data-theme="dark"] .btn-ghost { box-shadow: inset 0 0 0 1px rgba(143, 178, 255, .55); }
[data-theme="dark"] .btn-soft { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
[data-theme="dark"] .sbtn { border-color: rgba(143, 178, 255, .5); }
[data-theme="dark"] .sbtn.on { color: #FFF; }
[data-theme="dark"] .chip { box-shadow: none; }
[data-theme="dark"] .chip.on, [data-theme="dark"] .rchip input:checked + span { color: #FFF; }
[data-theme="dark"] .seg { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
[data-theme="dark"] .seg .on { background: #2C2C31; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
[data-theme="dark"] .top, [data-theme="dark"] .nav { border-color: rgba(255, 255, 255, .09); }
[data-theme="dark"] .tab-plus .plus { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 4px #000, 0 10px 20px -8px rgba(29, 87, 210, .7); }
[data-theme="dark"] .infobox, [data-theme="dark"] .winner { box-shadow: inset 0 0 0 1.5px rgba(143, 178, 255, .5); }
[data-theme="dark"] .note { background: #2A2412; box-shadow: 0 0 0 1px rgba(240, 200, 110, .14); }
[data-theme="dark"] .note:nth-child(even) { background: #14261A; box-shadow: 0 0 0 1px rgba(110, 210, 150, .14); }
[data-theme="dark"] .note.note-order { background: var(--red-soft); }
[data-theme="dark"] .err { color: #FFB3B6; box-shadow: inset 0 0 0 1px rgba(255, 124, 130, .2); }
[data-theme="dark"] .pill { box-shadow: inset 0 0 0 1px rgba(255, 124, 130, .18); }
[data-theme="dark"] .heart { background: rgba(16, 16, 18, .82); }
[data-theme="dark"] .pola-tag { background: rgba(30, 30, 33, .92); color: #C9C9CF; }
[data-theme="dark"] .sheet { box-shadow: 0 -1px 0 rgba(255, 255, 255, .08); }
[data-theme="dark"] .sheet-bg { background: rgba(0, 0, 0, .66); }
[data-theme="dark"] .grab { background: #3A3A41; }
[data-theme="dark"] .toast { background: #F4F4F5; color: #141416; }
[data-theme="dark"] .slot.rest { background: repeating-linear-gradient(135deg, #1C1C1F 0 6px, #26262A 6px 12px); }
[data-theme="dark"] .slot-row.locked { background: repeating-linear-gradient(135deg, #141416 0 8px, #1E1E21 8px 16px); }
[data-theme="dark"] .hm-c.l0 { background: #1E1E21; } [data-theme="dark"] .hm-c.l1 { background: #1B2E57; } [data-theme="dark"] .hm-c.l2 { background: #24448A; } [data-theme="dark"] .hm-c.l3 { background: #2F5CC0; } [data-theme="dark"] .hm-c.l4 { background: #6C99FF; }
[data-theme="dark"] .hm-c.lna { background: repeating-linear-gradient(135deg, #141416 0 4px, #34343A 4px 6px); }
[data-theme="dark"] .pv { background: #2A2210; box-shadow: inset 0 0 0 1.5px #57451C; } [data-theme="dark"] .pv-t b { color: var(--ink); }
[data-theme="dark"] .ci-prize { background: var(--red-soft); color: #FFB3B6; }
[data-theme="dark"] .ci-step { background: var(--cell); } [data-theme="dark"] .ci-step b { color: var(--ink); } [data-theme="dark"] .ci-step .t, [data-theme="dark"] .ci-link { color: var(--muted); } [data-theme="dark"] .ci-n { color: var(--blue-ink); }
[data-theme="dark"] .sys-head.sys-warn, [data-theme="dark"] .sys-err.sys-warn { background: #2A2210; } [data-theme="dark"] .sys-head.sys-bad, [data-theme="dark"] .sys-err.sys-bad { background: #331517; }
[data-theme="dark"] .sys-pre { background: #1C1C1F; }
[data-theme="dark"] .lp-install p { color: var(--text-2); }
[data-theme="dark"] .wx { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(255, 255, 255, .06); }
[data-theme="dark"] .cal .d.rd.mine { color: #FFF; }
[data-theme="dark"] img.logo-dark-ok { filter: none; }
[data-theme="dark"] .lp-med .lp-ic { background: #33162A; color: #F09CCB; } [data-theme="dark"] .lp-win .lp-ic { background: #0D2B2B; color: #5FD0D0; }
[data-theme="dark"] .cal .d.past { color: #8A8A93; }
[data-theme="dark"] .mate.c3, [data-theme="dark"] .slot.c3 { background: #7552C9; } [data-theme="dark"] .mate.c4, [data-theme="dark"] .slot.c4 { background: #9A5200; } [data-theme="dark"] .mate.c5, [data-theme="dark"] .slot.c5 { background: #0B7C7C; }
/* Weißer Knopf auf dem blauen Abschnitt der Startseite bleibt weiß (kein blauer Verlauf). */
.btn.lp-btn-white { background: #FFF; background-image: none; color: #033A97; box-shadow: 0 1px 2px rgba(3, 30, 80, .25), 0 10px 20px -12px rgba(0, 0, 0, .5); }
[data-theme="dark"] .lp-panel { background: linear-gradient(160deg, #19191C, #131315); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
[data-theme="dark"] .ck-slot.locked { background: repeating-linear-gradient(135deg, #141416 0 8px, #1E1E21 8px 16px); }

/* Auslastung: Felder ohne Daten (Rückblick reicht noch nicht so weit) – leer mit feinem Rand, nicht „gesperrt“ */
.hm-c.lnd { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.hm-legend .lnd { margin-left: 4px; }

/* ---------- Profilbilder und Pferdeprofil (1.10) ---------- */
.has-img { padding: 0; overflow: hidden; background: var(--cell); }
.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.horse .av.has-img { overflow: visible; }
.horse .av.has-img img { border-radius: 50%; }
.horse-link { display: flex; gap: 14px; align-items: center; min-width: 0; color: inherit; text-decoration: none; border-radius: 18px; -webkit-tap-highlight-color: transparent; }
.horse-link > .grow { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.horse-link .h1 { display: block; }
.horse-more { font-size: 13px; font-weight: 600; color: var(--blue-ink); }
.horse-link:focus-visible { outline: 3px solid rgba(3, 58, 151, .45); outline-offset: 4px; }
.lp-screen .horse-more { display: none; }
.av-xs { flex: none; width: 28px; height: 28px; border-radius: 14px; background: var(--blue); color: #FFF; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.ck-who { display: flex; align-items: center; gap: 8px; }
.ck-who > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.prof-top { padding-bottom: 0; }
.prof-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px 16px; text-align: center; }
.prof-hero-sheet { padding: 4px 0 0; }
.prof-hero .tiny { max-width: 34em; margin: 4px 0 0; }
.prof-photo { flex: none; width: 124px; height: 124px; border-radius: 50%; margin-bottom: 6px; background: var(--blue); color: #FFF; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 52px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--red-2), 0 14px 26px -14px rgba(3, 58, 151, .55); }
.prof-photo.has-img { overflow: visible; }
.prof-photo.has-img img { border-radius: 50%; }
.prof-photo-s { width: 72px; height: 72px; font-size: 30px; margin: 0; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--red-2); }
.prof-actions { justify-content: center; margin-top: 6px; }
.prof-actions .file-btn, .me-photo .file-btn { margin-bottom: 0; cursor: pointer; }
.me-photo { display: flex; gap: 16px; align-items: center; margin: 4px 0 10px; }
.me-photo > .stack-s { min-width: 0; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
@media (max-width: 380px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.fact { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.fact:first-of-type { border-top: 0; }
.fact-l { font-size: 13px; color: var(--text-2); }
.fact-v { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.fact-v a { font-weight: 600; }
@media (max-width: 420px) { .fact { grid-template-columns: minmax(0, 1fr); } }
button.ck-horse { width: 100%; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
button.ck-horse:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
button.ck-horse:focus-visible { outline: 3px solid rgba(3, 58, 151, .45); outline-offset: 2px; }
.ck-flag { display: inline-block; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--red-ink); }
.ck-chev { align-self: center; font-size: 22px; line-height: 1; color: var(--text-2); }
label.sbtn { display: inline-flex; align-items: center; justify-content: center; }
form .kick { margin-top: 14px; }
.hm-legend { flex-wrap: wrap; row-gap: 6px; }
.hm-legend span { white-space: nowrap; }

/* ---------- Kalender: Termine | Training (1.11) ---------- */
.cal-switch { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sand); }
.cal-switch a { flex: 1 1 0; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 700; text-decoration: none; }
.cal-switch a.on { background: var(--surface); color: var(--blue-ink); box-shadow: 0 2px 6px rgba(90, 60, 20, .12); }
.cal-switch a:focus-visible { outline: 3px solid rgba(3, 58, 151, .45); outline-offset: 1px; }
.tk0 { --c: #9A5200; } .tk1 { --c: #1F8A4E; } .tk2 { --c: #D9822B; } .tk3 { --c: #2B66E0; } .tk4 { --c: #D8343C; }
.tk5 { --c: #7B56C9; } .tk6 { --c: #0E8A8A; } .tk7 { --c: #7A9A2E; } .tk8 { --c: transparent; } .tk9 { --c: #8A8378; }
.tr-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
i.tk8, .tr-dot.tk8, .legend i.tk8, .cal .dots i.tk8 { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-2); }
.cal .d.today .dots i { box-shadow: 0 0 0 1.5px #FFF; }
.cal .d.today .dots i.tk8 { box-shadow: inset 0 0 0 1.5px #FFF; }
.cal .d.future { color: var(--faint); opacity: .55; }
.cal-tr button.d { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: inherit; cursor: pointer; }
.cal-tr button.d.today { background: var(--blue); color: #FFF; }
.cal-tr button.d.has-tr:not(.today) { background: var(--cell); color: var(--ink); }
.tr-day { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); min-height: 56px; }
.tr-day.now { background: var(--cell); }
.tr-day.later { opacity: .5; min-height: 44px; }
.tr-wd { flex: none; width: 34px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tr-wd b { font-size: 14px; color: var(--ink); }
.tr-items { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; }
.tr-item { display: flex; align-items: baseline; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.tr-item .tr-dot { position: relative; top: -1px; }
.tr-group + .tr-group { border-top: 1px solid var(--line); }
.tr-date { padding: 10px 14px 0; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.tr-group .task { border-bottom: 0; padding-top: 8px; }
.tr-row .link-plain { font: inherit; color: inherit; min-width: 0; }
.link-block { display: block; color: inherit; text-decoration: none; min-width: 0; }
/* Heute: Aufgaben, die andere übernehmen – nur zur Info */
.task-sep { padding: 10px 14px 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); border-top: 1px solid var(--line); }
.task.info { opacity: .78; padding-top: 9px; padding-bottom: 9px; }
.task.info .ttl { font-weight: 600; }
.dd-row { align-items: center; padding: 2px 0; }
.ck-feed { padding: 12px; border-radius: 14px; background: var(--cream); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ck-feed .ck-flag, .ck-feed .tiny { margin: 0; }
.sbtn.on:disabled { background: var(--blue); color: #FFF; border-color: var(--blue); opacity: .75; }
button.tr-item { font: inherit; color: inherit; width: 100%; padding: 6px 0; margin: -6px 0; }

/* 1.11.1: Futterplan-Editor – „Zusatz“ ausgeschrieben statt „Z“; am Handy zwei Zeilen je Eintrag, damit „Morgens“/„Bei Bedarf“ nicht abgeschnitten werden */
.feed-edit { grid-template-columns: 124px minmax(0, 1fr); margin-bottom: 14px; }
.feed-edit .fe-sup { justify-self: start; }
.feed-edit .fe-sup span { min-height: 44px; font-size: 13px; }
@media (min-width: 520px) { .feed-edit { grid-template-columns: 124px minmax(0, 1fr) 90px auto; margin-bottom: 8px; } }
.ck-link > b.small { flex: none; white-space: nowrap; }
.ck-slot.past { opacity: .55; }

/* 1.11.1: Adventskalender – Zeile über dem Countdown wieder hell; am PC zwei Polaroids neben dem Text */
.cd .cd-lab { color: rgba(255, 255, 255, .85); }
.adv-pola { display: none; }
@media (min-width: 960px) {
  .advent-hero { position: relative; overflow: hidden; }
  .advent-hero > p { max-width: 500px; margin-left: auto; margin-right: auto; text-wrap: balance; }
  .adv-pola { display: block; position: absolute; top: 50%; width: 150px; height: 194px; padding: 7px 7px 26px; background: #FFF; border-radius: 4px; box-shadow: 0 18px 34px rgba(0, 0, 0, .35), 0 2px 5px rgba(0, 0, 0, .25); }
  .adv-pola img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
  .adv-pola-l { left: 32px; transform: translateY(-50%) rotate(-6deg); }
  .adv-pola-r { right: 32px; transform: translateY(-50%) rotate(5deg); }
}
@media (min-width: 1100px) {
  .advent-hero > p { max-width: 620px; }
  .adv-pola { width: 164px; height: 212px; padding: 8px 8px 28px; }
  .adv-pola-l { left: 44px; } .adv-pola-r { right: 44px; }
}

/* 1.12.2: Adventskalender – blauer Kopf über die volle Fensterbreite; die Polaroids bleiben nah am Text */
body { overflow-x: clip; }
.advent-hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
@media (min-width: 960px) {
  .adv-pola-l { left: max(32px, calc(50% - 528px)); }
  .adv-pola-r { right: max(32px, calc(50% - 528px)); }
}
@media (min-width: 1100px) {
  .adv-pola-l { left: max(44px, calc(50% - 516px)); }
  .adv-pola-r { right: max(44px, calc(50% - 516px)); }
}

/* 1.13.0: Pferde-Alltag neben dem Fotowettbewerb – Schalter über den Bildern, Schild am Bild, Auswahl beim Posten */
.feed-switch { margin: 14px 16px 0; }
.feed-switch button { flex: 1 1 0; min-height: 44px; padding: 0 6px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font-size: 14px; font-weight: 700; cursor: pointer; }
.feed-switch button.on { background: var(--surface); color: var(--blue-ink); box-shadow: 0 2px 6px rgba(90, 60, 20, .12); }
.feed-hint { margin: -4px 16px 10px; font-size: 12.5px; color: var(--muted); }
.tile .new.gw { background: #033A97; }
.tile .new.gw::before { content: '★'; margin-right: 4px; }
.tile .new.gw.quiet { background: rgba(255, 255, 255, .92); color: #1F2A44; }
.tile .new.r { left: auto; right: 8px; }
.heart.static { cursor: default; }
.cmini { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 14px 16px 0; padding: 12px 14px; border: 0; text-align: left; color: var(--text); }
button.cmini { cursor: pointer; }
.cmini-n { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 22px; background: var(--red-soft); color: var(--red-ink); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 18px; }
.kinds { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; border: 0; min-width: 0; }
.kinds legend { padding: 0; }
.kind { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--field-line); cursor: pointer; }
.kind.on { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue-2); }
.kind .small { color: var(--text-2); line-height: 1.45; }
.kind .stack-s { gap: 3px; }
.kind input { -webkit-appearance: none; appearance: none; flex: 0 0 24px; width: 24px; height: 24px; margin: 0; border: 2px solid var(--line-2); border-radius: 50%; background: var(--surface); cursor: pointer; }
.kind input:checked { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 5px #FFFFFF; }
.kind input:focus-visible { outline: 3px solid rgba(3, 58, 151, .45); outline-offset: 2px; }
.own-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 12px; }
.own { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.own img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--sand); }
.own .link { min-height: 44px; }
.post-report { align-self: center; color: var(--muted); }
@media (min-width: 720px) { .feed-switch { max-width: 420px; } }
/* Die Einladung zum Posten steht dauerhaft oben – am Handy ohne Polaroids, damit die Bilder schneller kommen. */
@media (max-width: 899px) { .chero-al .polas { display: none; } .chero-al { padding-bottom: 0; } }
/* Fünfte Personenfarbe (Türkis): im hellen Modus etwas dunkler, damit die weiße Schrift gut lesbar ist. */
.mate.c5, .slot.c5 { background: #0B7C7C; }

/* ===== Richtung A „Sanft überarbeitet“: ruhiger, leichter, Rot nur noch im Logo, bei Herzen und bei Warnungen ===== */
:root { --cream: #FAF7F2; --glass: rgba(250, 247, 242, .92); --card-shadow: 0 0 0 1px #E9E1D4; --tile-shadow: 0 0 0 1px #E9E1D4; --radius: 14px; }
.hand { color: var(--muted); }
.morning .hand { color: var(--ink); }
.top .title { color: var(--muted); font-size: 21px; font-weight: 600; }
.h1, .lp-h1, .lp-h2, .chero-t, .winner-name, .mini-t, .ck-name { color: var(--ink); }
.h1 { line-height: 1.15; }
.chero-t { line-height: 1.12; }
.card, .ck-kpi { border-radius: 16px; }
.btn { border-radius: 12px; font-weight: 600; }
.btn:not(.btn-ghost):not(.btn-soft):not(.btn-red), .btn-red, .tab-plus .plus { background-image: none; box-shadow: none; }
.btn-ghost { border-radius: 12px; }
.sbtn { border-radius: 10px; border-width: 1px; font-weight: 600; }
.chip.on, .rchip input:checked + span { background: var(--blue-soft); border-color: rgba(3, 58, 151, .3); color: var(--blue-ink); }
[data-theme="dark"] .chip.on, [data-theme="dark"] .rchip input:checked + span { color: var(--blue-ink); border-color: rgba(143, 178, 255, .4); }
.sorts .chip.on { border-color: transparent; }
.sorts .chip:not(.on) { background: none; border-color: transparent; box-shadow: none; color: var(--muted); font-weight: 500; }
.hdr-me { background: var(--blue-soft); color: var(--blue-ink); }
.hdr-login, body.is-start .hdr-login:not(.hidden) { box-shadow: inset 0 0 0 1px rgba(3, 58, 151, .5); color: var(--blue-ink); border-radius: 12px; }
[data-theme="dark"] .hdr-login, [data-theme="dark"] body.is-start .hdr-login:not(.hidden) { box-shadow: inset 0 0 0 1px rgba(143, 178, 255, .55); }
.topnav a { font-weight: 600; border-radius: 12px; }
.tab { font-weight: 500; }
.tab.on { font-weight: 600; }
.tab-plus .plus { width: 44px; height: 44px; margin-top: -2px; border-radius: 22px; }
.tab-plus .plus svg { width: 22px; height: 22px; stroke-width: 2.2; }
.tile { border-radius: 14px; box-shadow: none; }
.tile .new:not(.gw):not(.win) { background: rgba(255, 255, 255, .92); color: #1F2A44; }
.heart { font-weight: 600; }
.friend { box-shadow: 0 0 0 1px #E9E1D4; }
[data-theme="dark"] .friend { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.friend b, .mm-days, .cmini-n, .door-mini { background: var(--blue-soft); color: var(--blue-ink); }
.endblock { background: var(--surface); color: var(--text); box-shadow: var(--card-shadow); }
.endblock .hand { color: var(--ink); }
.infobox { border-width: 1px; }
.chero .x { box-shadow: 0 0 0 1px #E9E1D4; }
[data-theme="dark"] .chero .x { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.wx { background: var(--blue-soft); background-image: none; color: var(--ink); box-shadow: none; border-radius: 16px; }
.wx .kick { color: var(--muted); }
.wx .hint { background: rgba(3, 58, 151, .1); color: var(--blue-ink); }
[data-theme="dark"] .wx .hint { background: rgba(143, 178, 255, .14); }
.wx-ic { stroke: var(--blue-ink); }
.wx-ic .wx-solid { fill: var(--blue-soft); }
.lp-h1 .lp-h1-red { color: var(--blue-ink); }
.wx-ic .wx-stars circle, .wx-ic .wx-snowy circle, .wx-ic .wx-rainy circle { fill: var(--blue-ink); }
.horse .av { box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-2); }
.sbtn.on { background-image: none; }
.lp-final { box-shadow: var(--card-shadow); }
.login-ic { background: var(--blue-soft); color: var(--blue-ink); }
.login-ic svg { stroke: var(--blue-ink); }

/* 1.14.1: Termin-Kalender wie ein Handy-Kalender – keine farbigen Kästen, dafür Text im Tagesfeld: wer reitet (Punkt in der Personenfarbe + Vorname) und welcher Termin ansteht. Heute: blauer Kreis um die Zahl. */
.cal-ap { gap: 0; margin: 8px -10px 0; text-align: left; }
.cal-ap .h { text-align: center; }
.cal-ap .d { height: auto; min-height: 64px; padding: 4px 1px 8px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; color: var(--ink); min-width: 0; }
.cal-ap button.d { font: inherit; cursor: pointer; }
.cal-ap .d .n { align-self: center; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 13px; font-size: 13.5px; font-weight: 600; }
.cal-ap .d.today, .cal-ap .d.rd.today { background: none; box-shadow: none; color: var(--ink); }
.cal-ap .d.today .n { background: var(--blue); color: #FFF; }
.cal-ap .d.past .n { color: var(--muted); font-weight: 500; }
.cal-ap .d.past .rd, .cal-ap .d.past .ev { opacity: .55; }
.cal-ap .rd, .cal-ap .ev { display: flex; align-items: center; gap: 3px; min-width: 0; height: 16px; padding: 0 1.5px; border-radius: 4px; font-size: 9.5px; font-weight: 600; letter-spacing: -.015em; line-height: 16px; white-space: nowrap; overflow: hidden; }
.cal-ap .rd b, .cal-ap .ev b { font-weight: 600; overflow: hidden; }
.cal-ap .rd .mate { flex: none; width: 6px; height: 6px; border-radius: 3px; }
.cal-ap .ev { background: var(--bg); }
.cal-ap .ev b.l { display: none; }
.cal-ap .more { padding: 0 2px; font-size: 10px; font-weight: 600; color: var(--muted); }
@media (min-width: 720px) {
  .cal-ap { gap: 0; margin: 8px 0 0; }
  .cal-ap .d { min-height: 104px; padding: 6px 6px 10px; gap: 3px; }
  .cal-ap .d .n { align-self: flex-start; }
  .cal-ap .rd, .cal-ap .ev { height: 20px; padding: 0 6px; font-size: 12px; letter-spacing: 0; line-height: 20px; gap: 5px; }
  .cal-ap .rd .mate { width: 8px; height: 8px; border-radius: 4px; }
  .cal-ap .ev b.s { display: none; }
  .cal-ap .ev b.l { display: block; text-overflow: ellipsis; }
  .cal-ap .more { padding: 0 6px; font-size: 12px; }
}
/* Profilbild auf „Ich“: dezenter Ring statt Rot */
.prof-photo-s { box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-2); }

/* 1.14.2: letzter Tag einer Frist ohne Zahl-Blase; vergangene Kalendertage gut lesbar */
.friend.friend-t { min-height: 44px; padding-left: 14px; font-weight: 600; }
.cal-ap .d.past { color: var(--ink); }
.cal-ap .d.past .rd, .cal-ap .d.past .ev { opacity: .7; }

/* 1.14.3: Hinweis, wenn die Seite im eingebauten Browser einer anderen App läuft */
.inapp { margin: 12px 16px 0; padding: 14px 16px; border-radius: 16px; background: var(--blue-soft); color: var(--text); font-size: 14px; line-height: 1.5; }
.inapp p { margin: 0 0 10px; }
.inapp b { color: var(--ink); }
.inapp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.inapp .btn { width: auto; text-decoration: none; }
@media (min-width: 760px) { .inapp { max-width: 728px; margin-left: auto; margin-right: auto; } }

/* 1.14.4 – Code-Seite: Hinweis, dass die Seite nicht offen bleiben muss */
.code-tip { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); color: var(--text); line-height: 1.45; }
.code-tip b { color: var(--ink); }

/* 1.14.5 – Admin: Bestand (Konten, Pferde, Ställe) */
.inv-list { padding: 0; overflow: hidden; }
.inv-row { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.inv-row:last-child { border-bottom: 0; }
.inv-main { min-width: 0; }
.inv-main .tsub { margin-top: 3px; overflow-wrap: anywhere; }
.inv-acts { display: flex; flex-wrap: wrap; gap: 0 20px; }
.link-warn { color: var(--red-ink); }
.inv-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: 12px; font-weight: 600; vertical-align: 2px; white-space: nowrap; }
.inv-tag.warn { background: var(--red-soft); color: var(--red-ink); }
.inv-count { margin: 0; }
@media (min-width: 760px) {
  .inv-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .inv-acts { flex: none; flex-wrap: nowrap; justify-content: flex-end; }
  .inv-acts .link { white-space: nowrap; }
}

/* 1.15.0 – Alltag posten: Hinweis statt Häkchen */
.post-note { margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); color: var(--text); line-height: 1.45; }

/* 1.15.1 – iPhone: Leiste unten ausblenden, solange getippt wird (siehe viewport.js) */
html.kb .nav { visibility: hidden; pointer-events: none; }

/* 1.15.2 – Kalender: Merker „wieder fällig“ (kein fester Termin) gestrichelt umrandet */
.cal-ap .ev.ev-due { background: transparent; outline: 1px dashed currentColor; outline-offset: -1px; }


/* ---------- 1.15.3: Lesbarkeit, nachgemessen an den echten Bildpunkten ---------- */
/* Namen auf Bildkacheln: höchstens zwei Zeilen, dunklerer Verlauf, der schon über der Schrift beginnt. */
.tile .ov { padding-top: 30px; background: linear-gradient(transparent, rgba(12, 16, 28, .68) 30px, rgba(12, 16, 28, .82)); }
.tile .ov > .grow { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
/* Türchen-Beschriftung über hellen Produktfotos. */
.door .lab { background: rgba(12, 16, 28, .72); }
/* Trainingswoche: spätere Tage nicht mehr im Ganzen ausbleichen – nur das Tageskürzel ist zurückgenommen. */
.tr-day.later { opacity: 1; }
.tr-day.later .tr-wd, .tr-day.later .tr-wd b { color: var(--muted); }
.cal .d.future { opacity: 1; }
/* Hinweis-Zeilen bei „Heute“ (z. B. Medikamente vom Hof) und der Knopf „Dabei ✓“: volle Deckkraft. */
.task.info { opacity: 1; }
.sbtn.on:disabled { opacity: 1; }
/* Anmeldeseite am Computer: die Fußzeile liegt über der Bilderwand und bekommt eine ruhige Unterlage. */
@media (min-width: 900px) {
  .login-note { background: rgba(3, 30, 82, .62); border-radius: 10px; padding: 8px 12px; color: #FFF; }
}

/* ---------- 1.15.4: Fotowettbewerb mit Platz 1 bis 3 ---------- */
.prizes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prizes .pz { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; }
.pz-n { font-weight: 800; white-space: nowrap; }
.pz-t { overflow-wrap: anywhere; }
/* Im Kasten oben bei „Entdecken“: jeder Preis eine eigene Zeile, Platz 1 hervorgehoben. */
.chero-prizes { max-width: 480px; font-size: 15px; line-height: 1.4; color: var(--text); }
.chero-prizes .pz { padding: 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.chero-prizes .pz:first-child { box-shadow: inset 0 0 0 2px var(--blue); font-weight: 600; }
.chero-prizes .pz-n { color: var(--blue-ink); }
.ci-prize-h { display: block; margin-bottom: 6px; }
.ci-prize .prizes { font-weight: 500; }
.kind-prizes { font-size: 13px; line-height: 1.4; color: var(--text-2); gap: 2px; }
/* Platz 2 und 3 unter dem großen Gewinnerbild. */
.winner-more { display: grid; gap: 8px; margin: -4px 16px 14px; }
.winner-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.winner-row img { flex: none; width: 52px; height: 65px; object-fit: cover; border-radius: 10px; background: var(--sand); }
.winner-row .grow { display: grid; gap: 1px; min-width: 0; }
.winner-row .hand { font-size: 17px; }
.winner-row-n { overflow-wrap: anywhere; }
/* Admin: Platz von Hand vergeben. */
.win-row { flex-wrap: wrap; }
.win-sel { width: auto; max-width: 100%; min-height: 40px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--field-line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }

/* ---------- 1.15.5: Bilder nach und nach laden ---------- */
.feed-more { display: flex; justify-content: center; margin: 18px 16px 0; }

/* ---------- 1.16.0: Pferde-Alltag als ganze Bilder mit Text darunter ---------- */
/* Gewinnspiel-Kacheln und Alltag-Beiträge im selben Raster: Beiträge nehmen die ganze Zeile, Kacheln füllen Lücken auf. */
.grid[data-feed] { grid-auto-flow: dense; }
.fpost { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 560px; margin: 6px 0 8px; border-radius: 20px; background: var(--surface); box-shadow: var(--card-shadow); overflow: hidden; }
.fpost-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.fpost-h .grow { display: grid; min-width: 0; }
.fpost-h .ttl { overflow-wrap: anywhere; }
.fpost-av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); font-weight: 800; }
.new-b { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red-ink); font-size: 12px; font-weight: 700; }
.fpost-pic { display: block; width: 100%; padding: 0; border: 0; background: var(--sand); cursor: pointer; }
.fpost-pic img { display: block; width: 100%; height: auto; max-height: 700px; object-fit: cover; }
.fpost-pic.nosize img { min-height: 220px; }
.fpost-b { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px 12px; }
.fpost .heart { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.fpost-cap { margin: -4px 0 0; padding: 0 14px 14px; line-height: 1.5; overflow-wrap: anywhere; }

/* ---------- 1.16.2: Adventskalender – die Überraschung im geöffneten Türchen ---------- */
.surprise { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--red-soft); box-shadow: inset 0 0 0 2px var(--red); color: var(--text); }
.surprise b { font-size: 20px; line-height: 1.25; color: var(--red-ink); overflow-wrap: anywhere; }
/* Lange Codes (z. B. HGG-GUTSCHEIN-20) nie am Bindestrich umbrechen – lieber etwas kleiner. */
.code-box > div { min-width: 0; }
.code-box b { white-space: nowrap; }
.code-box b.long { font-size: 16px; letter-spacing: .02em; }
@media (max-width: 360px) { .code-box b.long { font-size: 14px; letter-spacing: 0; } .code-box { padding: 12px 10px; } }
/* Geöffnetes Türchen: Bild begrenzt, damit Überraschung, Code und „Zum Produkt im Shop“ ohne Scrollen sichtbar sind. */
.door-sheet { gap: 12px; }
.door-sheet .door-img { display: block; width: 100%; height: clamp(150px, 30vh, 300px); object-fit: contain; border-radius: 16px; background: #FFF; }
.door-sheet .surprise { padding: 10px 14px; }
.door-sheet .surprise b { font-size: 18px; }
.door-sheet .code-box { padding: 8px 12px; }
.door-sheet .btn { width: 100%; }
.door-sheet .small { margin: 0; }

/* ---------- 1.16.2: Adventskalender am Computer – dezenter Winterschmuck links und rechts ---------- */
/* Feine Linien (Sterne, Schneeflocken, Tannenzweige, ein Hufeisen mit Schleife) in gedecktem Gold, nur wo Platz ist. */
:root { --deko: #A9824A; --deko-o: .42; }
:root[data-theme="dark"] { --deko: #D9BC82; --deko-o: .5; }
.adv-deko { display: none; }
@media (min-width: 1000px) {
  .adv-stage { position: relative; max-width: 860px; margin: 0 auto; }
}
@media (min-width: 1180px) {
  .adv-deko { display: block; position: absolute; top: 18px; bottom: 18px; width: clamp(0px, calc((100vw - 860px) / 2 - 48px), 190px);
    background-color: var(--deko); opacity: var(--deko-o); pointer-events: none;
    -webkit-mask: url(/img/deko-l.svg) top center / 100% auto repeat-y; mask: url(/img/deko-l.svg) top center / 100% auto repeat-y; }
  .adv-deko-l { right: calc(100% + 24px); }
  .adv-deko-r { left: calc(100% + 24px); -webkit-mask-image: url(/img/deko-r.svg); mask-image: url(/img/deko-r.svg); }
}
@media (prefers-contrast: more), (forced-colors: active) { .adv-deko { display: none; } }

/* ---------- 1.16.4: Dashboard „Einladungen“ ---------- */
.inv-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px 8px; padding: 0 4px; }
.inv-table th, .inv-table td { white-space: nowrap; }
.inv-table td:first-child { white-space: normal; min-width: 130px; }
.inv-table th:not(:first-child), .inv-table td:not(:first-child) { text-align: right; }


/* 1.16.5 Standort-Hilfe */
.geo-steps { margin: 0; padding-left: 1.3em; display: grid; gap: .45em; }
