/* ==========================================================================
   WEB:ON – style.css
   --------------------------------------------------------------------------
   Aufbau:
   00  Design-Variablen (Farben, Abstände, Radien) – HIER anpassen!
   01  Schrift (Space Grotesk, selbst gehostet)
   02  Reset & Basis
   03  Hilfsklassen (Container, Skip-Link, …)
   04  Hero (Glas-Karte, Split-Logo, Navigation)
   05  Sektionen allgemein (Kicker, Überschriften, Blobs)
   06  Leistungen (Karten)
   07  Projekte (Mockups)
   08  Warum WEB:ON
   09  Kontakt (Akzent-Block + Formular)
   10  Footer
   11  Animationen (Reveal on Scroll, Keyframes)
   12  Fallbacks & Barrierefreiheit
   ========================================================================== */


/* ==========================================================================
   00 | DESIGN-VARIABLEN
   Einmal ändern – wirkt überall auf der Seite.
   ========================================================================== */
:root {
  /* --- Farben ------------------------------------------------------------ */
  --accent: #FF5A3C;                       /* [AKZENTFARBE] – nur Logo-Doppelpunkt + Kontakt-Bereich */
  --accent-ink: #1D120D;                   /* dunkle Textfarbe AUF der Akzentfarbe (guter Kontrast) */

  --bg: #0E1210;                           /* Seitenhintergrund: dunkles Anthrazit mit Grünstich */
  --text: #F4F6F5;                         /* Haupttextfarbe */
  --text-muted: rgba(244, 246, 245, .62);  /* gedämpfter Fließtext */
  --text-faint: rgba(244, 246, 245, .38);  /* sehr dezent (Copyright etc.) */
  --line: rgba(255, 255, 255, .09);        /* feine Trennlinien & Kartenränder */

  /* --- Glassmorphism ------------------------------------------------------ */
  --glass-bg: linear-gradient(115deg, rgba(20, 26, 23, .42), rgba(20, 26, 23, .16));
  --glass-border: rgba(255, 255, 255, .18);
  --glass-blur: 20px;
  /* Position der Kante zwischen Milchglas (links) und scharfem Bild (rechts).
     Wird von Glas-Panel UND Logo-Doppelpunkt genutzt, damit der Doppelpunkt
     exakt auf dieser Kante sitzt. Mobile-first: auf dem Handy liegt die Kante
     weiter rechts (breiteres Glas → lesbarer Text), auf Desktop weiter links
     (mehr scharfes Bild). Der Desktop-Wert steht in der 1020px-Media-Query. */
  --hero-split: 60%;
  /* Feinjustierung des Doppelpunkts auf der Kante (nur Desktop): positiv =
     nach rechts, negativ = nach links. Standard 0px, da er per translateX
     bereits mittig sitzt. */
  --logo-colon-nudge: 0px;

  /* --- Hero-Bild (Pfad relativ zu dieser CSS-Datei) ----------------------- */
  /* Zum Austauschen: neues Bild nach /assets/ legen und hier den Namen ändern. */
  --hero-image: url("../assets/hero.jpg");

  /* --- Typografie --------------------------------------------------------- */
  --font: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --size-logo: clamp(3.5rem, 16vw, 13rem);        /* das große WEB:ON (eine Zeile) */
  --size-h2: clamp(1.9rem, 4.4vw, 3.1rem);        /* Sektions-Überschriften */
  --size-body: 1rem;

  /* --- Abstände & Radien --------------------------------------------------- */
  --section-pad: clamp(4.5rem, 10vw, 8rem);       /* vertikaler Abstand der Sektionen */
  --container: 1160px;                            /* maximale Inhaltsbreite */
  --radius-md: 20px;                              /* Leistungs-/Projektkarten */

  /* --- Bewegung ------------------------------------------------------------ */
  --ease-out: cubic-bezier(.16, 1, .3, 1);        /* weiches Abbremsen */
}


