@import url("fonts.css");

/* ==========================================================================
   Blue Incite — Stylesheet
   --------------------------------------------------------------------------
   Aufbau:
     1.  Design-Tokens (Farben, Schatten, Radien)
     2.  Reset & Grundlagen
     3.  Layout (Container, Sections)
     4.  Typografie
     5.  Buttons
     6.  Navigation
     7.  Footer
     8.  Scroll-Animationen
     9.  Hero-Bereiche
     10. Startseite
     11. Über uns
     12. Services
     13. Referenzen
     14. Karriere
     15. Kontakt
     16. Rechtstexte (Impressum / Datenschutz)
     17. Kontakt-Dialog & Formular
     18. Hinweis-Einblendung (Toast)

   Farben werden als HSL-Dreier gespeichert (z. B. "215 95% 26%"), damit sie
   mit Transparenz kombiniert werden können:  hsl(var(--primary) / 0.8)
   ========================================================================== */


/* ==========================================================================
   1. Design-Tokens
   ========================================================================== */

:root {
  /* Grundfarben */
  --background: 210 30% 98%;
  --foreground: 215 95% 26%;

  --card: 0 0% 100%;
  --card-foreground: 215 95% 26%;

  --primary: 215 95% 26%;
  --primary-foreground: 0 0% 100%;
  --primary-hover: 215 95% 35%;

  --secondary: 210 30% 96%;
  --secondary-foreground: 215 95% 26%;

  --muted: 210 20% 98%;
  --muted-foreground: 215 30% 50%;

  --accent: 200 85% 45%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 215 95% 26%;
  --input: 210 30% 90%;
  --ring: 215 95% 26%;

  /* Markenfarben */
  --brand-blue-light: 200 55% 75%;
  --brand-blue-medium: 210 65% 55%;
  --brand-blue-dark: 215 95% 26%;
  --brand-blue-darker: 215 95% 20%;

  /* Akzentfarben der Referenz-Karten */
  --amber: 43 96% 56%;
  --amber-text: 32 95% 44%;
  --emerald: 160 84% 39%;
  --emerald-text: 161 94% 30%;
  --sky: 199 89% 48%;
  --sky-text: 201 90% 40%;
  --step-1: 217 91% 60%;   /* blue-500  */
  --step-2: 239 84% 67%;   /* indigo-500 */

  /* Radien */
  --radius: 0.75rem;
  --radius-md: calc(var(--radius) - 2px);
  --radius-sm: calc(var(--radius) - 4px);

  /* Schatten */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glass: 0 8px 32px rgb(0 0 0 / 0.08);
  --shadow-glass-hover: 0 16px 48px rgb(0 0 0 / 0.12);
  --shadow-btn: 0 4px 12px -2px hsl(215 95% 26% / 0.25);
  --shadow-btn-hover: 0 8px 20px -4px hsl(215 95% 26% / 0.35);

  /* Bewegung */
  --ease-reveal: cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Höhe der fixierten Navigation */
  --nav-height: 5rem;
}


/* ==========================================================================
   2. Reset & Grundlagen
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid hsl(var(--border));
  margin: 0;
  padding: 0;
}

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

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
  background: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* Sprungziel für Tastaturnutzung */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.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;
}


/* ==========================================================================
   3. Layout
   ========================================================================== */

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 3rem;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

/* Seiteninhalt beginnt unter der fixierten Navigation */
.page {
  min-height: 100vh;
  background-color: hsl(var(--background));
  padding-top: var(--nav-height);
}

/* Die Startseite schiebt ihr Hero-Bild bis unter die Navigation */
.page--home {
  padding-top: 0;
}

/* Vertikale Abstände der Abschnitte */
.section {
  padding-block: 2.5rem;
}

.section--tight {
  padding-block: 2rem;
}

.section--tighter {
  padding-block: 1.5rem;
}

/* py-8 lg:py-12 im Original */
.section--tight-wide {
  padding-block: 2rem;
}

/* py-12 im Original (ohne Sprung) */
.section--flat {
  padding-block: 3rem;
}

.section--muted {
  background-color: hsl(var(--secondary) / 0.3);
}

.section--overflow-hidden {
  overflow: hidden;
}

.section--relative {
  position: relative;
}

@media (min-width: 1024px) {
  .section {
    padding-block: 3.5rem;
  }

  .section--tight {
    padding-block: 2.5rem;
  }

  .section--tighter {
    padding-block: 2rem;
  }

  .section--tight-wide {
    padding-block: 3rem;
  }

  .section--flat {
    padding-block: 3rem;
  }
}


