/* =========================================================================
   Deine Firmenwebseite – Stylesheet
   Aufbau:
   1. Grundlagen & Design-Tokens
   2. Reset & Basiselemente
   3. Hilfsklassen (Utilities)
   4. Layout (Container, Sections)
   5. Skip-Link
   6. Header & Navigation
   7. Hero
   8. Vertrauensleiste
   9. Leistungen
   10. Branchen-Mosaik (Signatur-Element)
   11. Vorteile
   12. Ablauf
   13. Über uns
   14. FAQ
   15. Kontakt & Formular
   16. Footer
   17. Statusmeldungen (Formular)
   18. Responsive Anpassungen
   19. Bewegungsreduzierung / Barrierefreiheit
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Grundlagen & Design-Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Farben – modernes Petrol/Blau, ein zurückhaltender Gold-Akzent */
  --color-primary: #1c6e8c;
  --color-primary-dark: #123b49;
  --color-primary-darker: #0b252e;
  --color-primary-tint-1: #e4eef0;
  --color-primary-tint-2: #cfe2e6;
  --color-primary-tint-3: #b7d3d9;
  --color-accent: #b9812f;
  --color-accent-tint: #f4e9d8;

  --color-background: #fbfaf7;
  --color-surface: #eef3f2;
  --color-surface-alt: #e4ecec;
  --color-text: #16232a;
  --color-muted: #4c5e64;
  --color-tile-text: #37464a;
  --color-border: #d8e2e1;
  --color-white: #ffffff;

  /* Eigene, kräftigere Farbtöne nur für das Branchen-Kachel-Mosaik –
     bewusst getrennt von --color-primary-tint-*, damit Hover-Zustände,
     Icon-Hintergründe etc. weiterhin zurückhaltender bleiben. Jeder Ton
     ist deutlich vom Abschnittshintergrund (--color-surface) und von
     den jeweils anderen drei Tönen unterscheidbar (geprüfter Kontrast
     ≥ 4.5:1 gegenüber --color-tile-text). */
  --color-tile-1: #cfe2e6;
  --color-tile-2: #b7d3d9;
  --color-tile-3: #96bcc5;
  --color-tile-4: #f2dfc0;

  --color-success-bg: #e6f3ea;
  --color-success-border: #2f7d4f;
  --color-success-text: #1f5c38;

  --color-error-bg: #fbeceb;
  --color-error-border: #b3392f;
  --color-error-text: #7c261e;

  /* Typografie */
  --font-base:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
  --line-height-body: 1.65;
  --line-height-heading: 1.15;

  /* Abstände & Radien */
  --content-width: 75rem;
  --content-width-narrow: 46rem;
  --space-2xs: 0.375rem;
  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: 3.25rem;
  --space-xl: 5rem;

  --radius-small: 0.5rem;
  --radius-medium: 1rem;
  --radius-large: 1.75rem;

  --shadow-soft: 0 14px 34px -20px rgba(11, 37, 46, 0.45);
  --shadow-strong: 0 20px 45px -18px rgba(11, 37, 46, 0.5);

  --header-height: 4.5rem;
  --focus-ring: 0.1875rem solid var(--color-accent);
}

/* -------------------------------------------------------------------------
   2. Reset & Basiselemente
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Sicherheitsnetz: verhindert, dass die gesamte Seite horizontal
     scrollbar wird, falls irgendein Element (versehentlich) über den
     sichtbaren Bereich hinausragt. */
  overflow-x: hidden;
}

section[id],
main[id] {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-background);
  line-height: var(--line-height-body);
  font-size: 1.0625rem;
  overflow-x: hidden;
  max-width: 100%;
}

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

h1,
h2,
h3,
h4 {
  line-height: var(--line-height-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-primary-darker);
  margin: 0 0 var(--space-sm);
}

h1 {
  font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 1.35rem + 1.2vw, 2.35rem);
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  margin-bottom: var(--space-xs);
}

p {
  margin: 0 0 var(--space-sm);
  color: var(--color-muted);
  max-width: 62ch;
}

ul,
ol {
  margin: 0 0 var(--space-sm);
  padding-left: 1.25rem;
  color: var(--color-muted);
}

li {
  margin-bottom: var(--space-2xs);
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-primary-dark);
}

