/* ==========================================================================
   Dr. Ritter Feingerätetechnik GmbH — Stylesheet
   Keine externen Abhängigkeiten. Schriften werden lokal ausgeliefert.
   ========================================================================== */

/* --- Schriften (lokal, kein Google-CDN) --------------------------------- */
@font-face {
  font-family: 'Roboto FGT';
  src: url('../fonts/roboto-latin-var.woff2') format('woff2-variations'),
       url('../fonts/roboto-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Slab FGT';
  src: url('../fonts/robotoslab-latin-var.woff2') format('woff2-variations'),
       url('../fonts/robotoslab-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- Designtokens ------------------------------------------------------- */
:root {
  /* Farben – Blau stammt aus dem Firmenlogo */
  --blau:        #080af7;
  --blau-dunkel: #0406b4;
  --blau-hell:   #eef0ff;

  --anthrazit:     #111621;
  --anthrazit-800: #1a2130;
  --anthrazit-700: #252e42;
  --anthrazit-500: #4a5468;

  --text:        #333b4a;
  --text-leise:  #66707f;
  --linie:       #dfe4ec;
  --linie-stark: #c6cddb;
  --flaeche:     #f4f6fa;
  --weiss:       #ffffff;

  /* Typografie */
  --serif: 'Roboto Slab FGT', 'Roboto Slab', Cambria, Georgia, serif;
  --sans:  'Roboto FGT', 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* Maße */
  --breite: 1200px;
  --rand: clamp(1.25rem, 4vw, 2.5rem);
  --block: clamp(3.5rem, 7vw, 6rem);
  --radius: 3px;

  --schatten:    0 1px 2px rgba(17, 22, 33, .06), 0 8px 24px -12px rgba(17, 22, 33, .18);
  --schatten-xl: 0 2px 4px rgba(17, 22, 33, .05), 0 24px 48px -20px rgba(17, 22, 33, .28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--anthrazit);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  font-weight: 700;
  text-wrap: balance;
  /* deutsche Trennung statt harter Umbrüche mitten im Wort */
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: normal;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.06rem + .55vw, 1.5rem); letter-spacing: -.01em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; font-family: var(--sans); font-weight: 700; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blau); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blau-dunkel); }

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

hr { border: 0; border-top: 1px solid var(--linie); margin: var(--block) 0; }

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

