/* ==========================================================================
   myTGA Website – gemeinsame Styles für alle Seiten
   Farben, Abstände und Schriften stehen als Variablen unter :root.
   Wer eine Farbe ändern will, ändert sie dort – nicht in den Regeln darunter.
   ========================================================================== */

/* ---------- Schrift: Fira Sans (SIL Open Font License, lokal gehostet) ---------- */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/fira-sans-latin-400-normal.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: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/fira-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fira-sans-latin-600-normal.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: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fira-sans-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/fira-sans-latin-800-normal.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: 'Fira Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/fira-sans-latin-ext-800-normal.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;
}

/* ---------- Variablen: Farben, Abstände, Schrift ---------- */
:root {
  /* Markenfarben */
  --color-navy: #15203a;            /* Überschriften, dunkle Bänder */
  --color-blue: #164193;            /* Markenblau: Links, Akzente, KI-Band */
  --color-blue-hover: #0e2c66;
  --color-red: #d42a1c;             /* Haupt-Buttons, Hervorhebungen */
  --color-red-hover: #b52214;
  --color-orange: #b4520f;          /* Nachtrag / Mehrstunden in Beispielkarten */
  --color-orange-text: #8a4a12;
  --color-gray-icon: #8a94a8;       /* graue Kreuze, Grundriss-Linien */
  --color-gray-line: #a9b4c8;       /* gestrichelte Rahmen, Status „beendet" */
  --color-green: #1e7a4e;           /* Status „läuft" / live */
  --color-blue-light: #5b7bb5;      /* zweite Baustelle im Kalender */

  /* Flächen */
  --surface-white: #ffffff;
  --surface-light: #f3f5f9;         /* hellgraue Abschnitte */
  --surface-mock: #f7f9fc;          /* Fußzeile in Beispielkarten */
  --surface-blue-tint: #e8eefa;     /* blaue Chips, Icon-Kacheln */
  --surface-orange-tint: #fff6ee;   /* hervorgehobene Zeile */
  --surface-red-tint: #fce9e7;      /* Hinweis „Coming soon" */
  --surface-orange-bar: #f0d9c6;
  --surface-on-dark: rgba(255, 255, 255, 0.08);
  --surface-overlay: rgba(21, 32, 58, 0.06);

  /* Text */
  --text-heading: var(--color-navy);
  --text-body: #3d4a63;
  --text-muted: #5a6680;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #c9d2e3;
  --text-on-blue: #dce5f7;
  --text-eyebrow-on-dark: #afc3ea;

  /* Linien */
  --border: #e3e7ef;
  --border-strong: #dce2ec;
  --border-row: #eef1f6;
  --border-on-dark: rgba(255, 255, 255, 0.2);

  /* Schatten */
  --shadow-mock: 0 24px 48px -24px rgba(21, 32, 58, 0.25);
  --shadow-menu: 0 32px 64px -24px rgba(21, 32, 58, 0.3);

  /* Layout */
  --container-width: 1200px;
  --gutter: 24px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --section-space: 104px;
  --header-height: 77px;

  --font-sans: 'Fira Sans', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-heading);
  background: var(--surface-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: inherit; font-weight: 800; line-height: 1.15; overflow-wrap: break-word; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
a { color: var(--color-blue); }
a:hover { color: var(--color-blue-hover); }
:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 600; }