/* ==========================================================================
   01 | SCHRIFT – Space Grotesk (variabel, 300–700)
   Lokal eingebunden: kein Google-Server-Aufruf (DSGVO), läuft auch offline.
   ========================================================================== */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


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

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

/* Sanftes Scrollen zu den Anker-Sektionen – nur wenn der Nutzer
   Bewegung nicht reduziert hat (Barrierefreiheit). */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: 1.5;
  overflow-x: clip;                /* verhindert horizontales Scrollen durch Deko-Blobs */
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* Anker-Sektionen: etwas Luft beim Anspringen per Navigation */
section[id] {
  scroll-margin-top: 1.5rem;
}

/* Markierte Textauswahl in der Akzentfarbe – kleines Marken-Detail */
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Dezente dunkle Scrollbar (Chrome/Edge) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .16);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .28);
}

/* Sichtbarer Tastatur-Fokus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ==========================================================================
   03 | HILFSKLASSEN
   ========================================================================== */
.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

/* Nur für Screenreader sichtbar */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Sprunglink: erscheint nur, wenn er per Tab fokussiert wird */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: .7em 1.2em;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transform: translateY(-300%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus-visible {
  transform: none;
}

/* Wiederverwendbarer Pfeil (CTA, Formular-Button) */
.icon-arrow {
  width: 32px;
  flex: none;
  transition: transform .35s var(--ease-out), color .35s ease;
}


/* ==========================================================================
   04 | HERO
   Aufbau (von hinten nach vorne):
   .hero-image   vollflächiges Hintergrundbild, randlos (Parallax per JS)
   .hero-glass   Milchglas-Panel (backdrop-filter)
   Inhalt        Kopfzeile, Logo, Infoblock, Deko
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;              /* eigener Ebenen-Kontext für die Schichten */
  min-height: 100vh;
  min-height: 100svh;              /* mobile Browserleisten korrekt berücksichtigt */
  display: flex;
  flex-direction: column;
  overflow: clip;
}

/* Das Hintergrundbild füllt den kompletten Hero – ohne Rahmen.
   Das "inset: -8% 0" gibt oben/unten Puffer, damit beim Parallax-
   Verschieben keine Ränder sichtbar werden. */
.hero-image {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 30%;
  filter: saturate(.8) brightness(.9);
  will-change: transform;
}

/* Leichte Abdunklung nach unten, damit Text immer lesbar bleibt */
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(10, 13, 12, .08) 30%, rgba(10, 13, 12, .55) 100%);
}

/* Das Milchglas-Panel liegt links über dem Bild – auf ALLEN Größen nur über
   dem linken Teil (Breite = --hero-split). Rechts bleibt das Bild scharf.
   Die feine Kante rechts markiert den Übergang scharf/unscharf. */
.hero-glass {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--hero-split);
  z-index: 1;
  background: var(--glass-bg);
  border-right: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.1);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.1);
}

/* --- Kopfzeile (Sticky) --------------------------------------------------
   Bleibt beim Scrollen oben fixiert. Der Header ist im HTML ein direktes
   <body>-Element (außerhalb von .hero) und liegt mit z-index: 100 zuverlässig
   über ALLEN Sektionen. Im gescrollten Zustand (.is-scrolled per JS) bekommt
   die Leiste einen dezenten Hintergrund und wird etwas flacher. */
.hero-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(18px, 3vw, 36px) clamp(20px, 4.5vw, 72px);
  border-bottom: 1px solid transparent;
  transition: padding .4s var(--ease-out), background-color .4s ease,
    border-color .4s ease;
}

.hero-header.is-scrolled {
  padding-top: clamp(11px, 1.8vw, 18px);
  padding-bottom: clamp(11px, 1.8vw, 18px);
  background-color: rgba(10, 14, 12, .82);
  border-bottom-color: var(--line);
}

/* Linker Bereich: Schriftzug und Social-Links liegen im selben Raster-Feld
   übereinander und werden gegeneinander überblendet. */
