/* ==========================================================================
   Elite Painter – elitepainter.li
   Onepager. Eine Schriftfamilie, wenige Farben, keine Effekthascherei.
   ========================================================================== */

/* --- Schrift (lokal gehostet, kein Google-CDN -> kein DSGVO-Thema) -------- */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Werte ---------------------------------------------------------------- */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f5f4f2;
  --ink:       #1c1c1c;
  --ink-2:     #5c5b58;
  --line:      #e3e1de;
  --red:       #cc1517;   /* aus dem Logo */
  --red-dark:  #a51013;

  --font: 'Archivo', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  --container: 1180px;
  --gutter: 1.5rem;
  --header-h: 5.25rem;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);

  /* Leicht abgerundet, nicht verspielt. Grosse Flaechen brauchen einen
     groesseren Wert, sonst wirkt die Rundung an ihnen wie ein Fehler. */
  --radius:    6px;   /* Schaltflaechen, Eingabefelder, kleine Elemente */
  --radius-lg: 10px;  /* Bilder, Formular, Slider, Leistungsraster */
}

/* --- Grundlage ------------------------------------------------------------ */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--ink); color: #fff;
  padding: 0.7rem 1.1rem; text-decoration: none; font-weight: 600;
  border-radius: var(--radius);
  transition: top .15s;
}
.skip-link:focus { top: 0.75rem; }

/* --- Kopfbereich ---------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background-color .22s ease, border-color .22s ease;
}

.site-header__inner {
  display: flex; align-items: center; gap: 1.75rem;
  min-height: var(--header-h);
}

/* Beide Logofassungen liegen uebereinander, umgeblendet wird per Deckkraft.
   So gibt es beim Wechsel kein Nachladen und kein Springen. */
.brand { flex: none; position: relative; display: block; line-height: 0; }

.brand__mark {
  height: 3.5rem; width: auto;
  transition: opacity .22s ease;
}
.brand__mark--weiss {
  position: absolute; top: 0; left: 0;
  opacity: 0;
}

/* ---- Zustand nach dem Scrollen: roter Kopf, weisses Logo ---- */

.site-header.is-scrolled {
  background: var(--red);
  border-bottom-color: var(--red);
}
.site-header.is-scrolled .brand__mark--rot   { opacity: 0; }
.site-header.is-scrolled .brand__mark--weiss { opacity: 1; }