.container {
  width: 100%;
  max-width: calc(var(--container-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--color-navy); color: var(--text-on-dark);
}
.skip-link:focus { top: 12px; color: var(--text-on-dark); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Schriftgrößen ---------- */
.eyebrow {
  font-size: 15px; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-blue);
}
.title-xl { font-size: 56px; line-height: 1.08; letter-spacing: -0.01em; }   /* Startseite */
.title-l  { font-size: 52px; line-height: 1.1;  letter-spacing: -0.01em; }   /* Seitentitel */
.title-m  { font-size: 44px; line-height: 1.12; }
.title    { font-size: 40px; line-height: 1.15; }
.title-s  { font-size: 36px; line-height: 1.18; }
.title-xs { font-size: 32px; line-height: 1.2; }
.lead     { font-size: 20px; line-height: 1.55; color: var(--text-body); }
.intro    { font-size: 19px; line-height: 1.55; color: var(--text-body); }
.text     { font-size: 17px; line-height: 1.55; color: var(--text-body); }
.small    { font-size: 16px; line-height: 1.5;  color: var(--text-muted); }
.muted    { color: var(--text-muted); }
.max-580 { max-width: 580px; }
.max-780 { max-width: 780px; }
.max-820 { max-width: 820px; }
.max-920 { max-width: 920px; }

/* Abstand zwischen Elementen in einem Block: einfach .stack (+ -s/-l) setzen */
.stack   { display: flex; flex-direction: column; gap: 18px; }
.stack-xs { display: flex; flex-direction: column; gap: 6px; }
.stack-s { display: flex; flex-direction: column; gap: 12px; }
.stack-l { display: flex; flex-direction: column; gap: 32px; }
.stack-xl { display: flex; flex-direction: column; gap: 48px; }
.stack-xxl { display: flex; flex-direction: column; gap: 56px; }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font: 600 16px/1.2 var(--font-sans);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-lg { padding: 16px 28px; font-size: 18px; }
.btn-xl { padding: 18px 28px; font-size: 19px; }
.btn-primary { background: var(--color-red); color: var(--text-on-dark); }
.btn-primary:hover { background: var(--color-red-hover); color: var(--text-on-dark); }
.btn-blue { background: var(--color-blue); color: var(--text-on-dark); }
.btn-blue:hover { background: var(--color-blue-hover); color: var(--text-on-dark); }
.btn-outline { background: var(--surface-white); border-color: var(--color-blue); color: var(--color-blue); }
.btn-outline:hover { background: var(--surface-blue-tint); color: var(--color-blue); }
.btn-outline-light { border-color: var(--text-on-dark); color: var(--text-on-dark); background: transparent; }
.btn-outline-light:hover { background: var(--text-on-dark); color: var(--color-navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* unterstrichener Weiter-Link */
.link-more {
  align-self: flex-start;
  padding-bottom: 2px; border-bottom: 2px solid currentColor;
  font-size: 18px; font-weight: 600; text-decoration: none;
  color: var(--color-blue);
}
.link-arrow { font-size: 16px; font-weight: 600; text-decoration: none; color: var(--color-blue); }
.on-dark .link-more, .link-more.light { color: var(--text-on-dark); }
.on-dark .link-more:hover, .link-more.light:hover { color: var(--text-on-dark-muted); }

/* ---------- Häkchen-Listen ---------- */
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  position: relative; padding-left: 34px;
  font-size: 17px; line-height: 1.5;
}
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 0.1em;
  width: 22px; height: 22px;
  background: var(--color-blue);
  -webkit-mask: url('../img/icon-check.svg') center / contain no-repeat;
  mask: url('../img/icon-check.svg') center / contain no-repeat;
}
.checklist-s { gap: 8px; }
.checklist-s li { padding-left: 30px; font-size: 16px; }
.checklist-s li::before { width: 20px; height: 20px; }
.checklist-red li::before { background: var(--color-red); }
.checklist-x li { color: var(--text-on-dark-muted); }
.checklist-x li::before {
  background: var(--color-gray-icon);
  -webkit-mask-image: url('../img/icon-x.svg');
  mask-image: url('../img/icon-x.svg');
}

/* ---------- Kleine Bausteine ---------- */
.pill {
  display: inline-flex; align-items: center; flex-shrink: 0;
  padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; line-height: 1.3;
}
.pill-round { border-radius: 999px; }
.pill-blue { background: var(--surface-blue-tint); color: var(--color-blue); }
.pill-orange { background: var(--color-orange); color: var(--text-on-dark); }
.pill-red { background: var(--color-red); color: var(--text-on-dark); }
.pill-gray { background: var(--surface-light); color: var(--text-muted); }

.badge {
  align-self: flex-start;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface-white); color: var(--color-blue);
  font-size: 14px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.tag {
  display: inline-block; padding: 6px 12px;
  background: var(--surface-white); border: 1px solid var(--border-strong); border-radius: 999px;
  font-size: 14px; color: var(--text-heading);
}
.tag strong { color: var(--color-red); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }

.icon-tile {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--surface-blue-tint); color: var(--color-blue);
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-red { color: var(--color-red); }
.icon-red svg, svg.icon-red { width: 32px; height: 32px; }

/* ---------- Abschnitte ---------- */
.section { padding: var(--section-space) 0; }
.section-s { padding: 72px 0; }
.section-xs { padding: 40px 0; }
.section-light { background: var(--surface-light); }
.section-blue { background: var(--color-blue); color: var(--text-on-dark); }
.section-dark { background: var(--color-navy); color: var(--text-on-dark); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.section-blue .lead, .section-blue .intro, .section-blue .text { color: var(--text-on-blue); }
.section-dark .lead, .section-dark .intro, .section-dark .text { color: var(--text-on-dark-muted); }
.section-dark .eyebrow, .section-blue .eyebrow { color: var(--text-eyebrow-on-dark); }

/* Seitenkopf für Unterseiten */
.page-hero { background: var(--surface-light); border-bottom: 1px solid var(--border); }
.page-hero .container { padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.page-hero .eyebrow { margin-top: 8px; }
.breadcrumb { font-size: 15px; color: var(--text-muted); }

/* ---------- Raster ---------- */
/* Karten nebeneinander; Mindestbreite je Karte über --min (z. B. style="--min: 260px") */
.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 300px), 100%), 1fr));
}
.grid-tight { gap: 20px; }
/* zwei Spalten Text + Bild, brechen auf dem Handy um */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split-top { align-items: flex-start; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split > .split-wide { flex-basis: 600px; }
.split > .split-narrow { flex: 0 1 400px; }
.row-between { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.row-between-end { align-items: flex-end; }

/* ---------- Karten ---------- */
.card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px;
  background: var(--surface-white);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text-heading); text-decoration: none;
}
a.card:hover { color: var(--text-heading); border-color: var(--border-strong); box-shadow: var(--shadow-mock); }
.card h3 { font-size: 22px; }
.card-lg { padding: 36px; gap: 18px; }
.card-s { padding: 28px; gap: 10px; }
.card-s h3 { font-size: 20px; }
.card-plain { border: 0; }
.card-top-blue { border-top: 5px solid var(--color-blue); }
.card-top-red { border-top: 5px solid var(--color-red); }
.card-label { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-blue); }
.card-top-red .card-label, .card-label.red { color: var(--color-red); }
.card-big-title { font-size: 26px; line-height: 1.2; }
.card-dark { background: var(--surface-on-dark); border-color: var(--border-on-dark); color: var(--text-on-dark); }
.card-dark-outline { background: transparent; border-color: var(--border-on-dark); color: var(--text-on-dark); }
.card-dark .text, .card-dark-outline .text { color: var(--text-on-blue); }
.section-dark .card-dark-outline .card-label { color: var(--text-eyebrow-on-dark); }
.big-num { font-size: 44px; font-weight: 800; line-height: 1; color: var(--color-blue); }
.big-num-s { font-size: 36px; }
.card-dark .big-num { color: var(--text-on-dark); }
.big-num.red { color: var(--color-red); }

