/* ==========================================================================
   Café Sample — Designsystem
   Warm, hochwertig, familienfreundlich: Creme-Papier, Terrakotta, Salbei.
   ========================================================================== */

:root {
  --cream: #FDF8F3;
  --cream-deep: #F6EDE3;
  --paper: #FFFFFF;
  --ink: #2A211C;
  --ink-soft: #6E5C51;
  --ink-faint: #9C8A7E;
  --line: #EBE0D4;
  --line-soft: #F3EAE0;

  --terracotta: #D2694A;
  --terracotta-deep: #B04E31;
  --terracotta-wash: #FBEDE7;
  --sage: #6F9276;
  --sage-wash: #EAF1EA;
  --honey: #E5A93C;
  --honey-wash: #FCF2DE;
  --berry: #AC5480;
  --berry-wash: #F8EBF1;
  --sky: #5E88AE;
  --sky-wash: #EAF1F7;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(64, 40, 26, .05), 0 2px 8px rgba(64, 40, 26, .04);
  --shadow-md: 0 2px 6px rgba(64, 40, 26, .06), 0 12px 28px rgba(64, 40, 26, .07);
  --shadow-lg: 0 4px 12px rgba(64, 40, 26, .07), 0 28px 60px rgba(64, 40, 26, .10);

  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
}
h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--terracotta-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.tiny { font-size: .82rem; }
.small { font-size: .9rem; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.grow { flex: 1 1 auto; }
.hidden { display: none !important; }

.eyebrow {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 14px;
  display: block;
}

/* ------------------------------------------------------------------ header */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 243, .86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 1.28rem; font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 13px; flex: 0 0 auto;
  display: block; text-align: center; line-height: 38px; font-size: 1.15rem;
  background: linear-gradient(140deg, var(--terracotta) 0%, var(--honey) 100%);
  color: #fff; box-shadow: var(--shadow-sm);
}
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
/* Sprungmarken bleiben schlicht — echte Buttons (.btn) behalten ihren eigenen Stil */
.nav a:not(.btn), .nav button.linkish {
  padding: 9px 14px; border-radius: 999px; font-size: .93rem; font-weight: 500;
  color: var(--ink-soft); background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav a:not(.btn):hover, .nav button.linkish:hover { background: var(--cream-deep); color: var(--ink); text-decoration: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  background: var(--terracotta); color: #fff; transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 1px 2px rgba(140, 60, 30, .18), 0 8px 20px rgba(178, 79, 51, .22);
  text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--terracotta-deep); transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--cream-deep); color: var(--ink); }
