/*
Theme Name:   Büro Marxer
Theme URI:    https://www.bueromarxer.com
Author:       Swiss Media Design GmbH
Author URI:   https://swissmediadesign.com
Description:  Handgeschriebenes Theme für die Büro Marxer Büro-Systeme AG, Schaan. Aufgebaut auf dem Theme von Marxer Gastrochem, erweitert um Shop (WooCommerce), Konfigurator und Dashboard-Vorschau. Das Gelb des Logos trägt die Seite, Navy ist der Gegenpol. Flach, ohne Schatten, ohne Page Builder.
Version:      0.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  buero-marxer
*/

/* --------------------------------------------------------------------------
   1. Schriften (lokal, kein CDN). Inter = Lauftext, Archivo = Titel, Zahlen
   und Beschriftung. Archivo ist variabel in Stärke UND Breite (62 bis 125 %):
   schmal für Beschriftungen wie auf der Visitenkarte, normal für Titel.
   Beide OFL-lizenziert, übernommen aus dem Gastrochem-Theme.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design-Tokens. Gelb aus dem Logo auf Gelb (gemessen #ffdd00), Navy und
   Blau aus dem Stylesheet von bueromarxer.com. Gelb ist Fläche und Bühne,
   Navy ist Schrift und Gegenfläche. Keine weitere Farbe.
   -------------------------------------------------------------------------- */
:root {
  --gelb: #ffdd00;
  --gelb-tief: #f2cf00;
  --gelb-hell: #fff6bf;
  --navy: #192d68;
  --navy-tief: #111f4b;
  --blau: #25528d;
  --weiss: #ffffff;
  --papier: #f5f4ef;
  --ink: #17224a;
  --ink-soft: #4a5475;
  --line: rgba(25, 45, 104, 0.16);
  --line-strong: rgba(25, 45, 104, 0.42);
  --line-hell: rgba(255, 255, 255, 0.2);

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Typo-Skala: acht Grössen für die ganze Vorlage. */
  --fs-hero: clamp(3.3rem, 15.4vw, 5.75rem);
  --fs-h1: clamp(2.5rem, 6.4vw, 5.75rem);
  --fs-h2: clamp(2.05rem, 4.7vw, 4.25rem);
  --fs-h3: clamp(1.35rem, 2.1vw, 1.875rem);
  --fs-lead: clamp(1.15rem, 0.98rem + 0.62vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-klein: 0.9375rem;
  --fs-marke: 0.8125rem;

  --lh-titel: 0.96;
  --lh-ui: 1.3;
  --lh-text: 1.6;

  --wrap: 100rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: clamp(3.5rem, 7vw, 6.5rem);
  --space-6: clamp(4.5rem, 10vw, 10rem);

  --radius: 3px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  --topbar-h: 2.375rem;
  --header-h: 5.5rem;
}

@media (max-width: 60rem) {
  :root {
    --header-h: 4.25rem;
  }
}

/* --------------------------------------------------------------------------
   3. Reset und Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Kein weiches Rollen als Voreinstellung: Nach dem Schliessen des Menüs am Handy
   stellt theme.js die Seite zurück, sie rollte sonst sichtbar von oben herunter.
   Wo weich gerollt werden soll, verlangt es das Skript selbst. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-text);
  color: var(--ink);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  line-height: var(--lh-titel);
  letter-spacing: -0.022em;
  color: var(--navy);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.012em; }

p,
ul,
ol,
dl,
figure,
address {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

s {
  text-decoration-thickness: 1px;
}

[hidden] {
  display: none !important;
}

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

.site-footer :focus-visible,
.konfig-teaser :focus-visible,
.topbar :focus-visible {
  outline-color: var(--gelb);
}

::selection {
  background: var(--navy);
  color: var(--gelb);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 300;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--weiss);
  font-weight: 600;
  clip-path: inset(50%);
}

.skip-link:focus {
  clip-path: none;
}

/* --------------------------------------------------------------------------
   4. Layout-Helfer
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.42;
  letter-spacing: -0.008em;
  color: var(--ink);
  max-width: 44rem;
}

.abschnitt-kopf {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

@media (min-width: 60.0625rem) {
  .abschnitt-kopf {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-4);
    align-items: end;
  }
}

.abschnitt-kopf .lead {
  justify-self: start;
}

/* Verweis mit Pfeil: eine Form für die ganze Vorlage. */
.pfeil {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  transition: transform 0.35s var(--ease);
}

.link-pfeil {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 92%;
  font-size: 1.0625rem;
  color: var(--navy);
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--navy);
}

.link-pfeil:hover .pfeil,
.link-pfeil:focus-visible .pfeil,
.button:hover .pfeil,
.button:focus-visible .pfeil {
  transform: translateX(5px);
}

/* Platzhalter: sachlich markiert, damit nichts wie eine Tatsache aussieht. */
.platzhalter {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 85%;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.28rem 0.42rem 0.24rem;
  border: 1px dashed currentColor;
  border-radius: 2px;
  opacity: 0.86;
  vertical-align: 0.1em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. Kopf: schmale Zeile in Navy, darunter der gelbe Kopf. Klassen und
   Verhalten des Menüs kommen aus theme.js (unverändert aus dem
   Gastrochem-Theme): .site-top, .nav-toggle, .main-nav.is-open, body.nav-open.
   -------------------------------------------------------------------------- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  background: var(--navy);
  color: var(--weiss);
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 84%;
  font-size: 0.9375rem;
  line-height: 1;
  height: var(--topbar-h);
  overflow: hidden;
  transition: height 0.35s var(--ease);
}

/* Beim Rollen macht die schmale Zeile Platz (bm.js setzt die Klasse). */
.site-top.ist-gerollt .topbar {
  height: 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: var(--topbar-h);
}

.topbar__bereiche,
.fuss-ende__bereiche {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.6em;
}

.topbar__bereiche i,
.fuss-ende__bereiche i {
  font-style: normal;
  font-weight: 800;
  color: var(--gelb);
}

.topbar__kontakt {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  white-space: nowrap;
}

.topbar__kontakt a {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.topbar__kontakt a:hover {
  color: var(--gelb);
}

.zeiten-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.zeiten-status__marke {
  width: 0.6em;
  height: 0.6em;
  background: currentColor;
  opacity: 0.5;
}

.zeiten-status.ist-offen .zeiten-status__marke {
  background: var(--gelb);
  opacity: 1;
}

.site-header {
  background: var(--gelb);
  border-bottom: 2px solid var(--navy);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.75rem);
  height: var(--header-h);
}

.site-logo {
  flex: none;
  display: block;
}

.site-logo img {
  height: calc(var(--header-h) * 0.56);
  width: auto;
}

.main-nav {
  margin-left: auto;
}

.main-nav .menu {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.5rem);
}

.main-nav .menu > li {
  position: relative;
}

.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.main-nav .menu > li > a {
  display: block;
  position: relative;
  padding: 0.5rem 0;
}

/* Strich unter dem Menüpunkt: wächst von links, ohne Verlauf. */
.main-nav .menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.main-nav .menu > li > a:hover::after,
.main-nav .menu > li > a:focus-visible::after,
.main-nav .menu > .current-menu-item > a::after,
.main-nav .menu > li.is-offen > a::after {
  transform: scaleX(1);
}

.main-nav__kontakt {
  display: none;
}

.sub-toggle {
  display: none;
}

.kopf-korb {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: 1.0625rem;
  color: var(--navy);
  padding: 0.55rem 0.3rem 0.55rem 0;
}

.kopf-korb svg {
  width: 1.5rem;
  height: 1.5rem;
}

