/* ==========================================================================
   opel-haeusler.de – Stylesheet
   Gestaltung angelehnt an den Opel-Markenauftritt (opel.de, Stand 10/2026).
   Farben und Radien entsprechen den Design-Tokens von opel.de (--wlb-*).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Opel-Hausschrift (Opel Next)
   Sobald die lizenzierten Webfont-Dateien aus dem Opel-/Stellantis-Händler-
   portal vorliegen: Dateien nach /assets/fonts/ legen und diesen Block
   einkommentieren. Bis dahin wird die Systemschrift verwendet.
   -------------------------------------------------------------------------- */
/*
@font-face { font-family: "Opel Next"; src: url("../fonts/OpelNext-Light.woff2") format("woff2");   font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Opel Next"; src: url("../fonts/OpelNext-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Opel Next"; src: url("../fonts/OpelNext-Bold.woff2") format("woff2");    font-weight: 700; font-style: normal; font-display: swap; }
*/

:root {
  /* Opel-Markenfarben */
  --opel-yellow: #f7ff14;      /* Opel Vizor Yellow (brand-1) */
  --opel-black: #000;
  --opel-white: #fff;
  --grey-100: #f9f9f9;
  --grey-200: #f3f3f3;
  --grey-300: #cccccc;
  --grey-400: #737373;
  --grey-500: #333333;

  --text-heading: var(--opel-black);
  --text-body: var(--grey-500);
  --text-muted: var(--grey-400);

  --font: "Opel Next", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-card: 16px;
  --radius-pill: 999px;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-body);
  background: var(--opel-white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, h4, h5, h6 { color: var(--text-heading); margin: 0; line-height: 1.15; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Fokus: gut sichtbar auf hellem und dunklem Grund */
:focus-visible {
  outline: 3px solid var(--opel-black);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--opel-yellow);
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--opel-yellow); color: var(--opel-black);
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Hinweis-Icon für Links, die in neuem Fenster öffnen */
.ext::after {
  content: "";
  display: inline-block;
  width: .75em; height: .75em;
  margin-left: .35em;
  vertical-align: -.02em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9 1h6v6h-2V4.4L7.7 9.7 6.3 8.3 11.6 3H9V1zM1 3h5v2H3v8h8v-3h2v5H1V3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9 1h6v6h-2V4.4L7.7 9.7 6.3 8.3 11.6 3H9V1zM1 3h5v2H3v8h8v-3h2v5H1V3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Buttons (Opel: Pill-Form, Gelb mit schwarzer Schrift)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 48px;
  padding: .75em 1.6em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--opel-yellow); color: var(--opel-black); }
.btn--primary:hover { background: var(--opel-black); color: var(--opel-white); }
.btn--outline { background: transparent; color: var(--opel-black); border-color: var(--opel-black); }
.btn--outline:hover { background: var(--opel-black); color: var(--opel-white); }
.btn svg { width: 1em; height: 1em; flex: none; }

/* --------------------------------------------------------------------------
   Kopfbereich
   -------------------------------------------------------------------------- */
.contactbar {
  background: var(--opel-black);
  color: var(--opel-white);
  font-size: .875rem;
}
.contactbar .container {
  display: flex; justify-content: flex-end; flex-wrap: wrap;
  gap: 4px 24px; padding-block: 8px;
}
.contactbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.contactbar a:hover { text-decoration: underline; }
.contactbar svg { width: 14px; height: 14px; fill: var(--opel-yellow); }

.site-header { background: var(--opel-white); border-bottom: 1px solid var(--grey-200); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 80px;
}
.site-header .logo-haeusler img { width: clamp(170px, 26vw, 260px); }
.site-header .logo-opel img { width: clamp(110px, 14vw, 150px); }

/* --------------------------------------------------------------------------
   Aktionen (Hero)
   -------------------------------------------------------------------------- */
.aktionen { background: var(--grey-200); }

.aktion-hero { position: relative; }
.aktion-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.aktion-hero__content { padding: 28px var(--gutter) 36px; }

.aktion__title {
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -.01em;
}
.aktion__title strong { font-weight: 700; }
.aktion__subline {
  margin: .6em 0 1.4em;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--grey-500);
}