.hero-lead {
  display: grid;
  align-items: center;
}
.hero-lead > .hero-social,
.hero-lead > .hero-brand {
  grid-area: 1 / 1;
}

/* Kleiner WEB:ON-Schriftzug – oben am Anfang unsichtbar, blendet beim
   Scrollen ein und "übernimmt" den Platz der Social-Links. */
.hero-brand {
  justify-self: start;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s var(--ease-out);
}
.hero-brand-colon {
  color: var(--accent);
}
.hero-header.is-scrolled .hero-brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 14px);
  transition: opacity .4s ease;
}
.hero-header.is-scrolled .hero-social {
  opacity: 0;
  pointer-events: none;
}

/* Milchglas-Effekt für die Sticky-Leiste nur ab Desktop: dort ist die
   Navigation eine normale Zeile (kein fixiertes Overlay), daher entsteht
   durch backdrop-filter kein Problem mit dem Positionskontext. */
@media (min-width: 900px) {
  .hero-header.is-scrolled {
    background-color: rgba(10, 14, 12, .55);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    backdrop-filter: blur(18px) saturate(1.1);
  }
}

.hero-social-label {
  display: none;                   /* erscheint erst ab Tablet-Breite */
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-social-label::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 14px;
  background: rgba(255, 255, 255, .3);
  vertical-align: middle;
}

.hero-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: rgba(255, 255, 255, .78);
  transition: color .3s ease, border-color .3s ease, transform .3s var(--ease-out);
}
.hero-social a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  transform: translateY(-2px);
}
.hero-social svg {
  width: 16px;
  height: 16px;
}

/* --- Navigation ----------------------------------------------------------
   Mobil:   Vollbild-Overlay mit Milchglas (per body.nav-open sichtbar)
   Desktop: normale horizontale Linkleiste
   -------------------------------------------------------------------------- */
.hero-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  background: rgba(10, 14, 12, .72);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  transition: opacity .3s ease, visibility 0s linear .3s;
}

body.nav-open .hero-nav {
  visibility: visible;
  opacity: 1;
  transition: opacity .3s ease;
}

.hero-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}

.hero-nav a {
  position: relative;
  display: inline-block;
  padding: .4rem 0;
  font-size: 1.05rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .85);
  transition: color .3s ease;
}

/* Unterstreichung, die beim Hover von links hereinwächst */
.hero-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.hero-nav a:hover {
  color: #fff;
}
.hero-nav a:hover::after {
  transform: scaleX(1);
}

/* "Kontakt" als hervorgehobener Button in der Akzentfarbe */
.hero-nav a.nav-cta {
  padding: .6em 1.4em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transition: background .3s ease, transform .3s var(--ease-out);
}
.hero-nav a.nav-cta::after {
  display: none;             /* keine Hover-Unterstreichung beim Button */
}
.hero-nav a.nav-cta:hover {
  background: #ff744f;       /* etwas heller beim Hover */
  color: var(--accent-ink);
  transform: translateY(-2px);
}

/* Schließen-Kreuz im Overlay */
.nav-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
}
.nav-close svg {
  width: 16px;
  height: 16px;
}

/* Burger-Button */
.nav-toggle {
  display: grid;
  gap: 7px;
  place-content: center;
  width: 44px;
  height: 42px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-line {
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Ab 900px: normale Navigationszeile, Burger & Kreuz verschwinden */
@media (min-width: 900px) {
  .hero-nav {
    position: static;
    inset: auto;
    display: block;
    visibility: visible;
    opacity: 1;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: none;
  }
  .hero-nav ul {
    flex-direction: row;
    gap: clamp(20px, 3vw, 44px);
  }
  .hero-nav a {
    font-size: .72rem;
    letter-spacing: .26em;
  }
  .nav-close,
  .nav-toggle {
    display: none;
  }
}

@media (min-width: 700px) {
  .hero-social-label {
    display: inline-block;
  }
}

/* --- Hauptinhalt der Karte ------------------------------------------------ */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.6rem, 4vh, 3rem);
  padding: 0 clamp(20px, 4.5vw, 72px) clamp(24px, 4vw, 56px);
}