.kopf-korb__zahl {
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gelb);
  font-size: 0.875rem;
  font-weight: 800;
  font-stretch: 100%;
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
}

.nav-toggle {
  display: none;
}

@media (min-width: 60.0625rem) {
  .main-nav .sub-menu {
    position: absolute;
    left: -1.25rem;
    top: 100%;
    min-width: 15rem;
    padding: 0.6rem 0;
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.3s var(--ease), visibility 0.2s;
  }

  .main-nav .menu > li.is-offen > .sub-menu,
  html.no-js .main-nav .menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav .sub-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--weiss);
  }

  .main-nav .sub-menu a:hover,
  .main-nav .sub-menu a:focus-visible {
    background: var(--gelb);
    color: var(--navy);
  }
}

@media (max-width: 60rem) {
  .topbar__bereiche {
    display: none;
  }

  .topbar__kontakt {
    width: 100%;
    justify-content: space-between;
  }

  .kopf-korb {
    margin-left: auto;
  }

  .kopf-korb__text {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 3rem;
    height: 3rem;
    margin-right: -0.5rem;
    padding: 0 0.5rem;
    background: none;
    border: 0;
  }

  .nav-toggle__bar {
    display: block;
    height: 3px;
    background: var(--navy);
    transition: transform 0.35s var(--ease), opacity 0.2s ease;
  }

  body.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Offenes Menü: Der Scroll-Lock von theme.js fixiert den Body. Der Kopf
     ankert darum direkt am Fenster, das Padding ersetzt seinen Platz. */
  body.nav-open {
    padding-top: var(--site-top-h, calc(var(--topbar-h) + var(--header-h)));
  }

  body.nav-open .site-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--menu-top, calc(var(--topbar-h) + var(--header-h)));
    height: calc(100vh - var(--menu-top, calc(var(--topbar-h) + var(--header-h))));
    height: calc(100dvh - var(--menu-top, calc(var(--topbar-h) + var(--header-h))));
    margin: 0;
    z-index: 105;
    display: flex;
    flex-direction: column;
    background: var(--navy);
    padding: 1rem var(--gutter) max(1.5rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.4s var(--ease), visibility 0.25s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav .menu > li {
    border-bottom: 1px solid var(--line-hell);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .main-nav .menu > li > a {
    padding: 1rem 0;
    font-size: clamp(1.7rem, 7.6vw, 2.25rem);
    font-weight: 800;
    font-stretch: 86%;
    letter-spacing: -0.02em;
    color: var(--weiss);
  }

  .main-nav .menu > li > a::after {
    display: none;
  }

  .main-nav .menu > .current-menu-item > a {
    color: var(--gelb);
  }

  .sub-toggle {
    display: block;
    width: 3rem;
    height: 3rem;
    background: none;
    border: 0;
    position: relative;
  }

  .sub-toggle::before,
  .sub-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1rem;
    height: 3px;
    margin: -1.5px 0 0 -0.5rem;
    background: var(--gelb);
    transition: transform 0.3s var(--ease);
  }

  .sub-toggle::after {
    transform: rotate(90deg);
  }

  .is-sub-open > .sub-toggle::after {
    transform: rotate(0deg);
  }

  .main-nav .sub-menu {
    grid-column: 1 / -1;
    display: none;
    padding-bottom: 1rem;
  }

  .main-nav .is-sub-open > .sub-menu {
    display: block;
  }

  .main-nav .sub-menu a {
    display: block;
    padding: 0.45rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--weiss);
  }

  .main-nav__kontakt {
    display: grid;
    gap: 0.25rem;
    margin-top: auto;
    padding-top: 2rem;
    color: var(--weiss);
    font-size: var(--fs-klein);
  }

  .main-nav__kontakt a {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gelb);
  }
}

/* --------------------------------------------------------------------------
   6. Knöpfe: eine Klasse, drei Ausprägungen. Eckig, flach, ohne Schatten.
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.5rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 92%;
  font-size: 1.0625rem;
  line-height: 1.15;
  letter-spacing: -0.003em;
  color: var(--weiss);
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Hover nur mit Zeiger: Am Handy bliebe er nach dem Antippen stehen. */
.button:focus-visible {
  background: var(--blau);
  border-color: var(--blau);
}

@media (hover: hover) {
  .button:hover {
    background: var(--blau);
    border-color: var(--blau);
  }
}

.button--linie {
  background: transparent;
  color: var(--navy);
}

.button--linie:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--weiss);
}

@media (hover: hover) {
  .button--linie:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--weiss);
  }
}

.button--gelb {
  background: var(--gelb);
  border-color: var(--gelb);
  color: var(--navy);
}

.button--gelb:focus-visible {
  background: var(--weiss);
  border-color: var(--weiss);
  color: var(--navy);
}

@media (hover: hover) {
  .button--gelb:hover {
    background: var(--weiss);
    border-color: var(--weiss);
    color: var(--navy);
  }
}

.button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   7. Reveals (theme.js setzt .is-in). Ohne JS und bei reduzierter Bewegung
   ist alles sofort sichtbar.
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity var(--dur) ease, transform 0.9s var(--ease);
  transition-delay: calc(var(--stagger, 0) * 70ms);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   8. Startseite: Bühne in Gelb. Titel monumental, rechts das Gerät als
   Zeichnung mit dem Angebot aus dem Flyer, unten die vier Bereiche.
   -------------------------------------------------------------------------- */
.hero {
  background: var(--gelb);
  color: var(--navy);
  position: relative;
}

.hero__inner {
  display: grid;
  gap: var(--space-4);
  padding-top: clamp(2.25rem, 5.5vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.hero__titel {
  font-size: var(--fs-hero);
  font-weight: 800;
  font-stretch: 82%;
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin-left: -0.04em;
}

.hero__titel span {
  display: block;
}

.hero__lead {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 37rem;
  font-size: var(--fs-lead);
  line-height: 1.42;
}

.hero__lead strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  font-size: 1.12em;
  letter-spacing: -0.012em;
  margin-bottom: 0.3em;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.hero__buehne {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
  min-height: 19rem;
}

.hero__geraet {
  width: min(78%, 19rem);
}

.hero__geraet svg {
  width: 100%;
  height: auto;
}

/* Das Angebot: ein ruhiger Block in Navy, der Preis in Gelb. */
.hero__angebot {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  margin-top: -1.5rem;
  padding: 1.25rem 1.35rem 1.2rem;
  background: var(--navy);
  color: var(--weiss);
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
  transition: background-color 0.25s ease;
}

.hero__angebot:hover,
.hero__angebot:focus-visible {
  background: var(--navy-tief);
}

.hero__angebot-marke {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 84%;
  font-size: 0.9375rem;
  color: var(--gelb);
}

.hero__angebot-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: 1.125rem;
  line-height: 1.2;
}

.hero__angebot-preis {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.9rem;
  margin-top: 0.5rem;
}

.hero__angebot-zahl {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 96%;
  font-size: clamp(2.4rem, 3.5vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gelb);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero__angebot-zahl small {
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0;
  margin-right: 0.25em;
}

.hero__angebot-neu {
  font-size: var(--fs-klein);
  opacity: 0.8;
}

.hero__angebot-mehr {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 92%;
  font-size: 1rem;
}

.hero__angebot:hover .pfeil,
.hero__angebot:focus-visible .pfeil {
  transform: translateX(5px);
}

/* Die vier Bereiche der Visitenkarte als Register am Fuss der Bühne. */
.hero__bereiche {
  border-top: 2px solid var(--navy);
}

.hero__bereiche ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--wrap);
  margin-inline: auto;
}