.btn--soft { background: var(--terracotta-wash); color: var(--terracotta-deep); box-shadow: none; }
.btn--soft:hover { background: #F7E2D8; color: var(--terracotta-deep); }
.btn--sage { background: var(--sage); box-shadow: 0 8px 20px rgba(111, 146, 118, .25); }
.btn--sage:hover { background: #5C7E63; }
.btn--sm { padding: 8px 15px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--danger { background: #fff; color: #A33A2C; border-color: #F0D6D0; box-shadow: none; }
.btn--danger:hover { background: #FCEFEC; color: #8E3124; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card--pad-lg { padding: clamp(26px, 4vw, 40px); }
.card__title { font-family: var(--display); font-size: 1.2rem; margin: 0 0 4px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: radial-gradient(circle at 30% 30%, rgba(233,169,60,.20), transparent 68%); top: -180px; right: -120px; }
.hero::after { width: 460px; height: 460px; background: radial-gradient(circle at 60% 40%, rgba(111,146,118,.18), transparent 66%); bottom: -220px; left: -140px; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }
.hero p.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 52ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero__facts { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__fact strong { display: block; font-family: var(--display); font-size: 1.5rem; }
.hero__fact span { font-size: .84rem; color: var(--ink-faint); }

/* ------------------------------------------------------------------ live gauge */
.gauge { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.gauge__dial { position: relative; width: 132px; height: 132px; }
.gauge__dial svg { transform: rotate(-90deg); }
.gauge__value {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  font-family: var(--display); font-size: 1.85rem; line-height: 1;
}
.gauge__value span { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 5px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; background: var(--cream-deep); color: var(--ink-soft);
}
.pill--green { background: var(--sage-wash); color: #3F6549; }
.pill--amber { background: var(--honey-wash); color: #916205; }
.pill--red { background: var(--terracotta-wash); color: var(--terracotta-deep); }
.pill--sky { background: var(--sky-wash); color: #3C6588; }
.pill--berry { background: var(--berry-wash); color: #8A3A61; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot--pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }

/* ------------------------------------------------------------------ slots */
.daystrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.daychip {
  position: relative;
  flex: 0 0 auto; min-width: 76px; padding: 11px 12px; border-radius: var(--r-md); text-align: center;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-family: inherit;
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.daychip:hover { border-color: var(--terracotta); transform: translateY(-1px); }
.daychip[aria-selected="true"] { border-color: var(--terracotta); background: var(--terracotta-wash); box-shadow: var(--shadow-sm); }
.daychip[disabled] { opacity: .42; cursor: not-allowed; }
.daychip__wd { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); }
.daychip__d { font-family: var(--display); font-size: 1.3rem; line-height: 1.15; }
.daychip__bar { height: 4px; border-radius: 999px; background: var(--line-soft); margin-top: 7px; overflow: hidden; }
.daychip__bar i { display: block; height: 100%; border-radius: 999px; background: var(--sage); }

.slotgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); }
.slot {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 17px; background: var(--paper);
  cursor: pointer; text-align: left; font-family: inherit; transition: all .15s ease; position: relative;
}
.slot:hover:not([disabled]) { border-color: var(--terracotta); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.slot[aria-selected="true"] { border-color: var(--terracotta); background: var(--terracotta-wash); }
.slot[disabled] { opacity: .55; cursor: not-allowed; background: var(--cream-deep); }
.slot__time { font-family: var(--display); font-size: 1.16rem; }
.slot__meta { font-size: .82rem; color: var(--ink-soft); margin-top: 3px; }
.meter { height: 6px; border-radius: 999px; background: var(--line-soft); margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.meter i.is-low { background: var(--sage); }
.meter i.is-mid { background: var(--honey); }
.meter i.is-high { background: var(--terracotta); }

/* ------------------------------------------------------------------ forms */
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search],
input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); font-family: inherit; font-size: .95rem; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(210, 105, 74, .14);
}
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 3px; accent-color: var(--terracotta); width: 17px; height: 17px; }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 0; padding: 0; margin: 0; }

.notice { padding: 12px 16px; border-radius: var(--r-sm); font-size: .9rem; margin-bottom: 14px; border: 1px solid; }
.notice--error { background: var(--terracotta-wash); border-color: #F0D4C7; color: #9C3E24; }
.notice--ok { background: var(--sage-wash); border-color: #D3E3D5; color: #3C6248; }
.notice--info { background: var(--sky-wash); border-color: #D6E4EF; color: #3C6588; }

/* ------------------------------------------------------------------ tables */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
  text-align: left; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--paper); z-index: 1;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:hover { background: var(--cream); }
.table--clickable tbody tr { cursor: pointer; }
.scroll-y { max-height: 60vh; overflow-y: auto; }
.scroll-x { overflow-x: auto; }

/* ------------------------------------------------------------------ price list */
.pricelist { display: grid; gap: 2px; }
.priceline { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.priceline__name { font-weight: 600; }
.priceline__desc { font-size: .84rem; color: var(--ink-faint); }
.priceline__dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.priceline__price { font-family: var(--display); font-size: 1.05rem; white-space: nowrap; }

.pkg { display: flex; flex-direction: column; height: 100%; }
.pkg__price { font-family: var(--display); font-size: 2.1rem; line-height: 1; margin: 6px 0 2px; }
.pkg__per { font-size: .82rem; color: var(--ink-faint); }
.pkg ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: .9rem; color: var(--ink-soft); }
.pkg li { padding-left: 22px; position: relative; margin-bottom: 7px; }
.pkg li::before { content: '✓'; position: absolute; left: 0; color: var(--sage); font-weight: 700; }

/* ------------------------------------------------------------------ modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(42, 33, 28, .42); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px; z-index: 100;
}
.modal {
  background: var(--paper); border-radius: var(--r-lg); width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow-lg);
}
.modal--wide { width: min(880px, 100%); }
.modal__close { position: absolute; }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--ink); color: #E6D9CE; padding: 56px 0 34px; margin-top: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.footer a { color: #E6D9CE; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; font-size: .82rem; color: #A3907F; }

/* ------------------------------------------------------------------ admin */
.admin-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } .admin-side { position: static !important; height: auto !important; } }
.admin-side {
  background: var(--paper); border-right: 1px solid var(--line-soft); padding: 22px 16px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 22px; }
.admin-nav button {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: var(--r-sm);
  background: none; border: 0; font-family: inherit; font-size: .93rem; color: var(--ink-soft);
  cursor: pointer; text-align: left; width: 100%;
}
.admin-nav button:hover { background: var(--cream-deep); color: var(--ink); }
.admin-nav button.is-active { background: var(--terracotta-wash); color: var(--terracotta-deep); font-weight: 600; }
.admin-main { padding: clamp(20px, 3vw, 34px); max-width: 1280px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }

.kpi { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 17px 19px; box-shadow: var(--shadow-sm); }
.kpi__label { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.kpi__value { font-family: var(--display); font-size: 1.95rem; line-height: 1.1; margin-top: 5px; }
.kpi__sub { font-size: .82rem; color: var(--ink-soft); }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 168px; padding-top: 10px; }
.bars__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.bars__bar { width: 100%; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--terracotta) 0%, #E39272 100%); min-height: 3px; transition: height .4s ease; }
.bars__bar--sage { background: linear-gradient(180deg, var(--sage) 0%, #9DBBA3 100%); }
.bars__lab { font-size: .68rem; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.heat { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: var(--line-soft); display: block; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.tag--angefragt { background: var(--honey-wash); color: #8C5E06; }
.tag--bestaetigt { background: var(--sage-wash); color: #3F6549; }
.tag--abgelehnt, .tag--storniert { background: #F2EDEA; color: #8A7A70; }
.tag--abgeschlossen { background: var(--sky-wash); color: #3C6588; }
.tag--anwesend { background: var(--sage-wash); color: #3F6549; }
.tag--no_show { background: var(--terracotta-wash); color: var(--terracotta-deep); }
.tag--neu { background: var(--sky-wash); color: #3C6588; }
.tag--gelegenheit { background: var(--cream-deep); color: var(--ink-soft); }
.tag--stammgast { background: var(--sage-wash); color: #3F6549; }
.tag--vielbesucher { background: var(--berry-wash); color: #8A3A61; }
.tag--inaktiv { background: var(--terracotta-wash); color: var(--terracotta-deep); }

.seg { display: inline-flex; background: var(--cream-deep); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 15px; border-radius: 999px; font-family: inherit; font-size: .87rem; cursor: pointer; color: var(--ink-soft); }
.seg button.is-active { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }

.empty { text-align: center; padding: 40px 20px; color: var(--ink-faint); }
.empty__icon { font-size: 2.2rem; margin-bottom: 8px; }

.skel { background: linear-gradient(90deg, var(--cream-deep) 25%, #FBF3EA 50%, var(--cream-deep) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Statistik-Raster: breitere Karten, damit Achsenbeschriftungen lesbar bleiben */
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); }
.span-all { grid-column: 1 / -1; }
.nowrap { white-space: nowrap; }

/* Mobil: Sprungmarken weichen den Hero-CTAs, Marke bleibt einzeilig */
@media (max-width: 720px) {
  .topbar__inner { height: 62px; gap: 10px; }
  .brand { font-size: 1.05rem; white-space: nowrap; }
  .brand__mark { width: 32px; height: 32px; border-radius: 11px; font-size: 1rem; line-height: 32px; }
  .nav > a { display: none; }
  .hero { padding-top: 34px; }
  .hero__facts { gap: 18px; }
  .gauge { grid-template-columns: 1fr; justify-items: start; }
  .inline-fields { grid-template-columns: 1fr; }
  .modal { border-radius: 20px; }
}

/* ==========================================================================
   Cockpit — alles auf einen Blick
   ========================================================================== */
.cock-kpis {
  display: grid; gap: 12px; margin-bottom: 18px;
  grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
}
.cock-kpis .kpi__value { font-size: 1.7rem; }
.kpi--live { background: linear-gradient(180deg, var(--paper) 0%, var(--sage-wash) 220%); }

.cock-grid {
  display: grid; gap: 16px; align-items: start;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
}
.cock-day  { grid-column: 1; }
.cock-side { grid-column: 2; grid-row: 1 / span 3; display: grid; gap: 16px; align-content: start; }
.cock-week { grid-column: 1; }
.cock-heat { grid-column: 1; }
@media (max-width: 1100px) {
  .cock-grid { grid-template-columns: 1fr; }
  .cock-day, .cock-week, .cock-heat, .cock-side { grid-column: 1; grid-row: auto; }
}

/* --- Tagesplan-Timeline --- */
.tl { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.tl:last-child { border-bottom: 0; padding-bottom: 0; }
.tl--past { opacity: .55; }
.tl--now { background: linear-gradient(90deg, var(--sage-wash), transparent 60%); border-radius: var(--r-sm); padding-inline: 10px; margin-inline: -10px; opacity: 1; }
.tl__time { display: flex; flex-direction: column; line-height: 1.25; }
.tl__time b { font-family: var(--display); font-size: 1.05rem; }
.tl__time span { font-size: .76rem; color: var(--ink-faint); }
.tl__guests { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.guest {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 11px;
  border-radius: 999px; background: var(--cream-deep); font-size: .8rem; white-space: nowrap;
}
.guest b { font-weight: 700; }
.guest--in { background: var(--sage-wash); color: #3F6549; }
.guest button, .guest i {
  border: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--sage); font-size: .72rem; cursor: pointer; font-style: normal;
}
.guest button:hover { background: var(--sage); color: #fff; }
.guest i { background: transparent; }

/* --- Handlungsbedarf --- */
.cock-alerts .alert {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 11px 13px; margin-bottom: 8px; border-radius: var(--r-sm); border: 1px solid;
  font-family: inherit; font-size: .86rem; cursor: pointer; background: var(--paper);
}
.alert:last-child { margin-bottom: 0; }
.alert--error { background: var(--terracotta-wash); border-color: #F0D4C7; color: #9C3E24; }
.alert--warn  { background: var(--honey-wash); border-color: #F1E0BC; color: #8C5E06; }
.alert--info  { background: var(--sky-wash); border-color: #D6E4EF; color: #3C6588; }
.alert__icon { font-size: 1.05rem; }
.alert__go { margin-left: auto; opacity: .5; }
.alert:hover .alert__go { opacity: 1; }
.reqrow { background: none; border: 0; font-family: inherit; cursor: pointer; padding: 6px 0; text-align: left; }
.reqrow:hover { color: var(--terracotta-deep); }

/* --- Wochenbalken --- */
.weekbar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 14px; }
.wday { position: relative; text-align: center; border-radius: var(--r-md); padding: 10px 6px; border: 1px solid var(--line-soft); }
.wday--today { border-color: var(--terracotta); background: var(--terracotta-wash); }
.wday--closed { opacity: .5; }
.wday__top { display: flex; flex-direction: column; line-height: 1.15; margin-bottom: 8px; }
.wday__wd { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.wday__num { font-family: var(--display); font-size: 1.15rem; }
.wday__col { height: 76px; background: var(--line-soft); border-radius: 7px; display: flex; align-items: flex-end; overflow: hidden; }
.wday__fill { width: 100%; border-radius: 7px; transition: height .4s ease; }
.wday__fill.is-low { background: var(--sage); }
.wday__fill.is-mid { background: var(--honey); }
.wday__fill.is-high { background: var(--terracotta); }
.wday__meta { margin-top: 7px; line-height: 1.25; }
.wday__meta b { display: block; font-size: .9rem; }
.wday__meta span { font-size: .7rem; color: var(--ink-faint); }
.wday__bday { position: absolute; top: 6px; right: 7px; font-size: .72rem; }

/* --- Heatmap --- */
.hm { display: grid; gap: 4px; margin-top: 14px; align-items: center; }
.hm__h { font-size: .7rem; color: var(--ink-faint); text-align: center; }
.hm__r { font-size: .74rem; color: var(--ink-soft); padding-right: 8px; }
.hm__c {
  aspect-ratio: 2.6 / 1; border-radius: 6px; display: grid; place-items: center;
  font-size: .72rem; color: var(--ink-soft); font-weight: 600;
}
.hm__c--dark { color: #fff; }

.linky { background: none; border: 0; padding: 0; font: inherit; color: var(--terracotta-deep);
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linky:hover { color: var(--ink); }

/* Begleitpersonen im Tagesplan-Chip */
.guest__a { color: var(--ink-faint); font-size: .74rem; margin-left: -3px; }

.daychip__bday { position: absolute; top: 4px; right: 5px; font-size: .68rem; line-height: 1; }

/* Laufkundschaft im Tagesplan */
.guest--walk { background: var(--sky-wash); color: #3C6588; }
.guest__src { font-style: normal; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.7); border-radius: 999px; padding: 1px 6px; margin-right: 5px; }


/* ==========================================================================
   Geburtstagsfeiern & gleitende Zeitfenster
   ========================================================================== */

/* Hinweis auf eine laufende Geburtstagsfeier ----------------------------- */
.partybanner {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--honey-wash); border: 1px solid #F0E0BE; border-radius: var(--r-md);
  padding: 16px 20px; margin-bottom: 18px;
}
.partybanner__icon { font-size: 1.5rem; line-height: 1.2; }
.partybanner > div > b { display: block; margin-bottom: 4px; }
.partybanner p { margin: 0; font-size: .89rem; color: var(--ink-soft); }
.partybanner p b { display: inline; color: var(--ink); }
.partybanner__zones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Zonen-Chip: welcher Spielbereich offen ist ----------------------------- */
.zone {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.zone--open   { background: var(--sage-wash); color: #3F6549; border-color: #D3E3D5; }
.zone--closed { background: var(--cream-deep); color: var(--ink-faint); border-color: var(--line); text-decoration: line-through; }
.slot__zone { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.slot--party { border-color: #F0DFBC; background: linear-gradient(180deg, #FFF 0%, var(--honey-wash) 100%); }
.slot--party[aria-selected="true"] { border-color: var(--terracotta); background: var(--terracotta-wash); }

/* Cockpit: Stundenraster ------------------------------------------------- */
.tlx { display: grid; grid-template-columns: 62px 1fr; gap: 0; }
.tlx__row { display: contents; }
.tlx__t { font-size: .8rem; color: var(--ink-faint); padding: 12px 10px 12px 0; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.tlx__b { padding: 10px 0 12px; border-top: 1px solid var(--line-soft); min-width: 0; }
.tlx__row--now .tlx__t, .tlx__row--now .tlx__b { background: var(--terracotta-wash); }
.tlx__row--now .tlx__t { font-weight: 700; color: var(--terracotta-deep); }
.tlx__row--past .tlx__b { opacity: .55; }
.tlx__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.tlx__count { font-family: var(--display); font-size: 1.3rem; line-height: 1; }
.tlx__flow { font-size: .76rem; color: var(--ink-faint); }
.tlx__flow b { color: var(--sage); font-weight: 600; }
.tlx__flow i { color: var(--ink-faint); font-style: normal; }