/* ==========================================================================
   4. Typografie
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  color: hsl(var(--primary));
}

/* Seitenüberschrift */
.title-page {
  font-size: 1.875rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.title-page--home {
  margin-bottom: 1.5rem;
}

/* Abschnittsüberschrift */
.title-section {
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 1rem;
}

.title-section--center {
  text-align: center;
}

/* Abstand nach unten - die Stufen entsprechen der Vorlage */
.title-section--gap-md {
  margin-bottom: 1.5rem;
}

.title-section--gap-lg {
  margin-bottom: 2rem;
}

.title-section--gap-xl {
  margin-bottom: 2.5rem;
}

.title-section--gap-2xl {
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .title-page {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .title-section {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

@media (min-width: 768px) {
  .title-page {
    font-size: 3rem;
    line-height: 1;
  }

  .title-section {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .title-page {
    font-size: 3.75rem;
  }
}

/* Untertitel unter der Seitenüberschrift */
.subtitle {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 300;
  color: hsl(var(--primary) / 0.8);
}

.subtitle--spaced {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .subtitle {
    font-size: 1.25rem;
  }
}

/* Inhalt oberhalb dekorativer Flaechen halten */
.is-layered {
  position: relative;
}

/* Kraeftiger Untertitel (Karriere-Seite) */
.subtitle-strong {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .subtitle-strong {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

/* Hervorgehobene Frage im Fließtext */
.text-question {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

/* Fließtext */
.text-body {
  font-size: 1.125rem;
  line-height: 1.625;
  color: hsl(var(--foreground) / 0.8);
}

.text-body + .text-body {
  margin-top: 1.5rem;
}

.text-lead {
  max-width: 56rem;
}

.text-note {
  color: hsl(var(--foreground) / 0.6);
}

.text-note--spaced {
  margin-top: 1.5rem;
}

.prose-narrow {
  max-width: 48rem;
}

.prose-wide {
  max-width: 56rem;
}

.prose-xl {
  max-width: 64rem;
}

/* Überschriften, die auf großen Schirmen einzeilig bleiben.
   Bewusst erst ab 1024px: darunter würde der Text sonst rechts
   abgeschnitten (dieser Fehler steckt in der Lovable-Vorlage). */
@media (min-width: 1024px) {
  .no-wrap {
    white-space: nowrap;
  }
}

.stack-lg > * + * {
  margin-top: 1.5rem;
}


/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  height: 2.5rem;
  padding-inline: 1rem;
  transition: all 300ms ease-in-out;
}

/* Icons in Buttons sind immer 1rem groß */
.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  pointer-events: none;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Varianten */
.btn--primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background-color: hsl(var(--primary-hover));
  transform: scale(1.05);
  box-shadow: var(--shadow-btn-hover);
}

.btn--outline {
  background-color: hsl(var(--background));
  color: hsl(var(--primary));
  box-shadow: 0 4px 12px -2px hsl(215 95% 26% / 0.15);
}

.btn--outline:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: scale(1.05);
  box-shadow: 0 8px 20px -4px hsl(215 95% 26% / 0.25);
}

.btn--ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  transform: scale(1.05);
}

/* Größen */
.btn--sm {
  height: 2.25rem;
  padding-inline: 0.75rem;
}

/* Große Buttons im Seiteninhalt (Original: size lg + px-8 py-6 text-lg) */
.btn--lg {
  height: 3rem;
  padding-inline: 2rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.btn--icon {
  height: 2.5rem;
  width: 2.5rem;
  padding: 0;
  border-radius: 9999px;
}


/* ==========================================================================
   6. Navigation
   ========================================================================== */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid hsl(var(--border) / 0.2);
}

.site-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.site-nav__logo img {
  height: 2rem;
  width: auto;
}

.site-nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav__link {
  position: relative;
  padding-block: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.7);
  transition: all 200ms;
}

.site-nav__link:hover {
  color: hsl(var(--primary));
}

/* Aktive Seite: aria-current="page" wird im HTML gesetzt */
.site-nav__link[aria-current="page"] {
  color: hsl(var(--primary));
  font-weight: 600;
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  border-radius: 9999px;
  background-color: hsl(var(--primary));
}

.site-nav__lang {
  display: none;
  align-items: center;
}

.site-nav__toggle {
  padding: 0.5rem;
  color: hsl(var(--foreground));
}

.site-nav__toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.site-nav__toggle .icon-close,
.site-nav__toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.site-nav__toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobiles Menü */
.site-nav__mobile {
  display: none;
  padding-block: 1rem;
  border-top: 1px solid hsl(var(--border) / 0.2);
}

.site-nav__mobile.is-open {
  display: block;
}

.site-nav__mobile-link {
  display: block;
  padding-block: 0.75rem;
  padding-left: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.7);
  border-left: 2px solid transparent;
  transition: all 200ms;
}

.site-nav__mobile-link:hover {
  border-left-color: hsl(var(--primary) / 0.3);
  color: hsl(var(--primary));
}

.site-nav__mobile-link[aria-current="page"] {
  color: hsl(var(--primary));
  font-weight: 600;
  border-left-color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.05);
}

.site-nav__mobile .btn {
  margin-top: 1rem;
  color: hsl(var(--foreground) / 0.7);
}

@media (min-width: 768px) {
  .site-nav__links,
  .site-nav__lang {
    display: flex;
  }

  .site-nav__toggle,
  .site-nav__mobile {
    display: none !important;
  }
}


/* ==========================================================================
   7. Footer
   ========================================================================== */

.site-footer {
  background-color: hsl(var(--background));
  border-top: 1px solid hsl(var(--border) / 0.2);
  margin-top: auto;
}

.site-footer__inner {
  padding-block: 4rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.site-footer__logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
}

.site-footer h2 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.site-footer a {
  color: hsl(var(--foreground) / 0.6);
  transition: color 150ms;
}

.site-footer a:hover {
  color: hsl(var(--primary));
}

.site-footer__legal {
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border) / 0.2);
}

