/* ============================================
   CYBERUNITED — Design System
   Farben aus der Marke: #b12626 (rot) → #0c7db0 (blau)
   ============================================

   MASSEINHEITEN — welche Einheit wofür

   rem   Alles, was mit der Schriftgröße mitwachsen soll: Abstände,
         Container- und Textbreiten, Symbolflächen, Navigationshöhe.
         Bei der Standard-Wurzelgröße von 16px identisch zu den früheren
         px-Werten, folgt aber der Schriftgrößeneinstellung des Nutzers.
   %     Breiten innerhalb eines Elternelements.
   vw/vh Nur dort, wo der Bezug wirklich der Viewport ist: Höhe des
         Heldenbereichs, Deckelung dekorativer Flächen.
   ch    Nicht verwendet — die Textbreiten stehen in rem, damit die
         Darstellung gegenüber dem bisherigen Entwurf unverändert bleibt.
   px    Nur, wo eine feste Größe gemeint ist: Rahmen, Konturen,
         Haarlinien, Rasterlinien im Hintergrund, Mikroverschiebungen
         bei Hover, Radien und Schatten.

   Faustregel für Raster: eine Mindestbreite in px darf nie größer werden
   als der verfügbare Platz. Deshalb überall
       repeat(auto-fit, minmax(min(300px, 100%), 1fr))
   statt minmax(300px, 1fr). Ohne das min() weigert sich die Spur zu
   schrumpfen und schiebt die Seite horizontal auf — genau der Fehler,
   der unter Q-5 dokumentiert ist.

   HALTEPUNKTE — die Regeln sind desktop-first geschrieben, die Queries
   verkleinern also nach unten. CSS-Variablen sind in @media-Bedingungen
   nicht erlaubt, die Werte stehen deshalb ausgeschrieben; diese Liste
   ist die Referenz dazu.

       ohne Query      Desktop, ab 1025px
       max-width:1024  Tablet und schmale Laptops — hier stapelt die
                       Über-Sektion und die Navigation wird zum Burger-
                       Menü (Logo + Links brauchen rund 950px, siehe E-12)
       max-width: 768  Handy im Querformat und darunter — einspaltige
                       Raster, kleinere Navigationshöhe, gestapelte Leisten
       max-width: 480  kleine Handys — engere Ränder, kleinere Typografie

   ============================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Brand Colors */
  --color-red: #b12626;
  --color-blue: #0c7db0;
  --color-red-light: #d93636;
  --color-blue-light: #1a9fd4;
  --gradient: linear-gradient(135deg, var(--color-red), var(--color-blue));
  --gradient-hover: linear-gradient(135deg, var(--color-blue), var(--color-red));
  --gradient-text: linear-gradient(90deg, var(--color-red), var(--color-blue));
  /* Verlauf für dunkle Flächen. Gemessen gegen den Footer-Hintergrund
     #0f172a: das Markenrot #b12626 erreicht nur 2,70:1 und wirkt dort
     schlammig, das helle #d93636 kommt auf 3,85:1, das helle Blau
     #1a9fd4 auf 5,91:1. Gleiche Markenfarben, nur das für dunkle
     Untergründe vorgesehene Paar aus dem Farbsystem. */
  --gradient-text-on-dark: linear-gradient(90deg, var(--color-red-light), var(--color-blue-light));

  /* Neutrals */
  --color-dark: #0f172a;
  --color-dark-soft: #1e293b;
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-subtle: #f1f5f9;

  /* Typography */
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 75rem;
  --nav-height: 4.5rem;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-glow-red: 0 0 30px rgba(177, 38, 38, 0.15);
  --shadow-glow-blue: 0 0 30px rgba(12, 125, 176, 0.15);
  --shadow-glow-gradient: 0 4px 30px rgba(177, 38, 38, 0.12), 0 4px 30px rgba(12, 125, 176, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* === UTILITY === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 40rem;
  line-height: 1.7;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-dark);
}

.nav-logo img {
  height: 2.375rem;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Selektor bewusst zweistufig: ".nav-links a" hat die Spezifität 0-1-1 und
   schlug das einstufige ".nav-cta" (0-1-0). Die Kontakt-Schaltflaeche hatte
   dadurch gar keinen seitlichen Innenabstand — der Farbverlauf klebte am
   Text. Mit ".nav-links .nav-cta" (0-2-0) gewinnt die Regel. */
.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff !important;
  background: var(--gradient);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-gradient);
  color: #fff !important;
}

