/*
 * Gestaltung der Marketing-Seite.
 *
 * Dieselbe Farbwelt und Typografie wie die Anwendung, damit ein Besucher
 * beim Wechsel auf chat.eurocore.ai dieselbe Handschrift wiedererkennt. Die
 * Werte sind bewusst KOPIERT und nicht importiert: Die beiden Projekte
 * sollen sich unabhängig ausrollen lassen, und eine gemeinsame Datei über
 * Domaingrenzen hinweg wäre eine Abhängigkeit ohne Nutzen.
 *
 * Zurückhaltend eingesetzt: Core Blue trägt Knöpfe und Akzente, der goldene
 * Kern der Marke ist der einzige gesättigte Punkt. Die Fläche bleibt ruhig.
 */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/plex-sans-var.woff2') format('woff2');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blau: #7fa3e0;
  --blau-flaeche: #1d3f96;
  --blau-flaeche-tief: #16337e;
  --gold: #e8a33d;
  --papier: #0b111f;
  --karte: #111a2c;
  --getoent: #0e1626;
  --tinte: #f0ede3;
  --text: #c9cbd4;
  --leise: #8f9ab3;
  --linie: #22314f;
  --linie-hell: #1b2843;
  --marke-ring: #35486e;
  --auf-dunkel: #f7f2e9;
  --gruen: #8fc79f;
  --gruen-hell: rgba(143, 199, 159, 0.14);

  color-scheme: dark;
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  color: var(--tinte);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

a {
  color: var(--blau);
}

/* Tastaturbedienung: Der Sprung zum Inhalt ist erst beim Fokus sichtbar. */
.sprungmarke {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.6rem 1rem;
  background: var(--blau-flaeche);
  color: var(--auf-dunkel);
  z-index: 100;
}

.sprungmarke:focus {
  left: 0;
}

.huelle {
  width: min(68rem, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.huelle.schmal {
  width: min(44rem, 100%);
}

.huelle.mitte {
  text-align: center;
}

/* --- Marke ---------------------------------------------------------------- */

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--marke-ring);
  text-decoration: none;
}

.coreKern {
  fill: var(--gold);
}

.wortmarke {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--tinte);
}

.marke.klein .wortmarke {
  font-size: 0.95rem;
}

.wortmarkeAi {
  font-weight: 500;
  opacity: 0.65;
}

/* --- Kopfzeile ------------------------------------------------------------ */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie-hell);
}

.kopfInhalt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.kopfNavi {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.kopfNavi a {
  color: var(--leise);
  text-decoration: none;
  font-size: 0.9rem;
}

.kopfNavi a:hover {
  color: var(--tinte);
}

/* --- Knöpfe --------------------------------------------------------------- */

.knopfPrimaer,
.knopfFlach {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.knopfPrimaer {
  background: var(--blau-flaeche);
  color: var(--auf-dunkel);
}

.knopfPrimaer:hover {
  background: var(--blau-flaeche-tief);
}

.knopfFlach {
  border: 1px solid var(--linie);
  color: var(--text);
}

.knopfFlach:hover {
  background: var(--karte);
}

.gross {
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
}

:is(a, button):focus-visible {
  outline: 2px solid var(--blau);
  outline-offset: 2px;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  /* Leiser Lichtkegel in Core Blue, damit die Fläche nicht tot wirkt. */
  background:
    radial-gradient(
      55rem 30rem at 78% 18%,
      color-mix(in srgb, var(--blau-flaeche) 22%, transparent),
      transparent 70%
    ),
    var(--papier);
}

.heroInhalt {
  position: relative;
  z-index: 1;
}

/*
 * Das Markenzeichen als Hintergrundmotiv: ein großer, entsättigter Ring mit
 * langsam atmendem goldenem Kern. Auf schmalen Bildschirmen aus dem Weg —
 * dort gehört der Platz dem Text.
 */
.heroRing {
  position: absolute;
  top: 50%;
  right: -6rem;
  width: 30rem;
  height: 30rem;
  transform: translateY(-50%);
  border: 3.2rem solid color-mix(in srgb, var(--marke-ring) 34%, transparent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.heroKern {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 72%, transparent);
  /* Weicher Schein statt harter Scheibe. */
  box-shadow: 0 0 5rem 1.5rem color-mix(in srgb, var(--gold) 18%, transparent);
  animation: atmen 6s ease-in-out infinite;
}

@keyframes atmen {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.85;
  }
}

/*
 * Eintritt beim Laden: nacheinander von unten einschweben. Die Staffelung
 * läuft über die Dokumentreihenfolge (nth-child), nicht über Inline-Stile —
 * die würde unsere CSP (style-src 'self') in Produktion blockieren.
 */
.schwebt {
  opacity: 0;
  animation: einschweben 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.heroInhalt > .schwebt:nth-child(1) {
  animation-delay: 0.05s;
}

.heroInhalt > .schwebt:nth-child(2) {
  animation-delay: 0.15s;
}

.heroInhalt > .schwebt:nth-child(3) {
  animation-delay: 0.3s;
}

.heroInhalt > .schwebt:nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes einschweben {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.euPille {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--gruen-hell);
  color: var(--gruen);
  font-size: 0.8rem;
  font-weight: 500;
}

.euPunkt {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.hero h1 {
  margin: 0 0 1.3rem;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 750;
  line-height: 1.08;
}

.betont {
  color: var(--blau);
}

.heroText {
  max-width: 34rem;
  margin: 0 0 2.2rem;
  font-size: 1.12rem;
  color: var(--leise);
}

.heroKnoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* --- Abschnitte ----------------------------------------------------------- */

.abschnitt {
  padding: 4.5rem 0;
  border-top: 1px solid var(--linie-hell);
}

.abschnitt.getoent {
  background: var(--getoent);
}

.abschnitt h2 {
  margin: 0 0 1.3rem;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
}

.fliess {
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
}

.vorspann {
  max-width: 40rem;
  color: var(--leise);
}

.kleingedruckt {
  margin: 2rem 0 0;
  font-size: 0.85rem;
  color: var(--leise);
}

/* --- Schritte ------------------------------------------------------------- */

.schritte {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
}

.schritte h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 600;
}

.schritte p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.schrittZahl {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  border: 1px solid var(--linie);
  border-radius: 50%;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
}

/* --- Karten --------------------------------------------------------------- */

.karten {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.karte {
  padding: 1.4rem;
  background: var(--karte);
  border: 1px solid var(--linie-hell);
  border-radius: 12px;
}

.karte h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
}

.karte p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

/* --- Kontakt -------------------------------------------------------------- */

.kontaktZeile {
  margin: 2rem 0 0;
}

/* --- Fußzeile ------------------------------------------------------------- */

.fuss {
  padding: 2rem 0;
  border-top: 1px solid var(--linie-hell);
}

.fussInhalt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fussNavi {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.fussNavi a {
  color: var(--leise);
  text-decoration: none;
  font-size: 0.86rem;
}

.fussNavi a:hover {
  color: var(--tinte);
}

/* --- Kleine Bildschirme --------------------------------------------------- */

@media (max-width: 46rem) {
  .kopfNavi a:not(.knopfPrimaer) {
    display: none;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  /* Der Ring wiche dem Text sonst nicht aus. */
  .heroRing {
    display: none;
  }

  .abschnitt {
    padding: 3.5rem 0;
  }
}

/* Wer Bewegung reduziert haben will, bekommt keine. */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  /* Ohne Animation darf der Startzustand nicht unsichtbar bleiben. */
  .schwebt {
    opacity: 1;
  }
}