.site-footer__legal p {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--foreground) / 0.5);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Schwebender Kontakt-Button unten rechts */
.floating-cta {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
}

.floating-cta:hover {
  transform: translateY(-0.25rem) scale(1.05);
}


/* ==========================================================================
   8. Scroll-Animationen
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s var(--ease-reveal),
    transform 0.6s var(--ease-reveal);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal="down"] {
  transform: translateY(-40px);
}

[data-reveal="left"] {
  transform: translateX(40px);
}

[data-reveal="right"] {
  transform: translateX(-40px);
}

[data-reveal="none"] {
  transform: none;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Gestaffelte Listen: die Verzögerung setzt das Skript je Kind */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s var(--ease-reveal),
    transform 0.5s var(--ease-reveal);
  transition-delay: var(--reveal-delay, 0s);
}

[data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

/* Nutzer, die weniger Bewegung wünschen, sehen alles sofort */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal],
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn:hover,
  .floating-cta:hover {
    transform: none;
  }
}


/* ==========================================================================
   9. Hero-Bereiche
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 2.5rem;
}

.hero--home {
  padding-top: 6rem;
  padding-bottom: 2.5rem;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Farbverlauf, der den Text lesbar hält */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to right,
    hsl(var(--background)),
    hsl(var(--background) / 0.95),
    hsl(var(--background) / 0.6)
  );
}

.hero--home .hero__media::after {
  background-image: linear-gradient(
    to right,
    hsl(var(--background)),
    hsl(var(--background) / 0.9),
    hsl(var(--background) / 0.4)
  );
}

.hero__inner {
  position: relative;
  z-index: 10;
}

.hero__content {
  max-width: 56rem;
}

.hero--home .hero__content {
  max-width: 42rem;
}

@media (min-width: 1024px) {
  .hero {
    padding-block: 3.5rem;
  }

  .hero--home {
    padding-top: 7rem;
    padding-bottom: 3.5rem;
  }

  /* Auf großen Schirmen bleibt die rechte Hälfte dem Bild überlassen */
  .hero--home .hero__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
  }
}


/* ==========================================================================
   10. Startseite
   ========================================================================== */

/* Kartenraster (Leistungsversprechen / Erfahrungen) */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.feature-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius);
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.3);
  box-shadow: var(--shadow-sm);
}

.feature-card svg {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: hsl(var(--primary));
  stroke-width: 1.5;
}

.feature-card h3 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--foreground) / 0.7);
}

/* Dunkle Variante für den Abschnitt "Erfahrungen" */
.feature-card--solid {
  background-color: hsl(var(--primary));
  border: 0;
}

.feature-card--solid svg,
.feature-card--solid h3 {
  color: hsl(var(--primary-foreground));
}

.feature-card--solid p {
  color: hsl(var(--primary-foreground) / 0.8);
}

/* Buttonreihe im Abschlussblock */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


/* ==========================================================================
   11. Über uns
   ========================================================================== */

/* Zweispaltiger Textblock */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Radialdiagramm "Warum Blue Incite" ------------------------------- */

/* Gestapelte Karten für schmale Schirme */
.radial-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.radial-diagram {
  display: none;
}

.value-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background-color: hsl(var(--card) / 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.value-card__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(to bottom right, hsl(var(--primary)), hsl(var(--primary) / 0.7));
  box-shadow: var(--shadow-md);
}

.value-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary-foreground));
  stroke-width: 2;
}

.value-card h3 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--foreground) / 0.8);
}

