/*
  Kfz-Prüfstelle Cosgun – eigene Anpassungen
  Grundgestaltung: Pico CSS 2.1.1
  Tipp: Farben stehen direkt im :root-Block.
*/
:root {
  --brand-navy: #172e45;       /* Dunkelblau für Überschriften */
  --brand-blue: #155fa9;       /* Blau für Schaltflächen */
  --brand-blue-dark: #124f88;
  --page-bg: #f3f5f7;          /* Heller Hintergrund */
  --text-color: #29374a;
  --muted-color: #64748b;
  --border-color: #d9e0e6;
  --brand-900: #0c2557;
  --brand-800: #143c87;
  --brand-700: #1b56c0;
  --brand-050: #f3f6fb;
  --text-900: #162234;
  --line-200: #d8e0ec;
  --surface-100: #fff;
  --shadow-soft: 0 .9rem 2.2rem rgba(14, 29, 62, .1);
  --pico-font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pico-primary: #155fa9;
  --pico-primary-background: #155fa9;
  --pico-primary-border: #155fa9;
  --pico-primary-hover-background: #124f88;
  --pico-primary-hover-border: #124f88;
}

/* Ein paar Basisregeln helfen auch bei einer Vorschau ohne Internet. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: white; color: var(--text-color); font-family: var(--pico-font-family); line-height: 1.58; }
.container { width: min(1120px, calc(100% - 2.4rem)); max-width: 1120px; margin-left: auto; margin-right: auto; }
h1, h2, h3 { color: var(--brand-navy); letter-spacing: -.025em; line-height: 1.16; }
h2 { font-size: clamp(1.8rem, 3vw, 2.45rem); margin: 0 0 .85rem; }
h3 { font-size: 1.23rem; margin: 0 0 .75rem; }
a { color: var(--brand-blue); }
a:focus-visible { outline: 3px solid #83b9ed; outline-offset: 4px; }
p { margin-top: 0; }
section[id], div[id] { scroll-margin-top: 6.5rem; }

/* Zum Inhalt springen: für Tastatur-Nutzer. */
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 30; background: white; padding: .75rem 1rem; }
.skip-link:focus { top: .75rem; }