/* Das große Split-Logo. Mobile-first: WEB, Doppelpunkt und ON werden absolut
   platziert, damit der Doppelpunkt auf ALLEN Größen exakt auf der Glaskante
   (--hero-split) sitzt. Der negative margin-inline hebt die seitliche
   Polsterung von .hero-content auf, sodass sich die Prozentwerte auf die VOLLE
   Hero-Breite beziehen – dieselbe Linie wie die Kante des Milchglas-Panels. */
.hero-logo {
  position: relative;
  margin-inline: calc(-1 * clamp(20px, 4.5vw, 72px));
  height: calc(var(--size-logo) * .84);   /* reserviert die Zeilenhöhe */
  font-size: var(--size-logo);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.logo-web,
.logo-on,
.logo-colon {
  position: absolute;
  top: 0;
}

/* "WEB": geprägter Glas-Look – Verlauf wird in die Buchstaben "gestanzt",
   dazu eine feine helle Kontur. Rechte Kante endet knapp vor der Glaskante. */
.logo-web {
  right: calc(100% - var(--hero-split) + .12em);
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .07));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .3);
  animation: rise .9s var(--ease-out) both;
}

/* "ON": kräftig weiß, beginnt knapp hinter der Glaskante (auf dem scharfen Teil) */
.logo-on {
  left: calc(var(--hero-split) + .12em);
  color: #fff;
  text-shadow: 0 18px 70px rgba(0, 0, 0, .45);
  animation: rise .9s var(--ease-out) .12s both;
}

/* Der Doppelpunkt – das einzige Akzent-Detail außerhalb des Kontakt-Blocks.
   Seine Mitte liegt per translateX(-50%) EXAKT auf der Kante scharf/unscharf.
   Eigene Keyframe (nur Opazität), damit der Zentrier-Transform erhalten bleibt. */
.logo-colon {
  left: var(--hero-split);
  transform: translateX(calc(-50% + var(--logo-colon-nudge)));
  color: var(--accent);
  -webkit-text-stroke: 0;
  animation: colon-fade .9s var(--ease-out) .12s both;
}

/* --- Infoblock: Nummer, Punkte, Claim, CTA ------------------------------- */
.hero-info {
  display: grid;
  gap: .95rem;
  /* Text bleibt auf der unscharfen (Glas-)Seite: mobil an die Glasbreite
     gekoppelt, auf Desktop bei max. 430px. */
  max-width: min(430px, var(--hero-split));
  animation: rise .9s var(--ease-out) .28s both;
}

.hero-index {
  display: flex;
  flex-wrap: wrap;                 /* darf auf sehr schmalen Handys umbrechen */
  align-items: baseline;
  gap: .3rem .8rem;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-index-num {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: .05em;
  color: #fff;
}

/* Karussell-Punkte (rein dekorativ) */
.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-dots span {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .35);
}
.hero-dots .is-active {
  width: 22px;
  background: #fff;
}

.hero-claim {
  font-size: .95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
}

/* Pfeil-CTA im Stil "VIEW ALL TRIPS →" */
.cta-line {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  width: max-content;
  margin-top: .4rem;
  padding: .5rem 0;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}
.cta-line:hover .icon-arrow {
  transform: translateX(8px);
  color: var(--accent);            /* Hover-Akzent: führt ja zum Kontakt */
}

