@font-face {
  font-family: "Overused Grotesk";
  src: url("/assets/fonts/OverusedGrotesk-Roman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overused Grotesk";
  src: url("/assets/fonts/OverusedGrotesk-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overused Grotesk";
  src: url("/assets/fonts/OverusedGrotesk-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overused Grotesk";
  src: url("/assets/fonts/OverusedGrotesk-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #dd0a0a;
  --red-dark: #ba0707;
  --navy: #071626;
  --ink: #111a2b;
  --muted: #68727e;
  --line: #dfe3e8;
  --soft: #f4f6f8;
  --white: #ffffff;
  --green: #00a86b;
  --shadow-soft: 0 18px 52px rgba(7, 22, 38, 0.12);
  --shadow-header: 0 5px 20px rgba(7, 22, 38, 0.07);
  --radius: 14px;
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Overused Grotesk", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* A class that sets `display` beats the UA rule behind [hidden], which left
   concept E rendering an empty verdict box before anything was chosen. */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(221, 10, 10, 0.34);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 20;
  height: 72px;
  border-bottom: 1px solid rgba(17, 26, 43, 0.1);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  width: min(calc(100% - 40px), var(--content));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
}

.brand-logo {
  width: 230px;
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: #c8cdd3;
}

.kues-logo {
  width: 54px;
  height: 38px;
  object-fit: contain;
}

.header-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.trustpilot-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.trustpilot-mini__stars {
  display: flex;
  gap: 2px;
}

.trustpilot-mini__star {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  background: #00b67a;
  color: white;
}

.trustpilot-mini__star svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.phone-link svg {
  width: 17px;
  height: 17px;
  stroke: var(--red);
}

.hero-heading {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: 52px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-heading em {
  color: var(--red);
  font-style: normal;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.location-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.location-line svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 2px;
  stroke: var(--red);
}

.benefit-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.benefit-list svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 2px;
  stroke: var(--green);
}

.booking-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.booking-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: 0;
}

.booking-intro p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.secure-note svg {
  width: 15px;
  height: 15px;
  stroke: var(--green);
}

.booking-stage {
  position: relative;
  min-height: 280px;
  overflow: clip;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

#hdp-booking {
  width: 100%;
  min-height: 280px;
  position: relative;
  z-index: 2;
}

.booking-stage.is-ready,
.booking-stage.is-ready #hdp-booking {
  min-height: 0;
}

.booking-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 26px;
  background: var(--white);
  transition: opacity 180ms ease-out, visibility 180ms ease-out;
}

.booking-stage.is-ready .booking-loading {
  opacity: 0;
  visibility: hidden;
}

.booking-loading__bar,
.booking-loading__tile,
.booking-loading__line {
  overflow: hidden;
  background: #edf0f3;
}

.booking-loading__bar::after,
.booking-loading__tile::after,
.booking-loading__line::after {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  animation: booking-shimmer 1.25s ease-in-out infinite;
}

.booking-loading__bar {
  height: 52px;
  border-radius: 10px;
}

.booking-loading__dates {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-top: 34px;
}

.booking-loading__tile {
  height: 92px;
  border-radius: 10px;
}

.booking-loading__line {
  height: 56px;
  margin-top: 10px;
  border-radius: 10px;
}

.booking-loading__line:first-of-type {
  margin-top: 28px;
}

.booking-fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 28px 18px;
  place-content: center;
  text-align: center;
  background: var(--white);
}

.booking-stage.has-error .booking-fallback {
  display: grid;
}

.booking-fallback h3 {
  margin: 0;
  font-size: 24px;
}

.booking-fallback p {
  max-width: 440px;
  margin: 10px auto 20px;
  color: var(--muted);
}

.booking-fallback > div {
  display: grid;
  justify-items: center;
  gap: 0;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.secondary-link {
  display: inline-flex;
  min-height: 52px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2, #c9d1da);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.secondary-link:hover {
  border-color: var(--ink);
}

.primary-link {
  display: inline-flex;
  min-height: 52px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease-out, transform 160ms ease-out;
}

.primary-link:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.fact-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 13px;
  padding: 28px 30px;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f0;
  color: var(--red);
}