strong {
  color: var(--color-primary-darker);
}

/* Sichtbarer Fokus für alle interaktiven Elemente */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

/* -------------------------------------------------------------------------
   3. Hilfsklassen
   ------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

.section-intro {
  max-width: var(--content-width-narrow);
  margin-bottom: var(--space-lg);
}

.section-intro p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

section {
  padding-block: var(--space-xl);
}

.section-alt {
  background: var(--color-surface);
}

.section-dark {
  background: var(--color-primary-darker);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.82);
}

/* -------------------------------------------------------------------------
   5. Skip-Link
   ------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 1000;
  background: var(--color-primary-darker);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-small);
  font-weight: 700;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* -------------------------------------------------------------------------
   6. Header & Navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-primary-darker);
  text-decoration: none;
  /* Erlaubt diesem Flex-Kind, unter seine Inhaltsbreite zu schrumpfen
     (Flexbox-Standard ist min-width:auto, was Überlauf verursacht). */
  min-width: 0;
}

.brand span {
  min-width: 0;
  /* Bricht bei wenig Platz sauber in eine zweite Zeile um, statt
     abgeschnitten zu werden oder die Seite zu verbreitern. */
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.15;
}

.brand__accent {
  color: var(--color-primary);
}

.brand:hover {
  color: var(--color-primary);
}

.brand:hover .brand__accent {
  color: var(--color-primary-dark);
}

.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  /* Menü-/CTA-Button behalten immer ihre volle, gut antippbare Größe;
     nötiger Platz wird stattdessen beim Markennamen oben eingespart. */
  flex-shrink: 0;
}

/* Buttons im Header sind bewusst kompakter als Buttons im übrigen
   Seiteninhalt (z. B. im Hero oder bei den Preiskarten), damit der
   Header auf schmalen Bildschirmen nicht überladen wirkt. */
.header-actions .btn {
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
}

/* Navigation als <details>: funktioniert ohne JavaScript.
   Auf Desktop wird die Aufklapp-Optik per CSS neutralisiert,
   auf Mobil bleibt das native Verhalten erhalten. */
.nav-toggle {
  position: relative;
}

.nav-toggle__button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  cursor: pointer;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-small);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary-darker);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.nav-toggle__button::-webkit-details-marker {
  display: none;
}

.nav-toggle__button:hover {
  background: var(--color-primary-tint-1);
}

.nav-toggle__icon {
  width: 1rem;
  height: 1rem;
}

.nav-toggle__panel {
  display: block;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--color-primary-darker);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-small);
}

.main-nav a:hover {
  background: var(--color-primary-tint-1);
  color: var(--color-primary-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-small);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-secondary:hover {
  background: var(--color-primary-tint-1);
}

.btn-block {
  width: 100%;
}

.header-cta {
  display: none;
}

/* -------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------- */
.hero {
  padding-block: var(--space-xl) var(--space-lg);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero__headline {
  margin-bottom: var(--space-sm);
}

.hero__rotator-wrap {
  display: inline-block;
}

.hero__rotator {
  position: relative;
  /* inline-grid statt inline-block: Alle Wörter werden in dieselbe
     Grid-Zelle gelegt (siehe .hero__rotator-word). Dadurch berechnet
     der Browser die Breite automatisch anhand des breitesten Wortes –
     es muss keine Zeichenbreite mehr geschätzt werden. */
  display: inline-grid;
  height: 1.25em;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--color-primary);
}

.hero__rotator-word {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Aktives Wort wird per main.js durchgewechselt (Klasse "is-active") –
   funktioniert unabhängig davon, wie viele .hero__rotator-word-Spans
   vorhanden sind. Es muss dafür nichts in diesem Stylesheet angepasst
   werden, wenn Wörter ergänzt oder entfernt werden. */
.hero__rotator-word.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback ohne JavaScript (oder solange main.js noch nicht geladen
   hat): einfach das erste Wort dauerhaft anzeigen. Sobald main.js die
   Klasse "js-rotating" auf .hero__rotator setzt, übernimmt stattdessen
   ausschließlich "is-active" oben die Sichtbarkeit. */
.hero__rotator:not(.js-rotating) .hero__rotator-word:first-child {
  opacity: 1;
  transform: translateY(0);
}

.hero__lead {
  font-size: 1.15rem;
  max-width: 40rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--color-muted);
  font-size: 0.95rem;
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  list-style: none;
}

.hero__meta svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: var(--space-md);
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
  padding: 0;
  margin: 0;
}