/* Nummerierte Schritte (Zahl links, Text rechts) */
.steps { display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--color-blue); color: var(--text-on-dark);
  font-size: 18px; font-weight: 800;
}
.step-num.red { background: var(--color-red); }
.step h3 { font-size: 22px; }
.step-body { display: flex; flex-direction: column; gap: 6px; }

/* Zitate */
.quote { padding: 36px; background: var(--surface-white); border-radius: var(--radius-md); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { font-size: 20px; line-height: 1.55; color: var(--text-heading); }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; }
.quote figcaption strong { font-size: 17px; font-weight: 800; }
.quote figcaption span { font-size: 15px; color: var(--text-muted); }

.stats { display: flex; flex-wrap: wrap; gap: 48px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat > span:not(.big-num) { font-size: 16px; color: var(--text-body); }

/* Häufige Fragen */
.faq { border-top: 1px solid var(--border); }
.faq details { padding: 22px 0; border-bottom: 1px solid var(--border); }
.faq summary { font-size: 20px; font-weight: 800; cursor: pointer; }
.faq details p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--text-body); }

/* Kachelleiste mit allen Lösungen */
.sol-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.sol-strip a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 8px 4px; text-align: center; text-decoration: none;
  font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--text-heading);
}
.sol-strip a:hover { color: var(--color-blue); }

