/* ==========================================================================
   SIMATA GmbH – Gestaltungsgrundlage
   Farben aus dem Mockup ausgelesen, siehe LIESMICH.md.
   Eine Datei fuer die ganze Website. Kein Framework, kein Build-Schritt.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Gestaltungswerte
   -------------------------------------------------------------------------- */

:root {
  /* Farben aus dem Mockup */
  --marine:        #02244d;   /* dunkle Baender, Ueberschriften */
  --marine-hell:   #123258;   /* Abstufung innerhalb dunkler Baender */
  --aktion:        #0349be;   /* Knoepfe und Verweise */
  --aktion-dunkel: #023792;   /* Zustand beim Zeigen und Druecken */
  --akzent:        #e5791a;   /* Haken und Bildzeichen. NIE fuer Text auf Weiss:
                                 das Verhaeltnis liegt bei 2.9:1 und faellt durch. */
  --flaeche:       #f0f7fe;   /* helle Abschnitte */
  --weiss:         #ffffff;

  /* Text */
  --text:          #1f2a37;   /* Fliesstext, 13.4:1 auf Weiss */
  --text-leise:    #566374;   /* Beiwerk, 5.6:1 auf Weiss */
  --text-invers:   #eaf1fb;   /* auf Marineblau */
  --linie:         #d8e2ee;

  /* Schrift. Systemschriften, von Mario am 20.09.2026 so entschieden: keine Google Fonts,
     keine mitgelieferte Schriftdatei. Die Seite sieht dadurch nicht exakt aus wie das
     Mockup – das ist bekannt und gewollt. */
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
             Arial, sans-serif;

  /* Abstaende. Eine Skala, damit nicht jede Seite eigene Zahlen erfindet. */
  --a1: 0.25rem;
  --a2: 0.5rem;
  --a3: 0.75rem;
  --a4: 1rem;
  --a5: 1.5rem;
  --a6: 2rem;
  --a7: 3rem;
  --a8: 4rem;
  --a9: 6rem;

  --bahn:       1180px;  /* Breite des Inhaltsbereichs */
  --bahn-schmal: 760px;  /* fuer Fliesstext, damit Zeilen lesbar bleiben */
  --rand:        1rem;   /* Seitenrand auf dem Telefon */

  --rundung:       6px;
  --rundung-gross: 12px;

  --schatten:       0 1px 2px rgba(2, 36, 77, .06), 0 2px 8px rgba(2, 36, 77, .06);
  --schatten-hoch:  0 2px 4px rgba(2, 36, 77, .08), 0 8px 24px rgba(2, 36, 77, .10);
}

/* --------------------------------------------------------------------------
   2. Grundlagen
   -------------------------------------------------------------------------- */

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

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

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

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* --------------------------------------------------------------------------
   3. Typografie
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  color: var(--marine);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 var(--a4);
  text-wrap: balance;
  /* Deutsche Komposita wie "Datenschutzerklaerung" sind breiter als ein Telefon.
     Ohne Trennung ragen sie ueber den Rand und die ganze Seite scrollt quer.
     hyphens braucht lang="de-CH" im <html>, sonst fehlt das Trennwoerterbuch.
     overflow-wrap ist das Netz darunter, falls ein Browser nicht trennen kann. */
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); }
h4 { font-size: 1.0625rem; }

p, ul, ol { margin: 0 0 var(--a4); }
p { text-wrap: pretty; }

/* Dasselbe Problem wie bei den Ueberschriften, nur seltener: Woerter wie
   "Oeffentlichkeitsbeauftragten" in AGB und Datenschutz sind bei 320 px breiter
   als die Zeile. Trennung im Fliesstext, Umbruch als letztes Netz. */
p, li, blockquote { hyphens: auto; }
body { overflow-wrap: break-word; }

.fuehrung {            /* Vorspann unter einer H1 */
  font-size: 1.125rem;
  color: var(--text-leise);
  max-width: 46ch;
}

.augenbraue {          /* kleine Zeile ueber einer Ueberschrift */
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aktion);
  margin-bottom: var(--a2);
}

a { color: var(--aktion); text-underline-offset: 2px; }
a:hover { color: var(--aktion-dunkel); }

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

/* --------------------------------------------------------------------------
   4. Aufbau
   -------------------------------------------------------------------------- */

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

.bahn-schmal { max-width: var(--bahn-schmal); }

.abschnitt        { padding-block: var(--a7); }
.abschnitt-hell   { background: var(--flaeche); }
.abschnitt-dunkel { background: var(--marine); color: var(--text-invers); }

.abschnitt-dunkel h1,
.abschnitt-dunkel h2,
.abschnitt-dunkel h3 { color: var(--weiss); }
.abschnitt-dunkel a  { color: var(--weiss); }

