/*
 * GSM-Grundstil für öffentliche Seiten (Landingpage, Konfiguratoren).
 * Farben und Formen wie im GSM Hub. Seitenspezifisches gehört in eine eigene Datei.
 */
:root {
  color-scheme: light;
  --bg: #f5f5f4;
  --surface: #ffffff;
  --surface-subtle: #fafaf9;
  --text: #29292b;
  --muted: #66666a;
  --line: #dededc;
  --line-strong: #c9c9c6;
  --gsm-red: #c81517;
  --gsm-red-dark: #a50f12;
  --gsm-red-soft: #fcebec;
  --focus: #9b1c1f;
  --shadow: 0 12px 32px rgba(34, 34, 36, .07);
  --radius: 12px;
  --content-width: 1180px;
  font-family: Arial, Helvetica, "Liberation Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  min-height: 100vh; margin: 0; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5;
}
a { color: inherit; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: min(100%, var(--content-width)); margin-inline: auto; padding-inline: 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 12px; z-index: 100;
  padding: 10px 14px; border-radius: 7px; background: var(--text); color: #fff;
  transform: translateY(-160%); text-decoration: none; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

/* Kopf */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .98); border-bottom: 3px solid var(--gsm-red);
}
.site-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; text-decoration: none; }
.site-brand img { width: 176px; height: auto; flex: none; }
.site-brand__name {
  padding-left: 13px; border-left: 1px solid var(--line-strong);
  font-size: 1rem; font-weight: 700; letter-spacing: .04em;
}
.language-switcher { display: flex; align-items: center; gap: 3px; flex: none; }
.language-switcher a, .language-switcher span {
  border: 1px solid transparent; border-radius: 6px; padding: 5px 7px;
  color: var(--muted); font-size: .75rem; font-weight: 800; text-decoration: none;
}
.language-switcher a:hover { border-color: var(--line-strong); color: var(--text); }
.language-switcher .active { background: var(--text); color: #fff; }

/* Einleitung */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 50px; padding-bottom: 44px; }
h1 { margin: 0; max-width: 850px; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.18; letter-spacing: -.025em; }
.page-lead { max-width: 720px; margin: 12px 0 0; color: var(--muted); font-size: 1.08rem; }
.main-content { flex: 1; padding-top: 40px; padding-bottom: 64px; }
.main-content:focus { outline: none; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .82rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { text-underline-offset: 3px; }
.footer-links a:hover { color: var(--gsm-red-dark); }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; background: #ececea;
  color: var(--muted); font-size: .75rem; font-weight: 800;
}

/* Schaltflächen und Formularfelder */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 800;
  text-decoration: none; cursor: pointer;
}
.button:hover { border-color: #9a9a96; }
.button--primary { border-color: transparent; background: var(--gsm-red); color: #fff; }
.button--primary:hover { background: var(--gsm-red-dark); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; min-width: 0; font-size: .88rem; font-weight: 700; }
.field select, .field__input {
  width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 400;
}
.field select { padding: 9px 10px; }
.field textarea {
  width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 400; resize: vertical;
}
.field__hint { color: var(--muted); font-size: .8rem; font-weight: 400; }
.field__input:has(input[aria-invalid="true"]) { border-color: var(--gsm-red); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gsm-red); }
.field__input { display: flex; align-items: center; }
.field__input:hover, .field select:hover { border-color: #9a9a96; }
.field__input:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.field__input input {
  flex: 1; width: 100%; min-width: 0; padding: 9px 10px; border: 0; background: transparent; color: inherit;
  font: inherit; font-variant-numeric: tabular-nums;
}
.field__input input:focus-visible { outline: none; }
.field__input i { padding-right: 10px; color: var(--muted); font-style: normal; white-space: nowrap; }

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .site-brand img { width: 128px; }
  .site-brand__name { display: none; }
  .page-hero .wrap { padding-top: 34px; padding-bottom: 30px; }
}
