/* ==========================================================================
   NotfallGo – Designsystem (Blau / Weiß)
   ========================================================================== */

:root {
  --blue-25:  #f6f9ff;
  --blue-50:  #eef4ff;
  --blue-100: #dce8ff;
  --blue-200: #b9d0ff;
  --blue-400: #4f86f7;
  --blue-500: #2468f2;
  --blue-600: #1459d9;
  --blue-700: #0f47b3;
  --blue-800: #0d388a;
  --navy:     #0a1f44;

  --ink:      #0f1b2d;
  --text:     #2b3a52;
  --muted:    #5d6d85;
  --subtle:   #8594aa;
  --line:     #e3e9f2;
  --line-2:   #d3dcea;
  --bg:       #f4f7fc;
  --card:     #ffffff;

  --green:    #12a150;
  --green-bg: #e7f7ee;
  --amber:    #d98a06;
  --amber-bg: #fff4dc;
  --red:      #dc2f2f;
  --red-bg:   #fdeaea;
  --gray:     #64748b;
  --gray-bg:  #eef1f5;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, .06);
  --shadow:    0 1px 2px rgba(10, 31, 68, .05), 0 6px 20px rgba(10, 31, 68, .06);
  --shadow-lg: 0 20px 50px rgba(10, 31, 68, .14);
  --ring:      0 0 0 4px rgba(36, 104, 242, .18);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: 1.75rem; font-weight: 750; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; }
p  { margin: 0 0 1em; }
a  { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Marke ------------------------------------------------------------- */

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--navy); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__go { color: var(--blue-600); }
.brand__tag { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); background: var(--blue-50); border: 1px solid var(--blue-100); padding: 2px 7px; border-radius: 999px; }

/* --- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  font: inherit; font-weight: 600; font-size: .95rem;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 1px 2px rgba(20, 89, 217, .3); }
.btn--primary:hover { background: var(--blue-700); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { background: var(--blue-25); border-color: var(--blue-200); color: var(--blue-700); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { background: var(--blue-50); color: var(--blue-700); }
.btn--danger { background: #fff; color: var(--red); border-color: #f3c6c6; }
.btn--danger:hover { background: var(--red-bg); color: var(--red); }
.btn--sm { height: 34px; padding: 0 12px; font-size: .85rem; }
.btn--lg { height: 52px; padding: 0 24px; font-size: 1rem; border-radius: var(--radius); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form { display: inline; margin: 0; }

/* --- Formulare --------------------------------------------------------- */

.form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid--3 { grid-template-columns: 1fr 2fr 2fr; }
.span-2 { grid-column: span 2; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.hint, .field .hint { font-size: .82rem; color: var(--muted); }
.field .error { font-size: .82rem; color: var(--red); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px;
  font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235d6d85'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.input:hover, .select:hover, .textarea:hover { border-color: #b8c5d9; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--ring); }
.input.is-invalid, .textarea.is-invalid { border-color: var(--red); }
.input[readonly] { background: var(--bg); color: var(--muted); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue-600); flex: none; }
.checkbox small { display: block; color: var(--muted); font-weight: 400; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 6px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* --- Karten ------------------------------------------------------------ */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card__body { padding: 24px; }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.card__header h2, .card__header h3 { margin: 0; }
.card__footer { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--blue-25); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card + .card { margin-top: 20px; }
.grid-2 > .card, .grid-2 > div > .card:first-child { margin-top: 0; }
.section-title { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); margin: 0 0 12px; }

/* --- Hinweise ---------------------------------------------------------- */

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius); border: 1px solid; font-weight: 500; font-size: .92rem; margin-bottom: 16px; }
.alert--success { background: var(--green-bg); border-color: #bfe8cf; color: #0b6b35; }
.alert--error   { background: var(--red-bg); border-color: #f5c7c7; color: #a51d1d; }
.alert--info    { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-800); }
.alert--warning { background: var(--amber-bg); border-color: #f6dca5; color: #8a5600; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

/* --- Status / Badges --------------------------------------------------- */

.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; font-weight: 650; font-size: .82rem; white-space: nowrap; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.status--available { background: var(--green-bg); color: var(--green); }
.status--limited   { background: var(--amber-bg); color: var(--amber); }
.status--full      { background: var(--red-bg); color: var(--red); }
.status--closed    { background: var(--gray-bg); color: var(--gray); }
.status--available .status__dot { animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18,161,80,.45); } 70% { box-shadow: 0 0 0 7px rgba(18,161,80,0); } 100% { box-shadow: 0 0 0 0 rgba(18,161,80,0); } }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 650; background: var(--gray-bg); color: var(--gray); white-space: nowrap; }
.badge--blue  { background: var(--blue-50); color: var(--blue-700); }
.badge--green { background: var(--green-bg); color: var(--green); }
.badge--amber { background: var(--amber-bg); color: var(--amber); }
.badge--red   { background: var(--red-bg); color: var(--red); }