/* --- Deko: Rauten & Scroll-Hinweis ---------------------------------------- */
.hero-deco {
  position: absolute;
  right: clamp(14px, 2.6vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: none;                   /* nur auf Desktop */
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-deco::before,
.hero-deco::after {
  content: "";
  width: 1px;
  height: 72px;
  background: repeating-linear-gradient(180deg,
      rgba(255, 255, 255, .5) 0 4px, transparent 4px 9px);
}
.deco-diamond {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, .75);
  transform: rotate(45deg);
}
.deco-diamond.is-filled {
  background: #fff;
  border-color: #fff;
}

.hero-scroll {
  position: absolute;
  right: clamp(20px, 4.5vw, 72px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 2;
  display: none;                   /* ab Tablet sichtbar */
  align-items: center;
  gap: 12px;
  font-size: .62rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.hero-scroll::after {
  content: "";
  width: 44px;
  height: 1px;
  background: rgba(255, 255, 255, .5);
  animation: scroll-hint 2.6s ease-in-out infinite;
}

@media (min-width: 700px) {
  .hero-scroll {
    display: flex;
  }
}

/* Desktop-Feinschliff des Heros.
   Die Scharf/Unscharf-Teilung samt Logo-Positionierung steckt jetzt in den
   Basis-Regeln (mobile-first). Ab Desktop rückt die Kante nur weiter nach
   links (mehr scharfes Bild) und die rechte Deko wird sichtbar. */
@media (min-width: 1020px) {
  :root {
    --hero-split: 46%;
  }
  .hero-deco {
    display: flex;
  }
}


/* ==========================================================================
   05 | SEKTIONEN ALLGEMEIN
   ========================================================================== */
main {
  position: relative;
  overflow: clip;                  /* Blobs dürfen nicht aus der Seite ragen */
}

/* Animierte Farbverlaufs-Blobs im Hintergrund (sehr dezent) */
.blob {
  position: absolute;
  z-index: 0;
  width: 540px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
}
.blob--1 {
  top: 2%;
  right: -200px;
  background: radial-gradient(circle, rgba(64, 105, 94, .55), transparent 65%);
  animation: drift 26s ease-in-out infinite alternate;
}
.blob--2 {
  top: 36%;
  left: -240px;
  background: radial-gradient(circle, rgba(56, 78, 96, .5), transparent 65%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}

.section {
  position: relative;
  z-index: 1;                      /* Inhalt liegt über den Blobs */
  padding: var(--section-pad) 0;
}
.section--line {
  border-top: 1px solid var(--line);
}

/* Kicker: kleine Zeile über jeder Überschrift, z. B. "02 — LEISTUNGEN" */
.kicker {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.kicker span {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: #fff;
}
.kicker::after {
  content: "";
  width: 44px;
  height: 1px;
  background: rgba(255, 255, 255, .25);
}

.section-head {
  display: grid;
  gap: 1.1rem;
  max-width: 720px;
  margin-bottom: clamp(2.6rem, 6vw, 4.2rem);
}

h2 {
  font-size: var(--size-h2);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
}

/* Konturschrift – greift das geprägte "WEB" aus dem Hero wieder auf */
.outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .55);
}

.section-intro {
  max-width: 54ch;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--text-muted);
}


/* ==========================================================================
   06 | LEISTUNGEN – Karten mit Icon + Titel + Kurztext
   ========================================================================== */
.cards-grid {
  display: grid;
  gap: clamp(.9rem, 1.8vw, 1.4rem);
  /* passt die Spaltenzahl automatisch an die Breite an (1 → 2 → 4) */
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform .5s var(--ease-out), border-color .4s ease;
}
.card:hover {
  border-color: rgba(255, 255, 255, .22);
}

/* Lichtschein, der dem Mauszeiger folgt (Position --mx/--my setzt main.js) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 255, 255, .09), transparent 65%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.card:hover::after {
  opacity: 1;
}
.card > * {
  position: relative;
  z-index: 1;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.3rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .07);
  color: #fff;
}
.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: .55rem;
  font-size: 1.08rem;
  font-weight: 500;
}
.card p {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--text-muted);
}


/* ==========================================================================
   07 | PROJEKTE – Karten mit CSS-Platzhalter-Mockups
   Die Mockups sind reine CSS-Skizzen (Browserfenster mit Skelett-Inhalt).
   Später einfach durch echte Screenshots ersetzen – siehe Kommentar im HTML.
   ========================================================================== */
.projects-grid {
  display: grid;
  gap: clamp(.9rem, 1.8vw, 1.4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.project-card {
  position: relative;
  overflow: hidden;
  padding: .9rem .9rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform .5s var(--ease-out), border-color .4s ease;
}
.project-card:hover {
  border-color: rgba(255, 255, 255, .22);
}

/* Jedes Mockup bekommt über --tint-a/--tint-b eine eigene Farbstimmung */
.mockup {
  --tint-a: #3E524B;
  --tint-b: #131B18;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 2.9;
  margin-bottom: 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #0B0E0D;
  overflow: hidden;
}
.mockup--steel { --tint-a: #46536B; --tint-b: #14161E; }
.mockup--sand  { --tint-a: #6B5847; --tint-b: #1E1712; }

/* Browser-Kopfzeile mit drei Punkten und Adressleiste */
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.mockup-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}
.mockup-url {
  flex: 0 1 130px;
  height: 8px;
  margin-left: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
}

/* Skelett-Inhalt: Bildfläche, Textzeilen, Button */
.mockup-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}
.mockup-hero {
  flex: 1;
  min-height: 64px;
  border-radius: 8px;
  background: linear-gradient(130deg, var(--tint-a), var(--tint-b));
}
.mockup-line {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .13);
}
.w60 { width: 60%; }
.w75 { width: 75%; }
.w90 { width: 90%; }
.mockup-btn {
  width: 74px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .18);
}

/* Screenshots der echten Referenz-Projekte.
   height: auto ist WICHTIG: Die width/height-Attribute am <img> wirken sonst
   als feste Höhe (Presentational Hint) und würden das aspect-ratio aushebeln. */
.mockup-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 2.9;
  object-fit: cover;
  object-position: top;            /* oben ausrichten: der Kopfbereich der Website ist das Interessante */
  margin-bottom: 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
}

/* --- Dritte Karte: Einladung statt Referenz ------------------------------
   Die ganze Karte ist ein Link zum Kontaktformular. */
.project-card--next {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

/* Gestrichelte Fläche mit Plus – bewusst KEIN Screenshot, sondern eine Lücke,
   die gefüllt werden will. Gleiches Seitenverhältnis wie die Screenshots,
   damit alle drei Karten auf einer Linie liegen. */
.next-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 2.9;
  margin-bottom: 1.15rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, .22);
  background: linear-gradient(150deg, rgba(255, 90, 60, .10), rgba(255, 255, 255, .02));
  transition: border-color .35s ease, background .35s ease;
}
.next-visual svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
}
.project-card--next:hover .next-visual {
  border-color: var(--accent);
  background: linear-gradient(150deg, rgba(255, 90, 60, .18), rgba(255, 255, 255, .03));
}