/* Language Toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
  font-size: var(--text-xs);
  font-weight: 600;
}

.lang-toggle button {
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  color: var(--color-text-light);
  transition: all var(--transition);
  font-size: var(--text-xs);
  font-weight: 600;
}

.lang-toggle button.active {
  background: #fff;
  color: var(--color-dark);
  box-shadow: var(--shadow-sm);
}

/* Mobile Menu */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  /* 2,75rem entspricht 44px — die uebliche Mindestgroesse fuer eine
     Flaeche, die mit dem Daumen sicher zu treffen ist. Vorher ergaben
     sich aus Balken und Innenabstand nur 38px. */
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: var(--space-sm);
  cursor: pointer;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 1px;
  transition: all var(--transition);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gradient);
}

.btn-secondary {
  color: var(--color-dark);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  color: var(--color-text);
  background: transparent;
  padding: 0.75rem 1rem;
}

.btn-ghost:hover {
  color: var(--color-blue);
}

.btn i, .btn svg {
  font-size: 0.9em;
}

/* === HERO === */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-4xl);
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 125, 176, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 125, 176, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: min(37.5rem, 90vw);
  height: min(37.5rem, 90vw);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  pointer-events: none;
}

.hero-glow-red {
  top: -200px;
  left: -100px;
  background: var(--color-red);
}

.hero-glow-blue {
  bottom: -200px;
  right: -100px;
  background: var(--color-blue);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 50rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

/* Firmenmotto als Headline: Versalien wie auf dem Logo. Die enge
   Negativ-Laufweite der Standard-H1 wirkt bei Versalien gedrängt,
   daher hier positives Tracking analog zur Logo-Zeile. */
.hero h1.hero-motto {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Wortmarke als eigene Zeile zwischen Motto und Fliesstext. Zwei
   Haarlinien flankieren das Wort und laufen nach aussen aus — das gibt
   der Zeile Halt, ohne dem Motto darueber die Aufmerksamkeit zu nehmen.
   Die Linien sind Pseudoelemente mit eigenem Hintergrund; der
   background-clip des Wortes wirkt nur auf dessen eigenen Hintergrund. */
.hero-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-sm), 3vw, var(--space-lg));
  margin-bottom: var(--space-md);
}

.hero-wordmark::before,
.hero-wordmark::after {
  content: '';
  height: 1px;
  width: clamp(1.5rem, 12vw, 5rem);
  flex-shrink: 0;
}

.hero-wordmark::before {
  background: linear-gradient(90deg, transparent, var(--color-red));
}

.hero-wordmark::after {
  background: linear-gradient(90deg, var(--color-blue), transparent);
}

.hero-wordmark span {
  font-size: clamp(var(--text-sm), 2.5vw, var(--text-lg));
  font-weight: 700;
  letter-spacing: 0.22em;
  /* Der Buchstabenabstand haengt rechts nach; ohne Ausgleich sitzt das
     Wort zwischen den Linien sichtbar zu weit links. */
  text-indent: 0.22em;
  white-space: nowrap;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--color-text-light);
  max-width: 37.5rem;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: var(--space-3xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.hero-trust-item i {
  color: var(--color-blue);
  font-size: var(--text-base);
}

/* === SECTIONS === */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

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

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto var(--space-3xl);
}

/* === SERVICE CARDS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-xl);
}

.service-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  margin-bottom: var(--space-lg);
  font-size: var(--text-xl);
  color: var(--color-blue);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient);
  color: #fff;
}

.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  line-height: 1.7;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-blue);
  transition: gap var(--transition);
}

.service-link:hover {
  gap: var(--space-md);
}

.service-link i {
  font-size: 0.75rem;
  transition: transform var(--transition);
}

.service-link:hover i {
  transform: translateX(4px);
}

/* === ABOUT / EXPERTISE === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

/* Rasterkinder haben von sich aus min-width:auto und weigern sich damit,
   unter ihre Inhaltsbreite zu schrumpfen. Genau daran hing das horizontale
   Scrollen auf Handys: das Logofeld war 414px breit (280px Bild + 2 × 64px
   Innenabstand) und blieb es auch in einer 288px-Spalte. */
.about-image,
.about-text {
  min-width: 0;
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gradient);
  padding: 3px;
}

.about-image-inner {
  border-radius: calc(var(--radius-xl) - 3px);
  overflow: hidden;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Auf breiten Schirmen 4rem, auf schmalen so viel, wie übrig bleibt. */
  padding: clamp(var(--space-lg), 8vw, var(--space-3xl));
}

