/* ==========================================================================
   Eurecat Deutschland GmbH
   Schriften werden lokal ausgeliefert (DSGVO). Siehe assets/fonts/LIESMICH.txt
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('/assets/fonts/karla-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('/assets/fonts/karla-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --navy:      #082a42;
  --navy-mid:  #0d3b5c;
  --navy-line: #1b4a6c;
  --navy-soft: #8fb3cf;
  --ink:       #16191b;
  --muted:     #5c6165;
  --green:     #009639;
  --paper:     #f4f4f2;
  --line:      #dcdcd6;
  --wrap:      1240px;
  --pad:       34px;
  --titel: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --text:  'Karla', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-mid); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--green); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

::selection { background: var(--green); color: #fff; }

.skip {
  position: absolute; left: -9999px;
  background: #fff; color: var(--navy); padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* --- Kopf ---------------------------------------------------------------- */
.kopf {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.kopf-inner {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
/* Wortmarke: "Deutschland" sitzt buendig unter dem Schriftzug.
   Der Schriftzug beginnt bei 26,8 % der Logobreite (Seitenverhaeltnis 4,757:1),
   seine Grundlinie bei 63,8 % der Logohoehe. Beide Werte leiten sich unten aus
   --logo-h ab, damit die Sperrung bei jeder Groesse stimmt. */
.marke {
  --logo-h: 34px;
  display: block; text-decoration: none; flex: none; line-height: 0;
}
.marke img { display: block; height: var(--logo-h); width: auto; }
.marke-zusatz {
  display: block;
  margin-top: calc(var(--logo-h) * -0.33);
  padding-left: calc(var(--logo-h) * 1.275);
  font-size: 9px; font-weight: 600; letter-spacing: .34em; line-height: 1;
  text-transform: uppercase; color: var(--muted);
}

.nav { display: flex; flex-wrap: wrap; }
.nav-link {
  padding: 10px 13px; font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1.2; text-decoration: none;
  color: var(--muted); border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--green); }
.nav-link.is-active { color: var(--navy); border-bottom-color: var(--green); }

.nav-schalter {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--navy); font-family: var(--text); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; padding: 10px 14px; cursor: pointer;
}

