/* CatShit.live – Farben und Schriften aus dem Design-Entwurf.
   Keine Webfonts von fremden Servern (DSGVO): Sind Bricolage Grotesque,
   Inter oder JetBrains Mono lokal installiert, werden sie genutzt,
   sonst ähnliche Systemschriften. Dunkelmodus folgt dem System. */
:root {
  --sand: #F6F1E7;
  --braun: #2B1A0C;
  --gelb: #F2B705;

  --bg: var(--sand);
  --text: var(--braun);
  --muted: #5B3A1E;
  --card: #FFFFFF;
  --line: var(--braun);
  --head-bg: var(--braun);
  --head-text: var(--sand);
  --leer: #EFE7D6;
  --h1: #FAD44C; --h2: #F59E0B; --h3: #D9480F; --h4: #6B1F0A;   /* Commit-Historie: Gelb → Orange → Rost → Dunkelbraun */

  --pfote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16' rx='5.5' ry='4.6'/%3E%3Cellipse cx='4.8' cy='9.6' rx='2.3' ry='2.9'/%3E%3Cellipse cx='9.4' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='14.6' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='19.2' cy='9.6' rx='2.3' ry='2.9'/%3E%3C/svg%3E");
  --muster: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='rgba%2843%2C26%2C12%2C0.045%29'%3E%3Cg transform='translate%2830 40%29 rotate%28-18%29 scale%281.1%29'%3E%3Cellipse cx='12' cy='16' rx='5.5' ry='4.6'/%3E%3Cellipse cx='4.8' cy='9.6' rx='2.3' ry='2.9'/%3E%3Cellipse cx='9.4' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='14.6' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='19.2' cy='9.6' rx='2.3' ry='2.9'/%3E%3C/g%3E%3Cg transform='translate%2862 80%29 rotate%28-8%29 scale%281.1%29'%3E%3Cellipse cx='12' cy='16' rx='5.5' ry='4.6'/%3E%3Cellipse cx='4.8' cy='9.6' rx='2.3' ry='2.9'/%3E%3Cellipse cx='9.4' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='14.6' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='19.2' cy='9.6' rx='2.3' ry='2.9'/%3E%3C/g%3E%3Cg transform='translate%28140 150%29 rotate%2824%29 scale%281.1%29'%3E%3Cellipse cx='12' cy='16' rx='5.5' ry='4.6'/%3E%3Cellipse cx='4.8' cy='9.6' rx='2.3' ry='2.9'/%3E%3Cellipse cx='9.4' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='14.6' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='19.2' cy='9.6' rx='2.3' ry='2.9'/%3E%3C/g%3E%3Cg transform='translate%28170 186%29 rotate%2834%29 scale%281.1%29'%3E%3Cellipse cx='12' cy='16' rx='5.5' ry='4.6'/%3E%3Cellipse cx='4.8' cy='9.6' rx='2.3' ry='2.9'/%3E%3Cellipse cx='9.4' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='14.6' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='19.2' cy='9.6' rx='2.3' ry='2.9'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --rosa: #F4B4B4;
  --f-head: "Bricolage Grotesque", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17100A;
    --text: #F6F1E7;
    --muted: #CDB89A;
    --card: #241811;
    --line: #E8DCC4;
    --head-bg: #0E0905;
    --head-text: #F6F1E7;
    --leer: #33251A;
    --h1: #7A3B0A; --h2: #C8650A; --h3: #F2B705; --h4: #FFF0A8;   /* im Dunkeln umgekehrt: je heller, desto mehr */
    --muster: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='rgba%28246%2C241%2C231%2C0.04%29'%3E%3Cg transform='translate%2830 40%29 rotate%28-18%29 scale%281.1%29'%3E%3Cellipse cx='12' cy='16' rx='5.5' ry='4.6'/%3E%3Cellipse cx='4.8' cy='9.6' rx='2.3' ry='2.9'/%3E%3Cellipse cx='9.4' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='14.6' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='19.2' cy='9.6' rx='2.3' ry='2.9'/%3E%3C/g%3E%3Cg transform='translate%2862 80%29 rotate%28-8%29 scale%281.1%29'%3E%3Cellipse cx='12' cy='16' rx='5.5' ry='4.6'/%3E%3Cellipse cx='4.8' cy='9.6' rx='2.3' ry='2.9'/%3E%3Cellipse cx='9.4' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='14.6' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='19.2' cy='9.6' rx='2.3' ry='2.9'/%3E%3C/g%3E%3Cg transform='translate%28140 150%29 rotate%2824%29 scale%281.1%29'%3E%3Cellipse cx='12' cy='16' rx='5.5' ry='4.6'/%3E%3Cellipse cx='4.8' cy='9.6' rx='2.3' ry='2.9'/%3E%3Cellipse cx='9.4' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='14.6' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='19.2' cy='9.6' rx='2.3' ry='2.9'/%3E%3C/g%3E%3Cg transform='translate%28170 186%29 rotate%2834%29 scale%281.1%29'%3E%3Cellipse cx='12' cy='16' rx='5.5' ry='4.6'/%3E%3Cellipse cx='4.8' cy='9.6' rx='2.3' ry='2.9'/%3E%3Cellipse cx='9.4' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='14.6' cy='5.2' rx='2.3' ry='2.9'/%3E%3Cellipse cx='19.2' cy='9.6' rx='2.3' ry='2.9'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--muster) var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--muted); }