.hero__trust li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--color-muted);
  margin: 0;
}

.hero__trust svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.hero__visual {
  position: relative;
}

.hero__art {
  width: 100%;
  height: auto;
  border-radius: var(--radius-large);
}

/* -------------------------------------------------------------------------
   8. Vertrauensleiste
   ------------------------------------------------------------------------- */
.trust-strip {
  padding-block: var(--space-md);
  border-block: 1px solid var(--color-border);
  background: var(--color-white);
}

.trust-strip__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-strip__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary-darker);
  margin: 0;
}

.trust-strip__list svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   9. Leistungen
   ------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  padding: var(--space-sm);
  box-shadow: var(--shadow-soft);
}

.service-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-small);
  background: var(--color-primary-tint-1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
}

.service-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-card p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   10. Branchen-Mosaik (Signatur-Element)
   ------------------------------------------------------------------------- */
.industry-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.industry-tile {
  border-radius: var(--radius-medium);
  padding: var(--space-sm);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.industry-tile__icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.6rem;
  color: var(--color-primary-darker);
}

.industry-tile h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.industry-tile p {
  font-size: 0.92rem;
  margin-bottom: 0;
  max-width: none;
  /* Etwas dunkler als das übliche --color-muted, damit der Text auch auf
     dem dunkelsten Kachelton (tint-3) den nötigen Kontrast erreicht. */
  color: var(--color-tile-text);
}

.industry-tile--tint-1 {
  background: var(--color-tile-1);
}
.industry-tile--tint-2 {
  background: var(--color-tile-2);
}
.industry-tile--tint-3 {
  /* Vorher versehentlich identisch mit dem Hintergrund von .section-alt
     (var(--color-surface)) – dadurch verschwand die Kachel optisch.
     Jetzt ein eigener, deutlich abgesetzter Farbton (siehe :root). */
  background: var(--color-tile-3);
}
.industry-tile--tint-4 {
  background: var(--color-tile-4);
}

.industry-note {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-white);
}

.industry-note p {
  margin-bottom: 0;
  max-width: none;
}

/* -------------------------------------------------------------------------
   11. Vorteile
   ------------------------------------------------------------------------- */
.benefit-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefit-list li {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
  margin: 0;
}

.benefit-list__icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-list__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.benefit-list h3 {
  margin-bottom: 0.25rem;
}

.benefit-list p {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   12. Ablauf
   ------------------------------------------------------------------------- */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.process-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  margin: 0;
}

.process-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.process-list h3 {
  margin-bottom: 0.3rem;
}

.process-list p {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   13. Über uns
   ------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.about-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  padding: var(--space-sm);
}

.about-panel h3 {
  font-size: 1rem;
  color: var(--color-primary-dark);
}

.about-panel ul {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   14. FAQ
   ------------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  padding: 0.25rem var(--space-sm);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 0;
  color: var(--color-primary-darker);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 0.9rem;
  margin: 0;
  max-width: none;
}

/* -------------------------------------------------------------------------
   15. Kontakt & Formular
   ------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-info__list {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.contact-info__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0;
}

.contact-info__list svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-info__list a {
  color: var(--color-white);
  font-weight: 700;
}

.contact-note {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-medium);
  padding: var(--space-sm);
}

.contact-note p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.contact-form {
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--radius-large);
  padding: var(--space-md);
  box-shadow: var(--shadow-strong);
}

.form-row {
  margin-bottom: var(--space-sm);
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.form-row label,
.form-row legend {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-primary-darker);
  margin-bottom: 0.35rem;
}

.form-hint {
  font-size: 0.83rem;
  color: var(--color-muted);
  margin-top: 0.3rem;
  margin-bottom: 0;
}

.required-mark {
  color: var(--color-accent);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--color-text);
  background: var(--color-background);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-small);
  padding: 0.75rem 0.85rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
}

.form-row--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.form-row--checkbox input {
  margin-top: 0.3rem;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.form-row--checkbox label {
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0;
}

/* Honeypot-Feld: für Menschen unsichtbar, aber im Layout vorhanden
   (kein display:none, damit einfache Bot-Heuristiken es nicht überspringen) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-primary-darker);
  color: rgba(255, 255, 255, 0.85);
  padding-block: var(--space-lg) var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand__mark {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 26rem;
}

.footer-heading {
  color: var(--color-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  display: inline-block;
  padding: 0.3rem 0;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}

/* -------------------------------------------------------------------------
   17. Statusmeldungen (Formular)
   ------------------------------------------------------------------------- */