@media (min-width: 48rem) {
  .abschnitt { padding-block: var(--a9); }
}

.kopfzeile-abschnitt {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto var(--a7);
}
.kopfzeile-abschnitt p { color: var(--text-leise); margin-bottom: 0; }

/* Raster. Faellt unter 48rem auf eine Spalte zurueck. */
.raster { display: grid; gap: var(--a5); }

@media (min-width: 40rem) {
  .raster-2, .raster-3, .raster-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60rem) {
  .raster-3 { grid-template-columns: repeat(3, 1fr); }
  .raster-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   5. Knoepfe
   -------------------------------------------------------------------------- */

.knopf {
  display: inline-flex;
  align-items: center;
  gap: var(--a2);
  padding: 0.75rem 1.5rem;
  min-height: 44px;                 /* Fingerziel auf dem Telefon */
  border: 2px solid var(--aktion);
  border-radius: var(--rundung);
  background: var(--aktion);
  color: var(--weiss);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.knopf:hover  { background: var(--aktion-dunkel); border-color: var(--aktion-dunkel); color: var(--weiss); }
.knopf:active { transform: translateY(1px); }

.knopf-zweit {
  background: transparent;
  color: var(--aktion);
}
.knopf-zweit:hover { background: var(--flaeche); color: var(--aktion-dunkel); }

.abschnitt-dunkel .knopf-zweit {
  color: var(--weiss);
  border-color: rgba(255, 255, 255, .55);
}
.abschnitt-dunkel .knopf-zweit:hover { background: rgba(255, 255, 255, .12); }

.knopfreihe { display: flex; flex-wrap: wrap; gap: var(--a3); }

/* Verweis mit Pfeil, wie die "Mehr erfahren"-Zeilen im Mockup */
.weiter {
  display: inline-flex;
  align-items: center;
  gap: var(--a2);
  font-weight: 600;
  text-decoration: none;
}
.weiter::after { content: "\2192"; transition: transform .15s ease; }
.weiter:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Karten und Listen
   -------------------------------------------------------------------------- */

.karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--rundung-gross);
  padding: var(--a5);
  display: flex;
  flex-direction: column;
  gap: var(--a3);
}

.karte h3 { margin: 0; }
.karte p  { margin: 0; color: var(--text-leise); }
.karte .weiter { margin-top: auto; }

.karte-hervor {
  border-color: var(--aktion);
  box-shadow: var(--schatten-hoch);
}

.bildzeichen {                      /* Platz fuer ein Icon oben in der Karte */
  width: 40px;
  height: 40px;
  color: var(--aktion);
  flex: none;
}

/* Hakenliste. Das Orange ist hier Grafik, nicht Text – das ist der erlaubte Fall. */
.hakenliste { list-style: none; padding: 0; }
.hakenliste li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--a2);
}
.hakenliste li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--akzent);
  font-weight: 700;
}

/* Nummerierte Schrittfolge fuer den Abschnitt "Vorgehen" */
.schritte { list-style: none; padding: 0; margin: 0; counter-reset: schritt; }
.schritt { counter-increment: schritt; text-align: center; }
.schritt::before {
  content: counter(schritt);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto var(--a3);
  border-radius: 50%;
  background: var(--aktion);
  color: var(--weiss);
  font-weight: 700;
}
.schritt h3 { font-size: 1.0625rem; margin-bottom: var(--a1); }
.schritt p  { color: var(--text-leise); font-size: 0.9375rem; margin: 0; }

/* Fragen und Antworten. <details> ist hier richtig: der Text steht im Dokument
   und ist auffindbar, auch wenn er zugeklappt ist. Kein JavaScript. */
.faq { border-top: 1px solid var(--linie); }

.faq-eintrag { border-bottom: 1px solid var(--linie); }

.faq-eintrag > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--a4);
  padding: var(--a4) 0;
  min-height: 44px;
  font-weight: 600;
  color: var(--marine);
}
.faq-eintrag > summary::-webkit-details-marker { display: none; }
.faq-eintrag > summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--aktion);
}
.faq-eintrag[open] > summary::after { content: "\2013"; }
.faq-eintrag > summary:hover { color: var(--aktion); }

.faq-antwort { padding-bottom: var(--a4); }
.faq-antwort > :last-child { margin-bottom: 0; }

/* Logobaender fuer Kunden und Partner. Einheitlich in Graustufen, damit die
   bunt gemischten Logos als ruhige Wand wirken (Marios Wunsch, 24.09.2026).
   Beim Zeigen kommt die Originalfarbe zurueck.
   multiply laesst weisse Hintergruende in den Logos verschwinden – ohne das
   stuende das Flumerics-Logo als weisser Kasten auf dem hellblauen Band.
   Wortmarken wirken bei gleicher Pixelhoehe groesser als Bildmarken, deshalb
   setzt jedes Logo seine Hoehe ueber --h selbst. */