.fact__icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
}

.fact strong,
.fact span {
  display: block;
}

.fact strong {
  color: var(--ink);
  font-size: 15px;
}

.fact span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.support-band {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 68px 0;
}

.support-band__heading {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0;
}

.support-band__heading em {
  color: var(--red);
  font-style: normal;
}

.support-band__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  margin-top: 30px;
  align-items: start;
}

.quote {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}

.quote footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.support-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer__inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer__links {
  display: flex;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--ink);
}

.concept-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(7, 22, 38, 0.2);
}

.concept-switcher a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.concept-switcher a[aria-current="page"] {
  background: var(--red);
  color: var(--white);
}

.preview-label {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 30;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(7, 22, 38, 0.92);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

body[data-production="true"] .concept-switcher,
body[data-production="true"] .preview-label {
  display: none;
}

@keyframes booking-shimmer {
  from { transform: translateX(-130%); }
  to { transform: translateX(310%); }
}

@media (max-width: 980px) {
  .trustpilot-mini__stars,
  .phone-link span {
    display: none;
  }

  .phone-link {
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }

  .hero-heading {
    font-size: 42px;
  }

  .fact {
    padding: 24px 20px;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 62px;
  }

  .site-header__inner {
    width: min(calc(100% - 28px), var(--content));
    gap: 14px;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-logo {
    width: 166px;
  }

  .brand-divider {
    height: 26px;
  }

  .kues-logo {
    width: 42px;
    height: 30px;
  }

  .header-proof {
    gap: 6px;
  }

  .trustpilot-mini__label {
    display: none;
  }

  .trustpilot-mini::before {
    content: "★ 4,9 Trustpilot";
    color: #008f60;
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
  }

  .hero-heading {
    font-size: 35px;
    line-height: 1.02;
  }

  .hero-copy {
    margin-top: 14px;
    font-size: 17px;
  }

  .location-line {
    margin-top: 16px;
  }

  .booking-intro {
    align-items: flex-start;
  }

  .booking-intro h2 {
    font-size: 22px;
  }

  .secure-note {
    display: none;
  }

  .booking-stage,
  #hdp-booking {
    min-height: 260px;
  }

  .booking-loading {
    padding: 18px 14px;
  }

  .booking-loading__dates {
    gap: 5px;
    margin-top: 26px;
  }

  .booking-loading__tile {
    height: 78px;
  }

  .fact-rail {
    width: min(calc(100% - 28px), var(--content));
    grid-template-columns: 1fr;
  }

  .fact {
    grid-template-columns: 32px 1fr;
    padding: 18px 0;
  }

  .fact + .fact {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .fact__icon {
    width: 32px;
    height: 32px;
  }

  .support-band {
    width: min(calc(100% - 28px), var(--content));
    padding: 46px 0 62px;
  }

  .support-band__heading {
    font-size: 30px;
  }

  .support-band__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .quote {
    font-size: 19px;
  }

  .site-footer__inner {
    width: min(calc(100% - 28px), var(--content));
    min-height: 112px;
    padding: 24px 0 78px;
    display: grid;
    gap: 9px;
  }

  .concept-switcher {
    right: 12px;
    bottom: 12px;
  }

  .preview-label {
    display: none;
  }
}

@media (max-width: 430px) {
  .brand-logo {
    width: 132px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-divider {
    height: 22px;
  }

  /* KÜS is the strongest legitimacy signal for a statutory inspection and the
     phone is the only exit for visitors who will not book online. Both used to
     be hidden here, which removed them on every phone we actually advertise to. */
  .kues-logo {
    width: 36px;
    height: 26px;
  }

  .phone-link {
    display: inline-flex;
  }
}

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

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

/* ==========================================================================
   Consent (GDPR/TTDSG) — same contract as the Bußgeldrechner: nothing loads
   until the visitor answers, and the answer is remembered in hdp_consent_v1.
   ========================================================================== */

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 2000;
  display: none;
  width: min(680px, calc(100% - 20px));
  padding: 13px 15px;
  border: 1px solid #c9d1da;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 52px rgba(7, 22, 38, 0.18);
  transform: translateX(-50%);
}

.consent-banner.is-visible {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.consent-copy {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.consent-more {
  appearance: none;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--red-dark);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.consent-detail {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.consent-detail a { color: var(--red-dark); text-decoration: underline; }
.consent-actions { display: flex; gap: 8px; }

.consent-btn {
  appearance: none;
  min-height: 44px;
  padding: 11px 18px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 150ms ease-out;
}

.consent-btn.accept { background: var(--navy); color: #fff; }
.consent-btn:hover { opacity: 0.88; }

.consent-manage {
  appearance: none;
  min-height: 24px;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   Shared building blocks for concepts E, F and G
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #18b36b;
  box-shadow: 0 0 0 5px rgba(24, 179, 107, 0.12);
}

/* Two-way choice used by E (Plakette state) and G (delivery mode). Tiles are
   real buttons: they are the first decision on the page and must be reachable
   by keyboard as well as thumb. */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.choice-tile {
  appearance: none;
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease-out, transform 140ms ease-out, box-shadow 140ms ease-out;
}

.choice-tile:hover { border-color: #b9c1cb; transform: translateY(-1px); }

.choice-tile[aria-pressed="true"] {
  border-color: var(--red);
  box-shadow: 0 10px 28px rgba(221, 10, 10, 0.14);
}

.choice-tile strong { font-size: 18px; font-weight: 800; }
.choice-tile span { color: var(--muted); font-size: 14px; line-height: 1.4; }

.choice-tile__price {
  margin-top: 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

/* Concept F: real slots promoted out of the widget and onto the page. */
.slot-cards {
  display: grid;
  gap: 10px;
}

.slot-card {
  appearance: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease-out, transform 140ms ease-out;
}

.slot-card:hover { border-color: #b9c1cb; transform: translateY(-1px); }
.slot-card.is-best { border-color: var(--navy); background: var(--navy); color: var(--white); }
.slot-card.is-best .slot-card__meta { color: #b8c3cd; }

.slot-card__when { display: grid; gap: 3px; }
.slot-card__day { font-size: 14px; font-weight: 700; opacity: 0.85; }
.slot-card__time { font-size: 26px; font-weight: 800; line-height: 1; }
.slot-card__meta { color: var(--muted); font-size: 13px; }

.slot-card__go {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
}

.slot-cards__status {
  padding: 18px 4px;
  color: var(--muted);
  font-size: 14px;
}

.slot-cards__skeleton {
  display: grid;
  gap: 10px;
}

.slot-cards__skeleton span {
  display: block;
  height: 76px;
  border-radius: var(--radius);
  background: #edf0f3;
  overflow: hidden;
}

.slot-cards__skeleton span::after {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  animation: booking-shimmer 1.25s ease-in-out infinite;
}

.reveal-link {
  appearance: none;
  margin-top: 14px;
  padding: 10px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .consent-banner { bottom: 8px; width: calc(100% - 16px); padding: 11px 12px; }
  .consent-banner.is-visible { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .consent-btn { padding: 11px 12px; font-size: 14px; }

  .choice-grid { grid-template-columns: 1fr; gap: 10px; }
  .choice-tile { min-height: 0; padding: 15px 16px; }
  .choice-tile strong { font-size: 17px; }

  .slot-card { min-height: 68px; padding: 13px 15px; }
  .slot-card__time { font-size: 23px; }
}

/* While the consent bar is unanswered it owns the bottom of the screen, so the
   page reserves that height rather than letting the bar sit on a control. */
body.consent-open { padding-bottom: 190px; }

@media (min-width: 721px) {
  body.consent-open { padding-bottom: 130px; }
}
