/* ==========================================================================
   Kfz-Meisterbetrieb Kremer — Stylesheet
   Farbwelt aus dem Firmenlogo: Marineblau + weinroter Akzent auf Weiss.
   ========================================================================== */

:root {
  /* Marke */
  --navy: #1e3352;
  --navy-dark: #16263e;
  --navy-soft: #2b4570;
  --red: #96182c;
  --red-dark: #7a1223;

  /* Flaechen */
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eaeff5;
  --line: #dde4ed;
  --line-strong: #c3ceda;

  /* Text */
  --fg: #1c2430;
  --fg-muted: #5a6878;
  --fg-on-dark: #e9eef5;
  --fg-on-dark-muted: #a8b8cd;

  /* Signale */
  --open: #1a7f4b;
  --open-bg: #e6f4ec;

  /* Masse */
  --maxw: 1140px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(28, 36, 48, 0.04), 0 4px 16px rgba(28, 36, 48, 0.06);
  --shadow-lg: 0 2px 4px rgba(28, 36, 48, 0.05), 0 12px 32px rgba(28, 36, 48, 0.1);

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

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

html {
  scroll-behavior: smooth;
  /* Sticky Header darf Sprungziele nicht verdecken */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
  text-decoration-color: currentColor;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
}

h3 {
  font-size: 1.18rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section--navy {
  background: var(--navy);
  color: var(--fg-on-dark);
}

.section--navy h2,
.section--navy h3 {
  color: #fff;
}

.section__head {
  max-width: 60ch;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section__head p {
  color: var(--fg-muted);
  font-size: 1.06rem;
}

.section--navy .section__head p {
  color: var(--fg-on-dark-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section--navy .eyebrow {
  color: #ff9aa8;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 650;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn--light:hover {
  background: var(--surface-2);
  border-color: var(--surface-2);
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-right: auto;
}

.brand:hover {
  color: var(--navy);
}

.brand__name {
  font-weight: 500;
  color: var(--fg-muted);
  font-size: 0.98rem;
  display: block;
}

.brand__name strong {
  display: block;
  font-size: 1.16rem;
  font-weight: 750;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 550;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--surface-2);
  color: var(--navy);
}

.nav a.is-active {
  color: var(--red);
}

.header .btn {
  padding: 11px 20px;
  font-size: 0.97rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

/* --------------------------------------------------------------------------
   Hinweisbanner (Betriebsferien) — wird von main.js eingesetzt
   -------------------------------------------------------------------------- */

.notice {
  background: var(--red);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.notice .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: 13px;
  flex-wrap: wrap;
}

.notice svg {
  width: 21px;
  height: 21px;
  flex: none;
}

.notice__dates {
  font-weight: 400;
  opacity: 0.92;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 76px);
  background: linear-gradient(170deg, var(--surface) 0%, #fff 62%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* Logo links, Text rechts daneben. Nebeneinander statt uebereinander haelt
   den Hero flach, damit die Info-Leiste darunter frueh sichtbar wird. */
.hero__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
}

.hero__logo {
  width: clamp(150px, 24vw, 290px);
  height: auto;
}

.hero h1 {
  margin-bottom: 0.3em;
}

.hero__lead {
  font-size: clamp(1.04rem, 1.7vw, 1.16rem);
  color: var(--fg-muted);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.trust svg {
  width: 19px;
  height: 19px;
  color: var(--red);
  flex: none;
}

/* --------------------------------------------------------------------------
   Info-Leiste unter dem Hero — Öffnungszeiten, Telefon, HU/AU
   -------------------------------------------------------------------------- */

.infobar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(20px, 3vw, 32px);
}

/* 200px als Mindestbreite, damit auch auf dem Tablet (768px) alle drei
   Kacheln nebeneinander passen statt 2 + 1 zu brechen. */
.infobar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.infobar__tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

/* Die Telefonkachel ist der haeufigste naechste Schritt — sie bekommt Gewicht. */
.infobar__tile--betont {
  border-color: var(--red);
  border-width: 2px;
  padding: 19px 21px;
}

.infobar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--red);
  margin-bottom: 14px;
}

.infobar__icon svg {
  width: 20px;
  height: 20px;
}

.infobar h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.infobar__wert {
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.25;
}

.infobar__wert a {
  text-decoration: none;
  color: inherit;
}

.infobar__wert a:hover {
  color: var(--red);
}

.infobar__tile--betont .infobar__wert {
  font-size: 1.42rem;
  color: var(--red);
}

.infobar__zusatz {
  font-size: 0.93rem;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 11px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  background: var(--surface-2);
  color: var(--fg-muted);
  margin: 0 0 10px;
}

.status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.status--open {
  background: var(--open-bg);
  color: var(--open);
}

.status--closed {
  background: #fdeaed;
  color: var(--red);
}

/* Wochentabelle — sitzt im Kontaktbereich innerhalb der Kontaktliste */
.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  font-weight: 400;
  margin-top: 4px;
}

.hours th,
.hours td {
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.hours tr:last-child th,
.hours tr:last-child td {
  border-bottom: 0;
}

.hours th {
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  padding-right: 16px;
}

.hours td {
  color: var(--fg-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours tr.is-today th,
.hours tr.is-today td {
  color: var(--red);
  font-weight: 650;
}

/* --------------------------------------------------------------------------
   Leistungen
   -------------------------------------------------------------------------- */

/* Kompakte Zweispalten-Liste statt Karten: Icon links, Text rechts.
   Spart gegenueber dem Karten-Grid deutlich Hoehe. */
.leistungen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4px 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.leistung {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.leistung__icon {
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--navy);
}

.leistung__icon svg {
  width: 23px;
  height: 23px;
}

.leistung h3 {
  grid-column: 2;
  font-size: 1.06rem;
  margin: 0 0 3px;
}

.leistung p {
  grid-column: 2;
  color: var(--fg-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   HU / AU
   -------------------------------------------------------------------------- */

.hu {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.hu__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.hu__card img {
  width: min(230px, 100%);
  height: auto;
  margin: 0 auto 22px;
}

.hu__note {
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--fg-on-dark-muted);
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.contact-list__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--red);
  flex: none;
}

.contact-list__icon svg {
  width: 21px;
  height: 21px;
}

.contact-list dt {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 3px;
}

.contact-list dd {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}

.contact-list dd a {
  text-decoration: none;
}

.contact-list dd a:hover {
  text-decoration: underline;
}

.contact-list__extra {
  display: block;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-top: 4px;
}

/* Die Wochentabelle steht in einem <dd> und darf dessen Fettung nicht erben */
.contact-list .hours th {
  font-weight: 500;
  padding-block: 7px;
}

.contact-list .hours td {
  font-weight: 400;
  padding-block: 7px;
}

/* --------------------------------------------------------------------------
   Formular
   -------------------------------------------------------------------------- */

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 34px);
  box-shadow: var(--shadow);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--navy);
}

.field .req {
  color: var(--red);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--fg-muted);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 51, 82, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #93a1b0;
}

/* Honeypot: fuer Menschen unsichtbar, fuer Bots ausfuellbar */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.form__note {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.5;
  flex: 1 1 220px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy-dark);
  color: var(--fg-on-dark-muted);
  padding-block: clamp(44px, 6vw, 64px) 0;
  font-size: 0.96rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer h3 {
  color: #fff;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__brand strong {
  display: block;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.footer a {
  color: var(--fg-on-dark-muted);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Rechtstexte (Impressum, Datenschutz, Bestaetigung)
   -------------------------------------------------------------------------- */

.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 64px);
}

.page-head h1 {
  margin-bottom: 0;
}

.prose {
  max-width: 74ch;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.14rem;
  margin-top: 1.8em;
}

.prose p,
.prose address {
  color: var(--fg);
  font-style: normal;
}

.prose address {
  margin-bottom: 1.1em;
  line-height: 1.75;
}

.prose a {
  word-break: break-word;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-weight: 600;
  text-decoration: none;
}

.back-link svg {
  width: 17px;
  height: 17px;
}

/* Bestaetigungsseite */
.confirm {
  text-align: center;
  max-width: 52ch;
  margin-inline: auto;
  padding-block: clamp(50px, 9vw, 90px);
}

.confirm__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--open-bg);
  color: var(--open);
}