@media (min-width: 1024px) {
  .radial-stack {
    display: none;
  }

  .radial-diagram {
    display: block;
    position: relative;
    width: 100%;
    max-width: 64rem;
    min-height: 480px;
    margin-inline: auto;
  }

  .radial-diagram__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }

  /* Linien zeichnen sich beim Sichtbarwerden.
     --line-length setzt das Skript auf die gemessene Linienlänge. */
  .radial-diagram__lines line {
    stroke-dasharray: var(--line-length, 400);
    stroke-dashoffset: var(--line-length, 400);
    opacity: 0;
    transition:
      stroke-dashoffset 1.2s cubic-bezier(0.42, 0, 0.58, 1),
      opacity 0.3s linear;
    transition-delay: var(--line-delay, 0s);
  }

  .radial-diagram.is-visible .radial-diagram__lines line {
    stroke-dashoffset: 0;
    opacity: 0.7;
  }

  .radial-diagram__card {
    position: absolute;
    width: 42%;
    z-index: 10;
    opacity: 0;
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
    transition-delay: var(--card-delay, 0s);
  }

  .radial-diagram__card--tl {
    left: 0;
    top: 0;
    transform: translateY(-20px);
  }

  .radial-diagram__card--tr {
    right: 0;
    top: 0;
    transform: translateY(-20px);
  }

  .radial-diagram__card--bl {
    left: 0;
    bottom: 0;
    transform: translateY(20px);
  }

  .radial-diagram__card--br {
    right: 0;
    bottom: 0;
    transform: translateY(20px);
  }

  .radial-diagram.is-visible .radial-diagram__card {
    opacity: 1;
    transform: none;
  }

  .radial-diagram .value-card {
    height: 160px;
    padding: 1.25rem;
    flex-direction: column;
    gap: 0;
    background-color: hsl(var(--card) / 0.95);
  }

  .radial-diagram .value-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .radial-diagram .value-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    transition: transform 300ms;
  }

  .radial-diagram .value-card__icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .radial-diagram .value-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-xl);
  }

  .radial-diagram .value-card:hover .value-card__icon {
    transform: scale(1.1);
  }

  .radial-diagram .value-card h3 {
    font-size: 1rem;
    line-height: 1.5rem;
    margin-bottom: 0;
  }

  .radial-diagram .value-card p {
    flex: 1;
  }

  /* Logo in der Mitte */
  .radial-diagram__center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 20;
    width: 7.7rem;
    height: 7.7rem;
    padding: 0.75rem;
    border-radius: 9999px;
    background-color: hsl(var(--primary));
    border: 4px solid hsl(var(--primary) / 0.2);
    box-shadow: var(--shadow-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition:
      transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
      opacity 0.5s ease;
    transition-delay: 0.8s;
  }

  .radial-diagram.is-visible .radial-diagram__center {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .radial-diagram__center img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }
}

/* --- Team-Galerie ------------------------------------------------------ */

.gallery-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-heading h2 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  margin-bottom: 0.5rem;
}

.gallery-heading p {
  color: hsl(var(--foreground) / 0.6);
}

@media (min-width: 640px) {
  .gallery-heading h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

.team-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.3);
  box-shadow: var(--shadow-md);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==========================================================================
   Karussell (Team-Galerie, Projekte, Kundenstimmen)
   ========================================================================== */

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.5s ease-out;
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 auto;
  min-width: 0;
}

/* Vier Slides nebeneinander (Team) */
.carousel--team .carousel__track {
  margin-left: -0.5rem;
}

.carousel--team .carousel__slide {
  flex-basis: 50%;
  padding-left: 0.5rem;
}

@media (min-width: 768px) {
  .carousel--team .carousel__track {
    margin-left: -1rem;
  }

  .carousel--team .carousel__slide {
    flex-basis: 33.333333%;
    padding-left: 1rem;
  }
}

@media (min-width: 1024px) {
  .carousel--team .carousel__slide {
    flex-basis: 25%;
  }
}

/* Ein Slide (Projekte) */
.carousel--projects .carousel__track {
  margin-left: -1rem;
}

.carousel--projects .carousel__slide {
  flex-basis: 100%;
  padding-left: 1rem;
}

@media (min-width: 768px) {
  .carousel--projects .carousel__track {
    margin-left: -1.5rem;
  }

  .carousel--projects .carousel__slide {
    padding-left: 1.5rem;
  }
}

/* Drei Slides (Kundenstimmen) */
.carousel--quotes .carousel__track {
  margin-left: -1rem;
}

.carousel--quotes .carousel__slide {
  flex-basis: 100%;
  padding-left: 1rem;
}

@media (min-width: 768px) {
  .carousel--quotes .carousel__slide {
    flex-basis: 50%;
  }
}

@media (min-width: 1024px) {
  .carousel--quotes .carousel__slide {
    flex-basis: 33.333333%;
  }
}

/* Kopfzeile mit Steuerung */
.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.carousel-header .title-section {
  margin-bottom: 0;
}

.carousel-header__title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-header__title > svg {
  width: 2rem;
  height: 2rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-dots {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .carousel-dots {
    display: flex;
  }
}

.carousel-dots--mobile {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .carousel-dots--mobile {
    display: none;
  }
}

.carousel-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary) / 0.3);
  transition: all 300ms;
}

.carousel-dot:hover {
  background-color: hsl(var(--primary) / 0.5);
}

.carousel-dot[aria-current="true"] {
  background-color: hsl(var(--primary));
  width: 2rem;
}

.carousel-dots--mobile .carousel-dot[aria-current="true"] {
  width: 1.5rem;
}

/* Kleinere Punkte bei den Kundenstimmen */
.carousel-dots--sm .carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
}

.carousel-dots--sm .carousel-dot[aria-current="true"] {
  width: 1.5rem;
}