/* Kopfbereich */
.site-header { background: #fff; border-bottom: 1px solid #edf0f4; }
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding-top: .85rem; padding-bottom: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--brand-navy); flex-shrink: 0; }
.brand:hover { color: var(--brand-navy); }
.brand-logo { display: block; width: clamp(3.75rem, 5vw, 4.75rem); height: auto; flex: none; }
.brand-name { display: grid; line-height: 1.15; }
.brand-name strong { font-size: 1.22rem; letter-spacing: .02em; text-transform: uppercase; }
.brand-name small { color: var(--muted-color); font-size: .75rem; margin-top: .15rem; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.nav-links a { font-size: .91rem; font-weight: 600; color: #405369; text-decoration: none; }
.nav-links a:hover { color: var(--brand-blue); }
.nav-links .nav-contact { color: var(--brand-blue); }

/* Banner: Prüfsituationsfoto, Text links, drei Aktionen rechts. */
.banner-hero { position: relative; display: grid; align-items: center; min-height: clamp(29rem, 43vw, 38rem); overflow: hidden; background: var(--brand-navy); color: white; }
.banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.banner-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 36, 57, .90), rgba(10, 43, 64, .70)); }
.banner-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(3.25rem, 7vw, 6rem); }
.banner-copy h1 { color: white; font-size: clamp(2.5rem, 4.5vw, 4.6rem); line-height: 1.07; margin: 0 0 1.25rem; }
.banner-copy > p:not(.banner-kicker) { color: #edf4fa; max-width: 43ch; font-size: 1.05rem; }
.banner-copy small { color: #d7e6f0; }
.banner-kicker { color: #c1e3ff; font-weight: 750; font-size: .78rem; letter-spacing: .09em; margin-bottom: 1.25rem; }
.banner-actions { display: grid; gap: .85rem; }
.banner-action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.5rem; padding: 1.1rem 1.4rem; border-radius: 5px; background: white; color: var(--brand-navy); text-decoration: none; }
.banner-action:hover, .banner-action:focus-visible { background: #eaf3fa; color: var(--brand-navy); }
.banner-action strong, .banner-action small { display: block; }
.banner-action strong { font-size: 1rem; line-height: 1.35; }
.banner-action small { color: #52657b; font-size: .83rem; margin-top: .2rem; }
.banner-arrow { color: var(--brand-blue); font-size: 1.5rem; line-height: 1; }

/* Partnerlogo im Hero – ohne Eingriff in die Navigation. */
.partner-line { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: .6rem; font-size: .88rem; color: #d7e6f0; }
.partner-logo { display: inline-flex; align-items: center; padding: .4rem .6rem; border-radius: 4px; background: #fff; }
.partner-logo img { display: block; width: clamp(7rem, 10vw, 8.5rem); height: auto; }

/* Primäre Buchungsaktion – TÜV NORD Electric Blue, Weiß für Kontrast. */
.banner-action.is-booking { background: #001ed2; color: #fff; }
.banner-action.is-booking strong, .banner-action.is-booking small, .banner-action.is-booking .banner-arrow { color: #fff; }
.banner-action.is-booking:hover, .banner-action.is-booking:focus-visible { background: #0017a6; color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.15rem; border-radius: 5px; border: 1px solid var(--brand-blue); font-size: .93rem; line-height: 1.2; font-weight: 700; text-decoration: none; transition: background-color .15s ease; }
.btn-secondary { background: white; color: var(--brand-navy); border-color: #cbd9e7; }
.btn-secondary:hover { background: #f1f6fb; color: var(--brand-navy); }

/* Standort / ohne Termin / Öffnungszeiten */
.facts-wrap { background: var(--page-bg); border-block: 1px solid var(--border-color); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.facts > div { display: grid; gap: .3rem; }
.fact-label { color: var(--muted-color); font-size: .77rem; }
.facts strong { color: var(--brand-navy); font-size: .97rem; }
.facts a { display: block; font-size: .79rem; font-weight: 500; }


/* Ab hier: Fotobereiche und Inhalte der neuen Version. */
.section-block {
  padding-top: clamp(2rem, 3.5vw, 3rem);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
}
.section-heading {
  max-width: 44rem;
  margin-bottom: 1.4rem;
}
.narrow-heading { margin-bottom: 1.3rem; }
.section-heading h2 { margin-bottom: 0.8rem; }
.eyebrow { color: var(--brand-800); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .8rem; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.service-card {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line-200);
  border-top: 3px solid #b6cdef;
  background: var(--surface-100);
  border-radius: 0.9rem;
}
.service-card h3 { margin-bottom: 0.55rem; color: var(--brand-800); }
.service-number {
  display: inline-block;
  color: var(--brand-800);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.photo-feature-wrap {
  background: var(--brand-050);
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}
.photo-feature-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(2rem, 3.5vw, 3rem);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
}
.photo-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.3rem, 3vw, 2.3rem);
  align-items: center;
}
.photo-feature.reverse { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.photo-feature.reverse .photo-feature-image { order: 2; }
.photo-feature.reverse .photo-feature-copy { order: 1; }
.photo-feature-image {
  overflow: clip;
  border-radius: 1rem;
  background: #dfe7f2;
  border: 1px solid var(--line-200);
  box-shadow: var(--shadow-soft);
}
.photo-feature-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.photo-feature-copy ul {
  margin-bottom: 0;
}
.photo-feature-copy address {
  margin: 1rem 0;
  font-style: normal;
}
.btn,
a[role="button"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--brand-900);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--brand-900);
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--brand-900);
  border-color: var(--line-200);
}

.hours-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-top: 0;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line-200);
  border-radius: 0.95rem;
  background: #fff;
  border-left: 3px solid #001ed2;
}
/* Lesbare Tag-/Uhrzeit-Spalten statt eines Fließtext-Absatzes. */
.opening-hours { margin: 0; font-variant-numeric: tabular-nums; }
.opening-hours > div { display: grid; grid-template-columns: 4.1rem minmax(0, 1fr); gap: .65rem; padding: .4rem 0; border-bottom: 1px solid #edf2f7; }
.opening-hours > div:last-child { border-bottom: 0; }
.opening-hours dt { font-weight: 700; color: var(--brand-800); }
.opening-hours dd { margin: 0; }
.split-hours span { display: block; }
/* Die Kontaktbox steht unter dem Hero, bleibt aber auf Containerbreite. */
.visit-quickinfo { padding-block: clamp(1.15rem, 2.5vw, 2rem); background: var(--page-bg); }
.visit-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.visit-details address { font-style: normal; }
.visit-quickinfo h3 { font-size: 1.1rem; }

.hours-contact {
  border-left: 1px solid #edf2f7;
  padding-left: 1rem;
}

/* Die Kontaktdaten bleiben schlichte Textlinks, kein zusätzlicher Widget-Code. */
.contact-options p { margin-bottom: .85rem; }
.contact-options p:last-child { margin-bottom: 0; }
.contact-options small { color: var(--muted-color); }


/* Dunkelblauer Footer: Kontakt und Rechtliches auf einen Blick. */
.site-footer {
  background: var(--brand-900);
  color: #eaf1ff;
  border-top: 3px solid #001ed2;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(1.3rem, 3vw, 2.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0 1.6rem;
}
.footer-inner > div { min-width: 0; }
.footer-title { display: block; margin-bottom: .7rem; color: #fff; font-size: 1.03rem; }
.footer-inner p { margin: 0 0 .55rem; color: #fff; max-width: 29ch; }
.footer-inner a { display: block; margin-top: .35rem; overflow-wrap: anywhere; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding: 1rem 0 1.3rem;
  border-top: 1px solid rgba(255,255,255,.22);
  color: #c9d7ed;
  font-size: .86rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }

/* Unterseiten für Pflichtangaben */
.legal-main { padding: 4rem 0 5rem; min-height: 55vh; max-width: 850px; }
.legal-warning { border-left: 4px solid #c38626; padding: 1rem 1.2rem; background: #fff7e9; border-radius: 6px; margin: 2rem 0; }


/* Nur die NEUEN Bildbereiche responsive machen; Header/Hero bleiben original. */
@media (max-width: 960px) {
  .photo-feature,
  .photo-feature.reverse,
  .hours-row { grid-template-columns: 1fr; }
  .photo-feature.reverse .photo-feature-image,
  .photo-feature.reverse .photo-feature-copy { order: initial; }
  .hours-contact { border-left: 0; border-top: 1px solid #edf2f7; padding-left: 0; padding-top: 1rem; }
}
@media (max-width: 820px) {
  .service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .location-section { gap: 2rem; }
}
@media (max-width: 720px) {
  .site-nav { align-items: flex-start; flex-direction: column; }
  .nav-links { width: 100%; column-gap: 1rem; row-gap: .45rem; padding-top: .25rem; }
  .nav-links a { font-size: .83rem; }
  .banner-content { grid-template-columns: 1fr; gap: 1.8rem; }
  .banner-hero { min-height: 0; }
  .service-grid, .location-section { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 1rem; }
  .facts > div { grid-template-columns: minmax(0, 100px) 1fr; gap: .7rem; align-items: baseline; }
  .hours-row { display: block; }
  .visit-details { grid-template-columns: 1fr; gap: .7rem; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 2rem); }
  .banner-action { padding: 1rem 1.1rem; }
  .service-card, .contact-panel { padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
/* Header: zwei Partnerlogos und die praktische Navigation */
.site-header { border-bottom: 0; box-shadow: none; background: #fff; }
.site-nav { min-height: 4.45rem; padding-block: .3rem; }
.header-identity { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.6rem); min-width: 0; }
.brand-logo { width: clamp(5.8rem, 7.8vw, 7rem); }
.brand-name strong { font-size: clamp(1.02rem, 1.2vw, 1.12rem); }
.header-partner { display: grid; gap: .12rem; }
.header-partner-label { color: var(--muted-color); font-size: .7rem; line-height: 1.15; }
.header-partner-badge { display: flex; align-items: center; justify-content: center; width: clamp(9.2rem, 12.8vw, 11.5rem); min-height: 3.45rem; padding: .75rem; background: #001ed2; border-radius: 4px; }
.header-partner-badge img { display: block; width: 100%; height: auto; filter: brightness(0) invert(1); }

@media (max-width: 720px) {
  .site-nav { padding-block: .35rem; }
  .header-identity { width: 100%; gap: .7rem; justify-content: space-between; }
  .brand { gap: .5rem; min-width: 0; }
  .brand-logo { width: clamp(4.9rem, 21vw, 5.7rem); }
  .brand-name strong { font-size: 1.02rem; }
  .brand-name small { font-size: .72rem; }
  .header-partner-badge { width: clamp(8.2rem, 36vw, 9.5rem); min-height: 3rem; padding: .62rem; }
  .nav-links { align-self: flex-end; padding-top: .1rem; }
}
@media (max-width: 365px) {
  .brand-logo { width: 4.7rem; }
  .brand-name strong { font-size: .94rem; }
  .brand-name small { font-size: .68rem; }
  .header-identity { gap: .4rem; }
  .header-partner-badge { width: 7.5rem; min-height: 2.7rem; padding: .52rem; }
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.35rem; }
  .footer-inner > div:first-child { grid-column: auto; }
}