/* --- Tabellen ---------------------------------------------------------- */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--blue-25); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--blue-25); }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * + * { margin-left: 6px; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-main strong { color: var(--ink); display: block; }
.cell-main small { color: var(--muted); }

/* --- Avatar / Logo ----------------------------------------------------- */

.avatar { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--blue-50); color: var(--blue-700); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; overflow: hidden; border: 1px solid var(--blue-100); }
.avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.avatar--lg { width: 72px; height: 72px; border-radius: 16px; font-size: 1.3rem; }
.avatar--xl { width: 96px; height: 96px; border-radius: 20px; font-size: 1.6rem; }

/* --- Leerer Zustand ---------------------------------------------------- */

.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty__icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; }
.empty__icon svg { width: 26px; height: 26px; }
.empty h3 { margin-bottom: 6px; }

/* ==========================================================================
   Portal-Layout (app. / admin.)
   ========================================================================== */

.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); padding: 20px 16px; }
.sidebar__brand { padding: 4px 8px 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sidebar__context { margin: 0 0 18px; padding: 12px; border-radius: var(--radius); background: linear-gradient(135deg, var(--blue-50), #fff); border: 1px solid var(--blue-100); display: flex; gap: 10px; align-items: center; }
.sidebar__context strong { display: block; color: var(--ink); font-size: .9rem; line-height: 1.25; }
.sidebar__context small { color: var(--muted); font-size: .78rem; }
.nav { display: grid; gap: 2px; }
.nav__label { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--subtle); padding: 16px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 550; font-size: .93rem; }
.nav a svg { width: 19px; height: 19px; color: var(--subtle); flex: none; }
.nav a:hover { background: var(--blue-25); color: var(--blue-700); text-decoration: none; }
.nav a:hover svg { color: var(--blue-600); }
.nav a.is-active { background: var(--blue-50); color: var(--blue-700); }
.nav a.is-active svg { color: var(--blue-600); }
.sidebar__footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.sidebar__user { flex: 1; min-width: 0; }
.sidebar__user strong { display: block; color: var(--ink); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__user small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--red); border-color: #f3c6c6; background: var(--red-bg); }
.icon-btn svg { width: 18px; height: 18px; }

.main { min-width: 0; padding: 32px 40px 60px; }
.main__inner { max-width: 1120px; margin: 0 auto; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }

.topbar { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat__label { font-size: .82rem; color: var(--muted); font-weight: 550; }
.stat__value { font-size: 1.8rem; font-weight: 750; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; margin-top: 4px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.toolbar .input { max-width: 340px; height: 40px; }
.toolbar .select { width: auto; height: 40px; }

/* Statuswahl (Dashboard ZNA) */
.status-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.status-option { position: relative; }
.status-option input { position: absolute; opacity: 0; pointer-events: none; }
.status-option label { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.status-option label:hover { border-color: var(--blue-200); }
.status-option strong { color: var(--ink); font-size: .95rem; display: flex; gap: 8px; align-items: center; }
.status-option small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.status-option .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.status-option--available .dot { background: var(--green); }
.status-option--limited .dot { background: var(--amber); }
.status-option--full .dot { background: var(--red); }
.status-option--closed .dot { background: var(--gray); }
.status-option--available input:checked + label { border-color: var(--green); background: var(--green-bg); }
.status-option--limited input:checked + label { border-color: var(--amber); background: var(--amber-bg); }
.status-option--full input:checked + label { border-color: var(--red); background: var(--red-bg); }
.status-option--closed input:checked + label { border-color: var(--gray); background: var(--gray-bg); }
.status-option input:focus-visible + label { box-shadow: var(--ring); }

.current-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; justify-content: space-between; }

.logo-upload { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; font-size: .92rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--ink); word-break: break-word; }

/* --- Auth-Seiten ------------------------------------------------------- */

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth__aside { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--blue-600) 0%, var(--blue-800) 60%, var(--navy) 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth__aside::before, .auth__aside::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); }
.auth__aside::before { width: 520px; height: 520px; right: -180px; top: -160px; }
.auth__aside::after { width: 360px; height: 360px; left: -140px; bottom: -140px; }
.auth__aside > * { position: relative; z-index: 1; }
.auth__aside .brand { color: #fff; }
.auth__aside .brand__go { color: #b9d0ff; }
.auth__aside h2 { color: #fff; font-size: 2rem; max-width: 440px; letter-spacing: -.025em; }
.auth__aside p { color: rgba(255,255,255,.82); max-width: 440px; font-size: 1.02rem; }
.auth__points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth__points li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.92); }
.auth__points svg { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; background: rgba(255,255,255,.14); }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: #fff; }
.auth__box { width: 100%; max-width: 400px; }
.auth__box h1 { font-size: 1.6rem; }
.auth__box .lead { color: var(--muted); margin-bottom: 28px; }
.auth__links { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.auth__mobile-brand { display: none; margin-bottom: 32px; }

/* --- Fehlerseite ------------------------------------------------------- */

.error-page { text-align: center; }
.error-page__code { font-size: 4rem; font-weight: 800; color: var(--blue-600); letter-spacing: -.04em; line-height: 1; margin-bottom: 12px; }

/* ==========================================================================
   Öffentliche Seite (notfallgo.com)
   ========================================================================== */

.site { background: #fff; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.emergency-bar { background: var(--navy); color: #fff; font-size: .88rem; }
.emergency-bar .container { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.emergency-bar strong { color: #fff; }
.emergency-bar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.emergency-bar .pill-112 { background: var(--red); color: #fff; padding: 1px 9px; border-radius: 999px; font-weight: 800; text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a { color: var(--text); font-weight: 550; font-size: .93rem; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }

.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(36,104,242,.16), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(36,104,242,.10), transparent 60%), linear-gradient(180deg, var(--blue-25), #fff); border-bottom: 1px solid var(--line); }
.hero .container { padding-top: 72px; padding-bottom: 72px; text-align: center; }
.hero--compact .container { padding-top: 36px; padding-bottom: 36px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--blue-100); color: var(--blue-700); font-size: .82rem; font-weight: 650; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.hero__eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2.2s infinite; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; max-width: 780px; margin: 0 auto 16px; }
.hero h1 span { color: var(--blue-600); }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }

.search { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: 8px; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow-lg); }
.search__field { flex: 1; display: flex; align-items: center; gap: 10px; padding-left: 14px; min-width: 0; }
.search__field svg { width: 22px; height: 22px; color: var(--blue-600); flex: none; }
.search__field input { border: 0; outline: none; font: inherit; font-size: 1.1rem; font-weight: 600; color: var(--ink); width: 100%; height: 52px; background: transparent; letter-spacing: .02em; }
.search__field input::placeholder { color: var(--subtle); font-weight: 500; letter-spacing: 0; }
.search select { border: 0; border-left: 1px solid var(--line); border-radius: 0; height: 40px; width: auto; font-weight: 600; color: var(--muted); background-color: transparent; }
.search select:focus { box-shadow: none; }
.search .btn { height: 52px; border-radius: 12px; padding: 0 26px; }
.search-extra { margin-top: 16px; font-size: .9rem; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-600); font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.link-btn:hover { text-decoration: underline; }
.link-btn svg { width: 16px; height: 16px; }

.results { padding: 40px 0 72px; }
.results__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.results__head h2 { margin: 0; font-size: 1.4rem; }
.results__head p { margin: 4px 0 0; color: var(--muted); }
.segmented { display: inline-flex; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; }
.segmented a { padding: 7px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .86rem; }
.segmented a:hover { text-decoration: none; color: var(--ink); }
.segmented a.is-active { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }

.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.zna-list { display: grid; gap: 14px; }
.zna-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; }
.zna-card::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--line-2); }
.zna-card--available::before { background: var(--green); }
.zna-card--limited::before { background: var(--amber); }
.zna-card--full::before { background: var(--red); }
.zna-card--closed::before { background: var(--gray); }
.zna-card:hover { text-decoration: none; border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-1px); color: inherit; }
.zna-card h3 { margin: 0 0 3px; font-size: 1.08rem; }
.zna-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .88rem; }
.zna-card__meta span { display: inline-flex; gap: 5px; align-items: center; }
.zna-card__meta svg { width: 15px; height: 15px; color: var(--subtle); }
.zna-card__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.zna-card__distance { font-size: 1.15rem; font-weight: 750; color: var(--ink); letter-spacing: -.01em; }
.zna-card__updated { font-size: .78rem; color: var(--subtle); }
.zna-card--muted { opacity: .8; }