.carousel-dots--sm.carousel-dots--mobile .carousel-dot[aria-current="true"] {
  width: 1.25rem;
}

.carousel-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.3);
  background-color: hsl(var(--background));
  color: hsl(var(--primary));
  transition: all 300ms;
}

.carousel-btn:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.carousel-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.carousel-btn--sm {
  height: 2.25rem;
  width: 2.25rem;
}

.carousel-btn--sm svg {
  width: 1rem;
  height: 1rem;
}

/* Abspiel-/Pause-Umschalter */
.carousel-btn[data-playing="true"] .icon-play,
.carousel-btn[data-playing="false"] .icon-pause {
  display: none;
}


/* ==========================================================================
   12. Services
   ========================================================================== */

.services-portfolio {
  position: relative;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.services-portfolio__intro {
  text-align: center;
  margin-bottom: 4rem;
}

.services-portfolio__intro h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  margin-bottom: 1rem;
}

.services-portfolio__intro p {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: hsl(var(--foreground) / 0.7);
  max-width: 42rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .services-portfolio__intro h2 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.services-flow {
  position: relative;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Verbindungslinie zwischen den drei Schritten */
.services-flow__line {
  display: none;
}

@media (min-width: 1024px) {
  .services-flow__line {
    display: block;
    position: absolute;
    left: 16.67%;
    right: 16.67%;
    top: 48px;
    height: 4px;
    border-radius: 9999px;
    z-index: 1;
    background-image: linear-gradient(to right, hsl(var(--step-1)), hsl(var(--step-2)), hsl(var(--primary)));
  }

  .services-flow__line::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    filter: blur(6px);
    opacity: 0.4;
    background-image: linear-gradient(to right, hsl(var(--step-1)), hsl(var(--step-2)), hsl(var(--primary)));
  }
}

.services-flow__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-flow__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .services-flow__steps {
    gap: 3rem;
  }
}

.service-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 500ms ease-out;
}

.service-step:hover {
  transform: translateY(-0.5rem);
}

.service-step__badge {
  position: relative;
  margin-bottom: 1.5rem;
  z-index: 2;
}

.service-step__circle {
  position: relative;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  border: 4px solid hsl(var(--background));
  transition: transform 300ms;
}

.service-step__circle svg {
  width: 2.5rem;
  height: 2.5rem;
  color: #fff;
}

.service-step:hover .service-step__circle {
  transform: scale(1.1);
}

/* Weicher Schein hinter dem Kreis beim Überfahren */
.service-step__glow {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  opacity: 0;
  transform: scale(1);
  filter: blur(6px);
  transition: all 500ms;
}

.service-step:hover .service-step__glow {
  opacity: 0.3;
  transform: scale(1.1);
}

.service-step__number {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: hsl(var(--background));
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.service-step h3 {
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.service-step__subtitle {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--primary));
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .service-step__circle {
    width: 6rem;
    height: 6rem;
  }

  .service-step__circle svg {
    width: 3rem;
    height: 3rem;
  }

  .service-step h3 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

/* Glaskarte mit den Stichpunkten */
.service-step__card {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background-color: hsl(var(--card) / 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / 0.2);
  box-shadow: var(--shadow-lg);
  transition: all 500ms;
}

.service-step:hover .service-step__card {
  background-color: hsl(var(--card) / 0.8);
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: var(--shadow-xl);
}

.service-step__card ul {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.service-step__card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--foreground) / 0.8);
  transition: all 300ms;
}

.service-step:hover .service-step__card li {
  transform: translateX(0.25rem);
  color: hsl(var(--foreground));
}

.service-step__card li::before {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 9999px;
  background-image: var(--step-gradient);
}

.service-step__accent {
  height: 4px;
  opacity: 0.7;
  background-image: var(--step-gradient);
  transition: all 500ms;
}

.service-step:hover .service-step__accent {
  height: 6px;
  opacity: 1;
}

/* Pfeil zwischen den Schritten (nur schmale Schirme) */
.service-step__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: 1.5rem;
}

.service-step__arrow > span {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-step__arrow svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

@media (min-width: 768px) {
  .service-step__arrow {
    display: none;
  }
}

/* Farben der drei Schritte */
.service-step--1 {
  --step-color: hsl(var(--step-1));
  --step-gradient: linear-gradient(to bottom right, hsl(217 91% 60%), hsl(221 83% 53%));
}

.service-step--2 {
  --step-color: hsl(var(--step-2));
  --step-gradient: linear-gradient(to bottom right, hsl(239 84% 67%), hsl(243 75% 59%));
}

.service-step--3 {
  --step-color: hsl(var(--primary));
  --step-gradient: linear-gradient(to bottom right, hsl(var(--primary)), hsl(var(--primary) / 0.8));
}

.service-step__circle,
.service-step__glow,
.service-step__arrow > span {
  background-image: var(--step-gradient);
}

.service-step__number {
  color: var(--step-color);
}

/* --- Ausführliche Leistungsbeschreibung -------------------------------- */

.section-heading-center {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading-center .title-section {
  margin-bottom: 1rem;
}

.section-heading-center__rule {
  width: 6rem;
  height: 4px;
  margin-inline: auto;
  background-image: linear-gradient(to right, transparent, hsl(var(--primary)), transparent);
}

.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-detail {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background-color: hsl(var(--card) / 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / 0.2);
  box-shadow: var(--shadow-glass);
  transition: all 500ms;
}

.service-detail:hover {
  box-shadow: var(--shadow-glass-hover);
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-0.25rem);
}

/* Farbschleier je Leistung */
.service-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: opacity 500ms;
  background-image: var(--detail-gradient);
}