.form-status {
  border-radius: var(--radius-medium);
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-weight: 600;
  display: none;
}

.form-status[data-visible="true"] {
  display: block;
}

.form-status--success {
  background: var(--color-success-bg);
  border: 1.5px solid var(--color-success-border);
  color: var(--color-success-text);
}

.form-status--error {
  background: var(--color-error-bg);
  border: 1.5px solid var(--color-error-border);
  color: var(--color-error-text);
}

.form-status--info {
  background: var(--color-primary-tint-1);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary-darker);
}

/* -------------------------------------------------------------------------
   17b. Vorher/Nachher-Vergleich (Signatur-Element)
   ------------------------------------------------------------------------- */
.compare {
  position: relative;
  margin-top: var(--space-lg);
  max-width: 54rem;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-large);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-strong);
  user-select: none;
  cursor: ew-resize;
  /* "pan-y" statt "none": vertikales Seiten-Scrollen bleibt per Touch
     möglich, sobald der Finger auf dem Regler liegt. Nur die
     horizontale Ziehgeste wird weiterhin von main.js ausgewertet. */
  touch-action: pan-y;
}

.compare:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

.compare-frame {
  position: absolute;
  inset: 0;
}

.compare-after {
  z-index: 1;
}

.compare-before {
  z-index: 2;
  /* Startzustand ohne JavaScript: 75% "Vorher" sichtbar (siehe main.js,
     dort wird derselbe Startwert per reglerWertSetzen(75) gesetzt). */
  clip-path: inset(0 25% 0 0);
}

.compare-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-primary-darker);
  padding: 5px 12px;
  border-radius: 20px;
  color: var(--color-white);
  z-index: 3;
}

.compare-before .compare-label {
  left: auto;
  right: 14px;
  background: var(--color-white);
  color: var(--color-primary-darker);
  border: 1px solid var(--color-border);
}

.mock-browser {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
}

.mock-bar {
  height: 2.1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0.75rem;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}

.mock-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
}

.mock-bar-error span {
  background: #d9b6b1;
}

.mock-bar-error span:first-child {
  background: #b3392f;
}

.mock-url {
  margin-left: 0.6rem;
  font-size: 0.68rem;
  color: var(--color-muted);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 3px 10px;
  border-radius: 20px;
}

.mock-url-error {
  color: #7c261e;
  background: #fbeceb;
  border-color: #f0cdc9;
}

.mock-body {
  flex: 1;
  padding: 1.1rem 1.2rem;
  overflow: hidden;
}

.mock-after {
  background: linear-gradient(180deg, var(--color-white), var(--color-primary-tint-1));
}

.mock-nav {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.mock-nav .mock-logo {
  font-weight: 800;
  color: var(--color-primary-darker);
  font-size: 0.85rem;
}

.mock-nav span:not(.mock-logo):not(.mock-status-pill) {
  font-size: 0.72rem;
  color: var(--color-muted);
}

.mock-status-pill {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: #1f5c38;
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  padding: 4px 10px;
  border-radius: 20px;
}

.mock-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f7d4f;
  display: inline-block;
  animation: mock-pulse 1.8s ease-in-out infinite;
}

@keyframes mock-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(47, 125, 79, 0.45);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 4px rgba(47, 125, 79, 0);
  }
}

.mock-hero {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 1.3rem;
}

.mock-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.mock-h1 {
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--color-primary-darker);
  max-width: 17ch;
}

.mock-cta {
  margin-top: 0.35rem;
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-small);
}