/* Pflichtangaben (Pkw-EnVKV) – direkt am beworbenen Fahrzeug */
.aktion__pflicht {
  margin: 1.4em 0 0;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--grey-400);
  max-width: 60ch;
}
.todo {
  background: var(--opel-yellow);
  color: var(--opel-black);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (min-width: 900px) {
  .aktion-hero__media img { aspect-ratio: 1920 / 643; min-height: 520px; }
  .aktion-hero__content {
    position: absolute;
    left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
    top: 50%; transform: translateY(-50%);
    width: min(520px, 42%);
    padding: 40px 44px;
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    border-radius: var(--radius-card);
  }
}

/* Weitere Aktionen (optional, 1–2 Kacheln unter dem Hero) */
.aktionen-weitere { padding-block: 32px 48px; }
.aktionen-weitere__grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.aktion-teaser {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--opel-white);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.aktion-teaser img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.aktion-teaser__body { padding: 24px 28px 28px; display: flex; flex-direction: column; align-items: flex-start; }
.aktion-teaser .aktion__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.aktion-teaser .aktion__subline { font-size: 1rem; }

/* --------------------------------------------------------------------------
   Standorte
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(48px, 7vw, 96px); }

.section__head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section__head h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -.01em;
}
.section__head h1 strong { font-weight: 700; }
.section__head p { margin: 1em 0 0; font-size: 1.125rem; color: var(--text-muted); }

.standorte {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

.standort {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--grey-200);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: background-color .2s;
}
.standort:hover { background: #ececec; }
.standort__img { overflow: hidden; }
.standort__img img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .4s ease;
}
.standort:hover .standort__img img { transform: scale(1.03); }

.standort__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.standort__name { font-size: 1.375rem; font-weight: 700; }
.standort__name a { text-decoration: none; }
/* ganze Kachel klickbar, Telefonlink bleibt separat bedienbar */
.standort__name a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.standort__name a:focus-visible { box-shadow: none; outline: none; }
.standort:has(.standort__name a:focus-visible) { outline: 3px solid var(--opel-black); outline-offset: 3px; box-shadow: 0 0 0 6px var(--opel-yellow); }

.standort address { font-style: normal; margin: .5em 0 0; color: var(--text-muted); }
.standort__tel {
  position: relative; z-index: 2;
  display: inline-block; margin-top: .35em;
  color: var(--opel-black); font-weight: 700; text-decoration: none;
}
.standort__tel:hover { text-decoration: underline; }
.standort__more {
  margin-top: auto; padding-top: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--opel-black);
}
.standort__more svg { width: 18px; height: 18px; transition: transform .2s; }
.standort:hover .standort__more svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Inhaltsseiten (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.page-head { background: var(--grey-200); padding-block: clamp(40px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 300; }
.page-head .back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-weight: 700; color: var(--opel-black); text-decoration: none; }
.page-head .back:hover { text-decoration: underline; }
.page-head .back svg { width: 16px; height: 16px; transform: rotate(180deg); }

.prose { max-width: 820px; padding-block: clamp(40px, 6vw, 72px); overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 300; margin: 2.2em 0 .6em; padding-top: .9em; border-top: 1px solid var(--grey-300); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.5rem; font-weight: 700; margin: 2em 0 .6em; }
.prose h4 { font-size: 1.2rem; font-weight: 700; margin: 1.8em 0 .5em; }
.prose h5 { font-size: 1.05rem; font-weight: 700; margin: 1.5em 0 .4em; }
.prose h6 { font-size: 1rem; font-weight: 700; margin: 1.3em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li + li { margin-top: .3em; }
.prose .toc li + li { margin-top: 0; }
.prose a { color: var(--opel-black); text-underline-offset: 2px; }
.prose a:hover { text-decoration-thickness: 2px; }

.toc { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 64px; padding: 0; list-style: none; }

/* --------------------------------------------------------------------------
   Fußnoten / Pflichttexte (am Seitenende, vor dem Footer)
   -------------------------------------------------------------------------- */
.fussnoten { border-top: 1px solid var(--grey-300); }
.fussnoten .container { padding-block: 32px 40px; }
.fussnoten p { margin: 0 0 .8em; max-width: 110ch; font-size: .78rem; line-height: 1.5; color: var(--grey-400); }
.fussnoten p:last-child { margin-bottom: 0; }
.fussnoten a { color: var(--grey-500); }
.aktion__pflicht sup, .fussnoten sup { line-height: 0; }

/* --------------------------------------------------------------------------
   Fußbereich
   -------------------------------------------------------------------------- */
.site-footer { background: var(--opel-black); color: var(--grey-300); font-size: .9375rem; }
.site-footer .container { padding-block: 48px 32px; }
.site-footer__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px 48px; padding-bottom: 28px; border-bottom: 1px solid var(--grey-500);
}
.site-footer__top img { width: 220px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a { color: var(--opel-white); text-decoration: none; }
.footer-nav a:hover { color: var(--opel-yellow); text-decoration: underline; }
.site-footer__copy { margin: 24px 0 0; font-size: .8125rem; color: var(--grey-400); }

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