:root {
  --bg: #eef3f8;
  --bg-2: #e3ebf3;
  --panel: #ffffff;
  --panel-soft: #f6f8fb;
  --border: #d7e0ea;
  --text: #1f2937;
  --muted: #617184;
  --db-red: #ec0016;
  --db-red-soft: #fff1f2;
  --autozug-blue: #005aa9;
  --autozug-blue-soft: #eef6ff;
  --good: #18794e;
  --warn: #b26a00;
  --bad: #c23b32;
  --shadow: 0 14px 36px rgba(21, 36, 63, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
}
.app-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 24px auto 48px;
}
.hero, .panel, .metric-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  margin-bottom: 16px;
  gap: 16px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.eyebrow { color: var(--db-red); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; margin: 0 0 8px; font-weight: 700; }
h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.2; }
h2 { margin: 0; font-size: 18px; }
.subtitle { margin: 0; color: var(--muted); max-width: 760px; }
.panel { padding: 20px; margin-bottom: 16px; }
.field-inline { display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
label { color: var(--muted); font-size: 14px; }
select, input, button {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
}
select { min-width: 240px; }
button.primary {
  cursor: pointer;
  font-weight: 700;
  background: var(--db-red);
  color: #fff;
  border-color: var(--db-red);
}
.recommendation-panel { padding: 24px; }
.recommendation-card {
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--border);
}
.recommendation-card.provider-syltshuttle {
  background: linear-gradient(180deg, #fff5f6 0%, #ffffff 100%);
  border-color: rgba(236, 0, 22, 0.28);
}
.recommendation-card.provider-autozug-sylt {
  background: linear-gradient(180deg, #f2f8ff 0%, #ffffff 100%);
  border-color: rgba(0, 90, 169, 0.28);
}
.next-topline { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.hero-route {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.hero-time {
  font-size: 72px;
  line-height: 1;
  font-weight: 800;
  margin: 8px 0 10px;
}
.hero-provider {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-status-row, .next-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-meta, .hero-note, .muted, .live-item-meta { color: var(--muted); }
.hero-meta { margin-top: 14px; }
.hero-note { margin-top: 10px; font-size: 15px; }
.pill, .badge, .provider-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.provider-chip.provider-syltshuttle { background: var(--db-red-soft); color: var(--db-red); }
.provider-chip.provider-autozug-sylt { background: var(--autozug-blue-soft); color: var(--autozug-blue); }
.provider-chip.provider-all { background: #eef2f7; color: #506070; }
.badge.ok { background: rgba(24, 121, 78, 0.12); color: var(--good); }
.badge.warn { background: rgba(178, 106, 0, 0.12); color: var(--warn); }
.badge.bad { background: rgba(194, 59, 50, 0.12); color: var(--bad); }
.delay-pill.provider-syltshuttle { background: var(--db-red-soft); color: var(--db-red); }
.delay-pill.provider-autozug-sylt { background: var(--autozug-blue-soft); color: var(--autozug-blue); }
.delay-pill.provider-all { background: #eef2f7; color: #506070; }

.live-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-bottom: 16px;
}
.single-info { display: grid; gap: 10px; }
.live-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.live-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  border-radius: 14px;
  padding: 14px;
}
.live-list li.provider-syltshuttle { border-left: 5px solid var(--db-red); }
.live-list li.provider-autozug-sylt { border-left: 5px solid var(--autozug-blue); }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.metric-card { padding: 18px 20px; }
.metric-value { font-size: 34px; font-weight: 800; margin-bottom: 6px; }
.status-line { font-weight: 600; margin-top: 12px; }
.info-strip details summary { cursor: pointer; font-weight: 700; list-style: none; }
.info-strip details summary::-webkit-details-marker { display: none; }
.collapsible-panel details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.collapsible-panel details summary::-webkit-details-marker { display: none; }
.table-wrap-spaced { margin-top: 18px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 980px) {
  .metric-grid, .live-grid { grid-template-columns: 1fr; }
  .hero-time { font-size: 56px; }
}
@media (max-width: 700px) {
  .hero { flex-direction: column; }
  .app-shell { width: min(100%, calc(100% - 20px)); }
  .hero-time { font-size: 46px; }
  h1 { font-size: 21px; }
  select { min-width: 100%; }
  .hero-actions, .field-inline { width: 100%; }
}


.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.seo-intro p, .seo-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.seo-copy {
  display: grid;
  gap: 12px;
}
.seo-copy h2 {
  margin-top: 4px;
}


a { color: var(--autozug-blue); }
.debug-panel details { display: grid; gap: 14px; }
.debug-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.debug-output {
  margin: 0;
  padding: 16px;
  max-height: 480px;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}


.time-stack { display: grid; gap: 4px; }
.time-shift { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.time-shift.compact { gap: 6px; }
.time-old { text-decoration: line-through; color: var(--muted); }
.time-new { font-weight: 800; }
.delay-inline { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 700; background: rgba(178, 106, 0, 0.12); color: var(--warn); }
.hero-loading-block { margin-top: 14px; }


.map-panel {
  display: grid;
  gap: 14px;
}
.map-link {
  font-weight: 700;
  text-decoration: none;
}
.map-note {
  margin: 0;
}
.map-callout {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--panel-soft);
}
.primary-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  background: var(--db-red);
  color: #fff;
  border: 1px solid var(--db-red);
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .map-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

.history-panel .muted { margin-top: 14px; display: block; }

.affiliate-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.affiliate-link.compact {
  margin-top: 0;
  padding: 8px 10px;
  font-size: 13px;
}
.affiliate-link.provider-syltshuttle {
  background: var(--db-red);
  border: 1px solid var(--db-red);
}
.affiliate-link.provider-autozug-sylt {
  background: var(--autozug-blue);
  border: 1px solid var(--autozug-blue);
}
.map-content {
  margin-top: 14px;
}
.list-status {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.recommendation-panel {
  margin-top: 0;
}
.hero {
  margin-bottom: 10px;
}


.legal-panel {
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-panel h2 + p {
  margin-top: 0.35rem;
}

.legal-panel a {
  color: inherit;
  text-decoration: underline;
}

.legal-panel summary {
  cursor: pointer;
  font-weight: 700;
}

.legal-content {
  margin-top: 16px;
}