.mock-chip-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.mock-chip {
  font-size: 0.62rem;
  color: var(--color-primary-dark);
  background: var(--color-primary-tint-2);
  border: 1px solid var(--color-primary-tint-3);
  padding: 4px 9px;
  border-radius: 20px;
}

.mock-cards {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}

.mock-card {
  flex: 1;
  border-radius: var(--radius-small);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 0.65rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.32rem;
  font-size: 0.62rem;
  color: var(--color-muted);
  text-align: left;
}

.mock-card-title {
  margin: 0 0 0.15rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-darker);
}

/* Platzhalter-"Wolken" (Skeleton-Loader): deuten Inhalte an, die noch
   nicht final formuliert sind – ähnliches Prinzip wie bei Social-Media-
   Apps, während Inhalte laden. Dezente, endlos laufende Schimmer-
   Animation; wird bei reduzierter Bewegung global auf nahezu 0
   verkürzt (siehe Abschnitt 19). */
.mock-skel {
  display: block;
  height: 0.34rem;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--color-surface-alt) 25%,
    var(--color-border) 37%,
    var(--color-surface-alt) 63%
  );
  background-size: 400% 100%;
  animation: mock-shimmer 1.8s ease-in-out infinite;
}

.mock-skel--sm {
  width: 45%;
}
.mock-skel--md {
  width: 65%;
}
.mock-skel--lg {
  width: 88%;
}
.mock-skel--full {
  width: 100%;
}

@keyframes mock-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.mock-skel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mock-skel-list li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}

.mock-skel-dot {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.mock-skel-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.1rem;
}

.mock-skel-avatar {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    var(--color-surface-alt) 25%,
    var(--color-border) 37%,
    var(--color-surface-alt) 63%
  );
  background-size: 400% 100%;
  animation: mock-shimmer 1.8s ease-in-out infinite;
}

/* Pseudo-Kontaktformular: Eingabefelder bleiben bewusst statisch (kein
   Schimmer), da sie eine feste Formularstruktur andeuten, keinen noch
   ladenden Text. */
.mock-field {
  display: block;
  height: 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: var(--color-background);
}

.mock-field--tall {
  height: 1rem;
}

.mock-field-btn {
  display: block;
  height: 0.55rem;
  width: 55%;
  margin-top: 0.05rem;
  border-radius: 4px;
  background: var(--color-primary);
}

.mock-error {
  background: #ececec;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  padding: 1.3rem;
}

.mock-error-icon {
  color: #9aa0a6;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.2rem;
}

.mock-error-icon svg {
  width: 100%;
  height: 100%;
}

.mock-error-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #3c4043;
  margin: 0;
}

.mock-error-sub {
  font-size: 0.76rem;
  color: #5f6368;
  max-width: 30ch;
  margin: 0;
}

.mock-error-alert {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  color: #9a3b2e;
  background: rgba(154, 59, 46, 0.09);
  border: 1px solid rgba(154, 59, 46, 0.25);
  padding: 6px 12px;
  border-radius: 20px;
}

.compare-handle {
  position: absolute;
  top: 50%;
  /* Startzustand ohne JavaScript: Griff bei 75% (siehe .compare-before
     oben und reglerWertSetzen(75) in main.js). */
  left: 75%;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  box-shadow: var(--shadow-strong);
}

/* Kurzer Hinweis-Effekt, sobald der Vergleich in den sichtbaren Bereich
   scrollt (siehe main.js): Der Griff "wackelt" einmal hin und her und
   sendet einen kurzen Puls-Ring, um auf die Ziehbarkeit hinzuweisen. */
.compare-handle.is-hinting {
  animation: compare-hint-wiggle 1.1s ease-in-out 1;
}

.compare-handle.is-hinting::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  animation: compare-hint-pulse 1.1s ease-out 1;
}

@keyframes compare-hint-wiggle {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  15% {
    transform: translate(calc(-50% - 11px), -50%);
  }
  32% {
    transform: translate(calc(-50% + 9px), -50%);
  }
  50% {
    transform: translate(calc(-50% - 6px), -50%);
  }
  68% {
    transform: translate(calc(-50% + 4px), -50%);
  }
  85% {
    transform: translate(calc(-50% - 2px), -50%);
  }
}