/* Das Badge der Einladungs-Karte trägt die Akzentfarbe */
.project-card--next .badge {
  border-color: rgba(255, 90, 60, .55);
  color: var(--accent);
}

/* Pfeil-CTA am Fuß der Karte (margin-top: auto schiebt ihn nach unten,
   damit die Karte trotz kürzerem Text gleich hoch wirkt) */
.next-cta {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin-top: auto;
  padding: 1rem .35rem 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #fff;
}
.project-card--next:hover .icon-arrow {
  transform: translateX(8px);
  color: var(--accent);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem .8rem;
  margin-bottom: .5rem;
  padding: 0 .35rem;
}
.project-meta h3 {
  font-size: 1.02rem;
  font-weight: 500;
}
.badge {
  padding: .34em .8em;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 99px;
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
}
.project-result {
  padding: 0 .35rem;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text-muted);
}


/* ==========================================================================
   08 | WARUM WEB:ON – drei Trust-Punkte
   ========================================================================== */
.why-grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.why-item {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}

/* Große Konturziffern – gleiche Optik wie das geprägte "WEB" */
.why-num {
  display: block;
  margin-bottom: 1.1rem;
  font-size: clamp(3rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
}
.why-item h3 {
  margin-bottom: .6rem;
  font-size: 1.12rem;
  font-weight: 500;
}
.why-item p {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text-muted);
}


