/* ALL-INKL.COM Status – Komponenten der Statusseite.
   Aufbau: dunkles Kopfband, darauf aktuelle Meldungen als Karten, darunter Zeilen mit „Details anzeigen“.
   Gestaltung mit den Mitteln von all-inkl.com (Proxima Nova, #e4003a, Schwarz/Grau, Schaltflächen, Labels).
   Baut auf den Original-Stylesheets in assets/allinkl/css auf; Angaben in px, damit die Bausteine auch in der
   Admin-Vorschau (ohne Basis-Stylesheet) gleich aussehen. */
:root {
  --brand: #e4003a;
  --brand-dark: #b8002f;
  --text: #333333;
  --text-strong: #000000;
  --text-muted: #707070;
  --surface-alt: #f5f5f5;
  --border: #c8c9cb;
  --border-light: #e3e4e5;
  --dark: #333333;
  /* Lagefarben: Gelb und Grün sind Töne, die all-inkl.com selbst verwendet (Hinweis-Orange, Erfolgs-Symbol). */
  --kind-red: #e4003a;
  --kind-yellow: #f39f00;
  --kind-green: #6faf24;
  --kind-green-text: #4f8a14;
  --kind-dark: #000000;
  --radius: 5px;
  --font: "ProximaNova", Arial, sans-serif;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--text-muted); }
.small { font-size: 15px; }

/* Kopfbereich von all-inkl.com („sticky“ mit weißem Hintergrund), zwei Navigationspunkte linksbündig */
#page-header { background: #fff; border-bottom: 1px solid var(--border-light); margin-bottom: 0; padding-bottom: 14px; }
.main-nav.status-main-nav { justify-content: flex-start; gap: 0 48px; }

/* Links im Inhalt */
/* :where() hält die Gewichtung niedrig, damit Titel-, Kopfband- und Schaltflächenlinks eigene Farben behalten */
.status-page :where(a:not(.button):not(.button-outline):not(.quick-link)) { color: var(--brand); cursor: pointer; }
.status-page :where(a:not(.button):not(.button-outline):not(.quick-link)):hover { text-decoration: underline; }
.status-page :focus-visible { outline: 2px solid var(--brand) !important; outline-offset: 2px; }
.status-page p { margin: 0 0 12px; }

