/* ═══════════════════════════════════════════════════════════
   Midnight Milk Club — App (Mein Bereich & Admin)
   ═══════════════════════════════════════════════════════════ */

body.app-body { background: var(--paper); font-size: 15px; }

/* ── Login-Gate (Mitternacht) ── */
.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(820px 520px at 78% -10%, rgba(192, 38, 211, 0.5), transparent 62%),
    radial-gradient(680px 480px at 8% 112%, rgba(124, 58, 237, 0.55), transparent 60%),
    var(--ink);
  position: relative;
  overflow: hidden;
}
.gate-stars { position: absolute; inset: 0; pointer-events: none; }
.gate-stars .s {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: rgba(244, 240, 230, 0.65);
  animation: twinkle 4s ease-in-out infinite;
}
.gate-stars .s.g { background: var(--gold); }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.9; } }

.gate-card {
  position: relative;
  width: 100%;
  max-width: 410px;
  background: rgba(33, 30, 64, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--ink-line);
  border-radius: 26px;
  padding: 44px 38px;
  text-align: center;
  color: var(--ink-text);
  box-shadow: var(--shadow-lg);
}
.gate-logo { width: 60px; height: 60px; margin: 0 auto 20px; }
.gate-card h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.gate-card h1 em { font-style: italic; color: var(--lavender); }
.gate-card > p { font-size: 0.87rem; color: var(--ink-muted); line-height: 1.6; margin-bottom: 28px; }