a:hover { color: var(--text); }
h1, h2 { font-family: var(--f-head); font-weight: 800; letter-spacing: -0.02em; }
h2 { margin: 0 0 16px; font-size: 28px; line-height: 1.15; }
b { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 16px; }

/* Kopf */
.top { background: var(--head-bg); color: var(--head-text); }
.top-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--head-text); text-decoration: none; font-family: var(--f-head); font-weight: 800; font-size: 26px; letter-spacing: -0.5px; }
.logo em { font-style: normal; color: var(--gelb); }
.logo:hover { color: var(--head-text); }
nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; }
nav a { color: var(--head-text); text-decoration: none; }
nav a:hover { color: var(--gelb); }

/* Hero + Status */
.hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; padding-top: 56px; padding-bottom: 24px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.tag { align-self: flex-start; font-family: var(--f-mono); font-size: 13px; font-weight: 500; background: var(--braun); color: var(--gelb); padding: 4px 10px; border-radius: 4px; }
.tag.offline { color: #F6F1E7; background: #8A4B2A; }
h1 { margin: 0; font-size: clamp(40px, 7vw, 64px); line-height: 1.0; letter-spacing: -1.5px; }
.hero-text p { margin: 0; font-size: 19px; max-width: 560px; color: var(--muted); }

.status {
  --s-bg: var(--card); --s-text: var(--text); --s-line: var(--line);
  position: relative; z-index: 0;
  flex: 1 1 400px; min-width: 0;
  background: var(--s-bg); color: var(--s-text);
  border: 3px solid var(--s-line); border-radius: 20px;
  padding: 28px; box-shadow: 8px 8px 0 var(--line);
  display: flex; flex-direction: column; gap: 14px;
  transition: background-color .4s ease;
}
.status[data-state="belegt"] { --s-bg: var(--gelb); --s-text: var(--braun); --s-line: var(--braun); }
.status[data-state="wartung"] { --s-text: var(--braun); --s-line: var(--braun); background: repeating-linear-gradient(-45deg, #FFFFFF 0 18px, #FBE7A1 18px 36px); }
.status-label { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; }
.dot { width: 12px; height: 12px; border-radius: 6px; background: #22A35A; flex: none; animation: puls 1.6s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(34, 163, 90, .55); }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(34, 163, 90, .55); } 70% { box-shadow: 0 0 0 9px rgba(34, 163, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 163, 90, 0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.status-text { font-family: var(--f-head); font-weight: 800; font-size: 52px; line-height: 1; }
.status-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.status-sub { font-size: 17px; }
.status-quote { border-top: 2px dashed var(--s-line); padding-top: 14px; font-size: 15px; font-style: italic; min-height: 1.5em; }

/* Status-Karte als Katzenkopf (Augen, Nase, Mund, Schnurrhaare) + Haubenklo je Status */
.status { padding-bottom: 104px; }
.schnute { position: absolute; left: 0; right: 0; bottom: 10px; height: 84px; pointer-events: none; color: var(--s-line); }
.schnute svg { position: absolute; overflow: visible; }
.schnute .nase { left: 50%; transform: translateX(-50%); bottom: 0; }
.n-nase { fill: var(--rosa); stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; }
.n-mund { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; display: none; }
.status[data-state="frei"] .n-frei, .status[data-state="laden"] .n-frei,
.status[data-state="belegt"] .n-belegt, .status[data-state="wartung"] .n-wartung { display: inline; }
.bart path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.bart-l { left: -40px; bottom: 6px; }
.bart-r { right: -40px; bottom: 6px; }
.wange { position: absolute; bottom: 12px; width: 30px; height: 14px; border-radius: 50%; background: #F08C7E; opacity: 0; transition: opacity .4s; }
.wange-l { left: calc(50% - 86px); } .wange-r { right: calc(50% - 86px); }
.status[data-state="belegt"] .wange { opacity: .55; }
.status[data-state="belegt"] .bart { animation: zittern .25s linear infinite; }
@keyframes zittern { 50% { transform: translateY(1px); } }

.klo { display: block; overflow: visible; color: var(--s-line); }
.klo * { stroke: currentColor; }
.kl-wanne { fill: #CDB89A; }
.kl-streu { fill: #EFE3C8; display: none; }
.kl-dach { fill: #FFFFFF; }
.kl-tuer { fill: #2B1A0C; }
.kl-sand { fill: #EFE3C8; stroke: none !important; }
.kl-pfote ellipse { fill: var(--rosa); stroke: none !important; }
.kl-funkeln path { fill: var(--gelb); stroke-width: 1.5; stroke-linejoin: round; }
.kl-blech { fill: #C9CED6; }
.kl-augen path { stroke: var(--gelb) !important; }
.kl-schwanz-fell { stroke: #9AA5B1 !important; }
.kl-duft, .kl-funkeln, .kl-schaufel, .kl-augen, .kl-schwanz { display: none; }
.status[data-state="frei"] .kl-funkeln,
.status[data-state="belegt"] .kl-duft, .status[data-state="belegt"] .kl-augen, .status[data-state="belegt"] .kl-schwanz,
.status[data-state="wartung"] .kl-schaufel, .status[data-state="wartung"] .kl-funkeln, .status[data-state="wartung"] .kl-streu { display: inline; }
.status[data-state="belegt"] .kl-sand { display: none; }
/* Wartung: Haube abgenommen, schwebt */
.kl-haube { transition: transform .5s ease; transform-origin: 70px 80px; }
.status[data-state="wartung"] .kl-haube { transform: translate(-6px, -30px) rotate(-9deg); animation: schweben 2.4s ease-in-out infinite; }
@keyframes schweben { 50% { transform: translate(-6px, -36px) rotate(-7deg); } }
.status[data-state="wartung"] .kl-schaufel { animation: schaufeln2 1.1s ease-in-out infinite; transform-origin: 112px 30px; }
@keyframes schaufeln2 { 50% { transform: rotate(12deg) translateY(-4px); } }
.kl-funkeln path { animation: funkeln 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.kl-funkeln path:nth-child(2) { animation-delay: .7s; } .kl-funkeln path:nth-child(3) { animation-delay: 1.4s; }
@keyframes funkeln { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
.kl-duft path { animation: duft 2.4s ease-in-out infinite; } .kl-duft path:nth-child(2) { animation-delay: .8s; } .kl-duft path:nth-child(3) { animation-delay: 1.6s; }
.kl-schwanz { animation: wedeln 1.6s ease-in-out infinite; transform-origin: 90px 77px; }
@keyframes wedeln { 50% { transform: rotate(-10deg); } }
.status[data-state="belegt"] .klo { animation: wackeln .9s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes wackeln { 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }
.katze { position: relative; flex: none; margin-top: -20px; padding: 0; border: 0; background: none; cursor: pointer; }

@media (max-width: 600px) { .bart-l { left: -14px; width: 54px; } .bart-r { right: -14px; width: 54px; } .klo { width: 112px; height: 98px; } .katze { margin-top: -10px; } }

/* Augen über der Schnute */
.schnute .augen { left: 50%; transform: translateX(-50%); bottom: 50px; }
.augen g { display: none; }
.status[data-state="frei"] .a-frei, .status[data-state="laden"] .a-frei,
.status[data-state="belegt"] .a-belegt, .status[data-state="wartung"] .a-wartung { display: inline; }
.a-pupille { fill: currentColor; }
.a-glanz { fill: #FFFFFF; }
.a-weiss { fill: #FFFFFF; stroke: currentColor; stroke-width: 2.5; }
.a-belegt path { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.a-frei { animation: blinzeln 5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes blinzeln { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.wange { bottom: 22px; }
@keyframes duft { 0% { opacity: 0; transform: translateY(8px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
html, body { overflow-x: clip; }

.sprechblase {
  position: absolute; right: 60px; bottom: 88%; white-space: nowrap;
  background: var(--card); color: var(--text); border: 2px solid var(--line); border-radius: 12px;
  padding: 4px 10px; font: 600 13px var(--f-body); box-shadow: 3px 3px 0 var(--line);
}

/* Publikum */
.publikum {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  padding: 12px 18px; margin-bottom: 24px;
  border: 2px dashed var(--line); border-radius: 999px; font-size: 15px;
}
.pub-live { display: inline-flex; align-items: center; gap: 8px; }
.pub-witz { color: var(--muted); font-style: italic; margin-left: auto; }

/* Kennzahlen */
#rekorde { padding-bottom: 40px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.facts { margin-bottom: 40px; }
.stat { padding: 22px; }
.stat-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.stat-value { font-family: var(--f-head); font-weight: 800; font-size: 48px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact .stat-value { font-size: 36px; }
.stat-note { font-size: 14px; color: var(--muted); }

/* Rush Hour + Commit-Historie */
.rush, .commits { padding: 24px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.rush-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.rush-head h2 { margin: 0; }
.rush-head span { font-size: 14px; color: var(--muted); }
.bars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; align-items: end; height: 140px; }
.bar { background: var(--gelb); border: 1.5px solid var(--line); border-radius: 4px 4px 0 0; min-height: 4px; transition: height .5s ease; }
.bar.leer { background: var(--leer); }
.bars-axis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

.heat-wrap { display: flex; gap: 8px; }
.heat-days { display: grid; grid-template-rows: repeat(7, 1fr); gap: 4px; font: 11px var(--f-mono); color: var(--muted); }
.heat-days span { display: flex; align-items: center; height: 100%; }
.heat { flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.heat i { display: block; aspect-ratio: 1; max-height: 26px; border-radius: 4px; border: 1px solid rgba(43, 26, 12, .25); }
.heat i.zukunft { visibility: hidden; }
.h0 { background: var(--leer); } .h1 { background: var(--h1); } .h2 { background: var(--h2); } .h3 { background: var(--h3); } .h4 { background: var(--h4); }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 13px; color: var(--muted); }
.heat-legend i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(43, 26, 12, .25); }

/* Protokoll */
#protokoll { padding-bottom: 48px; }
.log { display: flex; flex-direction: column; gap: 12px; }
.entry { padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.entry.neu { animation: neu 2s ease; }
@keyframes neu { from { background: var(--gelb); color: var(--braun); } }
.nr { font-family: var(--f-mono); font-size: 14px; background: var(--braun); color: var(--sand); padding: 4px 10px; border-radius: 6px; }
.zeit { font-weight: 600; min-width: 140px; }
.dauer { font-family: var(--f-head); font-weight: 800; font-size: 22px; min-width: 80px; font-variant-numeric: tabular-nums; }
.spruch { flex: 1 1 260px; color: var(--muted); font-style: italic; }
.badge { font-size: 13px; font-weight: 600; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 12px; background: var(--card); white-space: nowrap; }
.badge.gelb { background: var(--gelb); color: var(--braun); border-color: var(--braun); }
.empty { padding: 20px; color: var(--muted); font-style: italic; }
.more {
  margin-top: 16px; font: 600 15px var(--f-body); color: var(--text);
  background: var(--bg); border: 2px solid var(--line); border-radius: 999px;
  padding: 10px 20px; cursor: pointer; box-shadow: 4px 4px 0 var(--line);
}
.more:hover { background: var(--gelb); color: var(--braun); }
.more:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }

/* 💩-Konfetti */
.konfetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.konfetti span { position: absolute; top: -40px; font-size: 28px; animation: fallen linear forwards; }
@keyframes fallen { to { transform: translateY(110vh) rotate(var(--r)); } }

/* Fuß */
footer { background: var(--head-bg); color: var(--head-text); }
.foot { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 32px; }
.foot > div { flex: 1 1 280px; }
.foot h2 { margin: 0 0 8px; font-size: 26px; color: var(--gelb); }
.foot p { margin: 0; font-size: 15px; }
.foot a { color: var(--gelb); }
.foot a:hover { color: var(--head-text); }

@media (max-width: 600px) {
  /* nur seitlich: "padding: 0 16px" nahm Kopf, Hero und Fuß auch den Abstand
     nach oben/unten – dann klebte der Besucherzähler an der Status-Karte */
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 36px; padding-bottom: 28px; gap: 36px; }
  .status { padding: 22px; box-shadow: 6px 6px 0 var(--line); }
  .status-text { font-size: 44px; }
  h2 { font-size: 24px; }
  #rekorde { padding-bottom: 28px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .facts { margin-bottom: 28px; }
  .stat { padding: 14px; border-radius: 14px; }
  .stat-label { font-size: 13px; line-height: 1.35; }
  .stat-value { font-size: 30px; }
  .fact .stat-value { font-size: 22px; padding: 2px 0; }
  .stat-note { font-size: 12.5px; line-height: 1.4; }
  .rush, .commits { padding: 18px; margin-bottom: 28px; }
  .bars { gap: 2px; height: 110px; }
  .heat { gap: 2px; } .heat-days { gap: 2px; }
  .zeit { min-width: 0; }
  .publikum { border-radius: 16px; }
  .pub-witz { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===================== Miezhaftes (v2026.11.08) ===================== */

/* Version in der Kopfzeile */
.top-inner { justify-content: flex-start; }
.top-inner nav { margin-left: auto; }
.version {
  font: 500 12px var(--f-mono); color: var(--gelb);
  border: 1px solid rgba(242, 183, 5, .5); border-radius: 999px; padding: 2px 9px;
  white-space: nowrap; cursor: help;
}
.signatur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(246, 241, 231, .15);
  font-size: 13px; opacity: .8; }
.signatur span:last-child { font-family: var(--f-mono); }

/* Tagline wechselt sanft */
.tag { transition: opacity .35s ease; }
.tag.weg { opacity: 0; }

/* Katzenohren: Die Status-Karte ist ein Katzenkopf */
.status::before, .status::after {
  content: ""; position: absolute; top: -21px; z-index: -1;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--rosa) 0 26%, transparent 26%), var(--s-bg);
  border-top: 3px solid var(--s-line); border-left: 3px solid var(--s-line);
  border-top-left-radius: 8px;
  transform: rotate(45deg);
  /* nur die Hälfte über der Kartenkante (+ schmaler Rand, der die Kante überdeckt) */
  clip-path: polygon(0 0, 100% 0, 100% 9%, 9% 100%, 0 100%);
}
.status::before { left: 34px; }
.status::after { right: 34px; }
.status[data-state="wartung"]::before, .status[data-state="wartung"]::after {
  background: linear-gradient(135deg, var(--rosa) 0 26%, transparent 26%), #FFFFFF;
}
.status[data-state="frei"]::before { animation: ohr 7s ease-in-out infinite; }
@keyframes ohr { 0%, 92%, 100% { transform: rotate(45deg); } 95% { transform: rotate(32deg); } }

/* Pfotenspur unter der Überschrift */
.spur { display: flex; gap: 14px; align-items: center; height: 34px; margin-top: 4px; }
.spur i { width: 22px; height: 22px; color: var(--gelb); opacity: 0; animation: tapsen 7s ease-in-out infinite; }
.spur i:nth-child(odd) { transform: translateY(8px) rotate(80deg); }
.spur i:nth-child(even) { transform: translateY(-6px) rotate(100deg); }
.spur svg { width: 100%; height: 100%; fill: currentColor; }
.spur i:nth-child(2) { animation-delay: .4s; } .spur i:nth-child(3) { animation-delay: .8s; }
.spur i:nth-child(4) { animation-delay: 1.2s; } .spur i:nth-child(5) { animation-delay: 1.6s; }
.spur i:nth-child(6) { animation-delay: 2s; } .spur i:nth-child(7) { animation-delay: 2.4s; }
@keyframes tapsen { 0% { opacity: 0; } 8%, 60% { opacity: 1; } 75%, 100% { opacity: 0; } }

/* Überschrift mit kleiner Pfote */
.pfoten-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pfoten-h small { font: italic 400 14px var(--f-body); color: var(--muted); letter-spacing: 0; }
.rush-head h2::after, #protokoll > h2::after, .pfoten-h::before {
  content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .3em;
  background: var(--gelb); -webkit-mask: var(--pfote) center / contain no-repeat; mask: var(--pfote) center / contain no-repeat;
  transform: rotate(18deg);
}
.pfoten-h::before { order: 2; margin-left: 0; }
.pfoten-h small { order: 3; }

/* Commit-Historie: jede Zelle eine Pfote */
.heat i, .heat-legend i {
  border: 0; border-radius: 0;
  -webkit-mask: var(--pfote) center / contain no-repeat; mask: var(--pfote) center / contain no-repeat;
}
.heat i { transform: rotate(-12deg); }
.heat i:nth-child(even) { transform: rotate(12deg); }
.heat-legend i { width: 16px; height: 16px; }

/* Rush-Hour-Balken mit Pfötchen obendrauf */
.bar { position: relative; }
.bar:not(.leer)::after {
  content: ""; position: absolute; left: 50%; top: -14px; width: 12px; height: 12px; transform: translateX(-50%);
  background: var(--line); -webkit-mask: var(--pfote) center / contain no-repeat; mask: var(--pfote) center / contain no-repeat;
}
.bars { padding-top: 14px; height: 154px; }

/* Kalina späht von unten ins Bild */
.spaeher {
  position: fixed; right: 28px; bottom: -4px; z-index: 40; width: 96px; height: 56px;
  padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateY(100%); transition: transform .6s cubic-bezier(.3, 1.4, .5, 1);
}
.spaeher.da { transform: none; }
.spaeher svg { width: 100%; height: 100%; overflow: visible; }
.sp-fell { fill: #FFFFFF; stroke: var(--braun); stroke-width: 4; stroke-linejoin: round; }
.sp-ohr { fill: var(--rosa); }
.sp-weiss { fill: #FFFFFF; stroke: var(--braun); stroke-width: 3; }
.sp-pupille { fill: var(--braun); transition: transform .08s linear; }
.spaeher .sprechblase { right: 70px; bottom: 60px; top: auto; }
@media (max-width: 700px), (hover: none) { .spaeher { display: none; } }

/* Regen (Easter Egg "miau") nutzt .konfetti */

@media (max-width: 600px) {
  .top-inner { gap: 10px 12px; }
  .logo { font-size: 22px; gap: 8px; }
  .logo svg { width: 30px; height: 30px; }
  .version { font-size: 11px; padding: 1px 7px; }
  .top-inner nav { margin-left: 0; width: 100%; gap: 16px; }
}

/* ============ Kalina, Technik, FAQ (v2026.11.08.2) ============ */
:root { --ader-vcc: #D93A2B; --ader-sig: var(--gelb); --ader-gnd: #5B3A1E; --pcb: #3A2414; }
@media (prefers-color-scheme: dark) { :root { --ader-gnd: #120B06; --pcb: #3D2817; } }

.abschnitt { padding-bottom: 48px; scroll-margin-top: 12px; }
.lead { margin: -4px 0 22px; max-width: 760px; font-size: 18px; color: var(--muted); }
.card h3 { margin: 0 0 12px; font-family: var(--f-head); font-weight: 800; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }

/* Über Kalina: Steckbrief + Rasse */
.kalina { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.steckbrief { position: relative; padding: 24px; box-shadow: 6px 6px 0 var(--line); }
.steckbrief::before {                    /* kleines Ohrenpaar wie bei der Status-Karte */
  content: ""; position: absolute; top: -13px; left: 26px; width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--rosa) 0 26%, transparent 26%), var(--card);
  border-top: 2px solid var(--line); border-left: 2px solid var(--line); border-top-left-radius: 6px;
  transform: rotate(45deg); clip-path: polygon(0 0, 100% 0, 100% 9%, 9% 100%, 0 100%);
}
.steckbrief dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 9px 18px; margin: 0; }
.steckbrief dt { padding-top: 2px; font: 500 12.5px var(--f-mono); text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.steckbrief dd { margin: 0; font-weight: 600; }
.rasse { padding: 24px; }
.rasse small { color: var(--muted); }

/* Schlagworte */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tags li {
  padding: 4px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--card);
  font: 600 14px var(--f-body); white-space: nowrap; box-shadow: 2px 2px 0 var(--line);
  transition: transform .15s ease;
}
.tags li.top { background: var(--gelb); color: var(--braun); border-color: var(--braun); }
.tags:not(.technik-tags) li:nth-child(4n+2):not(.top) { background: var(--rosa); color: var(--braun); border-color: var(--braun); }
.tags li:hover { transform: translateY(-2px) rotate(-3deg); }
.tags.technik-tags li { background: var(--head-bg); color: var(--gelb); border-color: var(--head-bg); font: 500 13px var(--f-mono); box-shadow: none; }
@media (prefers-color-scheme: dark) { .tags.technik-tags li { border-color: rgba(242, 183, 5, .35); } }

/* Technik: Datenfluss */
.fluss { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin: 0 0 24px; padding: 0; list-style: none; }
.fluss li { position: relative; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.fluss li::after {
  content: "→"; position: absolute; z-index: 1; top: 50%; right: -9px; transform: translate(50%, -50%);
  font: 800 22px/1 var(--f-head); color: var(--text);
}
.fluss li:last-child::after { content: none; }
.fluss .icon { font-size: 26px; line-height: 1; }
.fluss b { font-family: var(--f-head); font-size: 17px; line-height: 1.2; }
.fluss span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }

/* Technik: Plan + Pins + Logik */
.technik-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 20px; align-items: start; }
.technik-rechts { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.plan { margin: 0; padding: 20px 18px 16px; }
.plan figcaption, .gehaeuse figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
.pins, .logik { padding: 22px; }
.pins table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pins th { padding: 0 10px 8px 0; border-bottom: 2px solid var(--line); text-align: left; font: 500 12px var(--f-mono); text-transform: uppercase; color: var(--muted); }
.pins td { padding: 10px 10px 10px 0; border-bottom: 1px dashed var(--muted); vertical-align: top; }
.pins tr:last-child td { border-bottom: 0; }
.pins td:nth-child(-n+2) { white-space: nowrap; font-weight: 700; }
.ader { display: inline-block; width: 12px; height: 12px; margin-right: 7px; border: 2px solid var(--line); border-radius: 50%; vertical-align: -1px; }
.ader.vcc { background: var(--ader-vcc); } .ader.sig { background: var(--ader-sig); } .ader.gnd { background: var(--ader-gnd); }
.hinweise { margin: 14px 0 0; padding-left: 20px; font-size: 14.5px; }
.hinweise li { margin-bottom: 6px; }
.hinweise li::marker, .gehaeuse-fakten li::marker { color: var(--gelb); }
.logik ol { margin: 0; padding-left: 22px; font-size: 15px; }
.logik li { margin-bottom: 8px; }
.logik li::marker { font: 800 15px var(--f-head); }
.logik li:last-child { margin-bottom: 0; }

/* Technik: Gehäuse */
.gehaeuse { margin-top: 20px; padding: 24px; }
.gehaeuse-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; margin-bottom: 18px; }
.gehaeuse figure { margin: 0; display: flex; flex-direction: column; justify-content: space-between; }
.werkbank {                              /* helle Schneidematte – auch im Dunkelmodus, damit die Konturen bleiben */
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 14px; border: 2px solid var(--line); border-radius: 12px;
  background: linear-gradient(rgba(43, 26, 12, .06) 1px, transparent 1px) 0 0 / 20px 20px,
              linear-gradient(90deg, rgba(43, 26, 12, .06) 1px, transparent 1px) 0 0 / 20px 20px, #F6F1E7;
}
.werkbank picture { display: block; width: 100%; }
.werkbank img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.gehaeuse-fakten { margin: 0; padding-left: 20px; columns: 2 280px; column-gap: 32px; font-size: 14.5px; }
.gehaeuse-fakten li { margin-bottom: 6px; break-inside: avoid; }

/* Verschaltungsplan (Inline-SVG, Farben hier, damit der Dunkelmodus greift) */
.verschaltung { display: block; width: 100%; max-width: 400px; height: auto; margin: 0 auto; }
.verschaltung text { font-family: var(--f-mono); }
.wp-schatten { fill: var(--line); }
.wp-pcb { fill: var(--pcb); stroke: var(--line); stroke-width: 3; }
.wp-loch { fill: var(--card); stroke: #CDB89A; stroke-width: 2.5; }
.wp-fuss { fill: #EFE7D6; stroke: var(--braun); stroke-width: 2.5; }
.wp-linse { fill: #FFFFFF; stroke: var(--braun); stroke-width: 3; }
.wp-facette { fill: none; stroke: rgba(43, 26, 12, .14); stroke-width: 1.5; }
.wp-leiste { fill: #140B05; stroke: #CDB89A; stroke-width: 1; }
.wp-silk { fill: #F6F1E7; font-weight: 700; font-size: 13px; }
.verschaltung .wp-titel { fill: var(--text); font: 800 17px var(--f-head); }
.verschaltung .wp-notiz { fill: var(--muted); font: 13px var(--f-body); }
.wp-modul { fill: #140B05; }
.wp-antenne { fill: none; stroke: var(--gelb); stroke-width: 2.5; stroke-linejoin: round; }
.wp-schirm { fill: #DCD6CB; stroke: #8C8273; stroke-width: 1.5; }
.wp-chip { fill: var(--braun); font-weight: 700; font-size: 12px; }
.wp-chip.klein { font-weight: 500; font-size: 10px; }
.verschaltung .wp-board { fill: var(--gelb); font: 800 15px var(--f-head); }
.verschaltung .wp-board.klein { fill: #F6F1E7; font: 500 11px var(--f-mono); opacity: .7; }
.wp-usb { fill: #C9CED6; stroke: var(--braun); stroke-width: 2; }
.wp-pin { fill: #CDB89A; }
.wp-pin.an { stroke: #F6F1E7; stroke-width: 2; }
.wp-mcu { fill: #F6F1E7; opacity: .62; font-size: 10.5px; }
.wp-mcu.an { fill: var(--gelb); opacity: 1; font-weight: 700; font-size: 11.5px; }
.wp-kabel path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wp-kabel .rand { stroke: var(--line); stroke-width: 9; }
.wp-kabel .ader { stroke-width: 5; }
.wp-kabel.vcc .ader { stroke: var(--ader-vcc); }
.wp-kabel.sig .ader { stroke: var(--ader-sig); }
.wp-kabel.gnd .ader { stroke: var(--ader-gnd); }
.wp-pin.vcc, .wp-punkt.vcc { fill: var(--ader-vcc); }
.wp-pin.sig, .wp-punkt.sig { fill: var(--ader-sig); }
.wp-pin.gnd, .wp-punkt.gnd { fill: var(--ader-gnd); }
.wp-punkt { stroke: var(--line); stroke-width: 2.5; }
.wp-halo { fill: none; stroke: var(--card); stroke-width: 17; }
.wp-kabeltext { fill: var(--text); font-weight: 700; font-size: 12.5px; paint-order: stroke; stroke: var(--card); stroke-width: 5px; stroke-linejoin: round; }
.wp-usbkabel { fill: none; stroke: var(--muted); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.wp-netzteil { fill: var(--gelb); stroke: var(--line); stroke-width: 2.5; }
.verschaltung .wp-netztext { fill: var(--braun); font: 700 12.5px var(--f-body); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: 5px 5px 0 var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; cursor: pointer; list-style: none;
  font-family: var(--f-head); font-weight: 800; font-size: 18px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; background: var(--gelb);
  -webkit-mask: var(--pfote) center / contain no-repeat; mask: var(--pfote) center / contain no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--muted); }
.faq .antwort { padding: 0 20px 18px; max-width: 820px; }
.faq .antwort p { margin: 0 0 10px; }
.faq .antwort p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .fluss { grid-template-columns: 1fr; gap: 16px; }
  .fluss li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 16px; }
  .fluss li .icon { grid-row: span 2; font-size: 24px; text-align: center; }
  .fluss li::after { content: "↓"; top: auto; right: 50%; bottom: -8px; transform: translate(50%, 50%); font-size: 18px; }
  .technik-grid, .kalina { grid-template-columns: minmax(0, 1fr); }
  .plan { max-width: 480px; width: 100%; justify-self: center; }
}
@media (max-width: 600px) {
  .abschnitt { padding-bottom: 36px; }
  .lead { font-size: 16.5px; }
  .steckbrief, .rasse, .pins, .logik, .gehaeuse { padding: 18px; }
  .steckbrief dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steckbrief dt { margin-top: 10px; }
  .steckbrief dt:first-child { margin-top: 0; }
  .plan { padding: 14px 10px 12px; }
  .pins table, .pins thead, .pins tbody, .pins tr, .pins td { display: block; }
  .pins thead { display: none; }
  .pins tr { padding: 10px 0; border-bottom: 1px dashed var(--muted); }
  .pins tr:last-child { border-bottom: 0; }
  .pins td { padding: 0; border: 0; }
  .pins td:nth-child(2)::before { content: "\00a0→\00a0"; }
  .pins td:nth-child(-n+2) { display: inline; }
  .pins td:nth-child(3) { margin-top: 4px; font-size: 14px; color: var(--muted); }
  .gehaeuse-bilder { gap: 10px; }
  .werkbank { padding: 8px; }
  .faq summary { padding: 14px 16px; font-size: 16.5px; }
  .faq .antwort { padding: 0 16px 16px; }
  .tags li { font-size: 13.5px; }
}

/* Einheiten hinter großen Zahlen (Rekord, Ø) und Protokoll-Knöpfe (12.11.) */
.stat-value .einheit { margin-left: .12em; font-size: .45em; font-weight: 700; letter-spacing: 0; }
.mehr-zeile { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.mehr-zeile .more { margin-top: 0; }
.more.weniger { background: transparent; box-shadow: none; }

/* ============ Katzenfakt des Tages (12.11.) ============ */
.katzenfakt-karte { padding: 22px 24px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.kf-kopf { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.kf-titel { font: 800 19px var(--f-head); }
.kf-nr { font: 500 12.5px var(--f-mono); color: var(--muted); }
.kf-text { margin: 0; font-size: 18px; line-height: 1.5; }
.kf-mehr { align-self: flex-start; font: 600 14px var(--f-body); color: var(--text); background: transparent; border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.kf-mehr:hover { background: var(--gelb); color: var(--braun); }

@media (max-width: 600px) {
  .katzenfakt-karte { padding: 18px; margin-bottom: 28px; }
  .kf-text { font-size: 16.5px; }
}

/* ============ Kontakt (12.11.) ============ */
.fanpost { display: inline-block; margin-top: 18px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--gelb); color: var(--braun); font-weight: 700; text-decoration: none; box-shadow: 3px 3px 0 var(--line); }
.fanpost:hover { transform: translate(-1px, -1px) rotate(-2deg); }
.foot .mail { font-weight: 700; word-break: break-all; }
.foot .kontakt-klein { margin-top: 8px; font-size: 13.5px; opacity: .75; }

@media (max-width: 600px) { .status { padding-bottom: 100px; } }

/* ============ Sprachumschalter + englische Seite (v2026.11.14) ============ */
.top-inner nav { order: 2; }
.sprache {
  order: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border: 2px solid var(--gelb); border-radius: 999px;
  color: var(--head-text); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.sprache:hover, .sprache:focus-visible { background: var(--gelb); color: var(--braun); }
.original-hinweis { margin: -6px 0 14px; color: var(--muted); font-size: 15px; }
@media (max-width: 600px) {
  .sprache { order: 2; margin-left: auto; font-size: 13px; padding: 3px 10px; }
  .top-inner nav { order: 3; }
}

/* ============ Gästebuch (v2026.11.15) ============ */
.pub-gb {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--gelb); color: var(--braun);
  font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 2px 2px 0 var(--line);
}
.pub-gb:hover, .pub-gb:focus-visible { color: var(--braun); transform: translate(-1px, -1px) rotate(-1.5deg); }
.pub-gb b { background: var(--braun); color: var(--sand); border-radius: 999px; padding: 0 8px; font-size: 13px; line-height: 20px; }
#gaestebuch { scroll-margin-top: 12px; padding-top: 8px; }
.gb { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
.gb-form { position: sticky; top: 16px; padding: 24px; box-shadow: 6px 6px 0 var(--line); display: flex; flex-direction: column; }
.gb-form label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 10px 0 4px; font-weight: 700; font-size: 15px; }
.gb-form label small { font: 400 13px var(--f-body); color: var(--muted); }
.gb-form .gb-zaehler { font: 500 12.5px var(--f-mono); }
.gb-form .gb-zaehler.knapp { color: #C0392B; font-weight: 700; }
.gb-form input, .gb-form textarea {
  width: 100%; padding: 10px 12px; font: 16px/1.4 var(--f-body); color: var(--text);
  background: var(--bg); border: 2px solid var(--line); border-radius: 12px; resize: vertical;
}
.gb-form textarea { min-height: 104px; }
.gb-form input:focus-visible, .gb-form textarea:focus-visible { outline: 3px solid var(--gelb); outline-offset: 1px; }
.gb-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gb-senden {
  align-self: flex-start; margin-top: 16px; padding: 10px 20px; cursor: pointer;
  font: 700 15px var(--f-body); color: var(--braun); background: var(--gelb);
  border: 2px solid var(--line); border-radius: 999px; box-shadow: 4px 4px 0 var(--line);
}
.gb-senden:hover { transform: translate(-1px, -1px); }
.gb-senden:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.gb-senden:disabled { opacity: .55; cursor: progress; }
.gb-form .gb-meldung { margin: 14px 0 0; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--rosa); color: var(--braun); font-weight: 600; font-size: 14.5px; }
.gb-form .gb-meldung.ok { background: #BFE8CD; }
.gb-form .gb-hinweis { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.gb-liste { display: flex; flex-direction: column; gap: 12px; }
.gb-eintrag { display: flex; gap: 14px; padding: 14px 18px; }
.gb-eintrag.neu { animation: neu 2s ease; }
.gb-avatar {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center;
  border: 2px solid var(--line); border-radius: 50%; color: var(--braun);
  font: 800 19px/1 var(--f-head); text-transform: uppercase;
}
.gb-avatar.f0 { background: var(--gelb); } .gb-avatar.f1 { background: var(--rosa); }
.gb-avatar.f2 { background: #BFE8CD; } .gb-avatar.f3 { background: #BFD9F2; }
.gb-inhalt { min-width: 0; flex: 1; }
.gb-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.gb-name { font-weight: 800; overflow-wrap: anywhere; }
.gb-zeit { font-size: 13px; color: var(--muted); white-space: nowrap; }
.gb-eintrag .gb-text { margin: 2px 0 0; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .gb { grid-template-columns: minmax(0, 1fr); }
  .gb-form { position: static; }
}
@media (max-width: 600px) {
  .gb-form { padding: 18px; }
  .gb-eintrag { padding: 12px 14px; gap: 12px; }
  .gb-avatar { width: 36px; height: 36px; font-size: 16px; }
}
.pub-gb[hidden] { display: none; }

/* ============ Vergleiche ohne Springen + Urlaubstage (v2026.11.15.4) ============ */
/* Alle Vergleichssätze liegen übereinander; die Zelle ist so hoch wie der längste */
.stat-note.wechsel { display: grid; }
.stat-note.wechsel > span { grid-area: 1 / 1; transition: opacity .4s ease; }
.stat-note.wechsel > span.aus { opacity: 0; visibility: hidden; }
/* Tag ohne Besuch zwischen Inbetriebnahme und gestern: Strand statt Pfote */
.heat i.urlaub {
  -webkit-mask: none; mask: none; background: none; transform: none;
  display: grid; place-items: center; container-type: size;
}
.heat i.urlaub::before { content: "🏖️"; font-size: 70cqmin; line-height: 1; }
.heat-urlaub { margin-left: 14px; }
.heat-urlaub[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .stat-note.wechsel > span { transition: none; } }