.about-image-inner img {
  /* min() statt fixer 280px: sonst bleibt das Bild auch dann 280 breit,
     wenn nur 160 zur Verfügung stehen. */
  max-width: min(280px, 100%);
  height: auto;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about-stat {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  /* Ohne min-width: 0 spannt das laengste Wort der Beschriftung die
     Rasterspur auf. Bei "Massgeschneiderte Loesungen" waren das 9px
     Ueberstand auf 320px-Geraeten — dieselbe Fehlerklasse wie Q-5. */
  min-width: 0;
}

.about-stat-label {
  overflow-wrap: break-word;
  hyphens: auto;
}

.about-stat-number {
  font-size: var(--text-2xl);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-top: var(--space-xs);
  font-weight: 500;
}

.about-text h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.25;
  margin-bottom: var(--space-lg);
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.about-highlight i {
  color: var(--color-blue);
  margin-top: 3px;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.about-highlight span {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

/* === TECH STACK === */
/* Raster statt Flexbox: als Flexbox richtete sich jede Kachel nach ihrer
   eigenen Beschriftung, „Kubernetes" wurde dadurch sichtbar breiter als
   „Java" und die Reihe wirkte ungleichmäßig. Im Raster teilen sich alle
   Spuren dieselbe Breite (`1fr`), unabhängig vom Wort darin.
   `min(7.5rem, 100%)` in der Mindestbreite: ohne das min() weigert sich
   die Spur unter 120px zu schrumpfen und schiebt die Seite horizontal
   auf — derselbe Fehler wie unter Q-5. */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(7.5rem, 100%), 1fr));
  gap: var(--space-lg);
  max-width: 56.25rem;
  margin: 0 auto;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  /* Gleiche Höhe auch dann, wenn eine Beschriftung umbricht. */
  min-height: 100%;
}

.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue);
}

.tech-item img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.tech-item span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-light);
  text-align: center;
}

/* === CTA SECTION === */
.cta-section {
  position: relative;
  padding: var(--space-5xl) 0;
  overflow: hidden;
}

/* Geht dem Kontaktblock ein Bewegungsband voraus, addieren sich dessen
   4,5rem Höhe auf die 8rem Innenabstand — die Vögel standen dadurch
   sichtbar allein zwischen zwei Blöcken. Das Band übernimmt hier einen
   Teil des Abstands, oben bleiben 3rem. */
.anim-band + .cta-section {
  padding-top: var(--space-2xl);
}

.cta-box {
  position: relative;
  background: var(--gradient);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-box h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-box p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  max-width: 31.25rem;
  margin: 0 auto var(--space-2xl);
  position: relative;
}

.cta-box .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  background: #fff;
  color: var(--color-dark);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}

.cta-box .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* === FOOTER === */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 18.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-lg);
}

/* Wortmarke im Footer traegt denselben Markenverlauf wie Kopfzeile und
   Motto — bewusst der Basisverlauf, nicht das helle Paar. Vom Betreiber
   so entschieden (E-14a). */
.footer-logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Weder Weissfilter noch Aufhellung: das Logo wird unveraendert in
   seinen Originalfarben gezeigt. */
.footer-logo img {
  height: 2rem;
  width: auto;
}