.confirm__icon svg {
  width: 40px;
  height: 40px;
}

.confirm p {
  color: var(--fg-muted);
  font-size: 1.08rem;
}

.confirm .btn {
  margin-top: 28px;
}

.error-box {
  max-width: 52ch;
  margin: 0 auto 24px;
  padding: 16px 20px;
  background: #fdeaed;
  border: 1px solid #f3c3cb;
  border-radius: var(--radius);
  color: var(--red-dark);
  text-align: left;
}

/* --------------------------------------------------------------------------
   Verwaltungsseite (verwaltung.php)
   -------------------------------------------------------------------------- */

.admin {
  padding-block: clamp(32px, 5vw, 56px) clamp(48px, 7vw, 80px);
  background: var(--surface);
  min-height: 70vh;
}

.admin h1 {
  margin-bottom: 0.3em;
}

.admin-lead {
  max-width: 68ch;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.admin-card--schmal {
  max-width: 460px;
  margin-inline: auto;
}

.admin-card h2 {
  font-size: 1.24rem;
  margin-bottom: 20px;
}

.admin-form {
  display: grid;
  gap: 18px;
  max-width: 420px;
}

/* Eingabezeile nebeneinander, sobald Platz da ist */
.admin-form--reihe {
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: end;
}

.admin-form .field small {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.admin-form .btn {
  justify-self: start;
  white-space: nowrap;
}

.admin-form--reihe .btn {
  justify-self: stretch;
}

.meldung {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 24px;
  font-weight: 550;
}

.meldung--ok {
  background: var(--open-bg);
  border-color: #b6ddc7;
  color: #15613a;
}

.meldung--fehler {
  background: #fdeaed;
  border-color: #f3c3cb;
  color: var(--red-dark);
}

.meldung code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

.admin-tabelle {
  width: 100%;
  border-collapse: collapse;
}

.admin-tabelle th,
.admin-tabelle td {
  text-align: left;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-tabelle thead th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 700;
}

.admin-tabelle tbody tr:last-child th,
.admin-tabelle tbody tr:last-child td {
  border-bottom: 0;
}

.admin-tabelle tr.ist-vorbei td {
  color: var(--fg-muted);
}

.admin-tabelle__aktion {
  text-align: right;
  padding-right: 0;
}

.admin-tabelle__aktion form {
  margin: 0;
}

.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 650;
  white-space: nowrap;
}

.badge--laeuft {
  background: #fdeaed;
  color: var(--red);
}

.badge--kommt {
  background: #e7eefc;
  color: var(--navy-soft);
}

.badge--vorbei {
  background: var(--surface-2);
  color: var(--fg-muted);
}

.btn--klein {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn--gefahr {
  background: transparent;
  color: var(--red);
  border-color: #f0c6cd;
}

.btn--gefahr:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.admin-leer {
  color: var(--fg-muted);
  margin: 0;
}

.admin-fuss {
  margin-top: 8px;
}

.admin-fuss a {
  text-decoration: none;
  font-weight: 600;
}

.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;
}

@media (max-width: 620px) {
  /* Tabelle als Karten stapeln, damit auf dem Handy nichts abgeschnitten wird */
  .admin-tabelle thead {
    display: none;
  }

  .admin-tabelle tbody tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-tabelle tbody tr:last-child {
    border-bottom: 0;
  }

  .admin-tabelle td {
    display: block;
    border: 0;
    padding: 2px 0;
  }

  .admin-tabelle__aktion {
    text-align: left;
    margin-top: 10px;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hu,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__logo {
    width: clamp(140px, 26vw, 210px);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 840px) {
  html {
    scroll-padding-top: 76px;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .header__inner {
    min-height: 68px;
    gap: 12px;
  }

  .header .btn--phone {
    order: 2;
    padding: 10px 16px;
  }

  .header .btn--phone .btn__label {
    display: none;
  }

  /* Mobile: Navigation klappt unter den Header */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 13px 14px;
    font-size: 1.02rem;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .container {
    padding-inline: 20px;
  }

  /* Hero eng halten, damit die Info-Leiste im ersten Bildschirm bleibt */
  .hero {
    padding-block: 22px 24px;
  }

  /* Auf dem Handy steht nur die Ueberschrift neben dem Logo. Alles darunter
     nutzt die volle Breite — sonst wird die Textspalte zu schmal und die
     Knoepfe laufen aus dem Bild. */
  .hero__inner {
    gap: 8px 16px;
    align-items: center;
  }

  .hero__text {
    display: contents;
  }

  .hero__logo {
    width: clamp(96px, 30vw, 130px);
    grid-row: 1;
  }

  .hero h1 {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  .hero__lead,
  .hero__actions,
  .trust {
    grid-column: 1 / -1;
  }

  .hero__lead {
    margin-top: 8px;
    margin-bottom: 0;
  }

  .hero__lead {
    font-size: 0.97rem;
  }

  .hero__actions {
    margin-top: 14px;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .trust {
    margin-top: 12px;
    gap: 5px 14px;
    font-size: 0.86rem;
  }

  .trust svg {
    width: 16px;
    height: 16px;
  }

  /* Kacheln waagerecht: Symbol links, Text rechts — spart je rund 100px Hoehe */
  .infobar {
    padding-block: 13px;
  }

  .infobar__grid {
    gap: 10px;
  }

  .infobar__tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 13px 16px;
  }

  .infobar__tile--betont {
    padding: 12px 15px;
  }

  .infobar__icon {
    grid-row: 1 / -1;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
  }

  .infobar h2,
  .infobar .status,
  .infobar__wert,
  .infobar__zusatz {
    grid-column: 2;
  }

  .infobar h2 {
    margin-bottom: 4px;
  }

  .infobar__wert {
    font-size: 1.14rem;
    margin-bottom: 3px;
  }

  .infobar__tile--betont .infobar__wert {
    font-size: 1.3rem;
  }

  .infobar__zusatz {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  /* Mittagspause und Freitagszeit stehen vollstaendig in der Wochentabelle
     weiter unten — im ersten Bildschirm zaehlen Live-Status und Kernzeit. */
  .infobar__tile:first-child .infobar__zusatz {
    display: none;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  /* Beide Knoepfe nebeneinander statt gestapelt — spart eine Zeile */
  .hero__actions .btn {
    flex: 1 1 0;
    padding-inline: 10px;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .confirm .btn {
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .header,
  .nav-toggle,
  .form,
  .hero__actions,
  .footer__bottom {
    display: none;
  }

  body {
    font-size: 12pt;
  }
}