/* Karte „Nächste Lösung" am Ende der Detailseiten */
.next-card {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
  padding: 40px; border: 2px solid var(--color-blue); border-radius: var(--radius-lg);
  color: var(--text-heading); text-decoration: none;
}
.next-card:hover { color: var(--text-heading); background: var(--surface-light); }
.next-card > div { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.next-card .btn { flex: none; }

/* ---------- Beispielkarten (Produkt-Ansichten) ---------- */
.mock {
  overflow: hidden;
  background: var(--surface-white); color: var(--text-heading);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-mock);
  font-size: 15px; line-height: 1.4;
}
.mock-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.mock-kicker { display: block; font-size: 13px; color: var(--text-muted); }
.mock-title { display: block; margin-top: 2px; font-size: 17px; font-weight: 800; }
.mock-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--border-row);
}
.mock-row:last-child { border-bottom: 0; }
.mock-row-l { padding: 16px 20px; }
.mock-row-warn { background: var(--surface-orange-tint); }
.mock-row-title { font-size: 15px; font-weight: 600; }
.mock-row-title.dim { color: var(--text-body); }
.mock-row-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--text-muted); }
.mock-row-warn .mock-row-sub, .mock-note { color: var(--color-orange-text); }
.mock-note { font-size: 13px; font-weight: 600; }
.mock-status { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.mock-stack { display: flex; flex-direction: column; gap: 10px; }
.mock-stack > .mock-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.mock-hours { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--text-body); }
.mock-hours strong { color: var(--text-heading); }
.mock-bar { display: flex; height: 8px; border-radius: 4px; background: var(--surface-orange-bar); overflow: hidden; }
.mock-bar span { background: var(--color-blue); }
.mock-bar span + span { background: var(--color-orange); }
.mock-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-top: 1px solid var(--border);
  background: var(--surface-mock); font-size: 14px; color: var(--text-body);
}
.mock-foot-stack { flex-direction: column; align-items: stretch; padding: 18px 20px; }
.mock-action { font-weight: 600; color: var(--color-blue); }
.mock-button {
  display: block; padding: 14px; border-radius: var(--radius-sm);
  background: var(--color-red); color: var(--text-on-dark);
  font-size: 16px; font-weight: 600; text-align: center;
}
.mock-caption { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
/* Baumansicht (Gebäude › Raum › Bauteil) */
.tree-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-row); font-size: 15px;
}
.tree-row > span:first-child { font-weight: 400; }
.tree-row.l0 > span:first-child { font-weight: 800; }
.tree-row.l1 { padding-left: 32px; }
.tree-row.l2 { padding-left: 50px; }
.tree-row .mock-row-sub { margin: 0; }
/* Chat-Blasen */
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.chat-label { font-size: 13px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }
.bubble { align-self: flex-start; max-width: 100%; padding: 8px 12px; border-radius: 10px 10px 10px 2px; background: var(--surface-light); font-size: 14px; }
.bubble-me { align-self: flex-end; border-radius: 10px 10px 2px 10px; background: var(--surface-blue-tint); }
/* Plan mit Pins */
.plan {
  position: relative; height: 300px;
  background-color: var(--surface-mock);
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
}
.plan-wall { position: absolute; background: var(--color-gray-icon); }
.plan-outline { position: absolute; border: 3px solid var(--color-gray-icon); }
.pin { position: absolute; display: flex; align-items: center; gap: 6px; }
.pin-dot {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--surface-white); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  background: var(--color-blue); color: var(--text-on-dark); font-size: 13px; font-weight: 800;
}
.pin-dot.orange { background: var(--color-orange); }
.pin-dot.red { background: var(--color-red); }
.pin-label {
  padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-white); font-size: 12px; font-weight: 600; white-space: nowrap;
}

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-white); border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-height);
}
.brand img { width: 44px; height: 44px; }
.main-nav > ul { display: flex; flex-wrap: wrap; gap: 28px; }
.main-nav a, .mega-toggle {
  font: 600 16px/1.4 var(--font-sans); color: var(--text-heading); text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-blue); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.login-link { padding: 12px 16px; font-weight: 600; text-decoration: none; color: var(--text-heading); }