@keyframes compare-hint-pulse {
  0% {
    opacity: 0.85;
    transform: scale(0.85);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

.compare-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  max-width: none;
}

@media (prefers-reduced-motion: reduce) {
  .mock-status-dot {
    animation: none;
  }
}

/* -------------------------------------------------------------------------
   17c. Preise
   ------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.price-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card--highlight {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-strong);
}

.price-badge {
  position: absolute;
  top: -0.8rem;
  left: var(--space-md);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.price-name {
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.price-value {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--color-primary-darker);
  margin-bottom: var(--space-sm);
}

.price-value span {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
}

.price-card ul {
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.price-card li {
  font-size: 0.92rem;
}

.pricing-note {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--color-muted);
  max-width: none;
}

/* Sonderaktions-Kachel: einzelne, zentrierte und bewusst auffälligere
   Variante von .price-card für eine zeitlich begrenzte Aktion. */
.promo-card-wrap {
  max-width: 34rem;
  margin-inline: auto;
}

.price-card--promo {
  border-color: var(--color-accent);
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(185, 129, 47, 0.14), var(--shadow-strong);
}

.price-card--promo .price-value {
  font-size: 2.1rem;
}

.price-old {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: line-through;
  text-decoration-color: var(--color-accent);
  margin-right: 0.5rem;
}

.price-card--promo .industry-note {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

/* -------------------------------------------------------------------------
   18. Responsive Anpassungen
   ------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .hero__trust {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .industry-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row--split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 780px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }

  .nav-toggle__button {
    display: none;
  }

  .nav-toggle__panel {
    display: block !important;
  }

  .main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }

  .main-nav a {
    padding: 0.55rem 0.85rem;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .industry-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-strip__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--space-lg);
  }
}

@media (max-width: 899.98px) {
  .nav-toggle__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-strong);
    padding: 0.6rem;
    min-width: 15rem;
  }
}

/* ---------------------------------------------------------------------
   Vorher/Nachher-Mockup auf schmalen Bildschirmen:
   Die Mockup-Inhalte wurden ursprünglich für die breite Desktop-Kachel
   ausgelegt. Auf schmalen Handys reichte die Höhe (aspect-ratio 16/11)
   nicht aus, wodurch Inhalte am unteren Rand abgeschnitten wurden.
   Der Regler wird hier deutlich höher, und Schriftgrößen/Abstände im
   Mockup werden passend verkleinert.
   ------------------------------------------------------------------- */
@media (max-width: 640px) {
  .compare {
    aspect-ratio: 3 / 4;
  }

  .mock-bar {
    height: 1.7rem;
  }

  .mock-body {
    padding: 0.8rem 0.85rem;
  }

  .mock-nav {
    gap: 0.5rem;
    margin-bottom: 0.8rem;
  }

  .mock-hero {
    gap: 0.3rem;
    margin-bottom: 0.85rem;
  }

  .mock-h1 {
    font-size: 1rem;
    max-width: none;
  }

  .mock-cta {
    font-size: 0.62rem;
    padding: 0.4rem 0.75rem;
  }

  .mock-chip-row {
    gap: 0.35rem;
  }

  .mock-cards {
    gap: 0.4rem;
  }

  .mock-card {
    padding: 0.5rem 0.4rem;
  }

  .mock-error {
    padding: 0.8rem;
    gap: 0.3rem;
  }

  .mock-error-icon {
    width: 2rem;
    height: 2rem;
  }

  .mock-error-title {
    font-size: 0.9rem;
  }

  .mock-error-sub {
    font-size: 0.66rem;
  }

  .mock-error-alert {
    font-size: 0.6rem;
    padding: 5px 9px;
  }
}

@media (min-width: 1100px) {
  .industry-mosaic {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* -------------------------------------------------------------------------
   19. Bewegungsreduzierung & weitere A11y-Regeln
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Unabhängig von main.js/.is-active: bei reduzierter Bewegung wird
     ausschließlich das erste Wort dauerhaft angezeigt. */
  .hero__rotator-word {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__rotator-word:not(:first-child) {
    display: none;
  }
}

@media (forced-colors: active) {
  .btn,
  .service-card,
  .industry-tile,
  .faq-item,
  .contact-form {
    border: 1px solid CanvasText;
  }
}