:root {
  --logo-grau: grayscale(1) contrast(1.1);
  --logo-deckkraft: .62;
}
.logoband {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--a6) var(--a8);
}
.logoband li { display: flex; align-items: center; }
.logoband a { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--rundung); }
.logoband img {
  height: var(--h, 44px);
  width: auto;
  filter: var(--logo-grau);
  opacity: var(--logo-deckkraft);
  mix-blend-mode: multiply;
  transition: filter .2s ease, opacity .2s ease;
}
.logoband a:hover img,
.logoband a:focus-visible img { filter: none; opacity: 1; }

.logoband-titel {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin: 0 0 var(--a5);
}

/* Hervorgehobener Themenblock, z.B. Copilot auf der Startseite */
.schwerpunkt {
  display: grid;
  gap: var(--a6);
  align-items: center;
}
@media (min-width: 62rem) {
  .schwerpunkt { grid-template-columns: 1.1fr 1fr; gap: var(--a8); }
}
.schwerpunkt-liste { display: grid; gap: var(--a4); }
.schwerpunkt-punkt {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--rundung-gross);
  padding: var(--a4) var(--a5);
}
.schwerpunkt-punkt h3 { font-size: 1.0625rem; margin-bottom: var(--a1); }
.schwerpunkt-punkt p  { margin: 0; font-size: 0.9375rem; }

/* Kundenstimme */
.stimme { font-size: 1.1875rem; line-height: 1.55; color: var(--marine); margin: 0 0 var(--a4); }
.stimme-quelle { font-size: 0.9375rem; color: var(--text-leise); margin: 0; }

/* Kontaktzeilen. Telefon und Mail stehen auf eigenen Zeilen und muessen auf dem
   Telefon antippbar sein – 44 px Mindesthoehe. Fliesstext-Verweise bleiben unberuehrt. */
.kontaktzeile {
  display: inline-flex;
  align-items: center;
  gap: var(--a2);
  min-height: 44px;
  font-weight: 600;
}

/* Preistabelle (Einstiegspreise). Auf schmalen Bildschirmen wird jede Zeile
   zu einem kleinen Block: Name und Preis oben, Beschreibung darunter. Drei
   Spalten mit langem Mitteltext wuerden bei 320 px sonst quer scrollen. */
.preistabelle {
  width: 100%;
  border-collapse: collapse;
  margin: var(--a5) 0;
  font-size: 0.9375rem;
}
.preistabelle th,
.preistabelle td {
  text-align: left;
  vertical-align: top;
  padding: var(--a3) var(--a4) var(--a3) 0;
  border-bottom: 1px solid var(--linie);
}
.preistabelle thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.preistabelle tbody th { font-weight: 600; white-space: nowrap; }
.preistabelle tbody th a { text-decoration: none; }
.preistabelle td:last-child {
  white-space: nowrap;
  text-align: right;
  padding-right: 0;
  font-weight: 700;
  color: var(--aktion);
}

@media (max-width: 40rem) {
  .preistabelle thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%);
  }
  .preistabelle, .preistabelle tbody { display: block; }
  .preistabelle tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--a1) var(--a3);
    padding: var(--a3) 0;
    border-bottom: 1px solid var(--linie);
  }
  .preistabelle th, .preistabelle td { border: 0; padding: 0; }
  .preistabelle tbody th { grid-column: 1; grid-row: 1; white-space: normal; }
  .preistabelle td:last-child { grid-column: 2; grid-row: 1; }
  .preistabelle td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--text-leise); }
}

/* Preisangabe */
.preis {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 700;
  color: var(--aktion);
  line-height: 1.1;
  margin: 0;
}
.preis-zusatz { font-size: 0.875rem; color: var(--text-leise); margin: var(--a1) 0 0; }

/* --------------------------------------------------------------------------
   7. Kopf und Navigation – ohne JavaScript, ueber <details>
   -------------------------------------------------------------------------- */

.seitenkopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}

.seitenkopf .bahn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--a4);
  min-height: 72px;
}

.marke { display: inline-flex; align-items: center; gap: var(--a3); text-decoration: none; }
.marke img { height: 40px; width: auto; }
.marke-text { display: flex; flex-direction: column; line-height: 1.15; }
.marke-name { font-weight: 700; color: var(--marine); letter-spacing: .02em; }
.marke-zusatz { font-size: .6875rem; color: var(--text-leise); text-transform: uppercase; letter-spacing: .06em; }

.menue > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--a2);
  min-height: 44px;
  padding: 0 var(--a3);
  font-weight: 600;
  color: var(--marine);
}
.menue > summary::-webkit-details-marker { display: none; }
.menue > summary::after { content: "\25be"; }
.menue[open] > summary::after { content: "\25b4"; }