/* Kopfband */
.status-hero { background: var(--dark); color: #fff; padding: 56px 0 110px; }
.status-hero h1 { color: #fff; margin: 0 0 16px; }
.status-hero p { color: #fff; font-size: 18px; line-height: 1.55; max-width: 900px; margin: 0; }
.status-page .status-hero a { color: #fff; text-decoration: underline; }

/* Inhaltsbereich auf hellgrauem Grund, Karten ragen in das Kopfband */
.status-body { background: var(--surface-alt); padding: 0 0 70px; }
.status-body > .container { position: relative; top: -70px; margin-bottom: -70px; }
.status-body-detail > .container { top: 0; margin-bottom: 0; padding-top: 30px; }
.status-block { margin-top: 56px; }
.status-block > h2 { margin-bottom: 20px; }
.back-link { margin: 0 0 20px !important; }
.status-footnote {
  margin: 56px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 15px; color: var(--text-muted);
}
.meta-line { font-size: 14px; color: var(--text-muted); margin: 12px 0 0 !important; }

/* Hinweise: graue Hinweisbox (.hints-box) von all-inkl.com */
.hints-box p:last-child { margin-bottom: 0; }
.news-notice { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.news-notice[hidden] { display: none; }
.news-notice.is-warning { position: relative; padding-left: 56px; }
.news-notice.is-warning::before {
  content: "\f10b"; font-family: "webfont"; font-style: normal; font-weight: normal; color: var(--brand);
  position: absolute; left: 20px; top: 20px; font-size: 22px; line-height: 1;
}
/* Hinweise im Admin-Bereich */
.notice { padding: 16px 18px; background: var(--surface-alt); border-radius: var(--radius); margin: 0 0 20px; color: #000; }
.notice p:last-child { margin-bottom: 0; }
.notice.warning { box-shadow: inset 3px 0 0 var(--brand); }
.notice[hidden] { display: none; }

/* Labels (Form des roten „neu“-Labels von all-inkl.com) */
.news-label {
  display: inline-block; background: var(--brand); color: #fff; border-radius: 6px; padding: 4px 7px 3px;
  font-size: 12px; font-style: italic; font-weight: 700; line-height: 1; letter-spacing: .3px;
  text-transform: uppercase; white-space: nowrap; vertical-align: middle;
}
.news-label.kind-yellow { background: var(--kind-yellow); color: #000; }
.news-label.kind-green { background: var(--kind-green-text); }
.news-label.kind-dark { background: var(--kind-dark); }
.news-label.is-draft { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #000; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 7px 3px; border-radius: 6px;
  background: var(--surface-alt); color: #000; white-space: nowrap; text-transform: uppercase; letter-spacing: .3px;
}
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Umrandete Schaltfläche in der Form von .button (all-inkl.com) */
.status-page .button-outline, .button-outline {
  display: inline-block; flex: none; border: 2px solid #000; border-radius: var(--radius); background: #fff; color: #000;
  font-size: 14px; font-weight: 700; letter-spacing: 1.2px; line-height: 1; padding: 13px 18px 12px;
  text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: .2s;
}
.status-page .button-outline:hover, .button-outline:hover { background: #000; color: #fff; }
.status-page button.button-outline { cursor: pointer; font-family: inherit; text-align: center; }

/* Bearbeitungsstand in den Karten: Label von all-inkl.com, etwas größer */
.status-card-side .news-label { font-size: 13px; padding: 6px 9px 5px; }

/* Karten für aktuelle Meldungen */
.status-cards { display: grid; gap: 14px; }
.status-loading {
  background: #fff; border-radius: var(--radius); padding: 24px; margin: 0 !important; color: var(--text-muted);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.status-card {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.status-card-icon { background: var(--kind-dark); display: flex; align-items: center; justify-content: center; }
.status-card-icon span {
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: #000; font-size: 15px; font-weight: 900; line-height: 1;
}
.status-card.kind-red .status-card-icon { background: var(--kind-red); }
.status-card.kind-red .status-card-icon span { color: var(--kind-red); }
.status-card.kind-yellow .status-card-icon { background: var(--kind-yellow); }
.status-card.kind-yellow .status-card-icon span { color: var(--kind-yellow); }
.status-card.kind-green .status-card-icon { background: var(--kind-green); }
.status-card.kind-green .status-card-icon span { color: var(--kind-green); }
.status-card-main { padding: 20px 24px; min-width: 0; }
.status-card-kicker {
  color: var(--text-muted); font-size: 13px; letter-spacing: 1.3px; line-height: 1.2; text-transform: uppercase; margin: 0 0 6px !important;
}
.status-card-title, .status-row-title {
  color: #000; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; margin: 0 0 8px;
}
.status-page .status-card-title a, .status-page .status-row-title a { color: #000; text-decoration: none; }
.status-page .status-card-title a:hover, .status-page .status-row-title a:hover { color: var(--brand); text-decoration: none; }
.status-card-text { color: var(--text); font-size: 16px; line-height: 1.5; margin: 0 0 8px !important; }
.status-card-meta { color: var(--text); font-size: 15px; margin: 0 !important; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.status-card-meta strong { color: #000; font-weight: 700; }
.status-card-side {
  display: flex; align-items: center; gap: 28px; padding: 20px 24px 20px 0;
}

/* Aufgeklappte Karte: Beschreibung und kompletter Verlauf direkt auf der Startseite */
.status-card.is-open { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.status-card-toggle { min-width: 190px; }
.status-card-details {
  grid-column: 1 / -1; padding: 4px 24px 26px; border-top: 1px solid var(--border-light);
}
.status-card-description { font-size: 16px; line-height: 1.6; color: var(--text); padding-top: 18px; }
.status-card-description p { margin: 0 0 12px; }
.status-card-description p:last-child { margin-bottom: 0; }
.status-card-details .detail-note { font-size: 16px; }
.status-card-timeline-heading {
  color: #000; font-size: 15px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; margin: 24px 0 16px;
}
.status-card-details .timeline-item { grid-template-columns: 110px 28px minmax(0, 1fr); }
.status-card-details .timeline-item::before { left: calc(110px + 18px + 13px); }
.status-card-details .timeline-item.is-latest .timeline-dot { box-shadow: 0 0 0 4px #fff; }
.status-card-details .timeline-item.is-latest .timeline-body { box-shadow: none; border: 1px solid var(--border); background: var(--surface-alt); }
.status-card-permalink { margin: 20px 0 0 !important; font-size: 15px; }

/* Zeilen (Wartungsankündigungen, Archiv) */
.status-rows { display: grid; gap: 0; }
.status-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff;
  border: 1px solid var(--border-light); margin-top: -1px; padding: 20px 24px;
}
.status-row:first-child { border-radius: var(--radius) var(--radius) 0 0; margin-top: 0; }
.status-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.status-row:only-child { border-radius: var(--radius); }
.status-row-main { min-width: 0; }
.status-rows > .hints-box { background: #fff; margin: 0; }

/* Detailansicht */
.status-detail-head { text-align: center; max-width: 960px; margin: 0 auto 36px; }
.status-detail-tag {
  display: inline-flex; align-items: center; gap: 8px; background: #000; color: #fff; border-radius: 999px;
  padding: 7px 16px 6px 8px; font-weight: 700; font-size: 15px; line-height: 1; margin: 0 0 18px !important;
}
.status-detail.kind-red .status-detail-tag { background: var(--kind-red); }
.status-detail.kind-yellow .status-detail-tag { background: var(--kind-yellow); color: #000; }
.status-detail.kind-green .status-detail-tag { background: var(--kind-green-text); }
.tag-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; color: #000; font-size: 13px; font-weight: 900;
}
.status-detail.kind-red .tag-icon { color: var(--kind-red); }
.status-detail.kind-yellow .tag-icon { background: #000; color: var(--kind-yellow); }
.status-detail.kind-green .tag-icon { color: var(--kind-green-text); }
.status-detail-head h1 { margin: 0 0 16px; }
.status-detail-meta { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 15px; color: var(--text); margin: 0 !important; }
.status-detail-meta strong { color: #000; }
/* Einleitung (Beschreibung, Auswirkungen, Hinweis) als weiße Fläche */
.detail-intro {
  max-width: 960px; margin: 0 auto 40px; background: #fff; border-radius: var(--radius); padding: 26px 30px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08); font-size: 17px; line-height: 1.65; color: var(--text);
}
.detail-intro p { margin: 0 0 14px; }
.detail-intro p:last-child { margin-bottom: 0; }
.detail-note { border-top: 1px solid var(--border-light); margin-top: 18px; padding-top: 16px; }
.detail-note strong { display: block; color: #000; margin-bottom: 4px; }

/* Verlauf als senkrechte Zeitleiste – neueste Meldung oben */
.detail-timeline-wrap { max-width: 960px; margin: 0 auto; }
.detail-timeline-heading { margin: 0 0 24px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item {
  position: relative; display: grid; grid-template-columns: 130px 28px minmax(0, 1fr); column-gap: 18px;
  padding-bottom: 30px;
}
/* Verbindungslinie zum nächsten (älteren) Eintrag */
.timeline-item::before {
  content: ""; position: absolute; left: calc(130px + 18px + 13px); top: 22px; bottom: -4px; width: 2px; background: var(--border);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::before { display: none; }
.timeline-when { display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding-top: 2px; }
.timeline-date { color: #000; font-weight: 700; font-size: 16px; line-height: 1.3; }
.timeline-time { color: var(--text-muted); font-size: 15px; }
.timeline-dot {
  position: relative; z-index: 1; justify-self: center; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%;
  background: #fff; border: 3px solid var(--kind-dark);
}
.timeline-item.kind-red .timeline-dot { border-color: var(--kind-red); }
.timeline-item.kind-yellow .timeline-dot { border-color: var(--kind-yellow); }
.timeline-item.kind-green .timeline-dot { border-color: var(--kind-green); }
.timeline-item.is-latest .timeline-dot { width: 22px; height: 22px; margin-top: 2px; background: var(--kind-dark); box-shadow: 0 0 0 4px var(--surface-alt); }
.timeline-item.is-latest.kind-red .timeline-dot { background: var(--kind-red); }
.timeline-item.is-latest.kind-yellow .timeline-dot { background: var(--kind-yellow); }
.timeline-item.is-latest.kind-green .timeline-dot { background: var(--kind-green); }
.timeline-body {
  background: #fff; border-radius: var(--radius); padding: 18px 22px; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); min-width: 0;
}
.timeline-item:not(.is-latest) .timeline-body { box-shadow: none; border: 1px solid var(--border-light); }
.timeline-item.is-draft .timeline-body { background: #fafafa; }
.timeline-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px !important; }
.timeline-status .news-label { white-space: normal; max-width: 100%; line-height: 1.2; }
.timeline-latest { color: var(--text-muted); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; }
.timeline-title { color: #000; font-size: 18px; font-weight: 700; line-height: 1.35; text-transform: none; letter-spacing: 0; margin: 0 0 6px; }
.timeline-text { font-size: 16px; line-height: 1.6; color: var(--text); }
.timeline-text p { margin: 0 0 12px; }
.timeline-text p:last-child { margin-bottom: 0; }
.news-edited { font-size: 14px; color: var(--text-muted); font-style: italic; }

/* Archiv-Filter (Formularelemente von all-inkl.com) */
.status-filter-card { background: #fff; border-radius: var(--radius); padding: 20px 24px; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin: 0 0 20px; }
.filter-field { display: grid; gap: 8px; cursor: default; }
.filter-label { font-size: 15px; font-weight: 700; color: #000; }
.filters .form-select { min-width: 170px; }
.filters .filter-search { flex: 1 1 240px; }
.filters .filter-search .form-input { width: 100%; }
.filters .form-select[disabled] { opacity: .5; cursor: default; }
.filters .button { padding: 17px 26px 15px; }
.button[disabled] { opacity: .35; cursor: default; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* Kundenlogin */
.quick-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.status-page a.quick-link {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px 24px; background: #fff; border-radius: var(--radius);
  color: #000; text-decoration: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); transition: .2s;
}
.status-page a.quick-link:hover, .status-page a.quick-link:focus-visible { box-shadow: 0 0 0 2px var(--brand); }
.quick-link-title { color: var(--brand); font-size: 18px; font-weight: 700; }
.quick-link-desc { font-size: 15px; color: var(--text); line-height: 1.4; }

/* Tablet */
@media (max-width: 991px) {
  .status-card { grid-template-columns: 64px minmax(0, 1fr); }
  .status-card-side { grid-column: 2; padding: 0 24px 20px; gap: 16px; flex-wrap: wrap; }
  /* Streifen nur neben Titel und Status, nicht neben dem aufgeklappten Verlauf */
  .status-card-icon { grid-row: span 2; }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Telefon */
@media (max-width: 767px) {
  .status-hero { padding: 36px 0 90px; }
  .status-hero p { font-size: 16px; }
  .status-card { grid-template-columns: 8px minmax(0, 1fr); }
  .status-card-icon span { display: none; }
  .status-card-main { padding: 16px 18px 12px; }
  .status-card-side { padding: 0 18px 18px; justify-content: space-between; }
  .status-card-toggle { min-width: 0; }
  .status-card-details { padding: 0 18px 20px; }
  .status-card-details .timeline-item { grid-template-columns: 22px minmax(0, 1fr); }
  .status-card-details .timeline-item::before { left: 10px; }
  .status-card-title, .status-row-title { font-size: 19px; }
  .status-row { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .detail-intro { padding: 18px; font-size: 16px; margin-bottom: 30px; }
  /* Zeitleiste: Linie links, Datum über dem Text */
  .timeline-item { grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; padding-bottom: 22px; }
  .timeline-item::before { left: 10px; }
  .timeline-when { grid-column: 2; grid-row: 1; flex-direction: row; gap: 8px; align-items: baseline; text-align: left; padding: 0 0 6px; }
  .timeline-dot { grid-column: 1; grid-row: 1; margin-top: 3px; }
  .timeline-item.is-latest .timeline-dot { margin-top: 0; }
  .timeline-body { grid-column: 2; padding: 14px 16px; }
  .status-detail-head { text-align: left; }
  .status-detail-meta { align-items: flex-start; }
  .filters .filter-field { flex: 1 1 140px; }
  .filters .form-select { min-width: 0; width: 100%; }
  .filters .button { width: 100%; text-align: center; }
  .quick-links { grid-template-columns: 1fr; }
}