.hero__bereiche a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 4.25rem;
  padding: 1rem var(--gutter);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 86%;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--navy);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.hero__bereiche li:nth-child(odd) a {
  border-right: 2px solid var(--navy);
}

.hero__bereiche li:nth-child(-n + 2) a {
  border-bottom: 2px solid var(--navy);
}

.hero__bereiche a:hover,
.hero__bereiche a:focus-visible {
  background: var(--navy);
  color: var(--gelb);
}

.hero__bereiche a:hover .pfeil,
.hero__bereiche a:focus-visible .pfeil {
  transform: translateX(4px);
}

@media (min-width: 60.0625rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 4rem);
    padding-top: clamp(2rem, 4.2vw, 3.75rem);
    padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
    /* Erster Bildschirm: Kopf, Bühne und das Register der vier Bereiche. */
    min-height: calc(100svh - var(--topbar-h) - var(--header-h) - 5.9rem);
  }

  .hero__text {
    align-self: center;
  }

  .hero__lead {
    font-size: clamp(1.15rem, 0.9rem + 0.5vw, 1.3125rem);
    max-width: 38rem;
  }

  .hero__titel {
    font-size: min(clamp(5rem, 7.5vw, 9.25rem), 14.5vh);
  }

  .hero__buehne {
    display: block;
    position: relative;
    min-height: 27rem;
  }

  .hero__geraet {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .hero__geraet svg {
    width: auto;
    height: clamp(24rem, 100%, 38rem);
    max-height: 100%;
  }

  .hero__angebot {
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(17rem, 52%);
    margin: 0;
  }

  .hero__bereiche ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-inline: var(--gutter);
  }

  .hero__bereiche a {
    min-height: 5.75rem;
    padding-inline: 1.5rem;
    border-bottom: 0 !important;
    border-right: 2px solid var(--navy);
  }

  .hero__bereiche li:first-child a {
    border-left: 2px solid var(--navy);
  }
}

/* Erstes Rollen: Die gelbe Bühne bleibt stehen, die Seite schiebt sich wie ein
   Blatt darüber. Nur wo die Bühne ganz ins Fenster passt (Desktop). Reines CSS,
   bm.js liefert dazu den Weg als --hero-weg (0 bis 1) für eine leise Gegenbewegung. */
@media (min-width: 60.0625rem) and (min-height: 43rem) {
  .hero {
    position: sticky;
    top: var(--header-h);
    z-index: 0;
  }

  main > .hero ~ * {
    position: relative;
    z-index: 1;
  }

  .hero__text {
    transform: translateY(calc(var(--hero-weg, 0) * 3.5rem));
  }

  .hero__geraet {
    transform: translateY(calc(var(--hero-weg, 0) * -2.5rem));
  }
}