.service-detail:hover::before {
  opacity: 0.7;
}

.service-detail__body {
  position: relative;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.service-detail__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-detail__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  background-color: var(--detail-accent);
  transition: transform 300ms;
}

.service-detail:hover .service-detail__icon {
  transform: scale(1.1);
}

.service-detail__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: #fff;
}

.service-detail__head h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.service-detail__items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-detail__items li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.service-detail__items li > span:first-child {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.125rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms;
}

.service-detail__items li:hover > span:first-child {
  background-color: hsl(var(--primary) / 0.2);
}

.service-detail__items svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
}

.service-detail__items li > span:last-child {
  line-height: 1.625;
  color: hsl(var(--foreground) / 0.8);
  transition: color 150ms;
}

.service-detail__items li:hover > span:last-child {
  color: hsl(var(--foreground));
}

.service-detail__accent {
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  opacity: 0.5;
  background-color: var(--detail-accent);
  transition: opacity 300ms;
}

.service-detail:hover .service-detail__accent {
  opacity: 1;
}

@media (min-width: 768px) {
  .service-detail__head h3 {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

@media (min-width: 1024px) {
  .service-detail__body {
    padding: 2rem;
    flex-direction: row;
  }

  /* Die mittlere Karte spiegelt die Anordnung */
  .service-detail--reverse .service-detail__body {
    flex-direction: row-reverse;
  }

  .service-detail__head {
    min-width: 200px;
  }

  .service-detail__head h3 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

.service-detail--activate {
  --detail-accent: hsl(217 91% 60%);
  --detail-gradient: linear-gradient(to bottom right, hsl(217 91% 60% / 0.2), hsl(221 83% 53% / 0.1), transparent);
}

.service-detail--operate {
  --detail-accent: hsl(239 84% 67%);
  --detail-gradient: linear-gradient(to bottom right, hsl(239 84% 67% / 0.2), hsl(243 75% 59% / 0.1), transparent);
}

.service-detail--optimise {
  --detail-accent: hsl(var(--primary));
  --detail-gradient: linear-gradient(to bottom right, hsl(var(--primary) / 0.2), hsl(var(--primary) / 0.1), transparent);
}

/* Dekorative Farbflächen im Hintergrund */
.decor-corner {
  position: absolute;
  width: 50%;
  height: 50%;
  pointer-events: none;
}

.decor-corner--tr {
  top: 0;
  right: 0;
  background-image: linear-gradient(to bottom left, hsl(var(--primary) / 0.05), transparent);
}

.decor-corner--bl {
  bottom: 0;
  left: 0;
  background-image: linear-gradient(to top right, hsl(var(--accent) / 0.05), transparent);
}

.section-fade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    hsl(var(--secondary) / 0.5),
    hsl(var(--secondary) / 0.3),
    hsl(var(--background))
  );
}


/* ==========================================================================
   13. Referenzen
   ========================================================================== */

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background-color: hsl(var(--card) / 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / 0.2);
  box-shadow: var(--shadow-glass);
  transition: all 700ms ease-out;
}

.project-card:hover {
  box-shadow: var(--shadow-glass-hover);
}

/* Nicht aktive Projekte treten leicht zurück */
.carousel__slide:not(.is-active) .project-card {
  opacity: 0.6;
  transform: scale(0.98);
}

.project-card__bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background-image: linear-gradient(
    to right,
    hsl(var(--primary)),
    hsl(var(--primary) / 0.8),
    hsl(var(--primary) / 0.4)
  );
}

.project-card__number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary) / 0.1);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.project-card__body {
  padding: 1.5rem;
}

.project-card__body > h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  margin-bottom: 1.5rem;
  padding-right: 4rem;
}

.project-card__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .project-card__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-card__body > h3 {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

@media (min-width: 768px) {
  .project-card__body {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .project-card__body {
    padding: 2.5rem;
  }

  .project-card__body > h3 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .project-card__columns {
    gap: 2rem;
  }
}

.project-block {
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--block-border);
  background-image: var(--block-bg);
}

.project-block__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.project-block__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--block-icon-bg);
}

.project-block__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--block-fg);
}

.project-block h4 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: var(--block-fg);
}

.project-block p,
.project-block li {
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--foreground) / 0.8);
}