.detail { padding: 36px 0 72px; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.detail__head { display: flex; gap: 20px; align-items: center; margin-bottom: 8px; }
.detail__head h1 { margin: 0 0 4px; font-size: 1.9rem; }
.status-hero { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius-lg); margin: 24px 0; border: 1px solid; }
.status-hero--available { background: var(--green-bg); border-color: #bfe8cf; }
.status-hero--limited { background: var(--amber-bg); border-color: #f6dca5; }
.status-hero--full { background: var(--red-bg); border-color: #f5c7c7; }
.status-hero--closed { background: var(--gray-bg); border-color: var(--line-2); }
.status-hero__icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #fff; flex: none; }
.status-hero__icon span { width: 16px; height: 16px; border-radius: 50%; }
.status-hero--available .status-hero__icon span { background: var(--green); }
.status-hero--limited .status-hero__icon span { background: var(--amber); }
.status-hero--full .status-hero__icon span { background: var(--red); }
.status-hero--closed .status-hero__icon span { background: var(--gray); }
.status-hero strong { display: block; font-size: 1.1rem; color: var(--ink); }
.status-hero small { color: var(--muted); }
.prose { white-space: pre-line; color: var(--text); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; color: var(--blue-600); flex: none; margin-top: 2px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }

.info-strip { background: var(--blue-25); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-strip .container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.info-item { display: flex; gap: 14px; }
.info-item__icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--blue-100); color: var(--blue-600); display: flex; align-items: center; justify-content: center; flex: none; }
.info-item__icon svg { width: 22px; height: 22px; }
.info-item h3 { margin: 2px 0 4px; font-size: 1rem; }
.info-item p { margin: 0; color: var(--muted); font-size: .92rem; }

.site-footer { background: var(--navy); color: rgba(255,255,255,.7); font-size: .88rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.site-footer .brand { color: #fff; font-size: 1rem; }
.site-footer .brand__go { color: #b9d0ff; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #fff; }

.page { padding: 48px 0 72px; max-width: 760px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .nav-open .sidebar { transform: none; }
  .nav-open .backdrop { display: block; }
  .backdrop { display: none; position: fixed; inset: 0; background: rgba(10,31,68,.35); z-index: 40; }
  .topbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .main { padding: 24px 16px 48px; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .auth__mobile-brand { display: inline-flex; }
  .detail__grid { grid-template-columns: 1fr; }
  .info-strip .container { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .status-picker { grid-template-columns: 1fr; }
  .card__body { padding: 18px; }
  .card__header, .toolbar { padding: 14px 18px; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 10px; }
  .search { flex-wrap: wrap; }
  .search__field { flex-basis: 100%; }
  .search select { border-left: 0; flex: 1; }
  .search .btn { flex: 1; }
  .zna-card { grid-template-columns: auto minmax(0, 1fr); }
  .zna-card__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .site-nav a.hide-sm { display: none; }
  .emergency-bar .container { font-size: .8rem; }
}

/* --- Icon-Größen in Komponenten ---------------------------------------- */

.alert > svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.badge svg { width: 14px; height: 14px; }
.avatar svg { width: 50%; height: 50%; color: var(--blue-600); }
.cell-main small svg, .small svg { width: 14px; height: 14px; vertical-align: -2px; }

/* Trenner auf der Login-Seite */
.auth__divider { display: flex; align-items: center; gap: 14px; margin: 28px 0 16px; color: var(--subtle); font-size: .85rem; font-weight: 550; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.nav__count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--blue-600); color: #fff; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.segmented__btn { padding: 7px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .86rem; cursor: pointer; }
.segmented__btn:hover { color: var(--ink); }
.segmented__btn.is-active { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }
.segmented form { display: contents; }
.zna-card__wait { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 650; color: var(--ink); }
.zna-card__wait svg { width: 14px; height: 14px; color: var(--blue-600); }