/* Das Gerät baut sich beim Laden von unten nach oben auf. */
@keyframes teil-rein {
  from {
    opacity: 0;
    transform: translateY(-1.1rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

html.js .aufbau .geraet > .g-teil:not([data-aus]) {
  animation: teil-rein 0.7s var(--ease) both;
}

html.js .aufbau .geraet > .g-unterbau { animation-delay: 0.1s; }
html.js .aufbau .geraet > .g-rollen { animation-delay: 0.1s; }
html.js .aufbau .geraet > .g-kassetten { animation-delay: 0.22s; }
html.js .aufbau .geraet > .g-tuer { animation-delay: 0.34s; }
html.js .aufbau .geraet > .g-fach { animation-delay: 0.46s; }
html.js .aufbau .geraet > .g-scanner { animation-delay: 0.58s; }
html.js .aufbau .geraet > .g-bedienfeld { animation-delay: 0.74s; }
html.js .aufbau .geraet > .g-stapeleinzug { animation-delay: 0.82s; }

/* --------------------------------------------------------------------------
   9. Lösungen: die vier Bereiche als ruhige Tabelle. Jede Zeile eine Linie,
   beim Überfahren wird sie gelb.
   -------------------------------------------------------------------------- */
.loesungen {
  padding-block: var(--space-6) var(--space-5);
  background: var(--weiss);
}

.bereiche {
  border-bottom: 2px solid var(--navy);
}

.bereich {
  display: grid;
  gap: 0.9rem;
  padding: 1.75rem 0 2rem;
  border-top: 2px solid var(--navy);
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.bereich::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  background: var(--gelb);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}

.bereich:hover::before,
.bereich:focus-within::before,
.bereich:target::before,
.bereich.ist-aktiv::before {
  transform: scaleY(1);
}

.bereich__name {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 800;
  font-stretch: 82%;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.bereich__satz {
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 34rem;
}

.bereich__leistungen {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 92%;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.bereich__leistungen li {
  padding: 0.15rem 0;
}

.bereich__partner {
  font-size: var(--fs-klein);
  line-height: 1.5;
  color: var(--ink-soft);
}

.bereich__partner .link-pfeil {
  margin-top: 0.9rem;
  font-size: 1rem;
}

@media (min-width: 60.0625rem) {
  .bereich {
    grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 2.4fr) minmax(0, 1.9fr);
    gap: clamp(1.25rem, 2.5vw, 3rem);
    align-items: start;
    padding: 2.25rem 0 2.75rem;
  }

  .bereich__satz {
    padding-top: 0.5rem;
  }

  .bereich__leistungen,
  .bereich__partner {
    padding-top: 0.6rem;
  }
}

/* --------------------------------------------------------------------------
   10. Produktkarten und Preisblock (Startseite und Shop).
   -------------------------------------------------------------------------- */
.schaufenster {
  padding-block: var(--space-5) var(--space-6);
  background: var(--weiss);
}

.schaufenster .abschnitt-kopf {
  align-items: end;
}

.schaufenster__zeile {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.karten {
  display: grid;
  gap: clamp(1rem, 1.6vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
}

.karten > .reveal {
  display: grid;
}

.karte {
  display: grid;
  min-width: 0;
}

.karte__link {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  background: var(--weiss);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
}

.karte__buehne {
  position: relative;
  display: grid;
  place-items: end center;
  aspect-ratio: 1 / 0.92;
  padding: 1.75rem 1.5rem 1.25rem;
  background: var(--gelb);
  border-bottom: 2px solid var(--navy);
  transition: background-color 0.35s ease;
}

.karte__buehne svg {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.6s var(--ease);
}

.karte__link:hover .karte__buehne svg,
.karte__link:focus-visible .karte__buehne svg {
  transform: translateY(-0.4rem) scale(1.03);
}

.karte__marke {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  padding: 0.5rem 0.75rem 0.45rem;
  background: var(--navy);
  color: var(--gelb);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 84%;
  font-size: 0.875rem;
  line-height: 1;
}

.karte__text {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem 1.25rem;
}

.karte__zustand {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 84%;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--blau);
}

.karte__name {
  font-size: 1.3125rem;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.karte__zeile {
  font-size: var(--fs-klein);
  line-height: 1.4;
  color: var(--ink-soft);
}

.preis {
  display: grid;
  gap: 0.15rem;
  align-self: end;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.preis__unser {
  display: grid;
  gap: 0.1rem;
}

.preis__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 84%;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--navy);
}

.preis__zahl {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 96%;
  font-size: 2.125rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.preis__chf {
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0;
}

.preis__neu {
  font-size: var(--fs-klein);
  line-height: 1.35;
  color: var(--ink-soft);
}

.preis__spar {
  justify-self: start;
  margin-top: 0.45rem;
  padding: 0.32rem 0.55rem 0.28rem;
  background: var(--gelb);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 88%;
  font-size: 0.9375rem;
  line-height: 1.2;
  color: var(--navy);
  border-radius: 2px;
}

/* Handy: Karten liegend, damit vier Geräte nicht vier Bildschirme füllen. */
@media (max-width: 34rem) {
  .karte__link {
    grid-template-columns: 7.25rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .karte__marke {
    position: static;
    grid-column: 1 / -1;
  }

  .karte__buehne {
    aspect-ratio: auto;
    place-items: center;
    padding: 0.9rem 0.6rem;
    border-bottom: 0;
    border-right: 2px solid var(--navy);
  }

  .karte__buehne svg {
    width: 100%;
    height: auto;
    max-height: 9.5rem;
  }

  .karte__text {
    padding: 0.9rem 1rem 1rem;
  }

  .karte__name {
    font-size: 1.125rem;
  }

  .preis__zahl {
    font-size: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   11. Konfigurator-Einstieg: die eine Fläche in Navy. Das Gerät als weisse
   Linienzeichnung, zwei Schalter zeigen, wie es wächst.
   -------------------------------------------------------------------------- */
.konfig-teaser {
  background: var(--navy);
  color: var(--weiss);
  padding-block: var(--space-6);
  overflow: hidden;
}

.konfig-teaser h2 {
  color: var(--weiss);
}

.konfig-teaser h2 em {
  font-style: normal;
  color: var(--gelb);
}

.konfig-teaser .lead {
  color: var(--weiss);
  opacity: 0.9;
  margin-top: var(--space-3);
  max-width: 34rem;
}

.konfig-teaser__inner {
  display: grid;
  gap: var(--space-4);
}

.konfig-teaser__schalter {
  display: grid;
  margin-top: var(--space-4);
  border-top: 1px solid var(--line-hell);
  max-width: 34rem;
}

.schalter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-hell);
  cursor: pointer;
}

.schalter__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: 1.1875rem;
  line-height: 1.2;
}

.schalter input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

/* Schalter als eckiger Schieber: flach, ohne Rundung, ohne Schatten. */
.schalter__weg {
  width: 3.5rem;
  height: 1.875rem;
  border: 2px solid var(--weiss);
  border-radius: 2px;
  position: relative;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.schalter__weg::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  bottom: 3px;
  width: 1.25rem;
  background: var(--weiss);
  transition: transform 0.35s var(--ease), background-color 0.25s ease;
}

.schalter input:checked + .schalter__weg {
  background: var(--gelb);
  border-color: var(--gelb);
}

.schalter input:checked + .schalter__weg::after {
  transform: translateX(1.5rem);
  background: var(--navy);
}

.schalter input:focus-visible + .schalter__weg {
  outline: 3px solid var(--gelb);
  outline-offset: 3px;
}

.konfig-teaser__cta {
  margin-top: var(--space-4);
}

.konfig-teaser__buehne {
  --g-hell: var(--navy);
  --g-mittel: #22397d;
  --g-dunkel: #0f1d47;
  --g-linie: #ffffff;
  --g-papier: var(--gelb);
  --g-schirm: #22397d;
  --g-blau: #3a6db3;
  display: grid;
  place-items: end center;
  min-height: 18rem;
}

.konfig-teaser__buehne svg {
  width: min(100%, 34rem);
  height: auto;
}

/* Teile der Zeichnung blenden weich ein (bm.js nimmt data-aus weg). */
.geraet .g-teil {
  transition: opacity 0.45s ease, transform 0.6s var(--ease);
}

.geraet .g-teil[data-aus] {
  display: block;
  opacity: 0;
  pointer-events: none;
}

.geraet .g-finisher[data-aus] {
  transform: translateX(-70px);
}

.geraet .g-zusatzkassetten[data-aus] {
  transform: translateY(24px);
}

@media (min-width: 60.0625rem) {
  .konfig-teaser__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
  }

  .konfig-teaser__buehne svg {
    width: min(100%, 44rem);
  }
}

/* --------------------------------------------------------------------------
   12. Refurbishing: Wortlaut aus dem Flyer. Links das Gerät, das stehen
   bleibt, rechts der Ablauf. Darunter der Preisvergleich mit echten Zahlen
   und die Vorteile als Liste.
   -------------------------------------------------------------------------- */
.refurb {
  padding-block: var(--space-6);
  background: var(--weiss);
}

.refurb__raster {
  display: grid;
  gap: var(--space-4);
}

.refurb__geraet {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--papier);
  border-radius: var(--radius);
}

.refurb__geraet svg {
  width: min(100%, 21rem);
  height: auto;
}

/* Das Teil des aktuellen Schritts wird gelb, der Rest bleibt ruhig. */
.refurb__geraet .g-teil {
  transition: opacity 0.4s ease;
}

.refurb__geraet[data-schritt] .geraet > .g-teil:not([data-aus]) {
  opacity: 0.32;
}

.refurb__geraet[data-schritt="bedienfeld"] .geraet > .g-bedienfeld,
.refurb__geraet[data-schritt="scanner"] .geraet > .g-scanner,
.refurb__geraet[data-schritt="tuer"] .geraet > .g-tuer,
.refurb__geraet[data-schritt="kassetten"] .geraet > .g-kassetten,
.refurb__geraet[data-schritt="fach"] .geraet > .g-fach,
.refurb__geraet[data-schritt="alle"] .geraet > .g-teil:not([data-aus]) {
  opacity: 1;
}

.refurb__geraet[data-schritt="scanner"] .g-scanner .gk,
.refurb__geraet[data-schritt="tuer"] .g-tuer .gk,
.refurb__geraet[data-schritt="kassetten"] .g-kassetten .gk,
.refurb__geraet[data-schritt="fach"] .g-fach > .gk {
  fill: var(--gelb);
}

.refurb__ablauf > p {
  font-size: 1.125rem;
  max-width: 36rem;
}

.schritte {
  margin: var(--space-3) 0;
  border-bottom: 2px solid var(--navy);
}

.schritt {
  display: grid;
  gap: 0.25rem 1.5rem;
  padding: 1.15rem 0 1.25rem;
  border-top: 2px solid var(--navy);
  transition: opacity 0.4s ease;
}

.schritt__wort {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 84%;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--navy);
}

.schritt__satz {
  font-size: 1.0625rem;
  line-height: 1.5;
  max-width: 30rem;
}

@media (min-width: 40rem) {
  .schritt {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    align-items: baseline;
  }
}

@media (min-width: 60.0625rem) {
  .refurb__raster {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: start;
  }

  .refurb__geraet {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    min-height: min(34rem, calc(100vh - var(--header-h) - 4rem));
  }

  html.js .refurb__ablauf .schritt {
    opacity: 0.4;
  }

  html.js .refurb__ablauf .schritt.ist-aktiv,
  html.js .refurb__ablauf.ist-fertig .schritt {
    opacity: 1;
  }
}

/* Preisvergleich: zwei Balken je Gerät, Längen im echten Verhältnis. */
.vergleich {
  margin-top: var(--space-5);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--gelb);
  border-radius: var(--radius);
}

.vergleich__kopf {
  display: grid;
  gap: 0.75rem;
  margin-bottom: var(--space-4);
}

.vergleich__kopf p {
  max-width: 40rem;
  font-size: 1.0625rem;
}

.vergleich__zeile {
  display: grid;
  gap: 0.6rem 2rem;
  padding: 1.25rem 0;
  border-top: 2px solid var(--navy);
}

.vergleich__zeile:last-child {
  border-bottom: 2px solid var(--navy);
}

.vergleich__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--navy);
}