.nav-toggle { display: none; }

/* Ausklappmenü „Lösungen" */
/* Unsichtbare Verlängerung nach oben/unten bis zur Kopfzeilen-Kante, damit das Menü beim
   Herunterfahren mit der Maus nicht zuklappt (ändert das Layout nicht). */
.has-mega { display: flex; align-items: center; gap: 2px; padding-block: 32px; margin-block: -32px; }
.mega-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
}
.mega-toggle svg { width: 14px; height: 14px; transition: transform 0.15s; }
.mega {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 0 var(--gutter);
}
.mega-panel {
  max-width: var(--container-width); margin: 0 auto;
  background: var(--surface-white);
  border: 1px solid var(--border-strong); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-menu); overflow: hidden;
}
.mega-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 28px 24px; }
.mega-col-title {
  display: block; padding: 0 12px 8px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
}
.main-nav .mega-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px; border-radius: 10px;
  font-weight: 400; color: var(--text-heading);
}
.main-nav .mega-item:hover { background: var(--surface-light); color: var(--text-heading); }
.mega-item .icon-tile { width: 44px; height: 44px; border-radius: 10px; }
.mega-item .icon-tile svg { width: 22px; height: 22px; }
.mega-item-name { display: block; font-size: 16px; font-weight: 800; }
.mega-item-text { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--text-body); }
.mega-foot {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding: 16px 36px; background: var(--surface-light); border-top: 1px solid var(--border);
}
.main-nav .mega-foot > a { font-weight: 800; color: var(--color-blue); }
.has-mega:hover .mega,
.has-mega:focus-within .mega,
.has-mega.is-open .mega { display: block; }
.has-mega:hover .mega-toggle svg,
.has-mega.is-open .mega-toggle svg { transform: rotate(180deg); }
.js .has-mega.is-closed .mega { display: none; }

