/* ============================================================
   Autoaufbereitung Neumarkt — an der OMV Tankstelle Neumarkt
   Statische Website. Keine externen Requests. Keine Cookies.

   Gestaltung angelehnt an die visuelle Identitaet der OMV:
   Navy #052759, Signalgruen #1FFF5A, Pill-Formen, viel Weissraum.

   HINWEIS ZUR SCHRIFT: Die OMV-Hausschrift "OMV Progress" ist
   lizenzpflichtig und daher NICHT enthalten. Verwendet wird
   Figtree (SIL Open Font License) als nahe Alternative.
   Liegt die Originalschrift vor, nur den @font-face-Block und
   --sans austauschen.
   ============================================================ */

@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Token ---------- */

:root {
  --navy:       #052759;
  --navy-deep:  #04203f;
  --green:      #1fff5a;
  --slate:      #4e6588;
  --pale:       #ccd6ed;
  --pale-dim:   #8fa4c9;
  --mist:       #f0f2f7;
  --white:      #ffffff;
  --line:       #dbe2ef;
  --line-dark:  #1d3f6e;

  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 36rem;
  --wrap: 72rem;
  --pill: 40px;

  --t-xs: 0.78rem;
  --t-sm: 0.92rem;
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --t-lead: clamp(1.15rem, 1.04rem + 0.5vw, 1.4rem);
  --t-h2: clamp(1.65rem, 1.3rem + 1.7vw, 2.5rem);
  --t-h1: clamp(2.1rem, 1.4rem + 3.4vw, 3.9rem);
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lede {
  font-size: var(--t-lead);
  color: var(--slate);
  max-width: var(--measure);
  line-height: 1.5;
}

.label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ============================================================
   Kopfzeile: navy Leiste, wie bei OMV
   ============================================================ */

.masthead {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(1rem, 2.5vw, 1.4rem);
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--white);
}

/* Platzhalter fuer das offizielle OMV-Logo, bis die Datei vorliegt */
.wordmark::before {
  content: '';
  width: 4px;
  height: 1.5em;
  background: var(--green);
  border-radius: 2px;
  flex: none;
}

.masthead .label { color: var(--pale); }

/* ============================================================
   Abschnittsraster mit gruenem Marker
   ============================================================ */

.band > .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

@media (min-width: 58em) {
  .band > .wrap {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 0 4rem;
  }
  .band-index { position: sticky; top: 2.5rem; align-self: start; }
}

.band-index {
  position: relative;
  padding-left: 1rem;
}

.band-index::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  background: var(--green);
  border-radius: 2px;
}

/* ============================================================
   Statusmeldung
   ============================================================ */

.status > .wrap { padding-block: clamp(3.5rem, 11vw, 7rem) clamp(3rem, 8vw, 5.5rem); }

.status h1 {
  font-size: var(--t-h1);
  font-weight: 500;
  max-width: 17ch;
}

.status .lede { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

.status-note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--slate);
  max-width: var(--measure);
}

/* ============================================================
   Stellenangebot: navy Flaeche
   ============================================================ */

.hiring {
  background: var(--navy);
  color: var(--white);
}

.hiring .label { color: var(--pale); }

.hiring h2 {
  font-size: var(--t-h2);
  max-width: 19ch;
}

.hiring p {
  margin-top: 1.15rem;
  max-width: var(--measure);
  color: var(--pale);
}

.hiring p.first { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }

.hiring .fineprint {
  margin-top: 1.3rem;
  font-size: var(--t-xs);
  color: var(--pale-dim);
}

/* ---------- Pill-Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.9rem;
  border: 2px solid transparent;
  border-radius: var(--pill);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out;
}

/* Auf navy Grund: gruen gefuellt, navy Schrift (OMV-Primaerbutton) */
.btn-green {
  background: var(--green);
  color: var(--navy);
  border-color: var(--green);
}
.btn-green:hover { background: #16e04d; border-color: #16e04d; }

/* Auf hellem Grund: navy gefuellt, weisse Schrift */
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

/* ============================================================
   Kontakt
   ============================================================ */

.contact { background: var(--mist); }

.contact h2 { font-size: var(--t-h2); max-width: 15ch; }

.contact dl {
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  max-width: 42rem;
  border-top: 1px solid var(--line);
}

.contact dl > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 34em) {
  .contact dl > div { grid-template-columns: 9rem 1fr; gap: 1.5rem; align-items: baseline; }
}

.contact dt {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.contact dd { margin: 0; }
.contact dd a { text-decoration-color: var(--pale); text-underline-offset: 0.22em; }
.contact dd a:hover { text-decoration-color: currentColor; }

/* ============================================================
   Rechtstexte
   ============================================================ */

.doc > .wrap { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(4rem, 9vw, 6.5rem); }

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: var(--t-sm);
  color: var(--navy);
  text-decoration: none;
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out;
}
.backlink:hover { background: var(--mist); border-color: var(--pale); }

.doc h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  max-width: 17ch;
}

.doc .subtitle {
  margin-top: 1rem;
  max-width: var(--measure);
  color: var(--slate);
  font-size: var(--t-sm);
}

.doc section {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}

@media (min-width: 58em) {
  .doc section {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 0 4rem;
  }
  .doc section > h2 { grid-column: 1; margin-bottom: 0; }
  .doc section > :not(h2) { grid-column: 2; }
}

.doc h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--slate);
  margin-bottom: 1rem;
}

.doc p, .doc ul, .doc address { max-width: var(--measure); margin: 0 0 1rem; }
.doc p:last-child, .doc ul:last-child, .doc address:last-child { margin-bottom: 0; }
.doc address { font-style: normal; }
.doc ul { padding-left: 1.1rem; }
.doc li { margin-bottom: 0.4rem; }
.doc li::marker { color: var(--slate); }
.doc strong { font-weight: 700; }
.doc a { text-decoration-color: var(--pale); text-underline-offset: 0.2em; }
.doc a:hover { text-decoration-color: currentColor; }

.doc dl { max-width: var(--measure); margin: 0; }
.doc dl div { padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
.doc dl div:first-child { border-top: 1px solid var(--line); }
.doc dt {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.2rem;
}
.doc dd { margin: 0; }

.callout {
  padding: 1.3rem 1.5rem;
  background: var(--mist);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  max-width: var(--measure);
  margin: 0 0 1.5rem;
}

/* ============================================================
   Fusszeile
   ============================================================ */

.sitefoot {
  background: var(--navy);
  color: var(--pale);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.sitefoot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.sitefoot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; }

.sitefoot a {
  font-size: var(--t-sm);
  color: var(--white);
  text-decoration-color: var(--line-dark);
  text-underline-offset: 0.22em;
}
.sitefoot a:hover { text-decoration-color: var(--green); }

.sitefoot p { font-size: var(--t-xs); color: var(--pale-dim); }

/* ============================================================
   Fokus und Bewegung
   ============================================================ */

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.status .band-index,
.status h1,
.status .lede,
.status .status-note {
  animation: rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.status .band-index  { animation-delay: 0.02s; }
.status h1           { animation-delay: 0.10s; }
.status .lede        { animation-delay: 0.20s; }
.status .status-note { animation-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .masthead, .hiring, .sitefoot { background: #fff; color: #000; }
  .hiring p, .hiring .label, .masthead .label, .sitefoot p, .sitefoot a { color: #000; }
  .actions { display: none; }
}