/* ==========================================================================
   09 | KONTAKT – der einzige Bereich in der Akzentfarbe
   ========================================================================== */
.contact {
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 6vw, 4rem);
  padding: var(--section-pad) 0;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: clamp(26px, 4.5vw, 46px) clamp(26px, 4.5vw, 46px) 0 0;
}

.contact-grid {
  display: grid;
  gap: clamp(2.4rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 1020px) {
  .contact-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* Kicker-Variante für den hellen Akzent-Hintergrund */
.kicker--ink {
  color: rgba(29, 18, 13, .65);
}
.kicker--ink span {
  color: var(--accent-ink);
}
.kicker--ink::after {
  background: rgba(29, 18, 13, .35);
}

.contact-intro h2 {
  margin: 1.2rem 0 1rem;
}
.outline-ink {
  color: transparent;
  -webkit-text-stroke: 1px rgba(29, 18, 13, .75);
}
.contact-intro > p {
  max-width: 46ch;
  line-height: 1.7;
  color: rgba(29, 18, 13, .78);
}

.contact-links {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.contact-label {
  display: block;
  margin-bottom: .35rem;
  font-size: .64rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(29, 18, 13, .6);
}
.contact-links a {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: opacity .3s ease;
}
.contact-links a:hover {
  opacity: .7;
}

/* Fokus-Ring auf dem Akzent-Hintergrund dunkel statt orange */
.contact :focus-visible {
  outline-color: var(--accent-ink);
}

/* --- Formular (dunkle Karte auf der Akzentfläche) -------------------------- */
.contact-form {
  display: grid;
  gap: 1.05rem;
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  border-radius: 22px;
  background: #141210;
  color: var(--text);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .35);
}

.form-row {
  display: grid;
  gap: 1.05rem;
}
@media (min-width: 700px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: grid;
  gap: .45rem;
}
.form-field label {
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  transition: border-color .3s ease, background .3s ease;
}
.form-field ::placeholder {
  color: rgba(255, 255, 255, .35);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, .08);
}
.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

/* Der große Kontakt-Button */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  width: 100%;
  margin-top: .3rem;
  padding: 1.05rem 1.4rem;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(255, 90, 60, .35);
}
.btn-submit:hover .icon-arrow {
  transform: translateX(6px);
}
.btn-submit .icon-arrow {
  width: 28px;
}

.form-hint {
  font-size: .75rem;
  line-height: 1.55;
  text-align: center;
  color: rgba(255, 255, 255, .45);
}


/* ==========================================================================
   10 | FOOTER
   ========================================================================== */
.footer {
  padding: clamp(2.4rem, 5vw, 3.6rem) 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem 3rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.footer-logo span {
  color: var(--accent);
}
.footer-tagline {
  margin-top: .3rem;
  font-size: .78rem;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 1.8rem;
}
.footer-links a {
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .3s ease;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-end {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: .78rem;
  color: var(--text-faint);
}

.to-top {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  transition: border-color .3s ease, transform .3s var(--ease-out);
}
.to-top:hover {
  border-color: #fff;
  transform: translateY(-3px);
}
.to-top svg {
  width: 16px;
  height: 16px;
}


/* ==========================================================================
   11 | ANIMATIONEN
   ========================================================================== */

/* Hero-Elemente steigen beim Laden sanft auf */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Nur Einblenden ohne Transform – für den Doppelpunkt auf Desktop, dessen
   translateX(-50%) fürs Zentrieren erhalten bleiben muss. */
@keyframes colon-fade {
  from {
    opacity: 0;
  }
}

/* Scroll-Hinweis: Linie wächst und schrumpft */
@keyframes scroll-hint {
  0%   { transform: scaleX(0); transform-origin: left; }
  45%  { transform: scaleX(1); transform-origin: left; }
  55%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* Blobs treiben langsam durchs Bild */
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 80px) scale(1.15); }
}