.code-input {
  text-align: center;
  font-family: var(--mono);
  font-size: 1.35rem;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  padding: 15px 18px;
  background: rgba(21, 19, 42, 0.6);
  border: 1.5px solid var(--ink-line);
  border-radius: var(--r-md);
  color: var(--ink-text);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.code-input::placeholder { color: rgba(244, 240, 230, 0.25); letter-spacing: 0.45em; }
.code-input:focus { border-color: var(--lavender); background: rgba(21, 19, 42, 0.8); box-shadow: 0 0 0 3px rgba(180, 172, 247, 0.15); }

.gate-error {
  display: none;
  font-size: 0.82rem;
  color: #F0A8A0;
  background: rgba(214, 69, 69, 0.14);
  border: 1px solid rgba(214, 69, 69, 0.3);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  margin-bottom: 14px;
}
.gate-back { margin-top: 26px; font-size: 0.8rem; }
.gate-back a { color: var(--ink-muted); text-decoration: none; }
.gate-back a:hover { color: var(--ink-text); }

/* ── App-Installation (Gate) ── */
.install-guide {
  margin-top: 22px;
  text-align: left;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  background: rgba(21, 19, 42, 0.4);
  overflow: hidden;
}
.install-guide summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lavender);
}
.install-guide summary::-webkit-details-marker { display: none; }
.install-guide summary .ig-plus {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--ink-line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.install-guide summary .ig-plus svg { width: 10px; height: 10px; color: var(--ink-muted); }
.install-guide[open] summary .ig-plus { transform: rotate(45deg); background: var(--violet); border-color: var(--violet); }
.install-guide[open] summary .ig-plus svg { color: #fff; }
.install-guide-body { padding: 0 16px 16px; }
.install-guide-body h4 {
  font-size: 0.74rem; font-weight: 680; color: var(--gold);
  margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 0.06em;
}
.install-guide-body h4:first-child { margin-top: 0; }
.install-guide-body ol { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.install-guide-body li { font-size: 0.8rem; color: var(--ink-muted); line-height: 1.55; }
.install-guide-body li strong { color: var(--ink-text); }

@media (display-mode: standalone) {
  .install-guide { display: none; }
}

/* ── App-Kopfzeile ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--grad-head);
  border-bottom: none;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.22);
  height: calc(62px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: env(safe-area-inset-top) clamp(16px, 3vw, 28px) 0;
  box-sizing: border-box;
  color: #fff;
}
.app-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
.app-logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.app-logo-name { font-family: var(--serif); font-size: 1rem; font-weight: 800; line-height: 1.1; white-space: nowrap; color: #fff; }
.app-logo-sub { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); margin-top: 2px; }
.app-header-right { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

/* Buttons im Verlaufs-Header: hell auf Lila */
.app-header .btn-ink { background: #fff; color: var(--violet); font-weight: 800; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.app-header .btn-ink:hover { background: #fff; filter: brightness(0.97); }
.app-header .btn-outline { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.app-header .btn-outline:hover { background: rgba(255, 255, 255, 0.26); border-color: #fff; color: #fff; }
.app-header .child-pill { background: rgba(255, 255, 255, 0.18); color: #fff; }

.child-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 0.8rem;
  font-weight: 620;
  padding: 6px 14px;
  border-radius: 99px;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .app-logo > span { display: none; }
  .child-pill { display: none !important; }
}

/* ── Tab-Navigation (Desktop oben) ── */
.tab-nav {
  position: sticky;
  top: calc(62px + env(safe-area-inset-top));
  z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  padding: 0 clamp(12px, 3vw, 24px);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 18px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn svg { width: 17px; height: 17px; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--violet); border-bottom-color: var(--violet); }

/* ── Mobile Bottom-Navigation (App-Gefühl) ── */
@media (max-width: 640px) {
  .tab-nav {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0; right: 0;
    border-bottom: none;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    justify-content: space-around;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 24px rgba(21, 19, 42, 0.07);
  }
  .tab-btn {
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    font-size: 0.62rem;
    font-weight: 620;
    letter-spacing: 0.02em;
    border-bottom: none;
    border-radius: 12px;
    flex: 1;
    max-width: 96px;
  }
  .tab-btn svg { width: 21px; height: 21px; }
  .tab-btn.active { background: var(--violet-soft); border-bottom: none; }
  .app-main { padding-bottom: 96px !important; }
}

/* ── Hauptbereich ── */
.app-main { max-width: 960px; margin: 0 auto; padding: 26px clamp(14px, 3vw, 24px) 90px; }
.app-main .card { margin-bottom: 16px; }

/* ── Kind-Hero ── */
.kind-hero {
  position: relative;
  background:
    radial-gradient(360px 200px at 88% -10%, rgba(244, 114, 182, 0.55), transparent 65%),
    linear-gradient(135deg, #7C3AED 0%, #C026D3 100%);
  border: none;
  border-radius: var(--r-lg);
  color: var(--ink-text);
  padding: 28px 28px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.kind-hero-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; }
.kind-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(244, 240, 230, 0.12);
  border: 1px solid rgba(244, 240, 230, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kind-avatar svg { width: 28px; height: 28px; color: var(--gold); }
.kind-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.015em; }
.kind-alter { font-size: 0.86rem; color: var(--ink-muted); margin-top: 2px; }
.kind-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.kind-stat {
  background: rgba(244, 240, 230, 0.08);
  border: 1px solid rgba(244, 240, 230, 0.12);
  border-radius: var(--r-md);
  padding: 9px 16px;
  text-align: center;
}
.kind-stat small { display: block; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2px; }
.kind-stat strong { font-family: var(--mono); font-size: 0.95rem; font-weight: 500; }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
/* Tablet: drei-/vierspaltige Raster auf zwei Spalten */
@media (max-width: 760px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
/* Handy (inkl. großer Geräte wie Pro Max = 430px): alle Eingabe-Raster
   einspaltig → garantiert gleich breite, sauber ausgerichtete Felder */
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Tabellen ── */
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
td { padding: 11px 12px; border-bottom: 1px solid #F0EDE5; vertical-align: top; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: #FBFAF6; }

.td-mono { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; }
.td-strong { font-weight: 650; }
.td-muted { color: var(--muted); font-size: 0.82rem; }

.delta { font-size: 0.82rem; font-weight: 600; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta-warn { background: var(--red-soft); color: var(--red); padding: 1px 7px; border-radius: 6px; font-weight: 700; }

tr.allergie-row td { background: #FDF4F3; }

.bn-note {
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--amber);
  background: var(--amber-soft);
  border-left: 2.5px solid var(--gold);
  padding: 6px 10px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  line-height: 1.5;
}
tr.bn-row td {
  padding: 6px 12px 9px;
  background: #FCF8EF;
  font-size: 0.8rem;
  color: var(--amber);
  font-style: italic;
}

/* ── Leerzustand / Laden ── */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); font-size: 0.88rem; }
.empty svg { width: 36px; height: 36px; margin: 0 auto 12px; opacity: 0.35; }
.loading { display: none; text-align: center; padding: 10px 0; color: var(--muted); font-size: 0.82rem; }
.loading.on { display: block; }
.spinner {
  width: 26px; height: 26px;
  margin: 0 auto 10px;
  border: 2.5px solid var(--line);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hinweise ── */
.alert { padding: 11px 15px; border-radius: var(--r-sm); font-size: 0.84rem; line-height: 1.5; margin-bottom: 14px; }
.alert-warn { background: var(--amber-soft); border: 1px solid #EBD9B4; color: var(--amber); display: none; }
.alert-info { background: var(--violet-soft); border: 1px solid #DBD7F8; color: var(--violet); }

/* ── Statistiken ── */
.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 540px) { .stats-bar { grid-template-columns: 1fr 1fr; } .stats-bar .stat:first-child { grid-column: 1 / -1; } }
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.stat small { display: block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.stat strong { font-family: var(--mono); font-size: 1.25rem; font-weight: 500; }
.stat strong.good { color: var(--green); }
.stat strong.warn { color: var(--amber); }

/* ── Anleitung (einklappbar) ── */
.guide {
  background: var(--violet-soft);
  border: 1px solid #E6D8FB;
  border-radius: var(--r-md);
  padding: 15px 20px;
  margin-bottom: 16px;
}
.guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 10px;
}
.guide-title { display: flex; align-items: center; gap: 9px; font-size: 0.8rem; font-weight: 800; color: var(--violet-deep); }
.guide-title svg { width: 15px; height: 15px; }
.guide-toggle { font-size: 0.74rem; color: var(--violet-deep); background: none; border: none; cursor: pointer; opacity: 0.8; padding: 0; }
.guide-body { margin-top: 12px; }
.guide-body ol { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.guide-body li { font-size: 0.83rem; color: #5B4F7A; line-height: 1.55; }
.guide-body li strong { color: var(--violet-deep); }
.guide-hint { margin-top: 12px; font-size: 0.78rem; color: #5B4F7A; background: rgba(124, 58, 237, 0.10); border-radius: 8px; padding: 8px 12px; line-height: 1.5; }

/* ── Reaktion-Buttons (Beikost) ── */
.reaktion-group { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 4px; }
.reak-btn {
  padding: 9px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}
.reak-btn:hover { border-color: #CFC9BB; }
.reak-btn.active.gut      { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.reak-btn.active.neutral  { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.reak-btn.active.allergie { background: var(--red-soft);   border-color: var(--red);   color: var(--red); }

#allergie-extra {
  display: none;
  background: var(--red-soft);
  border: 1px solid rgba(214, 69, 69, 0.3);
  border-radius: var(--r-md);
  padding: 16px;
  margin-top: 12px;
}
#allergie-extra label { color: var(--red); }

.reak-dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: middle; }
.reak-dot.gut { background: var(--green); }
.reak-dot.neutral { background: var(--amber); }
.reak-dot.allergie { background: var(--red); }

/* ── Filter ── */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filter-label { font-size: 0.78rem; font-weight: 650; color: var(--muted); }
.filter-btn {
  padding: 6px 15px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--violet); color: var(--violet); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }

/* ── Einklappbar ── */
.collapse-head { cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; }
.collapse-head::after {
  content: '';
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-right: 4px;
}
.collapse-head.closed::after { transform: rotate(-45deg); }
.collapse-body.hidden { display: none; }

/* ── Zeitstrahl (Beratungsnotizen) ── */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 4px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--gold), rgba(217, 164, 65, 0.1));
}
.tl-day { position: relative; margin-bottom: 24px; }
.tl-day:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -23px; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2.5px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--gold);
}
.tl-date { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; color: var(--gold-deep); margin-bottom: 7px; }
.tl-notes { display: flex; flex-direction: column; gap: 7px; }
.tl-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 10px 14px;
}
.tl-note-meta { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet); margin-bottom: 3px; }
.tl-note-text { font-size: 0.88rem; line-height: 1.55; }

/* ── Wakeups ── */
.wakeup-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr 36px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: end;
}
@media (max-width: 540px) { .wakeup-row { grid-template-columns: 1fr 1fr; } }

/* ── Charts ── */
.chart-wrap { position: relative; height: 330px; }
.chart-wrap-sm { position: relative; height: 210px; }
.legend-wrap { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--muted); }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.leg-line { width: 18px; height: 0; border-bottom: 2px solid; flex-shrink: 0; }
.leg-line.dashed { border-bottom-style: dashed; }
.chart-footnote { font-size: 0.7rem; color: var(--muted); margin-top: 6px; }

/* ── Buttons-Zeile ── */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ═══════════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════════ */
.admin-container { max-width: 1060px; margin: 0 auto; padding: 26px clamp(14px, 3vw, 24px) 80px; }

.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-count { font-size: 0.84rem; color: var(--muted); }

.kunden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.kunden-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
}
.kunden-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.kunden-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.kunden-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 560; }
.kunden-geb { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.kunden-code {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: var(--gold);
  padding: 4px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.kunden-code.inaktiv { background: var(--red-soft); color: var(--red); }
.kunden-stats { display: flex; gap: 8px; margin-bottom: 14px; }
.kunden-stat {
  flex: 1;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 4px;
}
.kunden-stat strong { display: block; font-family: var(--mono); font-size: 1rem; font-weight: 500; }
.kunden-stat small { font-size: 0.62rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kunden-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.76rem; color: var(--muted); }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 18px;
  transition: color 0.15s;
}
.back-btn:hover { color: var(--violet); }

.detail-head {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-id { display: flex; align-items: center; gap: 14px; }
.detail-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 540; }
.detail-meta { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

.paket-verwaltung {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.tool-checks { display: flex; gap: 16px; flex-wrap: wrap; }
.tool-check { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; font-weight: 550; cursor: pointer; margin-bottom: 0; color: var(--text); letter-spacing: 0; text-transform: none; }

.email-box {
  display: none;
  background: var(--green-soft);
  border: 1px solid rgba(47, 133, 90, 0.3);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 18px;
}
.email-box-title { font-size: 0.86rem; font-weight: 680; color: var(--green); margin-bottom: 12px; }
.email-text {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px;
  font-size: 0.84rem;
  line-height: 1.6;
  white-space: pre-wrap;
  font-family: var(--mono);
  margin-bottom: 12px;
}

.notiz-input {
  min-height: 40px;
  font-size: 0.82rem;
  padding: 8px 11px;
  min-width: 180px;
}
.section-count { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
