@charset "utf-8";

/* ==========================================================================
   Nissen Kälteanlagenbau — Designsystem
   Gestaltungsidee: technisches Handbuch / Typenschild.
   Haarlinien statt Schatten, Monospace für Daten, asymmetrisches Raster.
   ========================================================================== */

/* --- Schriften (selbst gehostet, kein CDN) -------------------------------- */

@font-face {
  font-family: "Plex Sans";
  src: url("../fonts/plex-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Sans";
  src: url("../fonts/plex-sans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Cond";
  src: url("../fonts/plex-cond-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Cond";
  src: url("../fonts/plex-cond-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Farben */
  /* Alle Textfarben sind gegen ihren Untergrund auf mindestens 4,5:1 geprüft
     (WCAG 2.2 AA). Werte nicht aufhellen, ohne neu zu rechnen. */
  --ink:        #16191c;   /* Graphit — Text, Header, Footer */
  --ink-2:      #4b5157;   /* Nebentext — 7,1:1 auf Papier */
  --ink-3:      #5f656b;   /* Bildunterschriften, Meta — 4,7:1 auf der Tintfläche */
  --paper:      #f2f0ec;   /* warmes Papierweiß statt sterilem SaaS-Weiß */
  --paper-2:    #e7e4de;   /* abgesetzte Fläche */
  --line:       #cdc8c0;   /* Haarlinie */
  --line-soft:  #dfdbd4;
  --steel:      #1f4b66;   /* Stahlblau — Akzent, Links */
  --steel-dk:   #16394f;
  --rust:       #b8531f;   /* Rostorange — Flächen und Schaltflächen */
  --rust-text:  #a8491a;   /* dieselbe Farbe als Text — 5,1:1 auf Papier */
  --rust-dk:    #93400f;
  --white:      #ffffff;

  /* Typografie */
  --f-body: "Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-head: "Plex Cond", "Plex Sans", -apple-system, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Fließende Typo-Skala */
  --t-xs:   0.75rem;
  --t-sm:   0.8125rem;
  --t-base: 1.0625rem;
  --t-md:   clamp(1.125rem, 0.4vw + 1.03rem, 1.3125rem);
  --t-lg:   clamp(1.375rem, 1vw + 1.15rem, 1.75rem);
  --t-xl:   clamp(1.75rem, 2vw + 1.3rem, 2.5rem);
  --t-2xl:  clamp(2.125rem, 3.4vw + 1.35rem, 3.75rem);
  --t-3xl:  clamp(2.5rem, 5vw + 1.3rem, 5rem);

  /* Raster & Abstände */
  --gap:     clamp(1.25rem, 2.5vw, 2.25rem);
  --pad-x:   clamp(1.25rem, 5vw, 4.5rem);
  --sec-y:   clamp(3.5rem, 7vw, 6.5rem);
  --max:     78rem;
  --measure: 38rem;   /* Lesebreite Fließtext */

  --hdr-h: 4.25rem;
}

/* --- Reset ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 1.5rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-base)/1.65 var(--f-body);
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Papierkorn — nimmt der Fläche das Flache, ohne ein Bild zu laden */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:where(a):focus-visible,
:where(button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
  border-radius: 1px;
}

/* --- Typografie ----------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-wrap: balance;
  /* Sicherung: deutsche Komposita sind lang, nichts darf aus der Spalte laufen.
     Automatische Trennung bleibt aus - sie setzt in Überschriften falsche Fugen
     ("Kli-matechnik"). Nur weiche Trennstellen (&shy;) werden genutzt. */
  overflow-wrap: break-word;
  hyphens: manual;
}

.h-xl  { font-size: var(--t-2xl); text-transform: uppercase; letter-spacing: -0.015em; }
@media (min-width: 60rem) { .h-xl { font-size: var(--t-3xl); } }
.h-lg  { font-size: var(--t-2xl); text-transform: uppercase; letter-spacing: -0.01em; }
.h-md  { font-size: var(--t-xl); }
.h-sm  { font-size: var(--t-lg); }
.h-xs  { font-size: var(--t-md); font-weight: 600; line-height: 1.2; }

.lede {
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 44rem;
  text-wrap: pretty;
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose p { text-wrap: pretty; }
.prose strong { font-weight: 600; }
.prose h3 { font-size: var(--t-lg); margin-top: 2.2em; }
.prose h4 { font-size: var(--t-md); margin-top: 1.8em; font-weight: 600; }
/* Der globale Reset nimmt Listen ihre Aufzaehlungszeichen. Im Fliesstext der
   Rechtstexte muessen sie zurueck, sonst stehen die Punkte als lose Zeilen da. */
.prose ul, .prose ol { padding-left: 1.35em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: .35em; }
.prose li::marker { color: var(--ink-3); }

/* Anschriften und andere Blöcke, in denen jede Zeile stehen bleiben muss. */
.zeilen { line-height: 1.65; }

/* Tabellen im Fliesstext (Cookie-Uebersicht in der Datenschutzerklaerung).
   Auf schmalen Schirmen scrollt sie in sich, statt die Seite zu sprengen. */
.prose table {
  width: 100%; border-collapse: collapse;
  font-size: var(--t-xs); line-height: 1.55;
  display: block; overflow-x: auto;
}
@media (min-width: 40rem) { .prose table { display: table; font-size: var(--t-sm); } }
.prose th, .prose td {
  text-align: left; vertical-align: top;
  padding: .7rem .8rem; border-bottom: 1px solid var(--line);
}
.prose thead th {
  font: 500 var(--t-xs)/1.3 var(--f-mono);
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3);
  border-bottom: 2px solid var(--ink); white-space: nowrap;
}
/* Cookie-Namen nicht mitten im Wort umbrechen - unlesbar und sachlich falsch. */
.prose td code { font-family: var(--f-mono); font-size: .92em; white-space: nowrap; }
.prose td:first-child { white-space: nowrap; }

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

/* Monospace-Etikett — das wiederkehrende „Datenblatt"-Signal */
.tag {
  font: 500 var(--t-xs)/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--ink-3);
}
.tag--steel { color: var(--steel); }
.tag--rust  { color: var(--rust-text); }

/* --- Layout --------------------------------------------------------------- */

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--sec-y); }
.section--tint { background: var(--paper-2); }
.section--ink  { background: var(--ink); color: var(--paper); }
.section--ink .tag { color: #9aa1a8; }
.section--ink a { color: #9dc4dd; }
.section--ink a:hover { color: #e9a97f; }

/* Auf dunklem Grund müssen die gedämpften Textfarben umgedreht werden -
   --ink-2 auf Graphit erreicht sonst nicht die geforderten 4,5:1. */
.section--ink .lede,
.section--ink p,
.section--ink .steps p,
.section--ink .svc__item p,
.section--ink .proj__meta p,
.section--ink dd { color: #c2c8ce; }
.section--ink .figcap { color: #9aa1a8; border-top-color: #2b3035; }

/* Sektionskopf: Nummer + Label links, Überschrift rechts — asymmetrisch,
   wie die Kapitelmarke in einem technischen Handbuch. */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .9rem;
  padding-top: 1.15rem;
  border-top: 2px solid var(--ink);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section--ink .sec-head { border-top-color: var(--paper); }
.sec-head__meta { display: flex; align-items: baseline; gap: .7rem; }
.sec-head__no {
  font: 500 var(--t-xs)/1 var(--f-mono);
  color: var(--rust-text);
  letter-spacing: .08em;
}
.sec-head__body > * + * { margin-top: .85rem; }

@media (min-width: 56rem) {
  .sec-head { grid-template-columns: 13rem minmax(0, 1fr); gap: var(--gap); }
  .sec-head__meta { flex-direction: column; gap: .35rem; }
}

/* Zweispaltiges Redaktionsraster */
/* minmax(0, 1fr) statt der impliziten auto-Spalte: sonst waechst die Spalte auf
   die Mindestbreite ihres breitesten Kindes an - eine Tabelle oder ein langes
   Wort sprengt dann am Handy die ganze Seite nach rechts. */
.split { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) {
  .split { grid-template-columns: 13rem minmax(0, 1fr); }
  .split--half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide { grid-template-columns: minmax(0, 1fr) 22rem; }
}

.stack > * + * { margin-top: var(--flow, 1.25rem); }

/* --- Kopfzeile ------------------------------------------------------------ */

.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr__bar {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--pad-x);
  height: var(--hdr-h);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
}
.hdr__logo { display: flex; align-items: center; gap: .6rem; margin-right: auto; text-decoration: none; color: inherit; }
.hdr__logo svg { width: 2rem; height: 2rem; flex: none; }
.hdr__name {
  font: 700 1.0625rem/1 var(--f-head);
  text-transform: uppercase; letter-spacing: .04em;
}
.hdr__name span { display: block; font: 400 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .12em; color: var(--ink-3); }

.nav { display: none; }
@media (min-width: 62rem) { .nav { display: flex; gap: clamp(.9rem, 1.6vw, 1.6rem); align-items: center; } }
.nav a {
  font: 600 var(--t-sm)/1 var(--f-body);
  color: var(--ink); text-decoration: none;
  padding: .45rem 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--rust);
  transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--rust); }

/* Telefon in der Kopfzeile — das fehlende Konversionselement der alten Seite */
.hdr__tel {
  display: none;
  align-items: center; gap: .5rem;
  background: var(--rust); color: var(--white);
  padding: .6rem 1rem; text-decoration: none;
  font: 500 var(--t-sm)/1 var(--f-mono); letter-spacing: .02em;
  white-space: nowrap;
  transition: background .16s ease;
}
.hdr__tel:hover { background: var(--rust-dk); color: var(--white); }
@media (min-width: 48rem) { .hdr__tel { display: inline-flex; } }

.burger {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: none; border: 1px solid var(--ink); cursor: pointer;
  padding: .5rem .9rem; min-height: 2.75rem;
  font: 500 var(--t-xs)/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em;
}
@media (min-width: 62rem) { .burger { display: none; } }

.mobnav { border-top: 1px solid var(--line); background: var(--paper); }
.mobnav[hidden] { display: none; }
.mobnav ul { padding: .5rem var(--pad-x) 1.25rem; }
.mobnav a {
  display: block; padding: .8rem 0;
  border-bottom: 1px solid var(--line-soft);
  font: 600 var(--t-base)/1 var(--f-body);
  color: var(--ink); text-decoration: none;
}
.mobnav a[aria-current="page"] { color: var(--rust); }

/* --- Anrufleiste (nur Handy) ---------------------------------------------- */

.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
}
@media (min-width: 48rem) { .callbar { display: none; } }
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.5rem; padding: .5rem;
  font: 600 var(--t-sm)/1 var(--f-body); text-decoration: none;
}
.callbar__tel { background: var(--rust); color: var(--white); }
.callbar__mail { background: var(--ink); color: var(--paper); }
.callbar svg { width: 1.05rem; height: 1.05rem; flex: none; }
body { padding-bottom: 3.5rem; }
@media (min-width: 48rem) { body { padding-bottom: 0; } }