.menue-liste {
  list-style: none;
  margin: 0;
  padding: var(--a3) 0 var(--a5);
  position: absolute;
  left: 0;
  right: 0;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
  box-shadow: var(--schatten);
}
.menue-liste a {
  display: block;
  padding: var(--a3) var(--rand);
  color: var(--marine);
  text-decoration: none;
  font-weight: 500;
}
.menue-liste a:hover { background: var(--flaeche); color: var(--aktion); }
.menue-liste a[aria-current="page"] { color: var(--aktion); font-weight: 700; }

.kopf-knopf { display: none; }

/* Ab 62rem: waagrechte Navigation, das Klappmenue verschwindet.
   Ein geschlossenes <details> blendet seinen Inhalt nicht nur aus, er traegt auch
   nichts zur Breite bei – die Liste waere sonst 0 px breit. Deshalb ::details-content.
   Browser ohne diese Unterstuetzung behalten den Menueknopf: unschoener, aber bedienbar.
   Das ist der Grund fuer das @supports – nicht Zierde. */
@media (min-width: 62rem) {
  @supports selector(::details-content) {
    .menue > summary { display: none; }
    .menue::details-content { content-visibility: visible; block-size: auto; }

    .menue-liste {
      position: static;
      display: flex;
      gap: var(--a5);
      padding: 0;
      border: 0;
      box-shadow: none;
      background: transparent;
    }
    .menue-liste a { padding: var(--a2) 0; white-space: nowrap; }
    .menue-liste a:hover { background: transparent; }
  }

  .kopf-knopf { display: inline-flex; }
}

/* Sprungmarke fuer die Tastaturbedienung */
.zum-inhalt {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--marine);
  color: var(--weiss);
  padding: var(--a3) var(--a4);
  z-index: 100;
}
.zum-inhalt:focus { left: 0; }

/* Brotkrumen. Auf jeder Unterseite, nie auf der Startseite. */
.brotkrumen {
  font-size: 0.875rem;
  color: var(--text-leise);
  padding-block: var(--a4) 0;
}
.brotkrumen ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--a2);
  margin: 0;
  padding: 0;
}
.brotkrumen li + li::before { content: "\203a"; margin-right: var(--a2); }
.brotkrumen a { color: var(--text-leise); }
.brotkrumen [aria-current="page"] { color: var(--text); font-weight: 600; }

/* Kopfbereich einer Unterseite – schlanker als der Hero der Startseite */
.seitenanfang { padding-block: var(--a5) var(--a7); }
.seitenanfang h1 { margin-bottom: var(--a4); }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: var(--a7) var(--a6); }

.hero-inhalt { display: grid; gap: var(--a6); align-items: center; }

@media (min-width: 62rem) {
  .hero { padding-block: var(--a8); }
  .hero-inhalt { grid-template-columns: 1fr 1.05fr; gap: var(--a8); }
}

.hero-bild {
  border-radius: var(--rundung-gross);
  box-shadow: var(--schatten-hoch);
}

.hero-merkmale {
  list-style: none;
  padding: 0;
  margin: var(--a6) 0 0;
  display: grid;
  gap: var(--a4);
  font-size: 0.875rem;
  color: var(--text-leise);
}
@media (min-width: 40rem) {
  .hero-merkmale { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--a6); }
}

/* --------------------------------------------------------------------------
   9. Fuss
   -------------------------------------------------------------------------- */

.seitenfuss {
  background: var(--marine);
  color: var(--text-invers);
  padding-block: var(--a7) var(--a6);
  font-size: 0.9375rem;
}
.seitenfuss a { color: var(--text-invers); text-decoration: none; }
.seitenfuss a:hover { color: var(--weiss); text-decoration: underline; }
.seitenfuss h2 { font-size: 1rem; margin-bottom: var(--a3); }
.seitenfuss ul { list-style: none; padding: 0; margin: 0; }
.seitenfuss li { margin-bottom: var(--a2); }

.fuss-schluss {
  margin-top: var(--a6);
  padding-top: var(--a4);
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: rgba(234, 241, 251, .75);
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   10. Kleinkram
   -------------------------------------------------------------------------- */

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

.mitte { text-align: center; }
.kein-abstand-unten { margin-bottom: 0; }

/* Markiert Text, der noch nicht abgenommen ist. Faellt absichtlich auf.
   Vor dem Go-live darf keine einzige Stelle mit dieser Klasse uebrig sein. */
.entwurf {
  background: #fff4d6;
  border-left: 4px solid var(--akzent);
  padding: var(--a3) var(--a4);
  border-radius: 0 var(--rundung) var(--rundung) 0;
}
.entwurf::before {
  content: "Entwurf, noch nicht abgenommen";
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a4b00;
  margin-bottom: var(--a1);
}
