/*
 * aquadas.at: eine Stilquelle fuer alle Seiten.
 *
 * Leitmotiv sind die drei Becken mit der Wellenkante aus dem Logo. Farben stammen
 * aus dem Logo (#2A7AB7 #63AAD4 #90C4E2, Wortmarke #170D08) und aus Aquadas Neu
 * (Grundflaeche #EEFBFF); im Dunkelthema die Flaeche des dunklen Logos (#1E1F22).
 * Kontrastwerte nach WCAG 2.x, gerechnet mit .build/check-contrast.mjs; die
 * Tabelle steht in .build/README.md.
 *
 * Schriften liegen lokal in font/, es geht keine Anfrage nach aussen.
 * Nunito (Schrift der Wortmarke im Logo) fuer Ueberschriften, Inter (Schrift von
 * Aquadas Neu) fuer Fliesstext. Beide unter SIL Open Font License 1.1, Lizenztexte
 * in font/OFL-*.txt. Inter liegt nur aufrecht vor, deshalb ist
 * <em> im Fliesstext halbfett statt kursiv (keine kuenstliche Schraeglage).
 */

/* ---------- Schriften ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../font/inter-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../font/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../font/nunito-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;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../font/nunito-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;
}

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

:root {
  color-scheme: light;

  /* Flaechen */
  --paper: #eefbff;          /* Kopf, Baender, Fusszeile; Grundflaeche von Aquadas Neu */
  --surface: #ffffff;        /* Inhaltsflaeche */
  --card: #ffffff;           /* Karten; auf --surface mit Rahmen und Schatten abgesetzt */
  --head-bg: rgba(238, 251, 255, 0.94); /* Kopf, Alpha >= 0,92; ueber #2A7AB7 Menue 16,84:1 */
  --hover: rgba(42, 122, 183, 0.08);

  /* Schrift */
  --ink: #170d08;            /* Wortmarke; 18,11:1 auf --paper, 19,13:1 auf --surface */
  --ink-dim: #4a5560;        /* 7,20:1 auf --paper, 7,61:1 auf --surface */
  --link: #1f659c;           /* aus #2A7AB7 abgedunkelt: 5,85:1 auf --paper, 6,18:1 auf --surface */
  --accent-large: #2a7ab7;   /* nur grosse Schrift: 4,35:1 auf --paper, 4,60:1 auf --surface */
  --on-accent: #ffffff;      /* auf #2A7AB7: 4,60:1 */
  --focus: #1f659c;          /* Fokusring 5,85:1 auf --paper */

  /* Linien */
  --line: #d6e6ee;           /* reine Zier (Kartenrahmen); Bedienelemente tragen --link als Rahmen */

  /* Becken aus dem Logo; #63AAD4 und #90C4E2 nur als Flaeche */
  --basin-1: #2a7ab7;
  --basin-2: #63aad4;
  --basin-3: #90c4e2;

  /* TFS, nur im TFS-Verweis */
  --tfs-veil: rgba(42, 122, 183, 0.10);

  --shadow: 0 1px 2px rgba(23, 13, 8, 0.04), 0 8px 24px -12px rgba(23, 60, 90, 0.18);
  --shadow-lg: 0 2px 6px rgba(23, 13, 8, 0.06), 0 24px 48px -16px rgba(23, 60, 90, 0.28);

  --radius: 18px;
  --radius-sm: 12px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Nunito', 'Inter', system-ui, sans-serif;
  --head-h: 112px;
}

/* Dunkles Schema. Gesetzt wird data-theme vom Skript im <head>: gespeicherte Wahl
   des Umschalters, sonst die Systemeinstellung. Ohne JavaScript bleibt es hell. */
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #1e1f22;        /* Flaeche des dunklen Logos */
  --surface: #26282c;
  --card: #2e3136;
  --head-bg: rgba(30, 31, 34, 0.94); /* ueber #2A7AB7 Menue 14,23:1 */
  --hover: rgba(144, 196, 226, 0.10);

  --ink: #f3f5f7;          /* 15,08:1 auf --paper, 13,51:1 auf --surface, 11,94:1 auf --card */
  --ink-dim: #b4bac0;      /* 8,42:1 auf --paper, 7,54:1 auf --surface, 6,67:1 auf --card */
  --link: #90c4e2;         /* 8,77:1 auf --paper, 7,86:1 auf --surface, 6,95:1 auf --card */
  --accent-large: #90c4e2;
  --on-accent: #1e1f22;    /* auf #90C4E2: 8,77:1 */
  --focus: #90c4e2;

  --line: #3a3d43;

  --tfs-veil: rgba(99, 170, 212, 0.12);

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 28px 56px -18px rgba(0, 0, 0, 0.7);
}

