/* ==========================================================================
   PUKAY.DE – Das Digitale Wartezimmer
   ArbZG-Arbeitszeit- & Pausenrechner // Stylesheet
   ========================================================================== */

:root {
  --paper: #F4F1EA;
  --paper-deep: #EDE8DC;
  --white: #FFFFFF;
  --ink: #18241D;
  --ink-soft: #3F4A42;
  --muted: #667066;
  --line: #E2E0D8;
  --line-strong: #CFCBBE;
  --green: #1E3A2F;
  --green-deep: #142B22;
  --green-soft: #E9EFE9;
  --brass: #9A7B45;
  --ok: #15803D;
  --ok-bg: #DCFCE7;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --danger: #B91C1C;
  --danger-bg: #FEE2E2;
  --neutral: #475569;
  --neutral-bg: #F1F5F9;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  --shadow-card: 0 1px 0 rgba(30, 58, 47, 0.04), 0 18px 34px -30px rgba(30, 58, 47, 0.45);
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 22px 44px -38px rgba(24, 36, 29, 0.6);
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(255, 255, 255, 0.85), transparent 46%),
    linear-gradient(rgba(30, 58, 47, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 47, 0.028) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
  background-attachment: fixed;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

::selection {
  background: var(--green);
  color: var(--paper);
}

.shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--green);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  border-radius: 0 0 3px 3px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

.noscript-note {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #E7D3A8;
  background: var(--warn-bg);
  color: #7C4A09;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Header / Anzeigetafel
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(244, 241, 234, 0.1));
}

.site-header::before {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0 28px,
    var(--brass) 28px 32px
  );
}

.site-header > .shell {
  padding-top: 24px;
  padding-bottom: 42px;
}

.header__brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--green);
  color: #F2EDDF;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 600;
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(20, 43, 34, 0.25);
}

.brand__text {
  min-width: 0;
}

.brand__name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.brand__name span {
  color: var(--muted);
  font-weight: 500;
}

.brand__sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  line-height: 1.4;
}

.ticker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 100%;
  padding: 8px 12px;
  background: var(--green-deep);
  border: 1px solid #2C4C3E;
  border-radius: 3px;
  color: #F2EDDF;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 22px -18px rgba(0, 0, 0, 0.8);
}

.ticker__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E4B45E;
  box-shadow: 0 0 0 3px rgba(228, 180, 94, 0.18);
  animation: ticker-pulse 2s ease-in-out infinite;
}

.ticker__item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.ticker__label {
  color: #A9B8AD;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ticker strong {
  color: #F7F2E4;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ticker__sep {
  color: #4F6659;
}

@keyframes ticker-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(228, 180, 94, 0.18);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 5px rgba(228, 180, 94, 0.05);
  }
}

.header__intro {
  display: grid;
  gap: 18px;
  max-width: 1000px;
  padding-top: 38px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--green);
  opacity: 0.6;
}

.header__intro h1 {
  max-width: 24ch;
  font-size: clamp(1.85rem, 3.3vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.header__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.header__facts li {
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.site-main {
  padding-top: 38px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.88fr);
  gap: 28px;
  align-items: start;
}

.col-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.col-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Rechner-Panel
   -------------------------------------------------------------------------- */

.panel {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFDF8, #FFFFFF);
}

.panel__index {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.panel__head h2 {
  font-size: 1.35rem;
}

.panel__stamp {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid var(--ok);
  border-radius: 2px;
  color: var(--ok);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  transform: rotate(2deg);
}

.form {
  display: grid;
  gap: 26px;
  padding: 24px;
}

.form__section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form__legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.form__legend span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--green-soft);
  border: 1px solid #C8D5CB;
  border-radius: 2px;
  font-size: 0.62rem;
}

.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

input[type="time"],
input[type="number"] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #FCFBF7;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
  color-scheme: light;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="time"]:hover,
input[type="number"]:hover {
  border-color: #B4AFA0;
}

input[type="time"]:focus,
input[type="number"]:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 47, 0.12);
}

.hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.hint--strong {
  margin: 0;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--white);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--green-soft);
  border-color: var(--green);
}

.btn:active {
  transform: translateY(1px);
}

.btn--now {
  flex: 0 0 auto;
  padding: 0 10px;
  font-size: 0.66rem;
  white-space: nowrap;
}

.btn--add {
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  border-style: dashed;
  background: #FBFAF5;
}

.btn--add:hover {
  border-style: solid;
  background: var(--green-soft);
}

.inline-note {
  margin: 14px 0 0;
  padding: 9px 12px;
  border: 1px solid #E7D3A8;
  border-radius: 3px;
  background: var(--warn-bg);
  color: #7C4A09;
  font-size: 0.76rem;
  line-height: 1.5;
}