.project-block ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-block li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.project-block li::before {
  content: var(--block-marker, "●");
  color: var(--block-fg);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1rem;
  margin-top: 0.375rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .project-block h4 {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .project-block p,
  .project-block li {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

.project-block--challenge {
  --block-fg: hsl(var(--amber-text));
  --block-border: hsl(43 96% 76% / 0.4);
  --block-icon-bg: hsl(var(--amber) / 0.15);
  --block-bg: linear-gradient(to bottom right, hsl(48 100% 96% / 0.8), hsl(33 100% 96% / 0.6));
}

.project-block--results {
  --block-fg: hsl(var(--emerald-text));
  --block-border: hsl(152 76% 80% / 0.4);
  --block-icon-bg: hsl(var(--emerald) / 0.15);
  --block-bg: linear-gradient(to bottom right, hsl(152 81% 96% / 0.8), hsl(138 76% 97% / 0.6));
}

.project-block--benefits {
  --block-fg: hsl(var(--sky-text));
  --block-border: hsl(201 94% 86% / 0.4);
  --block-icon-bg: hsl(var(--sky) / 0.15);
  --block-bg: linear-gradient(to bottom right, hsl(204 100% 97% / 0.8), hsl(214 100% 97% / 0.6));
  --block-marker: "✓";
}

.project-block--benefits li::before {
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
  margin-top: 0;
}

/* --- Kundenstimmen ----------------------------------------------------- */

.quote-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius);
  background-color: hsl(var(--card) / 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid hsl(var(--primary) / 0.1);
  transition: all 300ms;
}

.quote-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.25rem);
}

.quote-card > svg {
  width: 2rem;
  height: 2rem;
  color: hsl(var(--primary) / 0.2);
  margin-bottom: 1rem;
}

.quote-card blockquote {
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--foreground) / 0.8);
  margin-bottom: 1rem;
  min-height: 80px;
}

.quote-card figcaption {
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--primary) / 0.1);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

@media (min-width: 768px) {
  .quote-card blockquote {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}


/* ==========================================================================
   14. Karriere
   ========================================================================== */

/* Werteraster - der Wrapper hat oben und unten Luft wie in der Vorlage */
.values-graphic {
  padding-block: 2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 64rem;
  margin-inline: auto;
}

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

.value-tile {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  background-image: linear-gradient(to bottom right, hsl(var(--card)), hsl(var(--card)), hsl(var(--card) / 0.8));
  backdrop-filter: blur(4px);
  border: 1px solid hsl(var(--primary) / 0.1);
  transition: all 300ms;
}

.value-tile:hover {
  border-color: hsl(var(--primary) / 0.3);
  transform: scale(1.05);
  box-shadow: 0 20px 40px -10px hsl(var(--primary) / 0.3);
}

.value-tile__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background-color 300ms;
}

.value-tile:hover .value-tile__icon {
  background-color: hsl(var(--primary) / 0.2);
}

.value-tile__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: hsl(var(--primary));
  transition: transform 300ms;
}

.value-tile:hover .value-tile__icon svg {
  transform: scale(1.1);
}

.value-tile h3 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 0.5rem;
}

.value-tile p {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--foreground) / 0.6);
  transition: color 150ms;
}

.value-tile:hover p {
  color: hsl(var(--foreground) / 0.8);
}

.values-rule {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.values-rule > span {
  height: 4px;
  width: 8rem;
  border-radius: 9999px;
  background-image: linear-gradient(to right, transparent, hsl(var(--primary) / 0.4), transparent);
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.benefit {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background-color: hsl(var(--card) / 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid hsl(var(--primary) / 0.1);
  transition: all 300ms;
}

.benefit:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.25rem);
}

.benefit__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms;
}

.benefit:hover .benefit__icon {
  background-color: hsl(var(--primary) / 0.2);
  transform: scale(1.1);
}

.benefit__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
}

.benefit span:last-child {
  color: hsl(var(--foreground) / 0.8);
  transition: color 150ms;
}

.benefit:hover span:last-child {
  color: hsl(var(--foreground));
}

/* Dekorative Kreise im Benefits-Abschnitt */
.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bubbles span {
  position: absolute;
  border-radius: 9999px;
  background-color: hsl(var(--primary) / 0.04);
  border: 1px solid hsl(var(--primary) / 0.08);
}

/* Stellenanzeigen-Widget */
.jobs-widget {
  background-color: hsl(var(--card));
  padding: 1.5rem;
  min-height: 200px;
}


/* ==========================================================================
   15. Kontakt
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background-color: hsl(var(--card) / 0.8);
  backdrop-filter: blur(4px);
}

.contact-card > svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: hsl(var(--primary));
}

.contact-card h2 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
  color: hsl(var(--foreground) / 0.8);
  transition: color 150ms;
}

.contact-card a:hover {
  color: hsl(var(--primary));
}


/* ==========================================================================
   16. Rechtstexte (Impressum / Datenschutz)
   ========================================================================== */