.vergleich__name small {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-klein);
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--ink);
}

.vergleich__balken {
  display: grid;
  gap: 0.4rem;
  align-content: center;
}

.balken {
  display: grid;
  gap: 0.3rem;
}

.balken__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 88%;
  font-size: 0.9375rem;
  line-height: 1.2;
  color: var(--navy);
}

/* Die Fläche trägt keinen Text: ihre Länge ist allein der Preis. */
.balken__flaeche {
  display: block;
  height: 1.125rem;
  width: calc(var(--anteil) * 1%);
  border: 2px solid var(--navy);
  border-radius: 2px;
  transform-origin: left;
}

.balken--unser .balken__flaeche {
  background: var(--navy);
}

html.js .vergleich .balken__flaeche {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}

html.js .vergleich.is-in .balken__flaeche {
  transform: none;
}

@media (min-width: 40rem) {
  .balken {
    grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
  }
}

.vergleich__spar {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 92%;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.vergleich__spar small {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 84%;
  font-size: 0.875rem;
  letter-spacing: 0;
}

@media (min-width: 60.0625rem) {
  .vergleich__kopf {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: var(--space-4);
  }

  .vergleich__zeile {
    grid-template-columns: minmax(0, 3.2fr) minmax(0, 6fr) minmax(0, 1.8fr);
    align-items: center;
  }

  .vergleich__spar {
    text-align: right;
  }
}

.vorteile {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.vorteile__liste {
  border-bottom: 2px solid var(--navy);
}

.vorteile__liste li {
  padding: 0.95rem 0 1rem;
  border-top: 2px solid var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--navy);
}

.vorteile__schluss {
  font-size: var(--fs-lead);
  line-height: 1.42;
  max-width: 46rem;
}

.vorteile__demo {
  margin-top: 1rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

@media (min-width: 60.0625rem) {
  .vorteile {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   13. Showroom und Team
   -------------------------------------------------------------------------- */
.haus {
  background: var(--papier);
  padding-block: var(--space-6);
}

.showroom {
  display: grid;
  gap: var(--space-4);
}

.showroom__bild {
  position: relative;
}

.showroom__bild img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.showroom__bild figcaption,
.bildhinweis {
  margin-top: 0.6rem;
  font-size: var(--fs-marke);
  line-height: 1.4;
  color: var(--ink-soft);
}

.showroom__text .lead {
  margin-top: var(--space-3);
}

.fakten {
  margin-top: var(--space-4);
  border-bottom: 2px solid var(--navy);
}

/* Eine Zeile ist EIN Raster, die Linie liegt an der Zeile (Muster aus dem Gastrochem-Theme). */
.fakten__zeile {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 2px solid var(--navy);
}

.fakten dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 86%;
  font-size: 1rem;
  color: var(--navy);
}

.fakten dd {
  margin: 0;
}

.showroom__cta {
  margin-top: var(--space-4);
}

@media (min-width: 60.0625rem) {
  .showroom {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
  }
}

.team {
  margin-top: var(--space-6);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

/* Team als Karten in der Formsprache der Seite: Rahmen in Navy, oben das
   Bild auf Gelb, darunter Name und Funktion. Wo noch kein Foto vorliegt,
   stehen zwei Tasten mit den Initialen (die Tasten des Logos, vereinfacht). */
.team__raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.person {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  background: var(--weiss);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
}

.person__bild {
  position: relative;
  aspect-ratio: 1;
  background: var(--gelb);
  border-bottom: 2px solid var(--navy);
  overflow: hidden;
}

.person__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.7s var(--ease);
}

.person__leer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8% 14% 16%;
}

.person__leer .tasten {
  width: 100%;
  height: auto;
}

.person__leer .platzhalter {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
}

.tasten__seite {
  fill: var(--blau);
}

.tasten__kappe {
  fill: var(--weiss);
}

.tasten__buchstabe {
  fill: var(--blau);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
}

.person__text {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.7rem 0.75rem 0.85rem;
}

.person__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 86%;
  font-size: 1.0625rem;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--navy);
}

.person__rolle {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 84%;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--blau);
}

/* Namen werden nie getrennt. Funktionen brechen nur an der vorgesehenen Stelle. */
.person__name,
.person__rolle {
  hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}

@media (hover: hover) {
  .person:hover {
    background: var(--gelb);
  }

  .person:hover .person__bild img {
    transform: scale(1.04);
  }
}

@media (min-width: 40rem) {
  .team__raster {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .person__text {
    padding: 0.95rem 1.05rem 1.1rem;
  }

  .person__name {
    font-size: 1.25rem;
  }

  .person__rolle {
    font-size: 0.9375rem;
  }
}

@media (min-width: 60.0625rem) {
  .team__raster {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 1.6vw, 1.5rem);
  }

  .person__name {
    font-size: 1.375rem;
  }
}

/* Kompakt (Kontaktseite): am Desktop sechs Spalten, am Handy eine Reihe zum Wischen. */
@media (min-width: 60.0625rem) {
  .team--kompakt .team__raster {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
  }

  .team--kompakt .person__text {
    padding: 0.75rem 0.8rem 0.9rem;
  }

  .team--kompakt .person__name {
    font-size: 1.0625rem;
  }

  .team--kompakt .person__rolle {
    font-size: 0.8125rem;
  }
}

@media (max-width: 39.99rem) {
  .team--kompakt .team__raster {
    display: flex;
    gap: 0.75rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .team--kompakt .team__raster::-webkit-scrollbar {
    display: none;
  }

  .team--kompakt .person {
    flex: 0 0 46%;
    scroll-snap-align: start;
  }
}

/* --------------------------------------------------------------------------
   14. Geschichte seit 1941: die zweite gelbe Fläche. Das Gründungsjahr
   riesig, die Stationen als Zeile, drei Rahmen für Bilder aus dem Archiv.
   -------------------------------------------------------------------------- */
.chronik {
  background: var(--gelb);
  padding-block: var(--space-6);
  overflow: hidden;
}

.chronik__kopf {
  display: grid;
  gap: var(--space-2);
}

.chronik__jahr {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(7.5rem, 31vw, 30rem);
  line-height: 0.74;
  letter-spacing: -0.055em;
  color: var(--navy);
  margin-left: -0.05em;
  font-variant-numeric: tabular-nums;
}

.chronik__jahr small {
  display: block;
  font-size: 0.115em;
  font-stretch: 88%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 0.35em 0.42em;
}

.chronik__titel {
  max-width: 14ch;
}

.chronik__liste {
  display: grid;
  margin-top: var(--space-5);
  border-bottom: 2px solid var(--navy);
}

.station {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 0 1.25rem;
  border-top: 2px solid var(--navy);
}

.station__jahr {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 86%;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.station__satz {
  font-size: 1.0625rem;
  line-height: 1.5;
}

.chronik__archiv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1.5rem);
  margin-top: var(--space-5);
}

.archivbild {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: end start;
  padding: 0.75rem;
  border: 2px dashed var(--navy);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 85%;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: var(--navy);
}

@media (min-width: 60.0625rem) {
  .chronik__kopf {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: var(--space-4);
  }

  .chronik__titel {
    padding-bottom: 0.4rem;
    text-align: right;
  }

  .chronik__liste {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-bottom: 0;
    border-top: 2px solid var(--navy);
  }

  .station {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    align-content: start;
    padding: 1.5rem 1.5rem 0 0;
    border-top: 0;
  }

  .station__jahr {
    font-size: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   15. Fuss: Kontakt in Navy.
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--weiss);
  padding-block: var(--space-6) var(--space-4);
  scroll-margin-top: var(--header-h);
}