.inline-note--info {
  border-color: #C9D7CC;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* --------------------------------------------------------------------------
   Pausenregister
   -------------------------------------------------------------------------- */

.pauses__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pause-summary {
  flex: 0 0 auto;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pause-list {
  display: grid;
  gap: 10px;
}

.pause-row {
  position: relative;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 3px;
  background: #FDFCF8;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pause-row.is-ok {
  border-left-color: var(--ok);
  background: linear-gradient(90deg, rgba(220, 252, 231, 0.4), #FDFCF8 42%);
}

.pause-row.is-warn {
  border-left-color: var(--warn);
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.5), #FDFCF8 46%);
}

.pause-row__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.pause-row__no {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.badge {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.4;
  text-align: right;
}

.badge--ok {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: #A7DDB6;
}

.badge--warn {
  max-width: min(100%, 26rem);
  color: var(--warn);
  background: var(--warn-bg);
  border-color: #EBD19A;
  white-space: normal;
}

.badge--idle {
  color: var(--neutral);
  background: var(--neutral-bg);
  border-color: #D7DEE6;
}

.icon-btn {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--white);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.icon-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-bg);
}

.pause-row__fields {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 10px;
}

.mini-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mini-field__label {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-field input[type="time"],
.mini-field input[type="number"] {
  min-height: 38px;
  padding: 7px 9px;
  background: var(--white);
  font-size: 0.86rem;
}

.number-wrap {
  position: relative;
  display: flex;
}

.number-wrap input {
  padding-right: 38px;
}

.number-wrap__suffix {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.6rem;
  pointer-events: none;
}

.pause-row__note {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.4;
}

.pause-empty {
  padding: 18px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
  background: #FBFAF5;
  text-align: center;
}

.pause-empty strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.pause-empty span {
  color: var(--muted);
  font-size: 0.7rem;
}

.quick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick__label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chip:hover {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.form__footnote {
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Ergebnis-Ticket
   -------------------------------------------------------------------------- */

.results {
  min-width: 0;
}

.section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.section-bar h2 {
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}

.section-bar__note {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.ticket {
  position: relative;
  padding: 26px 26px 30px;
  background: #FFFEFB;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow:
    0 28px 50px -42px rgba(24, 36, 29, 0.8),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-strong);
  transform: translateY(-50%);
}

.ticket::before {
  left: -10px;
}

.ticket::after {
  right: -10px;
}

.ticket__masthead {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.ticket__brand {
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.ticket__brand span {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.ticket__title {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ticket__sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
}

.ticket__meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.65;
  text-align: right;
  white-space: nowrap;
}

.ticket__meta strong {
  color: var(--ink);
}

.ticket__body {
  padding-top: 14px;
}

.ticket__section-title {
  margin: 4px 0 6px;
  color: var(--green);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.ticket-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 0;
}

.ticket-row__label {
  color: var(--muted);
  font-size: 0.72rem;
}

.ticket-row__value {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.ticket-row--emphasis .ticket-row__label {
  color: var(--ink-soft);
  font-weight: 600;
}

.ticket-row--emphasis .ticket-row__value {
  font-weight: 700;
}

.ticket-row--positive .ticket-row__value {
  color: var(--ok);
}

.ticket-row--negative .ticket-row__value {
  color: var(--danger);
}

.ticket-row--negative.is-zero .ticket-row__value {
  color: var(--muted);
}

.ticket__divider {
  margin: 12px 0;
  border-top: 1px dashed #C9C5B8;
}

.ticket__net {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 4px;
}

.ticket__net-value {
  margin-top: 2px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4.6vw, 2.7rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1;
}

.ticket__net-meta {
  max-width: 16rem;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.5;
  text-align: right;
}

.ticket__short-note {
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 2px solid var(--warn);
  background: var(--warn-bg);
  color: #7C4A09;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.5;
}

.ticket__stamp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.ticket__stamp {
  padding: 6px 10px;
  border: 2px solid currentColor;
  border-radius: 2px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-5deg);
  opacity: 0.85;
}

.ticket__stamp--success {
  color: var(--ok);
}

.ticket__stamp--warning {
  color: var(--warn);
}

.ticket__stamp--critical {
  color: var(--danger);
}

.ticket__stamp--neutral {
  color: var(--neutral);
}

.ticket__serial {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.ticket__micro {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.5;
}

.ticket-row--target {
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dotted #D8D4C8;
}

.ticket-row--target:last-of-type {
  border-bottom: 0;
}

.ticket-row--target .ticket-row__label {
  display: grid;
  gap: 0;
}

.ticket-row--target .ticket-row__label strong {
  color: var(--ink);
  font-size: 0.72rem;
}

.ticket-row--target .ticket-row__label span {
  color: var(--muted);
  font-size: 0.6rem;
}

.ticket-row--target .ticket-row__value {
  color: var(--green);
  font-size: 0.94rem;
}

.ticket__barcode {
  height: 32px;
  margin-top: 18px;
  background-image: repeating-linear-gradient(
    90deg,
    #1E3A2F 0 2px,
    transparent 2px 5px,
    #1E3A2F 5px 6px,
    transparent 6px 9px,
    #1E3A2F 9px 12px,
    transparent 12px 14px
  );
  opacity: 0.82;
}

.ticket__barcode-label {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-align: center;
}

.ticket__fineprint {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #C9C5B8;
  color: var(--muted);
  font-size: 0.56rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Pausen-Kommentar
   -------------------------------------------------------------------------- */

.verdict {
  --tone: var(--neutral);
  --tone-bg: var(--neutral-bg);
  --tone-border: #D7DEE6;
  padding: 20px 22px;
  border: 1px solid var(--tone-border);
  border-left: 5px solid var(--tone);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FFFFFF, var(--tone-bg));
  box-shadow: var(--shadow-card);
}

.verdict--success {
  --tone: var(--ok);
  --tone-bg: #F1FBF3;
  --tone-border: #BCE3C6;
}

.verdict--warning {
  --tone: var(--warn);
  --tone-bg: #FFF9E8;
  --tone-border: #EBD19A;
}

.verdict--critical {
  --tone: var(--danger);
  --tone-bg: #FFF5F5;
  --tone-border: #F0C0C0;
}

.verdict--neutral {
  --tone: var(--neutral);
  --tone-bg: #F8FAFC;
  --tone-border: #D7DEE6;
}

.verdict__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.verdict__label {
  color: var(--tone);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.verdict__ref {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
}

.verdict__title {
  color: var(--tone);
  font-size: 1.14rem;
  line-height: 1.3;
}

.verdict__text {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}

.verdict__meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--tone-border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.5;
}

.tactic {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #E7C87A;
  border-radius: 3px;
  background: #FFF8DD;
  box-shadow: inset 3px 0 0 var(--warn);
}

.tactic__label {
  margin-bottom: 5px;
  color: var(--warn);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tactic__text {
  color: #5D3A07;
  font-size: 0.82rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Hausordnung
   -------------------------------------------------------------------------- */

.rules {
  display: grid;
  gap: 14px;
}

.rules__head {
  padding: 0 4px 8px;
}

.rules__head h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.18;
}

.rules__head > p:not(.kicker) {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.rule-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.rule-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--green);
  opacity: 0.85;
}

.rule-card__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rule-card__top span:last-child {
  color: var(--muted);
  font-weight: 400;
}

.rule-card h3 {
  margin: 8px 0 7px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.rule-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.rule-card__fact {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.rule-card__fact strong {
  color: var(--green);
  font-weight: 600;
}

/* Höhere Spezifität als ".rule-card p", damit die Faktenzeile kompakt bleibt. */
.rule-card p.rule-card__fact {
  font-size: 0.6rem;
  line-height: 1.45;
}

.aside-note {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--green);
  color: #EDE9DE;
  box-shadow: 0 20px 40px -34px rgba(20, 43, 34, 0.9);
}

.aside-note::after {
  content: "§";
  position: absolute;
  right: -8px;
  bottom: -34px;
  color: rgba(237, 233, 222, 0.08);
  font-family: var(--font-mono);
  font-size: 9rem;
  line-height: 1;
  pointer-events: none;
}

.aside-note__kicker {
  color: #A9B8AD;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.aside-note__title {
  margin: 8px 0;
  color: #F7F2E4;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.aside-note p:last-child {
  position: relative;
  z-index: 1;
  color: #C9D2CA;
  font-size: 0.78rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Fragenarchiv / FAQ
   -------------------------------------------------------------------------- */

.faq {
  margin-top: 46px;
  border-top: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

.faq__inner {
  padding-top: 38px;
  padding-bottom: 64px;
}

.faq__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 20px;
}

.faq__head h2 {
  margin-top: 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.faq__intro {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.faq__list {
  display: grid;
  gap: 8px;
  max-width: 1000px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(30, 58, 47, 0.03);
}

.faq-item[open] {
  border-color: #B9C9BD;
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__no {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid #D5E2D8;
  border-radius: 2px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.faq-item__q {
  flex: 1;
}

.faq-item__icon {
  flex: 0 0 auto;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  transition: transform 0.18s ease;
}

.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__body {
  padding: 0 18px 18px 66px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.7;
}

.faq-item__body p + p {
  margin-top: 10px;
}

.faq-item__body strong {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--green);
  color: #E9E4D6;
}

.footer__inner {
  display: grid;
  gap: 22px;
  padding-top: 38px;
  padding-bottom: 28px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer__logo {
  color: #F7F2E4;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.footer__logo-suffix {
  color: #A9B8AD;
  font-weight: 400;
}

.footer__claim {
  margin-top: 5px;
  color: #A9B8AD;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer__meta {
  justify-self: end;
  color: #A9B8AD;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.7;
  text-align: right;
}

.footer__disclaimer {
  padding: 16px 18px;
  border: 1px solid rgba(237, 233, 222, 0.18);
  border-left: 3px solid var(--brass);
  color: #C9D2CA;
  font-size: 0.75rem;
  line-height: 1.65;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
  color: #A9B8AD;
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #EDE9DE;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Dialoge
   -------------------------------------------------------------------------- */

.dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(86vh, 780px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(10, 20, 15, 0.45);
}

.dialog::backdrop {
  background: rgba(20, 35, 28, 0.55);
  backdrop-filter: blur(2px);
}

.dialog[open] {
  animation: dialog-in 0.18s ease-out;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog__bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.dialog__kicker {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.dialog__close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1;
}

.dialog__close:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-bg);
}

.dialog__body {
  max-height: calc(86vh - 56px);
  padding: 22px 24px 26px;
  overflow: auto;
}

.dialog__body h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.dialog__body h3 {
  margin: 18px 0 5px;
  font-size: 0.94rem;
}

.dialog__body p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.dialog__lede {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: #FBFAF5;
  color: var(--ink-soft) !important;
  font-size: 0.86rem !important;
}

.dialog__stand {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 22px;
  }

  .header__brandline {
    gap: 14px;
  }

  .ticker {
    font-size: 0.64rem;
  }
}

@media (max-width: 900px) {
  .shell {
    width: calc(100% - 32px);
  }

  .header__brandline {
    align-items: flex-start;
    flex-direction: column;
  }

  .ticker {
    width: 100%;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .header__intro h1 {
    max-width: 26ch;
    font-size: clamp(1.8rem, 5.2vw, 2.7rem);
  }

  .faq__head {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__meta {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .shell {
    width: calc(100% - 24px);
  }

  .site-header > .shell {
    padding-top: 18px;
    padding-bottom: 30px;
  }

  .header__intro {
    padding-top: 26px;
  }

  .header__intro h1 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
    line-height: 1.08;
  }

  .lede {
    font-size: 0.94rem;
  }

  .brand__sub {
    font-size: 0.58rem;
  }

  .ticker {
    gap: 6px;
    padding: 7px 9px;
    font-size: 0.6rem;
  }

  .ticker__sep {
    display: none;
  }

  .ticker__item {
    white-space: normal;
  }

  .panel__head,
  .form {
    padding: 18px;
  }

  .time-grid {
    grid-template-columns: 1fr;
  }

  .pauses__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pause-row {
    padding: 12px 10px 10px;
  }

  .pause-row__top {
    gap: 6px;
  }

  .pause-row__no {
    font-size: 0.56rem;
  }

  .badge {
    padding: 2px 6px;
    font-size: 0.56rem;
  }

  .icon-btn {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }

  .pause-row__fields {
    grid-template-columns: 1fr 1fr;
  }

  .mini-field--minutes {
    grid-column: 1 / -1;
  }

  .section-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .ticket {
    padding: 20px 18px 26px;
  }

  .ticket::before,
  .ticket::after {
    display: none;
  }

  .ticket__masthead {
    flex-wrap: wrap;
    gap: 12px;
  }

  .ticket__meta {
    flex-basis: 100%;
    text-align: left;
    white-space: normal;
  }

  .ticket__net {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .ticket__net-meta {
    max-width: none;
    text-align: left;
  }

  .ticket-row {
    gap: 8px;
  }

  .ticket-row__label {
    font-size: 0.68rem;
  }

  .ticket-row__value {
    font-size: 0.74rem;
  }

  .ticket__stamp-row {
    flex-wrap: wrap;
  }

  .verdict {
    padding: 16px;
  }

  .faq {
    margin-top: 34px;
  }

  .faq__inner {
    padding-top: 28px;
    padding-bottom: 46px;
  }

  .faq-item summary {
    gap: 10px;
    padding: 13px 12px;
    font-size: 0.82rem;
  }

  .faq-item__body {
    padding: 0 14px 16px;
    font-size: 0.82rem;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog__body {
    padding: 18px;
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion & Druck
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body {
    background: #FFFFFF;
  }

  .site-header,
  .calculator,
  .col-side,
  .section-bar,
  .verdict,
  .faq,
  .site-footer,
  .skip-link,
  .dialog {
    display: none !important;
  }

  .site-main {
    padding-top: 0;
  }

  .layout {
    display: block;
  }

  .ticket {
    border-color: #000000;
    box-shadow: none;
  }

  .ticket::before,
  .ticket::after {
    display: none;
  }
}

/* ==========================================================================
   Upgrade: Retro-Tech- & Kaffeeküchen-Ästhetik
   ========================================================================== */

.topbar {
  background: var(--green-deep);
  border-bottom: 1px solid #2C4C3E;
  color: #F2EDDF;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
}

.topbar__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #D8D2BF;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar__seal {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--brass);
  color: #142B22;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 700;
}

.topbar__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.topbar .ticker {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(242, 237, 223, 0.16);
  box-shadow: none;
}

.ticker__live {
  color: #86EFAC;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ticker__dot {
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

.theme-toggle {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(242, 237, 223, 0.35);
  border-radius: 3px;
  background: transparent;
  color: #F2EDDF;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brass);
  color: #FFF8E7;
}

.header__edition {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Schicht-Timeline
   -------------------------------------------------------------------------- */

.timeline-card {
  --timeline-paper: #F8F6F0;
  --timeline-line: rgba(30, 58, 47, 0.1);
  position: relative;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.timeline-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.timeline-card__kicker {
  margin: 0 0 5px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.timeline-card h2 {
  font-size: 1.13rem;
  line-height: 1.3;
}

.timeline-card__badge {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--neutral-bg);
  color: var(--neutral);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.timeline-card__badge--success {
  border-color: #A7DDB6;
  background: var(--ok-bg);
  color: var(--ok);
}

.timeline-card__badge--alert {
  border-color: #F0C0C0;
  background: var(--danger-bg);
  color: var(--danger);
}

.timeline-card__badge--warn {
  border-color: #EBD19A;
  background: var(--warn-bg);
  color: var(--warn);
}

.timeline-card__badge--neutral {
  border-color: var(--line-strong);
  background: var(--neutral-bg);
  color: var(--neutral);
}

.timeline {
  position: relative;
  padding-top: 24px;
}

.timeline__track {
  position: relative;
  height: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background-color: var(--timeline-paper);
  background-image: repeating-linear-gradient(
    90deg,
    var(--timeline-line) 0 1px,
    transparent 1px 10%
  );
  overflow: hidden;
}

.timeline__block {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  color: #F7F2E4;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  line-height: 1.2;
  transition: filter 0.15s ease;
}

.timeline__block:hover {
  filter: brightness(1.08);
}

.timeline__block--work {
  background: linear-gradient(180deg, #2B5445, #1E3A2F);
  overflow: hidden;
}

.timeline__block--danger {
  background: repeating-linear-gradient(
    135deg,
    #B91C1C 0 8px,
    #7F1D1D 8px 16px
  );
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  z-index: 2;
}

.timeline__block--unknown {
  background: repeating-linear-gradient(
    135deg,
    #334D41 0 8px,
    #6B5B3A 8px 16px
  );
  color: #FFF8E7;
  z-index: 2;
}

.timeline__block--pause {
  background: repeating-linear-gradient(
    135deg,
    #FBBF24 0 6px,
    #B45309 6px 12px
  );
  color: #241A06;
  z-index: 3;
  overflow: visible;
}

.timeline__block--short {
  background: repeating-linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.85) 0 4px,
    rgba(120, 53, 15, 0.86) 4px 8px
  );
  color: #FFF8E7;
  z-index: 4;
  overflow: visible;
}

.timeline__block--invalid {
  background: repeating-linear-gradient(
    135deg,
    #F87171 0 5px,
    #7F1D1D 5px 10px
  );
  color: #FFFFFF;
  z-index: 5;
  overflow: visible;
}

.timeline__block-label {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 100%;
  padding: 1px 3px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.timeline__block--pause .timeline__block-label {
  max-width: none;
  padding: 2px 4px;
  overflow: visible;
  border: 1px solid #B45309;
  border-radius: 2px;
  background: #FFF8E7;
  color: #7C4A09;
  font-size: 0.48rem;
  text-overflow: clip;
  text-shadow: none;
}

.timeline__block--short .timeline__block-label,
.timeline__block--invalid .timeline__block-label {
  top: 7px;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 700;
}

.timeline__deadline {
  position: absolute;
  top: 24px;
  height: 64px;
  width: 2px;
  background: var(--warn);
  box-shadow: 0 0 8px rgba(180, 83, 9, 0.45);
  z-index: 7;
  pointer-events: none;
}

.timeline__deadline.is-violated {
  background: var(--danger);
  box-shadow: 0 0 10px rgba(185, 28, 28, 0.6);
}

.timeline__deadline-flag {
  position: absolute;
  top: -20px;
  left: 50%;
  padding: 2px 5px;
  border: 1px solid var(--warn);
  border-radius: 2px;
  background: var(--warn-bg);
  color: #7C4A09;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.timeline__deadline.is-right .timeline__deadline-flag {
  transform: translateX(-100%);
}

.timeline__deadline.is-violated .timeline__deadline-flag {
  border-color: var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
}

.timeline__scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.02em;
}

.timeline__scale-mid {
  color: var(--green);
  font-weight: 600;
}

.timeline__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.52rem;
}

.timeline__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.timeline__swatch {
  display: inline-block;
  width: 18px;
  height: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 1px;
}

.timeline__swatch--work {
  background: #1E3A2F;
}

.timeline__swatch--pause {
  background: repeating-linear-gradient(135deg, #FBBF24 0 4px, #B45309 4px 8px);
}

.timeline__swatch--danger {
  background: repeating-linear-gradient(135deg, #B91C1C 0 3px, #7F1D1D 3px 6px);
}

.timeline__swatch--invalid {
  background: repeating-linear-gradient(135deg, #F87171 0 3px, #7F1D1D 3px 6px);
}

.timeline__hint {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

@keyframes stamp-in {
  0% {
    opacity: 0;
    transform: scale(1.8) rotate(-12deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.95) rotate(-3deg);
  }
  100% {
    opacity: 0.85;
    transform: scale(1) rotate(-4deg);
  }
}

/* --------------------------------------------------------------------------
   Ticket-Hinweise, Randpausen und Stempel
   -------------------------------------------------------------------------- */

.ticket__hint {
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px dashed var(--line-strong);
  border-left: 2px solid var(--green);
  border-radius: 2px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  line-height: 1.55;
}

.badge--danger {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #F0C0C0;
}

.pause-row.is-invalid {
  border-left-color: var(--danger);
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.09), #FDFCF8 46%);
}

.ticket__stamp {
  border: 3px double currentColor;
  border-radius: 3px;
  font-weight: 800;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.ticket__stamp.is-stamping {
  animation: stamp-in 0.42s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}

/* --------------------------------------------------------------------------
   Live-Hervorhebung der Hausordnung
   -------------------------------------------------------------------------- */

.rule-card {
  --rule-accent: var(--green);
  border-left: 4px solid var(--rule-accent);
  padding-left: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rule-card::before {
  display: none;
}

.rule-card--alert {
  --rule-accent: var(--danger);
  border-color: #F0C0C0;
  border-left-color: var(--danger);
  background: linear-gradient(180deg, #FFF8F8, var(--white) 58%);
  box-shadow:
    0 0 0 1px rgba(185, 28, 28, 0.12),
    0 0 26px -10px rgba(185, 28, 28, 0.55);
}

.rule-card--warn {
  --rule-accent: var(--warn);
  border-left-color: var(--warn);
  background: linear-gradient(180deg, #FFFCF2, var(--white) 58%);
  box-shadow:
    0 0 0 1px rgba(180, 83, 9, 0.1),
    0 0 22px -12px rgba(180, 83, 9, 0.5);
}

.rule-card__flag {
  margin: 8px 0 2px;
  padding: 4px 6px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rule-card--alert .rule-card__flag {
  color: var(--danger);
  background: var(--danger-bg);
}

.rule-card--warn .rule-card__flag {
  color: var(--warn);
  background: var(--warn-bg);
}

.rule-card p.rule-card__flag {
  font-size: 0.55rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Canvas-Kontaktdaten
   -------------------------------------------------------------------------- */

.contact-canvas-wrap {
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 10px 12px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(30, 58, 47, 0.025) 0 1px,
      transparent 1px 4px
    ),
    #FBFAF5;
}

.contact-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.contact-canvas-hint {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.5;
}

/* ==========================================================================
   Nachtschicht-Modus
   ========================================================================== */

:root[data-theme="dark"] {
  --paper: #0F1419;
  --paper-deep: #0B0F13;
  --white: #182026;
  --ink: #E8EFEA;
  --ink-soft: #C3CFC7;
  --muted: #8FA198;
  --line: #2A3640;
  --line-strong: #3A4854;
  --green: #34D399;
  --green-deep: #0B1512;
  --green-soft: rgba(52, 211, 153, 0.12);
  --brass: #FBBF24;
  --ok: #34D399;
  --ok-bg: rgba(52, 211, 153, 0.12);
  --warn: #FBBF24;
  --warn-bg: rgba(251, 191, 36, 0.12);
  --danger: #F87171;
  --danger-bg: rgba(248, 113, 113, 0.13);
  --neutral: #94A3B8;
  --neutral-bg: rgba(148, 163, 184, 0.12);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03), 0 20px 36px -30px rgba(0, 0, 0, 0.9);
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 22px 44px -38px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

[data-theme="dark"] body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(52, 211, 153, 0.07), transparent 46%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

[data-theme="dark"] .site-header {
  background: linear-gradient(180deg, rgba(24, 32, 38, 0.86), rgba(15, 20, 25, 0.1));
}

[data-theme="dark"] .site-header::before {
  background: repeating-linear-gradient(
    90deg,
    #34D399 0 28px,
    #FBBF24 28px 32px
  );
}

[data-theme="dark"] .brand__mark {
  background: #102019;
  color: #34D399;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .header__facts li {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--green);
}

[data-theme="dark"] .panel__head {
  background: linear-gradient(180deg, #1C262D, #182026);
}

[data-theme="dark"] .form__legend span {
  border-color: #2F4A3B;
}

[data-theme="dark"] input[type="time"],
[data-theme="dark"] input[type="number"] {
  background: #111A20;
  border-color: var(--line-strong);
  color: var(--ink);
  color-scheme: dark;
}

[data-theme="dark"] input[type="time"]:hover,
[data-theme="dark"] input[type="number"]:hover {
  border-color: #51636F;
}

[data-theme="dark"] .btn {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--green);
}

[data-theme="dark"] .btn:hover {
  background: var(--green-soft);
  border-color: var(--green);
}

[data-theme="dark"] .btn--add {
  background: #141D22;
}

[data-theme="dark"] .inline-note {
  border-color: rgba(251, 191, 36, 0.35);
  background: var(--warn-bg);
  color: #FDE68A;
}

[data-theme="dark"] .inline-note--info {
  border-color: rgba(52, 211, 153, 0.3);
  background: var(--green-soft);
  color: var(--green);
}

[data-theme="dark"] .noscript-note {
  border-color: rgba(251, 191, 36, 0.35);
  background: var(--warn-bg);
  color: #FDE68A;
}

[data-theme="dark"] .pause-row {
  background: #141D22;
  border-color: var(--line);
}

[data-theme="dark"] .pause-row.is-ok {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.1), #141D22 42%);
}

[data-theme="dark"] .pause-row.is-warn {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), #141D22 46%);
}

[data-theme="dark"] .pause-row.is-invalid {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.13), #141D22 46%);
}

[data-theme="dark"] .badge--ok {
  border-color: rgba(52, 211, 153, 0.35);
}

[data-theme="dark"] .badge--warn {
  border-color: rgba(251, 191, 36, 0.35);
}

[data-theme="dark"] .badge--danger {
  border-color: rgba(248, 113, 113, 0.4);
}

[data-theme="dark"] .badge--idle {
  border-color: var(--line-strong);
}

[data-theme="dark"] .icon-btn {
  background: #111A20;
  border-color: var(--line-strong);
}

[data-theme="dark"] .icon-btn:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
}

[data-theme="dark"] .pause-empty {
  background: #141D22;
  border-color: var(--line-strong);
}

[data-theme="dark"] .chip {
  background: #111A20;
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

[data-theme="dark"] .chip:hover {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}

[data-theme="dark"] .pause-summary,
[data-theme="dark"] .quick__label {
  color: var(--green);
}

[data-theme="dark"] .ticket {
  background: #182026;
  border-color: #2A3640;
  box-shadow:
    0 28px 60px -42px #000000,
    0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

[data-theme="dark"] .ticket::before,
[data-theme="dark"] .ticket::after {
  background: var(--paper);
  box-shadow: 0 0 0 1px #2A3640;
}

[data-theme="dark"] .ticket__divider,
[data-theme="dark"] .ticket__fineprint {
  border-color: #2A3640;
}

[data-theme="dark"] .ticket-row--target {
  border-bottom-color: #2A3640;
}

[data-theme="dark"] .ticket__barcode {
  background-image: repeating-linear-gradient(
    90deg,
    #34D399 0 2px,
    transparent 2px 5px,
    #34D399 5px 6px,
    transparent 6px 9px,
    #34D399 9px 12px,
    transparent 12px 14px
  );
  opacity: 0.7;
}

[data-theme="dark"] .ticket__short-note {
  background: var(--warn-bg);
  color: #FDE68A;
}

[data-theme="dark"] .ticket__hint {
  border-color: rgba(52, 211, 153, 0.28);
  background: var(--green-soft);
  color: var(--green);
}

[data-theme="dark"] .ticket__stamp {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .verdict {
  background: linear-gradient(180deg, #182026, var(--tone-bg));
}

[data-theme="dark"] .verdict--success {
  --tone: #34D399;
  --tone-bg: rgba(52, 211, 153, 0.08);
  --tone-border: rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .verdict--warning {
  --tone: #FBBF24;
  --tone-bg: rgba(251, 191, 36, 0.08);
  --tone-border: rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .verdict--critical {
  --tone: #F87171;
  --tone-bg: rgba(248, 113, 113, 0.08);
  --tone-border: rgba(248, 113, 113, 0.32);
}

[data-theme="dark"] .verdict--neutral {
  --tone: #94A3B8;
  --tone-bg: rgba(148, 163, 184, 0.08);
  --tone-border: rgba(148, 163, 184, 0.3);
}

[data-theme="dark"] .tactic {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

[data-theme="dark"] .tactic__text {
  color: #FDE68A;
}

[data-theme="dark"] .rule-card--alert {
  border-color: rgba(248, 113, 113, 0.35);
  border-left-color: var(--danger);
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.08), var(--white) 58%);
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.16),
    0 0 26px -10px rgba(248, 113, 113, 0.5);
}

[data-theme="dark"] .rule-card--warn {
  border-left-color: var(--warn);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.07), var(--white) 58%);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.12),
    0 0 22px -12px rgba(251, 191, 36, 0.45);
}

[data-theme="dark"] .timeline-card {
  --timeline-paper: #111A20;
  --timeline-line: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
  border-left-color: var(--brass);
}

[data-theme="dark"] .timeline__block--work {
  background: linear-gradient(180deg, #0F3B2E, #065F46);
}

[data-theme="dark"] .timeline__block--unknown {
  background: repeating-linear-gradient(
    135deg,
    #1E3A2F 0 8px,
    #6B5B3A 8px 16px
  );
}

[data-theme="dark"] .timeline__block--pause {
  background: repeating-linear-gradient(
    135deg,
    #FBBF24 0 6px,
    #B45309 6px 12px
  );
}

[data-theme="dark"] .timeline__block--pause .timeline__block-label {
  border-color: #FBBF24;
  background: #2A2410;
  color: #FDE68A;
}

[data-theme="dark"] .timeline__deadline-flag {
  border-color: rgba(251, 191, 36, 0.55);
  background: #2A2410;
  color: #FDE68A;
}

[data-theme="dark"] .timeline__deadline.is-violated .timeline__deadline-flag {
  border-color: rgba(248, 113, 113, 0.6);
  background: #2A1518;
  color: #FCA5A5;
}

[data-theme="dark"] .timeline__swatch {
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .timeline__swatch--work {
  background: #10B981;
}

[data-theme="dark"] .timeline-card__badge--success {
  border-color: rgba(52, 211, 153, 0.35);
}

[data-theme="dark"] .timeline-card__badge--alert {
  border-color: rgba(248, 113, 113, 0.4);
}

[data-theme="dark"] .timeline-card__badge--warn {
  border-color: rgba(251, 191, 36, 0.4);
}

[data-theme="dark"] .faq {
  background: linear-gradient(180deg, rgba(24, 32, 38, 0.5), rgba(15, 20, 25, 0));
}

[data-theme="dark"] .faq-item[open] {
  border-color: #3B5A4A;
}

[data-theme="dark"] .faq-item__no {
  border-color: #2F4A3B;
}

[data-theme="dark"] .aside-note {
  background: #102019;
  color: #E9E4D6;
}

[data-theme="dark"] .aside-note p:last-child {
  color: #A9BDB2;
}

[data-theme="dark"] .site-footer {
  background: #0A1511;
}

[data-theme="dark"] .dialog {
  border-color: var(--line-strong);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .dialog__bar {
  background: var(--paper);
}

[data-theme="dark"] .dialog__close {
  background: #111A20;
  border-color: var(--line-strong);
}

[data-theme="dark"] .dialog__lede {
  border-color: var(--line);
  border-left-color: var(--green);
  background: #141D22;
}

[data-theme="dark"] .contact-canvas-wrap {
  border-color: var(--line-strong);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.025) 0 1px,
      transparent 1px 4px
    ),
    #111A20;
}

[data-theme="dark"] .skip-link {
  background: var(--green);
  color: #0F1419;
}

/* --------------------------------------------------------------------------
   Upgrade: Responsive Feinarbeit
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .topbar__inner {
    gap: 12px;
  }

  .topbar__label {
    font-size: 0.52rem;
  }

  .theme-toggle {
    font-size: 0.55rem;
  }
}

@media (max-width: 900px) {
  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
  }

  .topbar__label {
    white-space: normal;
    line-height: 1.5;
  }

  .topbar__tools {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar .ticker {
    flex: 1 1 auto;
  }

  .header__edition {
    display: none;
  }

  .timeline-card__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .topbar__inner {
    padding: 8px 0;
  }

  .topbar__label {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  .topbar__tools {
    gap: 6px;
  }

  .topbar .ticker {
    flex: 1 1 100%;
    padding: 6px 8px;
    font-size: 0.58rem;
  }

  .theme-toggle {
    font-size: 0.54rem;
    padding: 5px 7px;
  }

  .timeline-card {
    padding: 14px 12px 13px;
    border-left-width: 3px;
  }

  .timeline-card__kicker {
    font-size: 0.52rem;
  }

  .timeline-card h2 {
    font-size: 1rem;
  }

  .timeline-card__badge {
    font-size: 0.5rem;
  }

  .timeline__track {
    height: 54px;
  }

  .timeline__deadline {
    top: 24px;
    height: 54px;
  }

  .timeline__block-label {
    font-size: 0.44rem;
  }

  .timeline__block--pause .timeline__block-label {
    padding: 1px 2px;
    font-size: 0.42rem;
  }

  .timeline__scale {
    font-size: 0.5rem;
  }

  .timeline__scale-mid {
    display: none;
  }

  .timeline__legend {
    gap: 7px 10px;
    font-size: 0.47rem;
  }

  .timeline__hint {
    font-size: 0.66rem;
  }

  .timeline__deadline-flag {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.42rem;
  }

  .ticket__hint {
    font-size: 0.66rem;
  }

  .contact-canvas-wrap {
    padding: 8px;
  }

  .rule-card {
    padding-left: 13px;
  }
}

@media print {
  .topbar,
  .timeline-card,
  .theme-toggle {
    display: none !important;
  }
}

.ticker__dot {
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
    background: #34D399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
  }
  50% {
    opacity: 0.55;
    background: #34D399;
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.05);
  }
}

/* --------------------------------------------------------------------------
   Unamtlich: Satire-Hinweis, Hero-Raster & Tageslosung
   -------------------------------------------------------------------------- */

.satire-banner {
  border-bottom: 1px solid #E7D3A8;
  background: #FEF3C7;
  color: #5D3A07;
}

.satire-banner__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.5;
}

.satire-banner__inner p {
  margin: 0;
}

.satire-banner__badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 2px;
  background: #B45309;
  color: #FFF8E7;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.satire-banner__coffee {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid #5D3A07;
  border-radius: 2px;
  background: #5D3A07;
  color: #FFF8E7;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.satire-banner__coffee:hover {
  filter: brightness(1.12);
}

.satire-banner__coffee:active {
  transform: translateY(1px);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.32fr) minmax(310px, 0.68fr);
  gap: 32px;
  align-items: start;
  max-width: none;
}

.hero-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.daily-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 20px 20px 16px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.daily-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 18px;
  width: 38px;
  height: 7px;
  background: var(--brass);
  opacity: 0.7;
}

.daily-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.daily-card__kicker {
  margin: 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.daily-card__date {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  line-height: 1.4;
}

.daily-card__intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.daily-card__quote {
  margin: 0;
  padding: 2px 0 2px 13px;
  border-left: 2px solid var(--brass);
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  font-weight: 650;
  line-height: 1.48;
  text-wrap: pretty;
}

.daily-card__actions {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}

.daily-card__next {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.02em;
}

.daily-card__copy {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--green);
  border-radius: 3px;
  background: var(--green);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: filter 0.15s ease, background 0.15s ease;
}

.daily-card__copy:hover {
  filter: brightness(1.08);
}

.daily-card__copy:active {
  transform: translateY(1px);
}

.daily-card__feedback {
  min-height: 1.2em;
  margin: 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  line-height: 1.4;
}

[data-theme="dark"] .satire-banner {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.12);
  color: #FDE68A;
}

[data-theme="dark"] .satire-banner__badge {
  background: #B45309;
  color: #FFF8E7;
}

[data-theme="dark"] .daily-card {
  background: var(--white);
  border-color: var(--line-strong);
  border-left-color: var(--brass);
}

[data-theme="dark"] .daily-card__copy {
  background: var(--green);
  border-color: var(--green);
  color: #0F1419;
}

[data-theme="dark"] .daily-card__copy:hover {
  filter: brightness(1.08);
}

@media (max-width: 1100px) {
  .topbar__inner {
    flex-wrap: wrap;
  }

  .topbar__label {
    white-space: normal;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
  }

  .daily-card {
    padding: 17px 16px 14px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .daily-card {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .satire-banner__inner {
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.58rem;
  }

  .satire-banner__coffee {
    width: auto;
    margin-left: 0;
  }

  .daily-card {
    padding: 16px 14px 13px;
  }

  .daily-card__quote {
    font-size: 1.03rem;
  }

  .daily-card__copy {
    font-size: 0.57rem;
  }
}

/* --------------------------------------------------------------------------
   Kaffeekasse // Gebührenordnung am Ticketende
   -------------------------------------------------------------------------- */

.ticket__coffee {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #C9C5B8;
}

.ticket__coffee-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 6px;
  border: 1px solid #B08D57;
  border-radius: 2px;
  background: rgba(154, 123, 69, 0.1);
  color: #7A5A25;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ticket__coffee-text {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  line-height: 1.55;
}

.ticket__coffee-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--brass);
  border-radius: 3px;
  background: var(--brass);
  color: #1E1A0F;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.ticket__coffee-link:hover {
  filter: brightness(1.08);
}

.ticket__coffee-link:active {
  transform: translateY(1px);
}

[data-theme="dark"] .ticket__coffee {
  border-color: #2A3640;
}

[data-theme="dark"] .ticket__coffee-badge {
  border-color: var(--brass);
  background: rgba(251, 191, 36, 0.1);
  color: var(--brass);
}

[data-theme="dark"] .ticket__coffee-link {
  color: #0F1419;
}

[data-theme="dark"] .satire-banner__coffee {
  border-color: #FBBF24;
  background: #FBBF24;
  color: #1E1A0F;
}

@media (max-width: 600px) {
  .ticket__coffee-link {
    width: 100%;
  }
}