/* --- Schaltflächen -------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 2.9rem; padding: .75rem 1.4rem;
  font: 600 var(--t-sm)/1 var(--f-body);
  text-decoration: none; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--steel); border-color: var(--steel); color: var(--white); }
.btn--rust { background: var(--rust); border-color: var(--rust); color: var(--white); }
.btn--rust:hover { background: var(--rust-dk); border-color: var(--rust-dk); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.section--ink .btn--ghost { color: var(--paper); border-color: var(--paper); }
.section--ink .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn svg { width: 1rem; height: 1rem; flex: none; }

/* Pfeil-Link — Trefferflaeche mindestens 24px hoch (WCAG 2.2 AA, 2.5.8) */
.arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 600 var(--t-sm)/1 var(--f-body); text-decoration: none;
  padding: .55rem 0; min-height: 2rem;
}
.arrow::after { content: "→"; transition: transform .16s ease; }
.arrow:hover::after { transform: translateX(.25rem); }

/* --- Startbild ------------------------------------------------------------ */

.hero { border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; }
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; }
}
.hero__text {
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad-x) clamp(2.5rem, 5vw, 4rem);
  max-width: var(--max); margin-inline: auto; width: 100%;
}
@media (min-width: 60rem) {
  .hero__text { padding-right: clamp(2rem, 4vw, 3.5rem); margin-inline: 0; margin-left: auto; }
}
.hero h1 { margin-block: .55em .5em; }
.hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.hero__kicker::before {
  content: ""; width: 2.25rem; height: 2px; background: var(--rust); flex: none;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__media { position: relative; background: var(--paper-2); min-height: 16rem; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Bildunterschrift wie im Handbuch */
.figcap {
  font: 400 var(--t-xs)/1.5 var(--f-mono);
  color: var(--ink-3);
  padding-top: .55rem;
  border-top: 1px solid var(--line);
  margin-top: .55rem;
}
.hero__media .figcap {
  position: absolute; inset: auto 0 0 0; margin: 0;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  color: #cfd3d7; border-top: 0; padding: .6rem 1rem;
  backdrop-filter: blur(3px);
}

/* --- Leistungen ----------------------------------------------------------- */

.svc { border-top: 1px solid var(--line); }
.svc__item {
  display: grid; gap: 1rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 56rem) {
  .svc__item { grid-template-columns: 4rem minmax(0, 20rem) minmax(0, 1fr) auto; gap: var(--gap); align-items: baseline; }
}
.svc__no { font: 500 var(--t-sm)/1 var(--f-mono); color: var(--rust-text); }
.svc__item p { color: var(--ink-2); max-width: 34rem; }
.svc__item:hover { background: color-mix(in srgb, var(--paper-2) 55%, transparent); }

/* --- Typenschild ---------------------------------------------------------
   Das Merkzeichen der Seite: die Qualifikationen als echtes Maschinen-
   Typenschild. Jeder Kälteanlage hängt so eines an — das kennt seine Kundschaft.
   ------------------------------------------------------------------------- */

.plate {
  background: var(--ink); color: var(--paper);
  border: 1px solid #3a4046;
  padding: clamp(1.25rem, 3vw, 2rem);
  position: relative;
  box-shadow: inset 0 0 0 1px #23282d;
}
.plate::before, .plate::after {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6d757c, #2b3035 70%);
}
.plate::before { top: .6rem; left: .6rem; }
.plate::after  { top: .6rem; right: .6rem; }
.plate__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: .85rem; margin-bottom: .5rem;
  border-bottom: 1px solid #3a4046;
}
.plate__title {
  font: 700 var(--t-md)/1.1 var(--f-head);
  text-transform: uppercase; letter-spacing: .04em;
}
.plate dl { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 34rem) { .plate dl { grid-template-columns: 10.5rem minmax(0, 1fr); } }
.plate dt {
  font: 400 var(--t-xs)/1.5 var(--f-mono);
  text-transform: uppercase; letter-spacing: .1em; color: #8d949b;
  padding-top: .8rem;
}
.plate dd {
  font: 400 var(--t-sm)/1.55 var(--f-body);
  padding-bottom: .8rem; border-bottom: 1px solid #282d33;
}
@media (min-width: 34rem) { .plate dt { padding-bottom: .8rem; border-bottom: 1px solid #282d33; } }
.plate dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* --- Datentabelle --------------------------------------------------------- */

.dtable { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.dtable caption { text-align: left; padding-bottom: .8rem; }
.dtable th, .dtable td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable thead th {
  font: 500 var(--t-xs)/1.3 var(--f-mono);
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3);
  border-bottom: 2px solid var(--ink);
}
.dtable tbody th { font-weight: 600; }
.dtable td:last-child { font-family: var(--f-mono); color: var(--ink-2); }
.tscroll { overflow-x: auto; }

/* --- Projekte ------------------------------------------------------------- */

.proj { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.proj__item { border-top: 2px solid var(--ink); padding-top: 1.25rem; display: grid; gap: 1.25rem; }
@media (min-width: 56rem) {
  .proj__item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--gap); align-items: start; }
}
.proj__meta > * + * { margin-top: .8rem; }
.proj__specs { display: flex; flex-wrap: wrap; gap: .4rem; }
.proj__specs li {
  font: 400 var(--t-xs)/1 var(--f-mono);
  border: 1px solid var(--line); padding: .4rem .6rem; color: var(--ink-2);
  background: var(--white);
}

/* --- Prüfliste / Merkmale ------------------------------------------------- */

.checks { display: grid; gap: 0; }
.checks li {
  display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .5rem;
  padding: .75rem 0; border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.checks li::before {
  content: "→"; color: var(--rust-text); font-family: var(--f-mono); font-size: var(--t-sm);
}
.section--ink .checks li { border-bottom-color: #2b3035; }

/* --- Ablauf (nummerierte Schritte) ---------------------------------------- */

.steps { counter-reset: s; display: grid; gap: 0; }
.steps > li {
  counter-increment: s;
  display: grid; gap: .35rem 1.25rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 44rem) { .steps > li { grid-template-columns: 3.5rem minmax(0, 1fr); } }
.steps > li::before {
  content: counter(s, decimal-leading-zero);
  font: 500 var(--t-md)/1 var(--f-mono); color: var(--rust-text);
}
.steps p { color: var(--ink-2); max-width: 40rem; }

/* --- Zitat ---------------------------------------------------------------- */

.quote { border-left: 3px solid var(--rust); padding-left: clamp(1rem, 2.5vw, 1.75rem); }
.quote blockquote { font: 600 var(--t-lg)/1.35 var(--f-head); text-wrap: pretty; }
.quote figcaption { margin-top: 1rem; font: 400 var(--t-xs)/1.6 var(--f-mono); color: var(--ink-3); letter-spacing: .06em; }

/* --- Kundenstimmen -------------------------------------------------------- */

/* Kein Sternchen-Grafik und keine Karten mit Schatten: die Bewertung wird wie
   ein abgelesener Messwert gesetzt, passend zum Rest der Seite. */
.bewertung__wert {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: 1rem; border-bottom: 2px solid var(--ink);
}
.bewertung__wert strong { font: 700 var(--t-xl)/1 var(--f-head); letter-spacing: -.01em; }
.bewertung__wert > span { font: 400 var(--t-sm)/1 var(--f-body); color: var(--ink-2); }
.bewertung__anzahl {
  margin-left: auto;
  font: 400 var(--t-xs)/1.4 var(--f-mono) !important;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3) !important;
}

.stimmen { list-style: none; padding: 0; display: grid; gap: clamp(1.5rem, 4vw, 2.25rem); }
@media (min-width: 46rem) { .stimmen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .stimmen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Flex, damit die Namenszeile in allen Spalten auf einer Linie sitzt,
   auch wenn die Zitate unterschiedlich lang sind. */
.stimme { border-top: 1px solid var(--line); padding-top: 1.1rem; display: flex; flex-direction: column; }
.stimme blockquote {
  font: 400 var(--t-sm)/1.65 var(--f-body); color: var(--ink);
  text-wrap: pretty; hyphens: manual;
}
/* Anfuehrungszeichen haengt in den Rand, damit die Textkante gerade bleibt. */
.stimme blockquote::before { content: "„"; margin-left: -.42em; color: var(--rust-text); }
.stimme blockquote::after  { content: "“"; color: var(--rust-text); }
.stimme__quelle {
  margin-top: auto; padding-top: .9rem;
  font: 400 var(--t-xs)/1.5 var(--f-mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}

.stimmen__hinweis {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 46rem;
  font: 400 var(--t-xs)/1.7 var(--f-body); color: var(--ink-3);
}

/* --- FAQ ------------------------------------------------------------------ */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font: 600 var(--t-md)/1.3 var(--f-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  font: 400 1.5rem/1 var(--f-mono); color: var(--rust-text);
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 1.25rem; max-width: var(--measure); color: var(--ink-2); }
.faq details > div > * + * { margin-top: .9rem; }

/* --- Formular -------------------------------------------------------------
   Gestylt wird das Markup, das das Grav-Form-Plugin erzeugt
   (.form-field / .form-label / .form-data / .form-input-wrapper).
   Kein Template-Override, damit Validierung und CSRF-Schutz unangetastet bleiben.
   ------------------------------------------------------------------------- */

.form { display: grid; gap: 1.15rem; }

.form-field { display: block; }

.form-label label,
.form-field > .form-label label {
  display: block; margin-bottom: .35rem;
  font: 500 var(--t-xs)/1.3 var(--f-mono);
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2);
}
.form-label .required { color: var(--rust-text); margin-left: .15rem; }

.form-input-wrapper input,
.form-textarea-wrapper textarea,
.form-select-wrapper select {
  width: 100%; padding: .8rem .85rem;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0;
  min-height: 2.9rem; font: inherit;
}
.form-select-wrapper select { appearance: none; padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
                    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - .8rem) 1.3rem;
  background-size: .35rem .35rem, .35rem .35rem;
  background-repeat: no-repeat;
}
.form-textarea-wrapper textarea { min-height: 8rem; resize: vertical; }

.form-input-wrapper input:focus,
.form-textarea-wrapper textarea:focus,
.form-select-wrapper select:focus {
  outline: 2px solid var(--steel); outline-offset: -1px; border-color: var(--steel);
}

/* Einwilligung: Kästchen neben dem Text, nicht darüber */
.form-field.consent .form-label { display: none; }
.form-field.consent .form-input-wrapper {
  display: grid; grid-template-columns: 1.35rem minmax(0, 1fr); gap: .7rem; align-items: start;
}
.form-field.consent input[type="checkbox"] {
  width: 1.35rem; height: 1.35rem; min-height: 0; margin-top: .15rem;
  accent-color: var(--steel); padding: 0;
}
.form-field.consent label {
  font: 400 var(--t-sm)/1.55 var(--f-body);
  color: var(--ink-2); text-transform: none; letter-spacing: 0; margin: 0;
}

.form-description, .form__note { font: 400 var(--t-xs)/1.6 var(--f-mono); color: var(--ink-3); }
.form-description { display: block; margin-top: .35rem; }

.form-errors, .form__fehler { color: var(--rust-text); font-size: var(--t-sm); margin-top: .35rem; }
.form-errors .form-message { margin: 0; }

.buttons { margin-top: .5rem; }

/* Honigtopf gegen automatisierte Einträge. Muss unsichtbar bleiben, darf aber
   nicht display:none sein - manche Bots ignorieren ausgeblendete Felder. */
.form-honeybear {
  position: absolute !important; left: -9999px;
  height: 1px; width: 1px; overflow: hidden;
  clip-path: inset(50%); opacity: 0; pointer-events: none;
}

/* Rückmeldung nach dem Absenden */
.form-messages, .alert--erfolg {
  border: 1.5px solid var(--steel); border-left-width: 4px;
  background: color-mix(in srgb, var(--steel) 8%, var(--paper));
  padding: 1rem 1.25rem; margin-bottom: 1.25rem;
}

/* --- Kontaktkarte --------------------------------------------------------- */

.vcard { border: 1px solid var(--line); background: var(--white); padding: clamp(1.25rem, 3vw, 1.75rem); }
.vcard dl > div { padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.vcard dl > div:last-child { border-bottom: 0; }
.vcard dt { font: 500 var(--t-xs)/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.vcard dd { margin-top: .2rem; font-size: var(--t-sm); }
/* Trefferflaeche der Textlinks vergroessern, aber die Schaltflaeche in
   derselben Karte nicht mit erwischen - die bringt ihre eigene Polsterung mit. */
.vcard a:not(.btn) { font-weight: 600; display: inline-block; padding: .3rem 0; min-height: 1.75rem; }

/* --- Fußzeile ------------------------------------------------------------- */

.ftr { background: var(--ink); color: var(--paper); padding-block: clamp(2.75rem, 6vw, 4.5rem) 2rem; }
.ftr__grid { display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); }
@media (min-width: 52rem) { .ftr__grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
.ftr h2 { font-size: var(--t-sm); font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: #8d949b; margin-bottom: 1rem; }
.ftr a { color: var(--paper); text-decoration: none; }
.ftr a:hover { color: #e9a97f; text-decoration: underline; }
.ftr li a, .ftr address a { display: inline-block; padding: .3rem 0; min-height: 1.75rem; }
.ftr li + li { margin-top: .15rem; }
.ftr__brand { font: 700 var(--t-lg)/1 var(--f-head); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .75rem; }
.ftr address { font-style: normal; line-height: 1.8; font-size: var(--t-sm); }
.ftr__legal {
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.25rem; border-top: 1px solid #2b3035;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center;
  font: 400 var(--t-xs)/1.6 var(--f-mono); color: #8d949b;
}
.ftr__legal a {
  color: #8d949b; display: inline-block;
  padding: .3rem .3rem; margin-inline: -.3rem;   /* Trefferflaeche, ohne die Optik zu verschieben */
  min-height: 1.75rem; min-width: 1.75rem; text-align: center;
}
.ftr__legal a:hover { color: var(--paper); }

/* --- Hinweisbanner (Notdienst / wichtige Info) ---------------------------- */

.alert {
  border: 1.5px solid var(--rust); border-left-width: 4px;
  background: color-mix(in srgb, var(--rust) 7%, var(--paper));
  padding: 1rem 1.25rem;
  display: grid; gap: .4rem;
}
.alert__title { font: 700 var(--t-md)/1.2 var(--f-head); }
.alert p { font-size: var(--t-sm); color: var(--ink-2); }

/* --- Hilfsklassen --------------------------------------------------------- */

.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .7rem 1rem;
  text-decoration: none; font: 600 var(--t-sm)/1 var(--f-body);
  transition: top .16s ease;
}
.skip:focus { top: .5rem; color: var(--paper); }

.mono { font-family: var(--f-mono); }
.nowrap { white-space: nowrap; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.mt-md { margin-top: 1.5rem; }

/* Brotkrumen */
.crumbs { font: 400 var(--t-xs)/1.6 var(--f-mono); color: var(--ink-3); padding-block: 1rem; border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/ "; color: var(--line); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--rust-text); }

/* --- Einblenden beim Laden (nur Startbild, sparsam) ----------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal > * { animation: rise .55s cubic-bezier(.2,.7,.3,1) backwards; }
  .reveal > :nth-child(1) { animation-delay: .04s; }
  .reveal > :nth-child(2) { animation-delay: .11s; }
  .reveal > :nth-child(3) { animation-delay: .18s; }
  .reveal > :nth-child(4) { animation-delay: .25s; }
  @keyframes rise { from { opacity: 0; transform: translateY(.8rem); } }
}

/* --- Druck ---------------------------------------------------------------- */

@media print {
  .hdr, .callbar, .mobnav, .btn, .burger { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .section { padding-block: 1.5rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