/* --- Abschnitte ---------------------------------------------------------- */
.band        { background: var(--navy); color: #fff; }
.band-mid    { background: var(--navy-mid); color: #fff; }
.band-dunkel { background: var(--ink); color: #fff; }

.abschnitt   { padding-top: 76px; padding-bottom: 76px; }
.abschnitt-s { padding-top: 56px; padding-bottom: 56px; }

.hero { padding-top: 84px; padding-bottom: 84px; }
.hero-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--navy-soft); margin: 0;
}
.hero h1 {
  margin: 18px 0 0;
  font-family: var(--titel); font-weight: 700;
  font-size: clamp(33px, 4.4vw, 58px); line-height: 1.02;
  letter-spacing: -0.035em; text-transform: uppercase; text-wrap: balance;
}
.hero p { margin: 24px 0 0; max-width: 62ch; font-size: 18px; color: #dfe8ef; }

h2 {
  font-family: var(--titel); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1;
  letter-spacing: -0.035em; text-transform: uppercase; margin: 0;
}
h3 {
  font-family: var(--titel); font-weight: 700;
  font-size: 21px; letter-spacing: -0.02em; margin: 0;
}

p { max-width: 72ch; }

/* --- Kennzahlen ---------------------------------------------------------- */
.zahlen {
  display: grid; gap: 1px; background: var(--navy-line);
  grid-template-columns: repeat(4, 1fr);
}
.zahl { background: var(--navy); padding: 30px 26px; }
.zahl-wert {
  font-family: var(--titel); font-weight: 700; font-size: 38px;
  line-height: 1; letter-spacing: -0.035em; color: #fff;
}
.zahl-text { margin: 10px 0 0; font-size: 14px; color: var(--navy-soft); max-width: 30ch; }

/* --- Listen -------------------------------------------------------------- */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { position: relative; padding-left: 22px; margin-bottom: 10px; max-width: 72ch; }
.liste li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; background: var(--green);
}
.liste-zwei { columns: 2; column-gap: 46px; }
.liste-zwei li { break-inside: avoid; }

/* --- Karten -------------------------------------------------------------- */
.karten { display: grid; gap: 1px; background: var(--line); grid-template-columns: repeat(3, 1fr); }
.karte { background: var(--paper); padding: 30px 26px; }
.karte h3 { margin-bottom: 10px; }
.karte p { margin: 0; font-size: 16px; color: var(--muted); }

/* --- Stellen ------------------------------------------------------------- */
.stelle { border-top: 2px solid var(--navy); padding-top: 26px; margin-top: 46px; }
.stelle:first-of-type { margin-top: 0; }
.stelle-meta {
  margin: 8px 0 0; font-size: 14px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0;
}
.stelle-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 26px; }
.stelle-spalten h4 {
  margin: 0 0 12px; font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* --- Buttons ------------------------------------------------------------- */
.knopf {
  display: inline-block; background: var(--green); color: #fff;
  font-weight: 600; font-size: 15px; padding: 14px 26px;
  text-decoration: none; border: 2px solid var(--green);
}
.knopf:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.knopf-hell { background: transparent; color: #fff; border-color: #fff; }
.knopf-hell:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* --- Platzhalterbilder --------------------------------------------------- */
.bild-platzhalter {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3 / 2; background: #e6e6e1; border: 1px dashed #b9b9b1;
  color: var(--muted); font-size: 13px; text-align: center; padding: 16px;
}

/* --- News ---------------------------------------------------------------- */
.news-liste { display: grid; gap: 46px; }
.news-eintrag { display: grid; grid-template-columns: 320px 1fr; gap: 34px; align-items: start; }
.news-bild {
  display: block; width: 100%; aspect-ratio: 3 / 2;
  object-fit: cover; background: #e6e6e1;
}

/* --- Bildband (volle Breite) --------------------------------------------- */
.bildband img {
  display: block; width: 100%; height: clamp(240px, 36vw, 520px);
  object-fit: cover; background: #e6e6e1;
}
.bild-rahmen img { display: block; width: 100%; height: auto; }

/* --- Galerie Arbeitsplatz ------------------------------------------------ */
.galerie {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
  margin: 30px 0 0; padding: 0; list-style: none;
}
.galerie figure { margin: 0; }
.galerie img {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; background: #e6e6e1;
}
.galerie figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.galerie figcaption b { color: var(--ink); font-weight: 600; }
.bildnachweis { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* --- Zertifikate --------------------------------------------------------- */
.zert-bild {
  display: block; width: 100%; max-width: 450px; height: auto;
  border: 1px solid var(--line); background: #fff; margin-top: 20px;
}
.zert-bild:hover { border-color: var(--green); }

/* --- Kontakt ------------------------------------------------------------- */
.kontakt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.kontakt-grid h3 { margin-bottom: 12px; }
.telefonliste { list-style: none; margin: 0; padding: 0; }
.telefonliste li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.telefonliste b { font-variant-numeric: tabular-nums; }

/* --- Fließtext ----------------------------------------------------------- */
.fliesstext p { margin: 0 0 20px; }
.fliesstext h3 { margin: 40px 0 14px; }

/* --- Fuß ----------------------------------------------------------------- */
.fuss { background: var(--navy); color: #fff; }
.fuss-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px;
  padding-top: 56px; padding-bottom: 34px;
}
.fuss-titel {
  margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--navy-soft); font-family: var(--text);
}
.fuss-text { margin: 16px 0 0; font-size: 15px; line-height: 1.8; color: #dfe8ef; }
.fuss-text a { color: #dfe8ef; text-decoration: none; }
.fuss-text a:hover { color: #fff; text-decoration: underline; }
.fuss-zeile {
  border-top: 1px solid var(--navy-line); padding-top: 18px; padding-bottom: 34px;
  display: flex; gap: 26px; flex-wrap: wrap; font-size: 13px;
}
.fuss-zeile a { color: var(--navy-soft); text-decoration: none; }
.fuss-zeile a:hover { color: #fff; text-decoration: underline; }

/* --- Umbrüche ------------------------------------------------------------ */
@media (max-width: 980px) {
  .zahlen, .karten, .kontakt-grid { grid-template-columns: repeat(2, 1fr); }
  .fuss-grid { grid-template-columns: repeat(2, 1fr); }
  .stelle-spalten { grid-template-columns: 1fr; gap: 26px; }
  .news-eintrag { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: 1fr; }
  .liste-zwei { columns: 1; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
  .marke { --logo-h: 28px; }
  .marke-zusatz { font-size: 8px; letter-spacing: .3em; }
  body { font-size: 16px; }
  .abschnitt { padding-top: 52px; padding-bottom: 52px; }
  .hero { padding-top: 56px; padding-bottom: 56px; }
  .zahlen, .karten, .kontakt-grid, .fuss-grid { grid-template-columns: 1fr; }
  .nav-schalter { display: block; }
  .nav {
    display: none; width: 100%; flex-direction: column;
    border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px;
  }
  .nav.is-offen { display: flex; }
  .nav-link { padding: 12px 0; border-bottom: none; }
  .nav-link.is-active { border-bottom: none; color: var(--navy); }
}

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

@media print {
  .kopf, .nav, .fuss-zeile, .knopf { display: none; }
  body { background: #fff; font-size: 11pt; }
  .band, .band-mid, .band-dunkel, .fuss { background: #fff !important; color: #000 !important; }
  .hero h1, .zahl-wert, .fuss-text, .hero p { color: #000 !important; }
  a { text-decoration: underline; color: #000; }
}