.site-footer h2,
.site-footer h3 {
  color: var(--weiss);
}

.fuss-ruf {
  display: grid;
  gap: var(--space-2);
  padding-bottom: var(--space-5);
}

.fuss-ruf__titel {
  font-size: var(--fs-h3);
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -0.012em;
  line-height: 1.15;
}

.fuss-ruf__nummer a {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 82%;
  font-size: clamp(3rem, 11.4vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--gelb);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.09em;
  transition: text-decoration-color 0.3s ease;
}

.fuss-ruf__nummer a:hover,
.fuss-ruf__nummer a:focus-visible {
  text-decoration-color: var(--gelb);
}

.fuss-ruf__status {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 88%;
  font-size: 1.125rem;
  min-height: 1.5em;
}

.fuss-raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line-hell);
  font-size: var(--fs-klein);
  line-height: 1.6;
}

.fuss-titel {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-stretch: 86%;
  letter-spacing: 0;
  color: var(--gelb) !important;
}

.fuss-titel--zweit {
  margin-top: 1.5rem;
}

.fuss-spalte li {
  padding: 0.12rem 0;
}

.fuss-spalte a,
.link-text {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.25s ease;
}

.link-text {
  text-decoration-color: currentColor;
}

.fuss-spalte a:hover,
.fuss-spalte a:focus-visible {
  text-decoration-color: currentColor;
}

.fuss-spalte p + p,
.fuss-spalte address + p {
  margin-top: 0.75rem;
}

/* Die Mailadresse bleibt auf einer Zeile. Am Handy bekommt "Unser Büro"
   dafür die ganze Breite, die vier übrigen Blöcke stehen zwei und zwei. */
.fuss-spalte a[href^="mailto:"],
.kontakt__block a[href^="mailto:"] {
  white-space: nowrap;
}

@media (max-width: 60rem) {
  .fuss-raster > .fuss-spalte:first-child {
    grid-column: 1 / -1;
  }
}

.fuss-ende {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-hell);
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 86%;
  font-size: 0.9375rem;
}

.fuss-ende .site-logo img {
  height: 2.75rem;
}