/* --- Hilfsklassen ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}
.container--schmal { max-width: 820px; }

.block { padding-block: var(--block); }
.block--flaeche { background: var(--flaeche); }
.block--dunkel  { background: var(--anthrazit); color: #c9d0dc; }
.block--dunkel h2, .block--dunkel h3 { color: #fff; }
.block--eng { padding-block: calc(var(--block) * .62); }

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

.springmarke {
  position: absolute; left: .5rem; top: -4rem; z-index: 200;
  background: var(--blau); color: #fff; padding: .7rem 1.1rem;
  font-weight: 700; border-radius: var(--radius); transition: top .15s;
}
.springmarke:focus { top: .5rem; color: #fff; }

/* Kleines Label über Überschriften */
.kicker {
  display: block;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blau);
  margin-bottom: .9rem;
}
.block--dunkel .kicker { color: #7f8dff; }

.lead {
  font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-leise);
}
.block--dunkel .lead { color: #aab3c2; }

.kopf-mitte { max-width: 760px; margin-inline: auto; text-align: center; }
.kopf-mitte .kicker { text-align: center; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .9375rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .95rem 1.6rem;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1em; height: 1em; flex: none; }

.btn--primaer { background: var(--blau); color: #fff; border-color: var(--blau); }
.btn--primaer:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: #fff; }

.btn--linie { background: transparent; color: var(--anthrazit); border-color: var(--linie-stark); }
.btn--linie:hover { border-color: var(--anthrazit); color: var(--anthrazit); }

.btn--hell { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--hell:hover { background: #fff; color: var(--anthrazit); border-color: #fff; }

.btn-gruppe { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Textlink mit Pfeil */
.pfeil-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; font-size: .9375rem; letter-spacing: .03em;
  text-transform: uppercase; text-decoration: none; color: var(--blau);
}
.pfeil-link::after { content: '→'; transition: transform .18s; font-size: 1.1em; line-height: 1; }
.pfeil-link:hover::after { transform: translateX(4px); }

/* --- Kopfbereich -------------------------------------------------------- */
.leiste {
  background: var(--anthrazit);
  color: #9fa9ba;
  font-size: .85rem;
}
.leiste .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 2.75rem; flex-wrap: wrap;
}
.leiste a { color: #d6dbe4; text-decoration: none; }
.leiste a:hover { color: #fff; text-decoration: underline; }
.leiste-kontakt { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.leiste-kontakt span { display: inline-flex; align-items: center; gap: .45rem; }
.leiste-hinweis { display: inline-flex; align-items: center; gap: .5rem; }
.leiste-hinweis::before {
  content: ''; width: .5rem; height: .5rem; border-radius: 50%;
  background: #46d17f; flex: none;
}

.kopf {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.75rem;
}
.marke { display: inline-flex; align-items: center; flex: none; }
.marke img { height: 2.6rem; width: auto; }

.nav-desktop { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-desktop a {
  display: block; padding: .55rem .8rem;
  font-size: .95rem; font-weight: 500; color: var(--anthrazit);
  text-decoration: none; border-radius: var(--radius);
}
.nav-desktop a:hover { background: var(--flaeche); color: var(--blau); }
.nav-desktop a[aria-current='page'] {
  color: var(--blau); font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--blau);
}
.kopf .btn { padding: .72rem 1.2rem; font-size: .875rem; }

/* Aufklappmenü Leistungen */
.nav-gruppe { position: relative; }
.nav-gruppe > button {
  display: flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem; font: inherit; font-size: .95rem; font-weight: 500;
  color: var(--anthrazit); background: none; border: 0; cursor: pointer;
  border-radius: var(--radius);
}
.nav-gruppe > button:hover { background: var(--flaeche); color: var(--blau); }
.nav-gruppe > button::after {
  content: ''; width: .4rem; height: .4rem; margin-top: -.2rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .18s;
}
.nav-gruppe[data-offen='true'] > button::after { transform: rotate(-135deg); margin-top: .12rem; }
.nav-untermenue {
  position: absolute; top: calc(100% + .5rem); left: -.5rem;
  min-width: 15rem; padding: .5rem;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten-xl);
  list-style: none; margin: 0; display: none;
}
.nav-gruppe[data-offen='true'] .nav-untermenue { display: block; }
.nav-untermenue a { padding: .6rem .75rem; font-size: .95rem; }

.nav-schalter {
  display: none; align-items: center; gap: .5rem;
  background: none; border: 1px solid var(--linie-stark); border-radius: var(--radius);
  padding: .6rem .8rem; cursor: pointer; font: inherit; font-size: .875rem;
  font-weight: 700; color: var(--anthrazit);
}
.nav-schalter svg { width: 1.15rem; height: 1.15rem; }

.nav-mobil {
  display: none;
  border-top: 1px solid var(--linie);
  background: #fff;
  max-height: calc(100dvh - 8rem);
  overflow-y: auto;
}
.nav-mobil[data-offen='true'] { display: block; }
.nav-mobil ul { list-style: none; margin: 0; padding: .75rem var(--rand) 1.5rem; }
.nav-mobil a {
  display: block; padding: .8rem .2rem; font-size: 1.0625rem; font-weight: 500;
  color: var(--anthrazit); text-decoration: none; border-bottom: 1px solid var(--linie);
}
.nav-mobil a[aria-current='page'] { color: var(--blau); font-weight: 700; }
.nav-mobil .unter a { padding-left: 1.25rem; font-size: 1rem; color: var(--text-leise); }
.nav-mobil .btn {
  margin-top: 1.25rem; width: 100%; justify-content: center;
  border-bottom-width: 2px; border-bottom-style: solid;
}
.nav-mobil .btn--primaer { color: #fff; border-color: var(--blau); }
.nav-mobil .btn--primaer:hover { color: #fff; border-color: var(--blau-dunkel); }

@media (max-width: 980px) {
  .nav-desktop, .kopf > .container > .btn { display: none; }
  .nav-schalter { display: inline-flex; }
  .leiste-hinweis { display: none; }
}
@media (max-width: 560px) {
  .leiste .container { justify-content: center; min-height: 2.5rem; }
  .leiste-kontakt { gap: 1rem; font-size: .8125rem; }
}

/* --- Startseiten-Bühne -------------------------------------------------- */
.buehne {
  position: relative;
  display: grid; align-items: center;
  min-height: min(76vh, 640px);
  background: var(--anthrazit);
  overflow: hidden;
}
.buehne__bild {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .5;
}
.buehne::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(17,22,33,.94) 0%, rgba(17,22,33,.78) 42%, rgba(17,22,33,.28) 100%);
}
.buehne__inhalt { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.buehne h1 { color: #fff; max-width: 17ch; }
.buehne .lead { color: #c3cbd8; max-width: 52ch; margin-bottom: 2rem; }
.buehne .kicker { color: #8f9bff; }

.buehne__marken {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 1.1rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center;
  font-size: .875rem; color: #93a0b3;
}
.buehne__marken strong { color: #fff; font-weight: 700; }

@media (max-width: 700px) {
  .buehne { min-height: 0; }
  .buehne__inhalt { padding-block: 3rem 2.5rem; }
  .buehne__marken {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: .5rem 1.25rem; font-size: .8125rem; line-height: 1.35;
    padding-block: 1rem;
  }
}

/* --- Seitenkopf der Unterseiten ---------------------------------------- */
.seitenkopf {
  position: relative;
  background: var(--anthrazit);
  color: #b9c1cf;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  overflow: hidden;
}
/* feines technisches Raster, rein per CSS */
.seitenkopf::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px, 80px 80px, 80px 80px;
  mask-image: linear-gradient(100deg, transparent 25%, #000 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 100%);
}
.seitenkopf .container { position: relative; z-index: 1; }
.seitenkopf h1 { color: #fff; margin-bottom: .35em; }
.seitenkopf .lead { color: #a9b3c3; max-width: 62ch; }

.brotkrumen { font-size: .85rem; margin-bottom: 1rem; color: #7f8b9c; }
.brotkrumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.brotkrumen li + li::before { content: '/'; margin-right: .45rem; color: #56637a; }
.brotkrumen a { color: #a9b3c3; text-decoration: none; }
.brotkrumen a:hover { color: #fff; text-decoration: underline; }

/* --- Raster ------------------------------------------------------------- */
.raster { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.raster--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.raster--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.raster--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }

/* Text-/Bild-Aufteilung */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 1fr;
}
.split--oben { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--breit-text { grid-template-columns: 1.15fr .85fr; }
  .split--breit-bild { grid-template-columns: .85fr 1.15fr; }
  .split--gedreht > *:first-child { order: 2; }
}
.split__bild { position: relative; }
.split__bild img { width: 100%; border-radius: var(--radius); box-shadow: var(--schatten); }
/* dezenter Blaurahmen als grafisches Element */
.split__bild--rahmen::before {
  content: ''; position: absolute; z-index: -1;
  inset: auto -1.1rem -1.1rem auto; width: 62%; height: 62%;
  border: 2px solid var(--blau); border-radius: var(--radius);
}
.split__bild--rahmen { isolation: isolate; }

/* --- Leistungskarten ---------------------------------------------------- */
.karte {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
a.karte:hover { border-color: var(--linie-stark); box-shadow: var(--schatten-xl); transform: translateY(-3px); }
.karte__bild { aspect-ratio: 16 / 10; overflow: hidden; background: var(--flaeche); }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.karte:hover .karte__bild img { transform: scale(1.04); }
.karte__inhalt { padding: 1.5rem 1.5rem 1.65rem; display: flex; flex-direction: column; flex: 1; gap: .55rem; }
.karte__inhalt h3 { margin: 0; }
.karte__inhalt p { color: var(--text-leise); font-size: 1rem; margin: 0; }
.karte__fuss { margin-top: auto; padding-top: 1rem; }

/* Karte ohne Bild, mit Nummer */
.karte--nummer { padding: 1.75rem; gap: .6rem; }
.karte--nummer .nr {
  font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1;
  color: var(--blau); opacity: .28;
}

/* --- Merkmale mit Häkchen ---------------------------------------------- */
.merkmale { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.merkmale li { position: relative; padding-left: 2rem; }
.merkmale li::before {
  content: ''; position: absolute; left: 0; top: .52em;
  width: 1.05rem; height: .58rem;
  border-left: 2.5px solid var(--blau); border-bottom: 2.5px solid var(--blau);
  transform: rotate(-45deg) translateY(-.1em);
}
.merkmale--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .75rem 2rem; }
.block--dunkel .merkmale li::before { border-color: #8f9bff; }

/* --- Zahlen ------------------------------------------------------------- */
.zahl { text-align: center; }
.zahl__wert {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem); line-height: 1;
  color: #fff; letter-spacing: -.02em;
}
.zahl__wert small { font-size: .5em; margin-left: .1em; }
.zahl__text { display: block; margin-top: .6rem; font-size: .95rem; color: #9aa5b6; }
.block--flaeche .zahl__wert { color: var(--anthrazit); }
.block--flaeche .zahl__text { color: var(--text-leise); }

/* --- Datenblatt (Tabelle als Definitionsliste) -------------------------- */
.datenblatt { margin: 0; border-top: 1px solid var(--linie); }
.datenblatt > div {
  display: grid; grid-template-columns: 1fr; gap: .1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--linie);
}
@media (min-width: 620px) {
  .datenblatt > div { grid-template-columns: minmax(7rem, 10rem) 1fr; gap: 1.5rem; align-items: baseline; }
}
/* zweispaltig, wenn das Datenblatt über die volle Breite läuft */
@media (min-width: 900px) {
  .datenblatt--zwei {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.5rem;
    border-top: 0;
  }
  .datenblatt--zwei > div { border-top: 1px solid var(--linie); border-bottom: 0; }
  .block--dunkel .datenblatt--zwei > div { border-top-color: rgba(255,255,255,.14); }
  .datenblatt--zwei > div { grid-template-columns: minmax(7rem, 11rem) 1fr; }
}

/* volle Breite: Beschriftungsspalte darf großzügiger sein */
.datenblatt--breit > div { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .datenblatt--breit > div { grid-template-columns: 15rem 1fr; }
}
.datenblatt dt { font-weight: 700; color: var(--anthrazit); }
.datenblatt dd { margin: 0; color: var(--text-leise); }
.block--dunkel .datenblatt { border-color: rgba(255,255,255,.14); }
.block--dunkel .datenblatt > div { border-color: rgba(255,255,255,.14); }
.block--dunkel .datenblatt dt { color: #fff; }
.block--dunkel .datenblatt dd { color: #a9b3c3; }

/* --- Aktionsband -------------------------------------------------------- */
.aktion {
  background: var(--blau);
  color: #fff;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.aktion .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem 2.5rem;
}
.aktion h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem); max-width: 22ch; }
.aktion p { color: #d5d8ff; margin: .9rem 0 0; max-width: 46ch; }
.aktion .btn--weiss { background: #fff; color: var(--blau); border-color: #fff; }
.aktion .btn--weiss:hover { background: var(--anthrazit); border-color: var(--anthrazit); color: #fff; }

/* --- Fußbereich --------------------------------------------------------- */
.fuss { background: var(--anthrazit); color: #97a2b3; padding-block: clamp(3rem, 5vw, 4.25rem) 0; font-size: .95rem; }
.fuss h3 {
  font-family: var(--sans); font-size: .8125rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem;
}
.fuss a { color: #b9c1cf; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.fuss__raster {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.fuss__marke img { height: 2.5rem; width: auto; margin-bottom: 1.15rem; }
.fuss__marke p { max-width: 34ch; color: #8b96a8; font-size: .9375rem; }
.fuss__siegel { margin-top: 1.5rem; background: #fff; padding: .5rem; border-radius: var(--radius); display: inline-block; }
.fuss__siegel img { width: 150px; height: auto; }
.fuss__unten {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; align-items: center; justify-content: space-between;
  font-size: .875rem; color: #7c8798;
}
.fuss__unten nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
address { font-style: normal; }

/* --- Formular ----------------------------------------------------------- */
.formular { display: grid; gap: 1.1rem; }
.feld-reihe { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .feld-reihe { grid-template-columns: 1fr 1fr; } }

.feld { display: grid; gap: .4rem; }
.feld label { font-weight: 700; font-size: .9375rem; color: var(--anthrazit); }
.feld .pflicht { color: var(--blau); }
.feld input, .feld textarea, .feld select {
  font: inherit; font-size: 1rem; color: var(--text);
  padding: .8rem .9rem;
  background: #fff;
  border: 1px solid var(--linie-stark); border-radius: var(--radius);
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.feld input:focus, .feld textarea:focus, .feld select:focus {
  outline: none; border-color: var(--blau);
  box-shadow: 0 0 0 3px rgba(8,10,247,.14);
}
.feld textarea { min-height: 11rem; resize: vertical; }
.feld-hinweis { font-size: .85rem; color: var(--text-leise); }

.feld--ankreuz { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; }
.feld--ankreuz input { width: 1.15rem; height: 1.15rem; margin-top: .28rem; accent-color: var(--blau); }
.feld--ankreuz label { font-weight: 400; font-size: .95rem; line-height: 1.55; color: var(--text); }

/* Honigtopf – für Menschen unsichtbar, nur Skripte füllen ihn aus */
.honigtopf {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.hinweis {
  padding: 1.1rem 1.25rem; border-radius: var(--radius);
  border-left: 4px solid; margin-bottom: 1.75rem;
}
.hinweis h3 { margin: 0 0 .3rem; font-size: 1.0625rem; }
.hinweis p { margin: 0; font-size: .95rem; }
.hinweis--ok    { background: #eaf7ef; border-color: #23a35a; }
.hinweis--ok h3 { color: #17693b; }
.hinweis--fehler    { background: #fdeced; border-color: #cf2b34; }
.hinweis--fehler h3 { color: #97161d; }

/* --- Kontaktangaben ----------------------------------------------------- */
.kontaktliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.kontaktliste li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: start; }
.kontaktliste .symbol {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius);
  background: var(--blau-hell); color: var(--blau);
  display: grid; place-items: center;
}
.kontaktliste .symbol svg { width: 1.15rem; height: 1.15rem; }
.kontaktliste strong { display: block; color: var(--anthrazit); font-size: .9375rem; }
.kontaktliste a { text-decoration: none; }
.kontaktliste a:hover { text-decoration: underline; }

/* --- Rechtstexte -------------------------------------------------------- */
.rechtstext { max-width: 780px; }
.rechtstext h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin-top: 2.5rem; }
.rechtstext h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext ul, .rechtstext ol { padding-left: 1.35rem; margin: 0 0 1.15em; }
.rechtstext li { margin-bottom: .4rem; }
.rechtstext table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: .95rem; }
.rechtstext th, .rechtstext td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.rechtstext th { background: var(--flaeche); font-weight: 700; color: var(--anthrazit); }

/* --- Bildergalerie ------------------------------------------------------ */
.galerie { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.galerie figcaption { margin-top: .55rem; font-size: .875rem; color: var(--text-leise); }

/* --- Bewegung sparsam --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --- Druck -------------------------------------------------------------- */
@media print {
  .leiste, .kopf, .aktion, .nav-mobil, .fuss__raster { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .seitenkopf { background: none; color: #000; padding-block: 0 1rem; }
  .seitenkopf h1, .seitenkopf .lead { color: #000; }
  .seitenkopf::before { display: none; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; word-break: break-all; }
}

/* --- Platzhalter, die vor dem Livegang gefüllt werden müssen ------------- */
.luecke {
  background: #fff3bf;
  border-bottom: 2px solid #f0b400;
  padding: 0 .25em;
  font-weight: 700;
  color: #6b4b00;
}
.luecke::before { content: '⚠ '; }


/* --- Kleine Hilfsklassen ------------------------------------------------
   Ersetzen die früheren style-Attribute. Die Content-Security-Policy in der
   .htaccess lässt nur Stile vom eigenen Server zu, deshalb steht hier alles,
   was sonst direkt im HTML stünde.
   --------------------------------------------------------------------- */
.abstand-xs { margin-top: 1rem; }
.abstand-s  { margin-top: 1.75rem; }
.abstand-m  { margin-top: 2.5rem; }
.abstand-l  { margin-top: 3rem; }
.ohne-abstand { margin: 0; }

.mittig       { justify-content: center; }
.mittig-text  { text-align: center; }

.klein { font-size: .9rem; }
.leise { color: var(--text-leise); }
.stern { color: var(--blau); }
.ohne-punkte { list-style: none; }
.voll  { width: 100%; height: auto; }

.kasten {
  padding: 1.5rem;
  background: var(--flaeche);
  border-radius: var(--radius);
}
.kastentitel { font-size: 1.0625rem; margin-bottom: .5rem; }

.bildrahmen {
  margin: 0;
  padding: 1.75rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}

.siegelkasten {
  display: inline-block;
  padding: 1.5rem 1.75rem;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}

/* --- Downloadzeile ------------------------------------------------------- */
.download {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--flaeche);
}
.download__symbol {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius);
  background: var(--blau-hell); color: var(--blau);
  display: grid; place-items: center; flex: none;
}
.download__symbol svg { width: 1.25rem; height: 1.25rem; }
.download__text { display: grid; gap: .25rem; }
.download__text strong { color: var(--anthrazit); }
.download__text > span { font-size: .93rem; color: var(--text-leise); }

/* noch nicht verfügbar */
.download--kommt { background: transparent; border-style: dashed; }
.block--dunkel .download {
  border-color: rgba(255,255,255,.22);
}
.block--dunkel .download__symbol { background: rgba(143,155,255,.16); color: #8f9bff; }
.block--dunkel .download__text strong { color: #fff; }
.block--dunkel .download__text > span { color: #a9b3c2; }
