/* ==========================================================================
   Salobir Automobile – Stylesheet
   Gestaltungsidee: Straßen-/Kennzeichen-Vokabular. Asphaltgrau, Schilderweiß,
   Kennzeichen-Blau als einziger Akzent. Schrift: Barlow (DIN-artig, Beschilderung).
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, keine Verbindung zu Google) --------
   Dateien liegen in /assets/fonts/. Fehlen sie, greift der System-Fallback. */
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --asphalt:   #262a2e;   /* Text, dunkle Flächen */
  --asphalt-2: #3a3f44;   /* dunkle Flächen, abgestuft */
  --stone:     #6a7076;   /* Sekundärtext */
  --line:      #d6d9db;   /* Linien */
  --paper:     #f6f6f3;   /* Seitenhintergrund (Schilderweiß, leicht gebrochen) */
  --white:     #ffffff;
  --plate-blue:#1f3f9b;   /* einziger Akzent: EU-Streifen des Kennzeichens */
  --plate-blue-dark:#17306f;

  --font-body: "Barlow", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", var(--font-body);

  /* Typografische Skala (ca. 1.25) */
  --fs-sm: 0.9rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.3rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(2.2rem, 5vw, 3.4rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 4px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--asphalt);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plate-blue); text-underline-offset: 0.18em; }
a:hover { color: var(--plate-blue-dark); }
:focus-visible { outline: 3px solid var(--plate-blue); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); font-weight: 600; }
p { margin: 0 0 1em; max-width: 65ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--asphalt); color: var(--white); padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--asphalt);
}
/* Logo: Datei unter /assets/img/logo.png ablegen, dann <img> in den Seiten einkommentieren */
.brand img { height: 2.6rem; width: auto; }
.brand-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.45rem; line-height: 1;
}
.brand-name small {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: 0.8rem; color: var(--stone); margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-weight: 600; padding: 0.45rem 0.8rem; cursor: pointer; color: var(--asphalt);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
.site-nav a {
  display: block; padding: 0.5rem 0.75rem;
  text-decoration: none; color: var(--asphalt); font-weight: 600;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--plate-blue); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--plate-blue); }
.site-nav .nav-call {
  margin-left: 0.5rem; background: var(--plate-blue); color: var(--white);
  border-radius: var(--radius); border-bottom: 0;
}
.site-nav .nav-call:hover { background: var(--plate-blue-dark); color: var(--white); }

@media (max-width: 52rem) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter) 1rem; }
  .site-nav a { border-bottom: 0; border-left: 3px solid transparent; }
  .site-nav a[aria-current="page"] { border-left-color: var(--plate-blue); }
  .site-nav .nav-call { margin: 0.5rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  padding: 0.7rem 1.3rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid var(--plate-blue);
  background: var(--plate-blue); color: var(--white); cursor: pointer;
}
.btn:hover { background: var(--plate-blue-dark); border-color: var(--plate-blue-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--asphalt); border-color: var(--asphalt); }
.btn-ghost:hover { background: var(--asphalt); border-color: var(--asphalt); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Hero (Startseite) ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-lead { font-size: var(--fs-lg); color: var(--asphalt-2); }
@media (max-width: 52rem) { .hero .wrap { grid-template-columns: 1fr; } }

/* Das Kennzeichen – das eine prägende Element der Seite */
.plate {
  display: flex; align-items: stretch;
  background: var(--white);
  border: 3px solid var(--asphalt);
  border-radius: 10px;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line);
  max-width: 30rem; width: 100%;
  aspect-ratio: 520 / 110;
  overflow: hidden;
  justify-self: center;
}
.plate-eu {
  flex: 0 0 9%;
  background: var(--plate-blue);
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 6% 0;
  font-family: var(--font-body); font-weight: 600; font-size: clamp(0.8rem, 2.4vw, 1.2rem);
}
.plate-eu svg { width: clamp(1rem, 3.2vw, 2rem); flex: 0 0 auto; height: auto; margin-bottom: auto; }
.plate-text {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 0.35em;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  letter-spacing: 0.02em; line-height: 1; color: var(--asphalt);
}
/* Plaketten zwischen Kreiskürzel und Buchstaben */
.plate-seals { display: flex; flex-direction: column; gap: 0.08em; }
.plate-seals span { width: 0.36em; height: 0.36em; border-radius: 50%; }
.plate-seals .seal-city { background: #c9ccd0; border: 2px solid #9aa0a5; }
.plate-seals .seal-hu   { background: #e3c84a; border: 2px solid #b79c1f; }
.plate-caption { text-align: center; color: var(--stone); font-size: var(--fs-sm); margin-top: 0.9rem; }

/* ---------- Leistungsbereiche (Startseite) ---------- */
.areas { background: var(--white); border-block: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.area { padding: 0 clamp(1rem, 3vw, 2rem); border-left: 1px solid var(--line); }
.area:first-child { border-left: 0; padding-left: 0; }
.area p { color: var(--asphalt-2); }
.area ul { margin: 0 0 1.2rem; padding-left: 1.1rem; color: var(--asphalt-2); }
.area a.more { font-weight: 600; }
@media (max-width: 52rem) {
  .areas-grid { grid-template-columns: 1fr; gap: 2rem; }
  .area, .area:first-child { border-left: 0; padding: 0; }
  .area + .area { border-top: 1px solid var(--line); padding-top: 2rem; }
}

/* ---------- Infoband: Kontakt / Öffnungszeiten ---------- */
.infoband { background: var(--asphalt); color: var(--white); padding: clamp(2.5rem, 6vw, 3.5rem) 0; }
.infoband a { color: var(--white); }
.infoband .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.infoband h2 { font-size: var(--fs-lg); color: #c6ccd2; font-weight: 600; }
.infoband .big { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1.2; }
@media (max-width: 52rem) { .infoband .wrap { grid-template-columns: 1fr; } }

.hours { border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 0.15rem 1.25rem 0.15rem 0; font-weight: 400; vertical-align: top; }
.hours th { font-weight: 600; }

/* ---------- Unterseiten ---------- */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; border-bottom: 1px solid var(--line); background: var(--white); }
.page-head p { font-size: var(--fs-lg); color: var(--asphalt-2); margin: 0; }
.page-body { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 52rem) { .two-col { grid-template-columns: 1fr; } }

/* Leistungsliste: Linien statt Karten */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.service-list strong { display: block; font-weight: 600; }
.service-list span { color: var(--stone); font-size: var(--fs-sm); }

.note { background: var(--white); border-left: 4px solid var(--plate-blue); padding: 1.1rem 1.25rem; }
.note p:last-child { margin-bottom: 0; }

/* Rechtstexte */
.legal h2 { margin-top: 2rem; }
.legal h3 { margin-top: 1.5rem; }
.legal address { font-style: normal; margin-bottom: 1em; }
.todo { background: #fff4cc; border: 1px dashed #b79c1f; padding: 0.8rem 1rem; }

/* ---------- Externe Inhalte erst nach Klick (mobile.de, Karte) ---------- */
.consent-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center;
}
.consent-box p { margin-left: auto; margin-right: auto; }
/* Feste, großzügige Höhe: die Inhaltshöhe von mobile.de ist (fremde Domain) nicht auslesbar.
   So entsteht keine zweite Scrollleiste, die das Scrollen der Seite blockiert. */
.embed-frame { display: block; width: 100%; height: 2000px; border: 0; background: var(--white); }
@media (max-width: 52rem) { .embed-frame { height: 3000px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--asphalt-2); color: #d5d9dd; padding: 2rem 0; font-size: var(--fs-sm); }
.site-footer a { color: #d5d9dd; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