.footer h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-social-links {
  display: flex;
  gap: var(--space-md);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-base);
  transition: all var(--transition);
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* === Markenfarben der Dienste ===
   Die Icons tragen die Farbe, die man von ihnen kennt. GitHub ist
   eigentlich fast schwarz (#181717) — auf dem nachtblauen Footer waere
   das unsichtbar, dort gilt deshalb das helle Pendant aus dem
   GitHub-Styleguide. Die E-Mail hat keine eigene Marke; verwendet wird
   das gelaeufige Rot aus Mail-Oberflaechen. */
:root {
  --brand-linkedin: #0a66c2;
  --brand-linkedin-hell: #4aa3e8;
  --brand-github: #181717;
  --brand-github-hell: #f0f6fc;
  --brand-mail: #ea4335;
  --brand-mail-hell: #ff6f61;
}

.footer-social-link[aria-label="LinkedIn"] { color: var(--brand-linkedin-hell); }
.footer-social-link[aria-label="GitHub"]   { color: var(--brand-github-hell); }
.footer-social-link[aria-label="E-Mail"]   { color: var(--brand-mail-hell); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* === ANIMATIONS === */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.animate-on-scroll.visible .service-card:nth-child(1),
.animate-on-scroll.visible .tech-item:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll.visible .service-card:nth-child(2),
.animate-on-scroll.visible .tech-item:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll.visible .service-card:nth-child(3),
.animate-on-scroll.visible .tech-item:nth-child(3) { transition-delay: 0.15s; }
.animate-on-scroll.visible .service-card:nth-child(4),
.animate-on-scroll.visible .tech-item:nth-child(4) { transition-delay: 0.2s; }
.animate-on-scroll.visible .service-card:nth-child(5),
.animate-on-scroll.visible .tech-item:nth-child(5) { transition-delay: 0.25s; }

/* Hero entrance */
.hero-content > * {
  animation: fade-up 0.7s ease both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  /* Umschaltpunkt aufs Burger-Menü liegt hier und nicht bei 768px:
     Logo und Links zusammen brauchen rund 950px. Zwischen 769 und 999px
     überlappte die Wortmarke sonst den ersten Link und die Kontakt-
     Schaltfläche wurde am rechten Rand abgeschnitten. */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-image {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 4rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .hero-trust {
    flex-direction: column;
    gap: var(--space-md);
  }

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

@media (max-width: 480px) {
  /* Auf sehr schmalen Geraeten stehen die Kennzahlen untereinander —
     zwei Spalten laufen dort auf rund 60px Textbreite hinaus. */
  .about-stats {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-box {
    padding: var(--space-2xl) var(--space-lg);
  }
}

/* =========================================================================
   Nachbesserungen aus der Messung nach dem Rebase
   ========================================================================= */

/* Sicherheitsnetz: ein Knopf darf nie breiter werden als sein Platz. */
.btn { max-width: 100%; }

/* Knopftext darf unter 360 px umbrechen.
   Gemessen bei 320 px: "Erfahrung und Profil ansehen" ergibt mit
   'white-space: nowrap' 291 px in einem 273 px breiten Elternelement und
   schiebt die Seite um 2 px auf. Ab 375 px tritt das nicht auf - deshalb
   greift die Regel bewusst nur ganz unten. */
@media (max-width: 22.5rem) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}

/* Sprachumschalter: 23 px hoch. WCAG 2.5.8 (AA) verlangt 24 CSS-Pixel,
   und zwar geraeteunabhaengig - deshalb ausserhalb der Touch-Schicht. */
.lang-toggle button { min-height: 1.5rem; }

/* =========================================================================
   Touch-Ziele (WCAG 2.2 - Zielgroesse)
   -------------------------------------------------------------------------
   Gemessen wurde bei 320/375/430/768 px. Die folgenden Elemente lagen unter
   44 px Hoehe. Statt sie zu vergroessern - was die Gestaltung veraendern
   wuerde - bekommen sie eine unsichtbare Trefferflaeche ueber ::after.
   Sichtbar aendert sich nichts, anklickbar wird die volle Flaeche.

   Die Regel greift bewusst nur bis 768 px: an Maus und Trackpad ist die
   kleine Flaeche kein Problem, und die Pseudo-Elemente sollen sich auf
   grossen Layouts nicht ueberlappen.
   ========================================================================= */
@media (pointer: coarse), (max-width: 48rem) {

  /* Kopfzeilen-Logo: 38 px */
  .nav-logo { position: relative; }
  .nav-logo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    min-height: 44px;
    height: 100%;
    transform: translateY(-50%);
    /* rein funktional - keine Farbe, keine Verschiebung im Layout */
  }

  /* Service-Weiterleitung: 24 px */
  .service-link { position: relative; }
  .service-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    min-height: 44px;
    height: 100%;
    transform: translateY(-50%);
    /* rein funktional - keine Farbe, keine Verschiebung im Layout */
  }

  /* Social-Icons: 40 px */
  .footer-social-link { position: relative; }
  .footer-social-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    min-height: 44px;
    height: 100%;
    transform: translateY(-50%);
    /* rein funktional - keine Farbe, keine Verschiebung im Layout */
  }

  /* Profil-Links (bio.html): 36 px */
  .bio-profile-links a { position: relative; }
  .bio-profile-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    min-height: 44px;
    height: 100%;
    transform: translateY(-50%);
  }

  /* Fusszeilen-Links: 24 px */
  .footer-links a,
  .footer-col a { position: relative; }
  .footer-links a::after, .footer-col a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    min-height: 44px;
    height: 100%;
    transform: translateY(-50%);
    /* rein funktional - keine Farbe, keine Verschiebung im Layout */
  }

}