/* Reveal on Scroll: Elemente mit .reveal starten unsichtbar und
   werden von main.js (IntersectionObserver) eingeblendet.
   Gilt nur mit aktivem JS (Klasse "js" am <html>) – ohne JS bleibt alles sichtbar. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .8s ease,
    transform .8s var(--ease-out),
    border-color .4s ease;          /* Hover-Übergänge der Karten bleiben erhalten */
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Karten in Rastern erscheinen leicht versetzt nacheinander */
.js .cards-grid    .reveal:nth-child(2),
.js .projects-grid .reveal:nth-child(2),
.js .why-grid      .reveal:nth-child(2) { transition-delay: .08s; }
.js .cards-grid    .reveal:nth-child(3),
.js .projects-grid .reveal:nth-child(3),
.js .why-grid      .reveal:nth-child(3) { transition-delay: .16s; }
.js .cards-grid    .reveal:nth-child(4) { transition-delay: .24s; }


/* ==========================================================================
   12 | FALLBACKS & BARRIEREFREIHEIT
   ========================================================================== */

/* Sehr alte Browser ohne backdrop-filter: kräftigere, deckende Hintergründe,
   damit Text überall lesbar bleibt. */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .hero-glass {
    background: rgba(14, 18, 16, .86);
  }
  .hero-nav {
    background: rgba(10, 14, 12, .96);
  }
  .card,
  .project-card {
    background: rgba(255, 255, 255, .045);
  }
}

/* Browser ohne Text-in-Verlauf: "WEB" bekommt eine halbtransparente Füllung */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .logo-web {
    background: none;
    color: rgba(255, 255, 255, .28);
  }
}

/* Nutzer mit "Bewegung reduzieren": alle Animationen & Parallax aus,
   Inhalte sofort sichtbar. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   13 | RECHTLICHE UNTERSEITEN (Impressum, Datenschutz)
   Schlichtes, gut lesbares Layout, das dieselben Farben & die Schrift
   der Startseite nutzt. Wird von impressum.html und datenschutz.html geteilt.
   ========================================================================== */

/* Kopfzeile der Unterseiten: Logo links, Zurück-Link rechts */
.legal-header {
  border-bottom: 1px solid var(--line);
}
.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
}
.legal-brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--text);
}
.legal-brand span {
  color: var(--accent);
}
.legal-back {
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .3s ease;
}
.legal-back:hover {
  color: #fff;
}

/* Inhaltsbereich */
.legal {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 6.5rem);
}
.legal .container {
  width: min(760px, 92%);
}
.legal h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .4rem;
}
.legal .legal-updated {
  font-size: .82rem;
  color: var(--text-faint);
  margin-bottom: 2.6rem;
}
.legal h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 2.4rem 0 .7rem;
}
.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.6rem 0 .5rem;
}
.legal p,
.legal li {
  color: var(--text-muted);
  line-height: 1.7;
}
.legal p + p {
  margin-top: .9rem;
}
.legal address {
  font-style: normal;
  color: var(--text);
  line-height: 1.7;
  margin: .3rem 0 .9rem;
}
.legal ul {
  margin: .6rem 0 .6rem 1.2rem;
}
.legal li {
  margin-top: .35rem;
}
.legal a {
  color: var(--text);
  text-underline-offset: 3px;
}
.legal a:hover {
  color: var(--accent);
}
.legal strong {
  color: var(--text);
  font-weight: 600;
}
.legal hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4rem 0;
}