/* Die Rechtstexte haben in der Vorlage eigene Abstände:
   Seitenanfang 4rem, seitlich 1rem, oben/unten 5rem. */
.page--legal {
  padding-top: 4rem;
}

.legal {
  width: 100%;
  margin-inline: auto;
  padding: 5rem 1rem;
}

@media (min-width: 1400px) {
  .legal {
    max-width: 1400px;
  }
}

.legal__inner {
  max-width: 56rem;
  margin-inline: auto;
}

.legal h1 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .legal h1 {
    font-size: 3rem;
    line-height: 1;
  }
}

.legal__body {
  color: hsl(var(--foreground) / 0.8);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Das Impressum steht enger als die Datenschutzhinweise */
.legal__body--tight {
  gap: 2rem;
}

.legal__body h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 1rem;
}

.legal__body h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.legal__body h4 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
  color: hsl(var(--primary) / 0.9);
  margin-bottom: 0.75rem;
}

.legal__body p {
  line-height: 1.5;
}

/* Abstände stehen bewusst am Element, weil die Vorlage sie
   von Absatz zu Absatz unterschiedlich setzt. */
.legal__body .relaxed {
  line-height: 1.625;
}

.legal__body .sp-2 {
  margin-bottom: 0.5rem;
}

.legal__body .sp-4 {
  margin-bottom: 1rem;
}

.legal__body .sp-6 {
  margin-bottom: 1.5rem;
}

.legal__body ol,
.legal__body ul {
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal__body ol {
  list-style: decimal inside;
}

.legal__body ul {
  list-style: disc inside;
}



.legal__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
  background-color: hsl(var(--secondary));
}

.legal__body strong {
  font-weight: 600;
  color: hsl(var(--primary));
}

.legal__body a {
  color: hsl(var(--primary));
}

.legal__body a:hover {
  text-decoration: underline;
}

.legal__group {
  margin-bottom: 2rem;
}

.legal__group:last-child {
  margin-bottom: 0;
}

.legal__subgroup {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legal__subgroup h3 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal__block + .legal__block {
  margin-top: 1.5rem;
}


/* ==========================================================================
   17. Kontakt-Dialog & Formular
   ========================================================================== */

.contact-dialog {
  /* Mittig im Fenster. Browser zentrieren modale Dialoge über "margin: auto",
     doch der Reset ganz oben (* { margin: 0 }) hebelt das aus — deshalb hier
     ausdrücklich wiederherstellen. position/inset setzt der Browser selbst,
     der Vollständigkeit halber stehen sie mit dabei. */
  position: fixed;
  inset: 0;
  margin: auto;

  width: calc(100vw - 2rem);
  max-width: 600px;

  /* Passt das Formular nicht ins Fenster, scrollt der Dialog statt zu
     überlaufen. dvh berücksichtigt die Adressleiste auf Mobilgeräten. */
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;

  padding: 1.5rem;
  border: 1px solid hsl(var(--border) / 0.2);
  border-radius: var(--radius);
  background-color: hsl(var(--background) / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  color: hsl(var(--foreground));
}

.contact-dialog::backdrop {
  background-color: rgb(0 0 0 / 0.8);
  backdrop-filter: blur(2px);
}

.contact-dialog__header {
  margin-bottom: 1rem;
}

.contact-dialog h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 0.5rem;
}

.contact-dialog__header p {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.contact-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  opacity: 0.7;
  transition: opacity 150ms;
}

.contact-dialog__close:hover {
  opacity: 1;
}

.contact-dialog__close svg {
  width: 1rem;
  height: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field label,
.field legend {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background) / 0.5);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: border-color 150ms;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.field input {
  height: 2.25rem;
}

.field textarea {
  min-height: 60px;
  resize: vertical;
}

.field__error {
  display: none;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--destructive));
  margin-top: 0.5rem;
}

.field.has-error .field__error {
  display: block;
}

.field.has-error input,
.field.has-error textarea {
  border-color: hsl(var(--destructive));
}

/* Rechenaufgabe gegen automatische Einsendungen */
.field--captcha .captcha-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.field--captcha .captcha-question {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
}

.field--captcha input {
  width: 6rem;
}

/* Einwilligung */
.field--consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.field--consent input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  accent-color: hsl(var(--primary));
}

.field--consent label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
}

.contact-form .btn {
  width: 100%;
}

/* Wird nur von automatischen Einsendungen ausgefüllt */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ==========================================================================
   18. Hinweis-Einblendung (Toast)
   ========================================================================== */

.toast-region {
  position: fixed;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

@media (min-width: 640px) {
  .toast-region {
    left: auto;
    top: auto;
    bottom: 1rem;
    max-width: 420px;
  }
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border) / 0.2);
  background-color: hsl(var(--background));
  box-shadow: var(--shadow-lg);
  animation: toast-in 200ms ease-out;
}

.toast--error {
  border-color: hsl(var(--destructive));
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.toast__title {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.toast__desc {
  font-size: 0.875rem;
  line-height: 1.25rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