/* ---------- Grundlagen ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}

/* Produktnamen: halbfett statt kursiv, Inter liegt nur aufrecht vor */
em {
  font-style: normal;
  font-weight: 600;
}

strong {
  font-weight: 650;
}

address {
  font-style: normal;
}

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

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ---------- Kopf und Navigation ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--link);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}
.skip-link:focus {
  top: 12px;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--head-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-head.is-scrolled {
  border-bottom-color: var(--line);
}

.head-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--head-h);
}

.brand {
  display: block;
  flex: none;
  padding: 6px 0;
  border-radius: 8px;
}
.brand img {
  width: auto;
  height: 88px;
  transition: height 0.2s ease;
}
/* Beim Scrollen wird das Logo kleiner, damit der klebende Kopf nicht zu viel Platz nimmt. */
.site-head.is-scrolled .brand img {
  height: 60px;
}
.site-head.is-scrolled .head-row {
  min-height: calc(var(--head-h) - 28px);
}
@media (prefers-reduced-motion: reduce) {
  .brand img {
    transition: none;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-top,
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: 700 0.9375rem/1 var(--font-display);
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.nav-top:hover,
.nav-link:hover,
.nav-top[aria-expanded='true'] {
  background: var(--hover);
}
/* Pfeil nur per CSS, kein Textzeichen */
.nav-top::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.nav-top[aria-expanded='true']::after {
  transform: translateY(1px) rotate(-135deg);
}
/* Aktive Seite: Unterstrich, nicht nur Farbe */
.nav-top.is-current,
.nav-link[aria-current='page'] {
  text-decoration: underline 2px var(--link);
  text-underline-offset: 8px;
}

.nav-group {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  z-index: 10;
  min-width: 240px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.nav-menu--icons {
  min-width: 300px;
}
/* Bruecke ueber den Abstand, damit das Menue beim Hinfahren offen bleibt */
.nav-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

html:not(.js) .nav-group:hover > .nav-menu,
html:not(.js) .nav-group:focus-within > .nav-menu,
.js .nav-group:not(.is-suppressed):hover > .nav-menu,
.nav-top[aria-expanded='true'] + .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
.nav-menu a:hover {
  background: var(--hover);
}
/* Aktuelle Seite: Flaeche, Linkfarbe, fetter und ein Punkt rechts, damit die
   Farbe nicht allein traegt. Punkt: --link auf der Menueflaeche >= 3:1. */
.nav-menu a[aria-current='page'] {
  background: var(--hover);
  color: var(--link);
  font-weight: 700;
}
.nav-menu a[aria-current='page']::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: currentColor;
}
.nav-icon {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 3px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  object-fit: contain;
}
.nav-sep {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.nav-toggle {
  display: none;
}

/* Logos gibt es hell und dunkel; sichtbar ist das zum Schema passende. */
:root[data-theme='dark'] .theme-light,
:root:not([data-theme='dark']) .theme-dark {
  display: none;
}

/* Umschalter hell/dunkel: Mond im hellen Schema, Sonne im dunklen */
.nav {
  margin-left: auto;
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--link); /* Bedienelement: Rahmen >= 3:1 wie beim Knopf */
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle[hidden] {
  display: none;
}
.theme-toggle:hover {
  background: var(--hover);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
:root[data-theme='dark'] .theme-toggle .icon-moon,
:root:not([data-theme='dark']) .theme-toggle .icon-sun {
  display: none;
}

/* ---------- Wellenkante ---------- */

.wave {
  display: block;
  width: 100%;
  height: clamp(28px, 4vw, 56px);
}
.wave path {
  fill: var(--surface);
}
.wave .wave-3 {
  fill: var(--basin-3);
  opacity: 0.35;
}
.wave .wave-2 {
  fill: var(--basin-2);
  opacity: 0.3;
}
.wave--foot path.wave-1 {
  fill: var(--paper);
}
.site-foot .wave {
  background: var(--surface);
}

/* ---------- Startseite ---------- */

.hero {
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(99, 170, 212, 0.16), transparent 70%),
    var(--paper);
  padding-top: clamp(40px, 7vw, 104px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-bottom: clamp(48px, 7vw, 104px);
}
.hero-title {
  margin: 0 0 clamp(20px, 2.5vw, 32px);
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero-title span {
  display: block;
  color: var(--accent-large);
}
.lead {
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 60ch;
}
.lead em {
  color: var(--ink);
}
.hero .lead {
  margin: 0;
}

.hero-art {
  position: relative;
  padding: clamp(8px, 2vw, 24px) 0;
}
.hero-mark {
  width: 100%;
  height: auto;
  overflow: visible;
}
.basin-1 {
  fill: var(--basin-1);
}
.basin-2 {
  fill: var(--basin-2);
}
.basin-3 {
  fill: var(--basin-3);
}
.hero-ripples {
  width: 100%;
  height: clamp(40px, 5vw, 64px);
  margin-top: clamp(20px, 3vw, 32px);
}
.hero-ripples path {
  fill: none;
  stroke: var(--basin-3);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  opacity: 0.7;
}
.hero-ripples path + path {
  opacity: 0.45;
}
.hero-ripples path + path + path {
  opacity: 0.25;
}

/* Wellenkante sehr langsam bewegt; Ruhelage ist exakt die Logo-Form */
@media (prefers-reduced-motion: no-preference) {
  .basin {
    animation: basin-wave 9s ease-in-out infinite;
  }
  .basin-2 {
    animation-duration: 11s;
    animation-delay: -3s;
  }
  .basin-3 {
    animation-duration: 13s;
    animation-delay: -6s;
  }
  @keyframes basin-wave {
    0%,
    100% {
      d: path('M0 7 C 10 1, 20 0, 30 4 C 40 8, 50 9, 60 3 V 52 H 0 Z');
    }
    50% {
      d: path('M0 4 C 10 7, 20 8, 30 5 C 40 2, 50 1, 60 5 V 52 H 0 Z');
    }
  }
}

.section {
  padding: clamp(56px, 7vw, 96px) 0 0;
}
.section-title {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  letter-spacing: -0.025em;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-title--sub {
  margin-top: clamp(48px, 6vw, 72px);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  padding: 24px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.solution-card::after {
  content: '';
  position: absolute;
  right: 26px;
  bottom: 32px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--link);
  border-right: 2px solid var(--link);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.solution-card:hover {
  border-color: var(--link);
  box-shadow: var(--shadow-lg);
}
.solution-card:hover::after {
  transform: translateX(3px) rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .solution-card:hover {
    transform: translateY(-2px);
  }
}
.solution-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
}
.solution-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.solution-icon--mark img {
  width: 40px;
  height: 40px;
}
.solution-name {
  padding-right: 28px;
  font: 800 1.125rem/1.3 var(--font-display);
  letter-spacing: -0.01em;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.teaser {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}
.teaser h3 {
  font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.375rem);
  margin-bottom: 12px;
}
.teaser p {
  color: var(--ink-dim);
}
.teaser em {
  color: var(--ink);
}
.teaser-more {
  margin: auto 0 0;
  padding-top: 8px;
}
.more {
  font-weight: 600;
  text-decoration: none;
}
.more:hover {
  text-decoration: underline;
}

/* ---------- TFS-Verweis ---------- */

.tfs-band {
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}
.tfs-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px clamp(32px, 6vw, 96px);
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 520px 380px at 20% 50%, var(--tfs-veil), transparent 70%),
    linear-gradient(135deg, var(--tfs-veil), transparent 60%),
    var(--paper);
}
.tfs-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
}
.tfs-waves path {
  fill: none;
  stroke: var(--basin-2);
  stroke-width: 2;
  opacity: 0.22;
}
.tfs-waves path + path {
  opacity: 0.12;
}
.tfs-aquadas,
.tfs-copy {
  position: relative;
}
.tfs-aquadas img {
  width: min(100%, 340px);
  margin-inline: auto;
}
.tfs-copy {
  padding-left: clamp(0px, 4vw, 56px);
  border-left: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 20px;
  font: 600 0.8125rem/1.3 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.tfs-logo img {
  width: min(100%, 280px);
  margin-bottom: 28px;
}
.tfs-copy p {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--link);
  border-radius: 999px;
  /* Deckend: im TFS-Band laufen die Wellenlinien hinter dem Knopf durch. */
  background: var(--surface);
  color: var(--link);
  font: 700 0.9375rem/1 var(--font-display);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  background: var(--accent-large);
  border-color: var(--accent-large);
  color: var(--on-accent);
}
.btn-arrow {
  flex: none;
}

/* ---------- Unterseiten ---------- */

.page-head {
  background:
    radial-gradient(ellipse 50% 90% at 90% 0%, rgba(99, 170, 212, 0.14), transparent 70%),
    var(--paper);
  padding-top: clamp(40px, 6vw, 88px);
}
.page-head .wrap {
  padding-bottom: clamp(28px, 4vw, 56px);
}
.page-eyebrow {
  margin: 0 0 14px;
  font: 600 0.8125rem/1.3 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.page-title {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2.125rem, 1.3rem + 3.2vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.page-body {
  padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 112px);
}

.prose {
  max-width: 68ch;
}
.prose h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  margin-top: 1.6em;
}
.prose h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  margin-top: 1.4em;
}
.prose > :first-child {
  margin-top: 0;
}
.prose .lead {
  color: var(--ink);
  margin-bottom: 1.2em;
}

.figure {
  margin: 0 0 clamp(28px, 4vw, 48px);
  padding: clamp(12px, 2.5vw, 32px);
  border-radius: var(--radius);
  background: #ffffff; /* Illustrationen haben weissen Grund, auch im Dunkelthema bewusst gesetzt */
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.figure img {
  margin-inline: auto;
}
.figure--wide {
  max-width: 1000px;
}
.figure--flush {
  padding: 0;
  overflow: hidden;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: 'text figure';
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.split-figure {
  grid-area: figure;
  margin: 0;
}
.split-text {
  grid-area: text;
  padding-top: 8px;
}

.facts {
  display: grid;
  gap: 12px;
  margin: 1.5em 0 0;
}
.facts div {
  display: grid;
  grid-template-columns: minmax(0, 13em) minmax(0, 1fr);
  gap: 4px 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
}
.facts dt {
  font-weight: 600;
}
.facts dd {
  margin: 0;
  color: var(--ink-dim);
}

/* Funktionen/ Module */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.feature-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.feature h3 {
  margin: 4px 0 8px;
  font-size: 1.1875rem;
}
.feature p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.6;
}

/* Schulung */
.seminar {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.seminar-kicker {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
}
.seminar .prose {
  max-width: none;
}
.seminar .prose > p,
.seminar .prose > h3 {
  max-width: 68ch;
}
.seminar-figure {
  float: right;
  width: min(38%, 360px);
  margin: 4px 0 24px clamp(24px, 4vw, 56px);
}
.seminar-grid::after {
  content: '';
  display: block;
  clear: both;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.person {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.person::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--basin-1);
}
.person:nth-child(3n + 2)::before {
  background: var(--basin-2);
}
.person:nth-child(3n + 3)::before {
  background: var(--basin-3);
}
.person strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.person em {
  font-weight: 400;
  color: var(--ink-dim);
  font-size: 0.9375rem;
}

/* Referenzen */
.ref-list {
  columns: 2 340px;
  column-gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ref-region {
  break-inside: avoid;
  margin: 0 0 20px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.ref-region h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.25rem;
}
.ref-region h2::before {
  content: '';
  flex: none;
  width: 24px;
  height: 24px;
  background: url('../favicon.svg') center / contain no-repeat;
}
.ref {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-dim);
}
.ref + .ref {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.ref a {
  display: inline-block;
  margin-top: 2px;
}

/* News */
.timeline {
  position: relative;
  max-width: 920px;
}
.post {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 40px;
  position: relative;
  scroll-margin-top: calc(var(--head-h) + 16px);
}
.post-head {
  display: contents;
}
.post-date {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 5px;
  font: 700 0.875rem/1.4 var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--ink-dim);
  text-align: right;
}
.post h2 {
  grid-column: 2;
  position: relative;
  margin: 0 0 10px;
  padding-left: 32px;
  font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.375rem);
}
.post-body {
  grid-column: 2;
  padding: 0 0 40px 32px;
  color: var(--ink-dim);
}
.post-body strong,
.post-body em {
  color: var(--ink);
}
.post-body p:last-child {
  margin-bottom: 0;
}
/* Leiste und Punkt links vom Inhalt */
.post::before {
  content: '';
  position: absolute;
  left: calc(120px + 40px + 5px);
  top: 12px;
  bottom: -12px;
  width: 2px;
  background: var(--line);
}
.post:last-child::before {
  bottom: 0;
}
.post h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--basin-1);
}
.post:target h2::before {
  background: var(--basin-1);
}

/* Rechtsseiten */
.legal p > strong:first-child {
  display: inline-block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
}
.contact-list,
.foot-contact {
  margin: 0 0 1em;
}
.contact-list div,
.foot-contact div {
  display: flex;
  gap: 12px;
}
.contact-list dt,
.foot-contact dt {
  min-width: 3.5em;
  color: var(--ink-dim);
}
.contact-list dd,
.foot-contact dd {
  margin: 0;
}

/* ---------- Fusszeile ---------- */

.foot-inner {
  background: var(--paper);
  padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 5vw, 64px);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 32px;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.foot-brand img {
  width: auto;
  height: 88px;
}
.foot-block a {
  color: var(--ink);
  text-decoration: none;
}
.foot-block a:hover {
  color: var(--link);
  text-decoration: underline;
}
.foot-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Weiterleitung index.htm */
.redirect {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: var(--paper);
}

/* ---------- Breiten ---------- */

@media (max-width: 1100px) {
  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1023.98px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-art {
    max-width: 440px;
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'figure' 'text';
  }
  .split-figure {
    max-width: 640px;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Telefon und schmales Tablet: einspaltig, Karten volle Breite */
@media (max-width: 767.98px) {
  :root {
    --head-h: 88px;
  }
  body {
    font-size: 1rem;
  }
  .brand img {
    height: 68px;
  }
  .site-head.is-scrolled .brand img {
    height: 52px;
  }
  .head-row {
    flex-wrap: wrap;
    gap: 0 16px;
  }
  /* Telefon: Umschalter und Menue-Knopf rechts neben dem Logo, das Menue darunter */
  .theme-toggle {
    order: 1;
    margin-left: auto;
  }
  .nav-toggle {
    order: 2;
  }
  .nav {
    order: 3;
    margin-left: 0;
  }

  /* Ohne JavaScript: alle Menuepunkte offen unter dem Logo, Kopf nicht klebend */
  html:not(.js) .site-head {
    position: static;
  }
  .nav {
    width: 100%;
    padding: 0 0 16px;
  }
  .js .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - var(--head-h));
    max-height: calc(100dvh - var(--head-h));
    overflow-y: auto;
    padding: 8px clamp(16px, 4vw, 40px) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .js .nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list > li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-list > li:last-child {
    border-bottom: 0;
  }
  .nav-top {
    min-height: 32px;
    padding: 0;
    color: var(--ink-dim);
    font: 600 0.8125rem/1.3 var(--font-body);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
  }
  .nav-top:hover,
  .nav-top[aria-expanded='true'] {
    background: none;
  }
  .nav-top::after {
    display: none;
  }
  .nav-top.is-current {
    text-underline-offset: 6px;
  }
  .nav-link {
    width: 100%;
    padding: 0 12px;
    font-size: 1rem;
  }
  .nav-menu,
  .nav-menu--icons {
    position: static;
    min-width: 0;
    padding: 4px 0 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-menu::before {
    display: none;
  }
  .nav-menu a {
    font-size: 1rem;
  }

  .js .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  .nav-toggle-bars {
    position: relative;
  }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
  }
  .nav-toggle-bars::before {
    top: -7px;
  }
  .nav-toggle-bars::after {
    top: 7px;
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars {
    background: transparent;
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars::before {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding-top: 48px;
  }
  .hero-art {
    max-width: 280px;
  }
  h1,
  h2,
  h3 {
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .teaser {
    padding: 22px 20px;
  }
  .teaser h3 {
    font-size: 1.125rem;
  }
  .solution-grid,
  .teaser-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .solution-card {
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
  }
  .solution-card::after {
    top: 50%;
    bottom: auto;
    margin-top: -4px;
  }
  .solution-icon {
    width: 60px;
    height: 60px;
    flex: none;
  }
  .solution-icon img {
    width: 48px;
    height: 48px;
  }

  .tfs-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 20px 40px;
  }
  .tfs-copy {
    padding-left: 0;
    padding-top: 28px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .tfs-aquadas img {
    width: min(100%, 260px);
    margin-inline: 0;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }

  .facts div {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas: 'media title' 'text text';
    gap: 14px 16px;
    align-items: center;
    padding: 16px 18px 20px;
  }
  .feature-media {
    grid-area: media;
    padding: 6px;
  }
  .feature-text {
    display: contents;
  }
  .feature h3 {
    grid-area: title;
    margin: 0;
  }
  .feature p {
    grid-area: text;
  }
  .seminar-figure {
    float: none;
    width: 100%;
    max-width: 420px;
    margin: 8px 0 24px;
  }
  .ref-list {
    columns: 1;
  }
  .ref-region {
    padding: 20px;
  }

  .post {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-date {
    grid-column: 1;
    grid-row: auto;
    padding: 0 0 4px 32px;
    text-align: left;
  }
  .post-date--none {
    display: none;
  }
  .post h2,
  .post-body {
    grid-column: 1;
  }
  .post::before {
    left: 5px;
  }
  .post h2::before {
    left: 0;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media print {
  .site-head,
  .wave,
  .tfs-band {
    display: none;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
}