.fuss-ende__recht {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.fuss-vorlage {
  margin-top: var(--space-4);
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  font-size: var(--fs-marke);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.fuss-vorlage a {
  color: var(--gelb);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
}

@media (min-width: 60.0625rem) {
  .fuss-raster {
    grid-template-columns: 1.5fr 1.2fr 1fr 1fr 1fr;
  }

  .fuss-ende {
    grid-template-columns: auto 1fr auto auto;
    gap: var(--space-4);
  }
}

/* "Nach oben" steht fest im Fuss: Ein schwebender Knopf würde am Handy
   Inhalte verdecken (Fotos, Formularfelder). */
.fuss-oben {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  padding: 0.45rem 0;
  background: none;
  border: 0;
  border-bottom: 2px solid var(--gelb);
  font: inherit;
  color: var(--weiss);
}

.fuss-oben svg {
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 0.3s var(--ease);
}

.fuss-oben:focus-visible {
  color: var(--gelb);
}

@media (hover: hover) {
  .fuss-oben:hover {
    color: var(--gelb);
  }

  .fuss-oben:hover svg {
    transform: translateY(-3px);
  }
}

/* --------------------------------------------------------------------------
   16. Unterseiten: Seitenkopf in Gelb und ruhiger Inhalts-Fluss.
   -------------------------------------------------------------------------- */
.page-header {
  background: var(--gelb);
  border-bottom: 2px solid var(--navy);
  padding-block: clamp(2rem, 5vw, 4rem) clamp(1.75rem, 4vw, 3.25rem);
}

.page-header h1 {
  max-width: 20ch;
}

.page-header .lead {
  margin-top: var(--space-3);
}

.krumen {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 86%;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.krumen ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0;
}

.krumen li + li::before {
  content: "//";
  margin: 0 0.5em;
  font-weight: 800;
  opacity: 0.45;
}

.krumen a {
  border-bottom: 1px solid transparent;
}

.krumen a:hover,
.krumen a:focus-visible {
  border-bottom-color: currentColor;
}

.inhalt {
  padding-block: var(--space-5) var(--space-6);
  max-width: 46rem;
}

.inhalt > * + * {
  margin-top: 1.1em;
}

.inhalt h2 {
  font-size: var(--fs-h3);
  margin-top: 2em;
}

.inhalt a {
  border-bottom: 1px solid currentColor;
}

.inhalt ul {
  list-style: square;
  padding-left: 1.2em;
}

.hinweisbox {
  padding: 1.25rem 1.5rem;
  background: var(--gelb-hell);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   18. Bereichsseiten (Cloud, Security, Copy&Print, Smart Office): Bühne in
   Gelb mit Szene, Einstieg, Schwerpunkt in Navy, Leistungen, Partner.
   -------------------------------------------------------------------------- */
.hero--bereich .krumen {
  margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

.hero__buehne--szene {
  min-height: 0;
}

.hero__szene svg {
  width: 100%;
  height: auto;
}

.hero__bereiche a[aria-current="page"] {
  background: var(--navy);
  color: var(--gelb);
}

@media (min-width: 60.0625rem) {
  .hero--bereich .hero__titel {
    font-size: min(clamp(5rem, 8.4vw, 10.5rem), 16.5vh);
  }

  .hero__buehne--szene {
    min-height: 24rem;
  }

  .hero__szene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .hero__szene svg {
    width: 100%;
    height: 100%;
  }
}

/* Die Teile einer Szene bauen sich nacheinander auf. */
html.js .aufbau .geraet > .g-schrank,
html.js .aufbau .geraet > .g-schild,
html.js .aufbau .geraet > .g-kabine-s,
html.js .aufbau .geraet > .g-szene-plotter { animation-delay: 0.1s; }
html.js .aufbau .geraet > .g-wolke,
html.js .aufbau .geraet > .g-endpoint,
html.js .aufbau .geraet > .g-kabine-m,
html.js .aufbau .geraet > .g-szene-mfp { animation-delay: 0.3s; }
html.js .aufbau .geraet > .g-arbeitsplatz,
html.js .aufbau .geraet > .g-server,
html.js .aufbau .geraet > .g-szene-drucker { animation-delay: 0.5s; }
html.js .aufbau .geraet > .g-firewall { animation-delay: 0.65s; }
html.js .aufbau .geraet > .g-leitung-wolke,
html.js .aufbau .geraet > .g-leitung-haus,
html.js .aufbau .geraet > .g-leitungen { animation-delay: 0.85s; }

.einstieg {
  padding-block: var(--space-6) var(--space-5);
  background: var(--weiss);
}

.einstieg__raster {
  display: grid;
  gap: var(--space-4);
}

.einstieg__text p + p {
  margin-top: 1.1rem;
}

.einstieg__text p:not(.lead) {
  font-size: 1.125rem;
  max-width: 40rem;
}

@media (min-width: 60.0625rem) {
  .einstieg__raster {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: start;
  }
}

/* Schwerpunkt: die eine Fläche in Navy je Bereich. */
.schwerpunkt {
  background: var(--navy);
  color: var(--weiss);
  padding-block: var(--space-6);
  overflow: hidden;
}

.schwerpunkt h2,
.schwerpunkt h3 {
  color: var(--weiss);
}

.schwerpunkt .lead {
  color: var(--weiss);
  opacity: 0.92;
}

.schwerpunkt__raster {
  display: grid;
  gap: var(--space-4);
}

.schwerpunkt__text .lead {
  margin-top: var(--space-3);
}

.blaupause {
  --g-hell: var(--navy);
  --g-mittel: #22397d;
  --g-dunkel: #0f1d47;
  --g-linie: #ffffff;
  --g-papier: var(--gelb);
  --g-schirm: #22397d;
  --g-blau: #3a6db3;
}

.schwerpunkt__bild svg {
  width: 100%;
  height: auto;
}

@media (min-width: 60.0625rem) {
  .schwerpunkt__raster {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
  }
}

/* Cloud: drei Wege, die Zeichnung zeigt, was gemeint ist. */
.wege__wahl {
  display: grid;
  gap: 0.6rem;
  margin-top: var(--space-4);
}

.wege__knopf {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.15rem 1.05rem;
  text-align: left;
  background: transparent;
  border: 2px solid var(--line-hell);
  border-radius: var(--radius);
  color: var(--weiss);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

@media (hover: hover) {
  .wege__knopf:hover {
    border-color: var(--weiss);
  }
}

.wege__knopf[aria-pressed="true"] {
  background: var(--gelb);
  border-color: var(--gelb);
  color: var(--navy);
}

.wege__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: 1.375rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.wege__satz {
  font-size: 0.9375rem;
  line-height: 1.45;
}

[data-wege-bild][data-weg="haus"] .geraet > .g-wolke,
[data-wege-bild][data-weg="haus"] .geraet > .g-leitung-wolke,
[data-wege-bild][data-weg="wolke"] .geraet > .g-schrank,
[data-wege-bild][data-weg="wolke"] .geraet > .g-leitung-haus {
  opacity: 0.16;
}

/* Security: Schutz in Schichten, in der Mitte die Daten. */
.schichten {
  display: grid;
}

.schicht {
  position: relative;
  display: grid;
  padding: 2.6rem clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
}

.schicht__name {
  position: absolute;
  left: clamp(0.75rem, 2vw, 1.5rem);
  top: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 86%;
  font-size: 1rem;
  line-height: 1;
}

.schicht--kern {
  place-items: center;
  padding: clamp(1.75rem, 5vw, 3.5rem) 1rem;
  background: var(--gelb);
  border-color: var(--gelb);
  color: var(--navy);
}

.schicht--kern .schicht__name {
  position: static;
  font-weight: 800;
  font-stretch: 84%;
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  letter-spacing: -0.025em;
}

/* Copy&Print: EasyPrint+. */
.easyprint__kopf {
  display: grid;
  gap: var(--space-3);
}

.easyprint__liste {
  display: grid;
  margin-top: var(--space-5);
  border-top: 1px solid var(--line-hell);
}

.easyprint__liste li {
  padding: 1.5rem 0 1.6rem;
  border-bottom: 1px solid var(--line-hell);
}

.easyprint__liste h3 {
  font-size: 1.5rem;
}

.easyprint__liste p {
  margin-top: 0.6rem;
  line-height: 1.55;
  opacity: 0.9;
}

.easyprint__fuss {
  display: grid;
  gap: 1.25rem;
  align-content: center;
  justify-items: start;
}

.easyprint__fuss p {
  margin: 0 !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: 1.25rem;
  line-height: 1.3 !important;
  color: var(--gelb);
  opacity: 1 !important;
}

@media (min-width: 60.0625rem) {
  .easyprint__kopf {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-4);
    align-items: end;
  }

  .easyprint__liste {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 3vw, 3.5rem);
    border-top: 0;
  }

  .easyprint__liste li {
    border-top: 1px solid var(--line-hell);
    border-bottom: 0;
    padding: 1.75rem 0 2.25rem;
  }
}

/* Smart Office: SONUS mit Messwerten. */
.sonus__kopf {
  display: grid;
  gap: var(--space-3);
}

.sonus__raster {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.sonus__werte {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.sonus__wert strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gelb);
  white-space: nowrap;
}

.sonus__wert span {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--fs-klein);
  line-height: 1.4;
  opacity: 0.9;
}

.sonus__saeulen {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(0.35rem, 1.2vw, 1.25rem);
  height: clamp(13rem, 25vw, 21rem);
  border-bottom: 2px solid var(--weiss);
}

.sonus__saeule {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
}

.sonus__saeule i {
  display: block;
  height: calc(var(--hoehe) * 0.84%);
  background: var(--gelb);
  transform-origin: bottom;
}

html.js .sonus__messung .sonus__saeule i {
  transform: scaleY(0);
  transition: transform 1s var(--ease);
}

html.js .sonus__messung.is-in .sonus__saeule i {
  transform: none;
}

.sonus__saeule:nth-child(2) i { transition-delay: 0.06s; }
.sonus__saeule:nth-child(3) i { transition-delay: 0.12s; }
.sonus__saeule:nth-child(4) i { transition-delay: 0.18s; }
.sonus__saeule:nth-child(5) i { transition-delay: 0.24s; }
.sonus__saeule:nth-child(6) i { transition-delay: 0.3s; }
.sonus__saeule:nth-child(7) i { transition-delay: 0.36s; }

.sonus__db {
  padding-bottom: 0.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.8125rem, 1.4vw, 1.125rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sonus__hz {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.7rem;
  font-size: var(--fs-marke);
  line-height: 1;
  opacity: 0.85;
}

.sonus__messung figcaption {
  margin-top: 2.6rem;
  font-size: var(--fs-marke);
  line-height: 1.45;
  opacity: 0.8;
  max-width: 44rem;
}

.sonus__modelle {
  display: grid;
  gap: 1rem;
  margin-top: var(--space-5);
}

.sonus__modell {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
}

.sonus__modell h3 {
  font-size: 1.75rem;
}

.sonus__mass {
  font-size: var(--fs-klein);
  opacity: 0.85;
}

.sonus__preis {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 96%;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gelb);
  white-space: nowrap;
}

.sonus__preis small {
  font-size: 0.4em;
  font-weight: 700;
  letter-spacing: 0;
}

.sonus__schluss {
  display: grid;
  gap: 1rem;
  align-content: center;
  justify-items: start;
  padding: 0.5rem 0;
}

.sonus__ruf {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 86%;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

@media (min-width: 60.0625rem) {
  .sonus__kopf {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-4);
    align-items: end;
  }

  .sonus__raster {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: end;
  }

  .sonus__modelle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
  }

  .sonus__schluss {
    padding-left: clamp(0.5rem, 2vw, 2rem);
  }
}

/* Leistungen eines Bereichs: grosse Zeilen. */
.leistungen {
  padding-block: var(--space-6);
  background: var(--weiss);
}

.leistungsliste {
  border-bottom: 2px solid var(--navy);
}

.leistung {
  position: relative;
  display: grid;
  gap: 0.6rem 2rem;
  padding: 1.6rem 0 1.85rem;
  border-top: 2px solid var(--navy);
}

.leistung::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  background: var(--gelb);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}

.leistung:hover::before {
  transform: scaleY(1);
}

.leistung__name {
  font-size: clamp(1.6rem, 2.9vw, 2.625rem);
  font-weight: 800;
  font-stretch: 84%;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.leistung__text {
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 46rem;
}

@media (max-width: 48rem) {
  .leistung__text {
    font-size: 1rem;
  }
}

@media (min-width: 60.0625rem) {
  .leistung {
    grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr);
    padding: 2rem 0 2.35rem;
  }

  .leistung__text {
    padding-top: 0.35rem;
  }
}