/* ---------- Abschluss-Band (Präsentation vereinbaren) ---------- */
.cta .split { gap: 48px; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.cta-actions .small { color: var(--text-on-dark-muted); }
.cta-actions .small a { color: var(--text-on-dark); font-weight: 600; }

/* ---------- Fußbereich ---------- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .container { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
  font-size: 15px; line-height: 1.7; color: var(--text-body);
}
.footer-grid img { width: 48px; height: 48px; margin-bottom: 12px; }
.footer-grid address { font-style: normal; }
.footer-grid h2 { font-size: 15px; font-weight: 800; line-height: 1.7; color: var(--text-heading); }
.footer-grid ul { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.site-footer a { color: var(--text-body); text-decoration: none; }
.site-footer a:hover { color: var(--color-blue); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted);
}
.legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer .legal-links a { color: var(--text-muted); text-decoration: underline; }

/* ==========================================================================
   Startseite
   ========================================================================== */
.home-hero .container { padding-top: 88px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.home-hero .split > :first-child { padding-top: 56px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 16px; font-size: 16px; color: var(--text-body); }
.hero-facts li { position: relative; padding-left: 28px; }
.hero-facts li::before {
  content: ''; position: absolute; left: 0; top: 0.1em; width: 20px; height: 20px;
  background: var(--color-blue);
  -webkit-mask: url('../img/icon-check.svg') center / contain no-repeat;
  mask: url('../img/icon-check.svg') center / contain no-repeat;
}
.hero-facts strong { color: var(--text-heading); }

/* Reiter über der Produkt-Ansicht */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab {
  padding: 9px 14px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface-white); color: var(--text-heading);
  font: 600 14px/1.2 var(--font-sans); cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--color-blue); border-color: var(--color-blue); color: var(--text-on-dark); }
.tab-panels { min-height: 575px; }
.tab-caption { min-height: 46px; margin-top: 14px; font-size: 16px; font-weight: 600; }
.tab-caption + .mock-caption { margin-top: 4px; }
.tabs-caption-hidden { display: none; }

/* ==========================================================================
   Handy & Tablet
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav > ul { gap: 20px; }
  .login-link { padding: 12px 8px; }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--border-strong); border-radius: 8px;
    background: var(--surface-white); color: var(--text-heading); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .header-inner { flex-wrap: wrap; }
  .brand { margin-right: auto; }
  .header-actions .btn { font-size: 14px; padding: 10px 14px; }
  .header-actions .login-link { display: none; }
  .main-nav { order: 3; flex-basis: 100%; display: none; padding: 0 0 16px; }
  html:not(.js) .main-nav, .menu-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a, .main-nav .has-mega > a { display: block; flex: 1; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 17px; }
  .main-nav .nav-login-mobile { display: block; }
  .mega, .mega-toggle { display: none !important; }
  .has-mega { padding-block: 0; margin-block: 0; }
}
.nav-login-mobile { display: none; }

@media (max-width: 720px) {
  :root { --gutter: 16px; --section-space: 56px; --header-height: 69px; }
  /* Einzelne Abstände/Schriftgrößen, die im HTML per style="…" gesetzt sind, gelten auf dem Handy nicht */
  .section { --section-space: 56px !important; }
  [class*="title"][style*="font-size"] { font-size: 26px !important; line-height: 1.2 !important; }
  .text[style*="font-size"], .intro[style*="font-size"], .lead[style*="font-size"] { font-size: 16px !important; }
  h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; }
  .title-xl { font-size: 34px; line-height: 1.12; }
  .title-l  { font-size: 32px; line-height: 1.12; }
  .title-m, .title { font-size: 28px; line-height: 1.18; }
  .title-s, .title-xs { font-size: 26px; line-height: 1.2; }
  .lead, .intro { font-size: 17px; }
  .card-big-title { font-size: 23px; }
  .section-s { padding: 48px 0; }
  .page-hero .container { padding-top: 40px; padding-bottom: 48px; }
  .home-hero .container { padding-top: 48px; padding-bottom: 48px; gap: 28px; }
  .home-hero .split > :first-child { padding-top: 0; }
  .split, .stack-xxl { gap: 32px; }
  .stack-xl { gap: 28px; }
  .card, .card-lg, .quote, .next-card { padding: 22px; }
  .quote blockquote { font-size: 17px; }
  .faq summary { font-size: 18px; }
  .btn-lg, .btn-xl { width: 100%; }
  .tab-panels { min-height: 0; }
  .pin-label { white-space: normal; max-width: 120px; }
  .mock-row, .mock-head, .mock-foot { padding-left: 14px; padding-right: 14px; }
  /* breite Tabellen/Kalender in Beispielkarten seitlich wischen statt umbrechen */
  .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