.site-header.is-scrolled .nav__link { color: rgba(255,255,255,.82); }
.site-header.is-scrolled .nav__link:hover { color: #fff; }
.site-header.is-scrolled .nav__link.is-active { color: #fff; border-bottom-color: #fff; }

.site-header.is-scrolled .header-phone {
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.site-header.is-scrolled .header-phone:hover {
  border-color: #fff; background: rgba(255,255,255,.12); color: #fff;
}
.site-header.is-scrolled .header-phone svg { stroke: #fff; }

.site-header.is-scrolled .nav-toggle { border-color: rgba(255,255,255,.45); }
.site-header.is-scrolled .nav-toggle__bars i { background: #fff; }

.site-header.is-scrolled a:focus-visible,
.site-header.is-scrolled button:focus-visible { outline-color: #fff; }

.nav { margin-left: auto; }

.nav__list { display: flex; align-items: center; gap: 1.9rem; }

.nav__link {
  display: block;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink-2);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); border-bottom-color: var(--red); }

.header-phone {
  flex: none;
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none;
  font-size: 0.9375rem; font-weight: 600;
  color: var(--ink);
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, color .15s;
}
.header-phone:hover { border-color: var(--red); color: var(--red); }
.header-phone svg {
  width: 1.0625rem; height: 1.0625rem; flex: none;
  fill: none; stroke: var(--red); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.65rem 0.7rem; cursor: pointer;
}
.nav-toggle__bars { display: block; width: 1.25rem; }
.nav-toggle__bars i {
  display: block; height: 2px; background: var(--ink);
  border-radius: 1px;
}
.nav-toggle__bars i + i { margin-top: 4px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.6rem;
  font: inherit; font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.btn--block { width: 100%; }

/* --- 1 · Home ------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: clamp(30rem, 76vh, 46rem);
  overflow: hidden;
  background: var(--ink);
}

.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,12,12,.86) 0%, rgba(12,12,12,.66) 42%, rgba(12,12,12,.28) 78%, rgba(12,12,12,.18) 100%),
    linear-gradient(0deg, rgba(12,12,12,.45) 0%, rgba(12,12,12,0) 55%);
}

.hero__inner {
  position: relative; z-index: 1;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  color: #fff;
}

.hero__title {
  max-width: 20ch;
  font-size: clamp(2.1rem, 5.1vw, 3.6rem);
  letter-spacing: -0.028em;
  line-height: 1.06;
}

.hero__lead {
  max-width: 52ch;
  margin-top: 1.4rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  color: rgba(255,255,255,.88);
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  margin-top: 2.1rem;
}

.hero__meta {
  margin-top: 1.6rem; margin-bottom: 0;
  font-size: 0.875rem; letter-spacing: 0.02em;
  color: rgba(255,255,255,.72);
}

/* --- Abschnitte ----------------------------------------------------------- */

.section {
  padding-block: var(--section-y);
  /* etwas Luft, damit die Überschrift nicht am Header klebt */
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 60ch; margin-bottom: clamp(2.75rem, 5vw, 4rem); }

.section__title {
  font-size: clamp(1.75rem, 3.3vw, 2.5rem);
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.section__lead {
  margin-top: 1rem; margin-bottom: 0;
  font-size: 1.125rem; line-height: 1.6;
  color: var(--ink-2);
}

/* --- 2 · Leistungen ------------------------------------------------------- */

/* Haarlinien-Raster statt schwebender Karten: ruhiger und klarer.
   overflow:hidden ist noetig, damit die Zellen die runden Ecken nicht ueberstehen. */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service {
  background: var(--bg);
  padding: clamp(1.85rem, 3vw, 2.5rem);
}

/* Icons stammen aus dem Flyer. Sie sind Flaechen, keine Strichgrafik - die
   Innenformen werden ueber evenodd ausgespart. Die Hoehe ist einheitlich,
   die Breite folgt der jeweiligen Form, genau wie auf dem Flyer. */
.service__icon {
  height: 2.75rem; width: auto;
  fill: var(--red);
  fill-rule: evenodd;
}

.service__title {
  margin-top: 1.35rem;
  font-size: 1.125rem; font-weight: 600;
  letter-spacing: -0.012em;
  text-wrap: balance;
  /* Platz fuer zwei Zeilen freihalten, damit die Fliesstexte im Raster
     auf gleicher Hoehe beginnen - egal wie lang der Titel ist. */
  line-height: 1.25;
  min-height: 2.5em;
}

.service__text {
  margin-top: 0.6rem; margin-bottom: 0;
  font-size: 0.9688rem; line-height: 1.62;
  color: var(--ink-2);
}

.services__note {
  margin-top: 1.75rem; margin-bottom: 0;
  font-size: 0.9688rem; color: var(--ink-2);
}
.services__note a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.services__note a:hover { color: var(--red-dark); }

/* --- 3 · Über mich -------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.about__media img {
  width: 100%;
  aspect-ratio: 9 / 11;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__body .section__title { margin-bottom: 1.5rem; }
.about__body p { color: var(--ink-2); max-width: 58ch; }
.about__body strong { color: var(--ink); font-weight: 600; }

.values {
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.values__item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9688rem;
  color: var(--ink-2);
}
.values__term {
  display: inline-block; min-width: 12rem;
  font-weight: 600; color: var(--ink);
}

/* --- 4 · Projekte --------------------------------------------------------- */

.slider { position: relative; }

.slider__viewport {
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}

.slider__track {
  display: flex;
  transition: transform .38s cubic-bezier(.4, 0, .2, 1);
}

.slide { flex: 0 0 100%; }
.slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.slider__btn {
  position: absolute; top: 50%; z-index: 2;
  transform: translateY(-50%);
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.slider__btn:hover { background: #fff; border-color: var(--red); }
.slider__btn svg {
  width: 1.35rem; height: 1.35rem;
  fill: none; stroke: var(--ink); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.slider__btn:hover svg { stroke: var(--red); }
.slider__btn--prev { left: 1rem; }
.slider__btn--next { right: 1rem; }
.slider__btn[disabled] { opacity: .35; cursor: default; }
.slider__btn[disabled]:hover { background: rgba(255,255,255,.94); border-color: var(--line); }
.slider__btn[disabled]:hover svg { stroke: var(--ink); }

.slider__count {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* --- 5 · Kontakt ---------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.info { margin: 0; border-top: 1px solid var(--line); }

.info__row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.info__label {
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 0.2rem;
}

.info__value { margin: 0; color: var(--ink); }
.info__value a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.info__value a:hover { color: var(--red); border-bottom-color: var(--red); }
.info__value--big { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }

/* Öffnungszeiten: eine Zeile pro Angabe. Untereinander statt nebeneinander -
   auf schmalen Bildschirmen bleibt so nichts kleben und nichts rutscht in die
   falsche Spalte. */
.hours { margin: 0; }
.hours li { line-height: 1.6; }
.hours__day { font-weight: 600; color: var(--ink); }
.hours__zu { margin-top: 0.55rem; }   /* trennt die Werktage vom Wochenende */

/* Link statt eingebetteter Karte - siehe Kommentar in index.html */
.info__map {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.7rem;
  font-size: 0.9375rem; font-weight: 600;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.info__map:hover { border-bottom-color: var(--red); }
.info__map svg {
  width: 1.05rem; height: 1.05rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
/* .info__value a ist spezifischer als .info__map und wuerde Farbe und Rahmen
   ueberschreiben - deshalb hier noch einmal mit hoeherer Spezifitaet. */
.info__value .info__map { color: var(--red); border-bottom-color: transparent; }
.info__value .info__map:hover { color: var(--red-dark); border-bottom-color: var(--red-dark); }

/* Formular */

.form { background: var(--bg); padding: clamp(1.75rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); }

.field { margin-bottom: 1.15rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

.field__label {
  display: block; margin-bottom: 0.4rem;
  font-size: 0.875rem; font-weight: 600;
  color: var(--ink);
}
.field__req { color: var(--red); }

.field__input {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s;
}
.field__input:hover { border-color: #cfccc7; }
.field__input:focus { border-color: var(--red); }
.field__input--area { resize: vertical; min-height: 8rem; line-height: 1.55; }
.field__input--select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5b58' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 9.5 12 15.5 18 9.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1.15rem;
  padding-right: 2.5rem;
}
.field__input[aria-invalid="true"] { border-color: var(--red); }

.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  min-height: 1.4em;
}
.form__status.is-ok { color: #1d6b3a; font-weight: 600; }
.form__status.is-error { color: var(--red); font-weight: 600; }

.form__note {
  margin: 1rem 0 0;
  font-size: 0.8125rem; line-height: 1.55;
  color: var(--ink-2);
}
.form__note a { color: var(--ink-2); }

/* --- Fussbereich ---------------------------------------------------------- */

/* Auf dem satten Rot bleibt die Schrift durchgehend reinweiss. Abgestufte
   Deckkraft wuerde den Kontrast unter den lesbaren Wert druecken - die
   Abstufung macht hier die Schriftgroesse, nicht die Farbe. */
.site-footer {
  background: var(--red);
  color: #fff;
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 5vw, 4rem);
}

.site-footer__brand img { height: 3.75rem; width: auto; }
.site-footer__claim {
  margin: 1.1rem 0 0;
  font-size: 0.875rem; line-height: 1.5;
  color: #fff;
}

.site-footer__head {
  margin: 0 0 0.7rem;
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff;
}
.site-footer__col p { line-height: 1.75; }
/* Auf Rot kann ein Link nicht "weisser" werden - der Hinweis beim Zeigen
   kommt deshalb ueber eine Unterlinie statt ueber die Farbe. */
.site-footer__col a {
  color: #fff; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer__col a:hover { border-bottom-color: #fff; }

.site-footer__bottom {
  padding-block: 1.15rem;
  border-top: 1px solid rgba(255,255,255,.3);
}
.site-footer__bottom p { margin: 0; font-size: 0.8125rem; color: #fff; }

/* --- WhatsApp-Knopf (schwebend, rechts unten) ----------------------------- */

.whatsapp-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 30;                 /* unter dem Kopfbereich (50) */
  width: 3.5rem; height: 3.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366;         /* WhatsApp-Gruen, Originalfarbe */
  color: #fff;                 /* weisses Zeichen - wie im Original */
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
}
.whatsapp-fab:active { transform: translateY(0); }
.whatsapp-fab svg { width: 1.7rem; height: 1.7rem; }

/* --- Rechtstexte (Impressum / Datenschutz) -------------------------------- */

/* Diese Seiten haben keine Navigation: Telefon rutscht nach rechts,
   der Fuss besteht nur aus der unteren Zeile. */
.site-header--legal .header-phone { margin-left: auto; }
.site-footer--legal .site-footer__bottom { border-top: 0; }
.site-footer--legal .site-footer__bottom a { color: inherit; }

.legal { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.legal__inner { max-width: 44rem; }
.legal h1 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); margin-bottom: 1.75rem; }
.legal h2 {
  font-size: 1.1875rem; font-weight: 600;
  margin-top: 2.5rem; margin-bottom: 0.65rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1.1em; }
.legal li { margin-bottom: 0.35rem; }
.legal a { color: var(--red); }
.legal__back {
  display: inline-block; margin-top: 3rem;
  font-weight: 600; color: var(--red); text-decoration: none;
}
.legal__back:hover { text-decoration: underline; }

/* --- Schmalere Bildschirme ------------------------------------------------ */

@media (max-width: 62rem) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
  .about__media { max-width: 24rem; }
  .about__media img { aspect-ratio: 4 / 5; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 52rem) {
  :root { --gutter: 1.25rem; --header-h: 4.5rem; }

  .nav-toggle { display: block; }
  .brand__mark { height: 2.75rem; }
  .header-phone span { display: none; }
  .header-phone { margin-left: auto; padding: 0.6rem 0.7rem; }
  .header-phone svg { width: 1.15rem; height: 1.15rem; }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    margin-left: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }
  .nav__link {
    padding: 0.85rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
  .nav__link.is-active { border-bottom-color: var(--line); color: var(--red); }

  /* Ist der Kopf rot, muss das aufgeklappte Menue mitfaerben –
     sonst staenden weisse Links auf weissem Grund. */
  .site-header.is-scrolled .nav {
    background: var(--red);
    border-bottom-color: var(--red);
  }
  .site-header.is-scrolled .nav__link { border-bottom-color: rgba(255,255,255,.22); }
  .site-header.is-scrolled .nav__link.is-active {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.22);
  }

  .services { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .info__row { grid-template-columns: 1fr; gap: 0.2rem; }
  .info__label { padding-top: 0; }
  .values__term { display: block; min-width: 0; }

  .slider__btn { width: 2.6rem; height: 2.6rem; }
  .slider__btn--prev { left: 0.6rem; }
  .slider__btn--next { right: 0.6rem; }

  .hero { align-items: flex-end; min-height: clamp(28rem, 82vh, 36rem); }
  .hero__title { max-width: none; }
  /* Der Zeilenumbruch ist fuer breite Bildschirme gesetzt, schmal bricht es von selbst */
  .hero__title br { display: none; }
}

@media (max-width: 30rem) {
  .hero__actions .btn { width: 100%; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Weniger Bewegung ----------------------------------------------------- */

@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 {
  .site-header, .nav-toggle, .slider__btn, .form, .skip-link { display: none !important; }
  .hero::after { display: none; }
  body { color: #000; }
}