.partner {
  background: var(--gelb);
  padding-block: var(--space-5);
}

.partner__titel {
  font-size: var(--fs-h3);
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -0.012em;
}

.partnerzeile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12em 0.42em;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 82%;
  font-size: clamp(2.1rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.partnerzeile span {
  white-space: nowrap;
}

.partnerzeile i {
  margin-left: 0.36em;
  font-style: normal;
  color: var(--blau);
}

.weitere {
  padding-block: var(--space-5) var(--space-6);
  background: var(--weiss);
}

.weitere__titel {
  font-size: var(--fs-h3);
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -0.012em;
  margin-bottom: 1.25rem;
}

.weitere__liste {
  border-bottom: 2px solid var(--navy);
}

.weitere__liste a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem 1.5rem;
  padding: 1.4rem 0 1.5rem;
  border-top: 2px solid var(--navy);
}

.weitere__liste a::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  background: var(--gelb);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}

.weitere__liste a:hover::before,
.weitere__liste a:focus-visible::before {
  transform: scaleY(1);
}

.weitere__liste a:hover .pfeil,
.weitere__liste a:focus-visible .pfeil {
  transform: translateX(6px);
}

.weitere__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 82%;
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.weitere__satz {
  grid-column: 1 / -1;
  max-width: 44rem;
  color: var(--ink-soft);
}

.weitere__liste .pfeil {
  grid-row: 1;
  grid-column: 2;
  width: 2rem;
  height: 2rem;
  color: var(--navy);
}

@media (min-width: 60.0625rem) {
  .weitere__liste a {
    grid-template-columns: minmax(0, 4.2fr) minmax(0, 7fr) auto;
  }

  .weitere__satz {
    grid-column: 2;
    grid-row: 1;
  }

  .weitere__liste .pfeil {
    grid-column: 3;
  }
}

/* --------------------------------------------------------------------------
   19. Lösungen: vier Kacheln, jede führt auf ihren Bereich.
   -------------------------------------------------------------------------- */
.loesungs-kacheln {
  padding-block: var(--space-5);
}

.kacheln {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.75rem);
}

.kacheln > li {
  display: grid;
}

.kachel {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  background: var(--weiss);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
}

.kachel__bild {
  display: grid;
  place-items: end center;
  aspect-ratio: 16 / 9;
  padding: clamp(1rem, 2.4vw, 2.25rem) clamp(1rem, 2.4vw, 2.25rem) 0.9rem;
  background: var(--gelb);
  border-bottom: 2px solid var(--navy);
}

.kachel__bild svg {
  width: auto;
  height: 100%;
  max-width: 100%;
  transition: transform 0.6s var(--ease);
}

.kachel:hover .kachel__bild svg,
.kachel:focus-visible .kachel__bild svg {
  transform: scale(1.04);
}

.kachel__text {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

.kachel__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 82%;
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.kachel__satz {
  font-size: 1.0625rem;
  line-height: 1.5;
}

.kachel__leistungen {
  font-size: var(--fs-klein);
  line-height: 1.5;
  color: var(--ink-soft);
}

.kachel__mehr {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 92%;
  font-size: 1.0625rem;
  color: var(--navy);
}

.kachel:hover .pfeil,
.kachel:focus-visible .pfeil {
  transform: translateX(5px);
}

@media (min-width: 48rem) {
  .kacheln {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.beratung {
  background: var(--papier);
  padding-block: var(--space-5) var(--space-6);
}

.beratung__raster {
  display: grid;
  gap: var(--space-3);
}

.beratung__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-3);
}

@media (min-width: 60.0625rem) {
  .beratung__raster {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: end;
  }
}

/* --------------------------------------------------------------------------
   20. Über uns und Kontakt
   -------------------------------------------------------------------------- */
.leitbild {
  display: grid;
  gap: var(--space-4);
}

.leitbild__teil {
  padding-top: 1.5rem;
  border-top: 2px solid var(--navy);
}

.leitbild__teil .lead {
  margin-top: 1.25rem;
}

.leitbild__teil p:not(.lead) {
  margin-top: 1rem;
  font-size: 1.125rem;
  max-width: 36rem;
}

@media (min-width: 60.0625rem) {
  .leitbild {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 6rem);
  }
}

.haus .team:first-child {
  margin-top: 0;
}

.chronik__text {
  margin-top: var(--space-4);
  max-width: 52rem;
}

/* Kontaktseite: Kopf in Gelb mit der grossen Nummer, darunter die Angaben
   ihrer heutigen Kontaktseite (Büro, Kontakt, Öffnungszeiten, Fernwartung),
   Showroom, Team und zum Schluss das Formular als ein Teil davon. */
.kontakt-kopf h1 {
  max-width: none;
}

.kontakt-kopf__satz {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 88%;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.kontakt__nummer {
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.kontakt__nummer a {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 82%;
  font-size: clamp(2.75rem, 11.6vw, 11.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--navy);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.kontakt__status {
  margin-top: 1rem;
  min-height: 1.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 88%;
  font-size: 1.125rem;
  color: var(--navy);
}

.kontakt-kopf .zeiten-status.ist-offen .zeiten-status__marke,
.kontakt .zeiten-status.ist-offen .zeiten-status__marke {
  background: var(--navy);
}

.kontakt-kopf__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-3);
}

.kontakt {
  padding-block: var(--space-5);
  background: var(--weiss);
}

.kontakt__raster {
  display: grid;
  gap: var(--space-4) var(--space-3);
}

.kontakt__block {
  padding-top: 1.25rem;
  border-top: 2px solid var(--navy);
}

.kontakt__block h2 {
  font-size: var(--fs-h3);
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -0.012em;
  margin-bottom: 0.9rem;
}

.kontakt__block p + p,
.kontakt__block address + p {
  margin-top: 1rem;
}

.kontakt__gross {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
  white-space: nowrap;
}

@media (min-width: 40rem) {
  .kontakt__raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 68rem) {
  .kontakt__raster {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kontakt-team {
  padding-block: var(--space-5) var(--space-6);
  background: var(--weiss);
}

.kontakt-team .team {
  margin-top: 0;
}

.formular-ansicht {
  background: var(--gelb);
  padding-block: var(--space-6);
}

.formular-ansicht__raster {
  display: grid;
  gap: var(--space-4);
}

.formular-ansicht .lead {
  margin-top: var(--space-3);
}

.formular-ansicht__hinweis {
  margin-top: 1.25rem;
  font-size: var(--fs-klein);
  max-width: 30rem;
}

.formular {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--weiss);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
}

.formular label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 86%;
  font-size: 0.9375rem;
  color: var(--navy);
}

.formular input,
.formular select,
.formular textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.75rem;
  background: var(--weiss);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.formular input:focus,
.formular select:focus,
.formular textarea:focus {
  border-color: var(--navy);
  outline: 0;
}

.formular__meldung {
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.formular__meldung:empty {
  display: none;
}

@media (min-width: 60.0625rem) {
  .formular-ansicht__raster {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: start;
  }

  .formular {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .formular__zeile--breit {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   21. Reduzierte Bewegung und Druck
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html.js .reveal,
  html.js .vergleich .balken__flaeche,
  html.js .sonus__messung .sonus__saeule i {
    opacity: 1;
    transform: none;
  }

  html.js .aufbau .geraet > .g-teil {
    animation: none;
  }

  .hero__text,
  .hero__geraet {
    transform: none;
    opacity: 1;
  }
}

@media print {
  .site-top,
  .fuss-oben,
  .fuss-vorlage {
    display: none !important;
  }
}
