/* ==========================================================================
   Studio Quant — Stylesheet
   ==========================================================================

   FARBEN — EINZIGE DEFINITIONSSTELLE
   ----------------------------------
   Alle Farbtöne der Website (auch Abstufungen, Flächen, Schatten) werden
   per color-mix() aus diesen zwei Variablen abgeleitet. Wer die Farben
   ändern will, ändert NUR die zwei Werte direkt hier unten.

   --hauptfarbe  (Primär 1) : Light Mykonos Blue
   --highlight   (Primär 2) : Warm Yellow
   ========================================================================== */

:root {
  --hauptfarbe: #376E9F;
  --highlight:  #FEA727;

  /* Abgeleitete Töne — nicht direkt ändern, sie folgen den zwei Farben oben */
  --primary-dark:   color-mix(in srgb, var(--hauptfarbe), #000 45%);
  --primary-deep:   color-mix(in srgb, var(--hauptfarbe), #020810 72%);
  --primary-soft:   color-mix(in srgb, var(--hauptfarbe), #fff 92%);
  --primary-mist:   color-mix(in srgb, var(--hauptfarbe), #fff 96%);
  --primary-line:   color-mix(in srgb, var(--hauptfarbe), #fff 82%);
  --highlight-soft: color-mix(in srgb, var(--highlight), #fff 85%);

  --ink:    #101418;
  --ink-60: color-mix(in srgb, var(--ink), #fff 40%);
  --paper:  #ffffff;
  --line:   #e7ebef;

  /* Überschriften bewusst zurückhaltend: gleiche Schrift wie der Fließtext.
     (Space Grotesk liegt weiter unter assets/fonts/ und ist per @font-face
     registriert — hier wieder eintragen, falls doch gewünscht.) */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --radius: 18px;
  --shadow-card: 0 20px 50px -24px color-mix(in srgb, var(--primary-deep), transparent 72%);
  --ease: cubic-bezier(.22, .61, .21, 1);
}

/* --- Fonts (lokal, DSGVO-konform) ---------------------------------------- */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-var-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* --- Reset / Basis -------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--hauptfarbe); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--highlight); color: var(--ink); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* --- Skip-Link / A11y ------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* --- Header ---------------------------------------------------------------- */

/* sticky statt fixed: so nutzt der Header dieselbe Breitenbasis wie der
   Seiteninhalt (ohne Scrollbalken) — Logo und Hero-Text stehen exakt
   linksbündig. Der negative Margin lässt den Inhalt wie zuvor unter dem
   Header beginnen. */
.site-header {
  position: sticky;
  top: 0;
  margin-bottom: -76px;
  z-index: 50;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--paper), transparent 12%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

/* Seiten mit dunklem Seitenkopf (z. B. heyprof): Header immer weiß,
   sonst fehlt der Kontrast zur Navigation */
.site-header.solid {
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: .1em;
}
.wordmark:hover { text-decoration: none; }
.wordmark .quant { color: var(--hauptfarbe); }
.wordmark .dot { color: var(--highlight); font-size: 1.5em; line-height: 0; }

/* Der Q-Schwanz ragt unter die Baseline; die Bildbox ist dadurch unten ~9 %
   höher als der Schriftblock. Der Versatz zentriert die Buchstaben (Ober-
   kante bis untere Q-Rundung) statt der Gesamtbox — der Schwanz hängt über. */
.wordmark img { display: block; height: 18px; width: auto; transform: translateY(9.3%); }
@media (max-width: 640px) { .wordmark img { height: 14px; } }
.site-footer .wordmark img { height: 15px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  position: relative;
}
.nav-links a:hover { text-decoration: none; color: var(--hauptfarbe); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--highlight);
  transition: right .25s var(--ease);
}
.nav-links a:hover::after { right: 0; }

.nav-links a.active { color: var(--hauptfarbe); }
.nav-links a.active::after { right: 0; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .8rem;
}
.lang-switch a, .lang-switch span { color: var(--ink-60); }
.lang-switch .active { color: var(--ink); }
.lang-switch a:hover { color: var(--hauptfarbe); text-decoration: none; }
.lang-switch .sep { color: var(--line); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}

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

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 9rem 0 5rem;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Weiche Farb-Glows in den Markenfarben — geben dem vielen Weiß Tiefe */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 480px at 86% 16%, color-mix(in srgb, var(--hauptfarbe), transparent 85%), transparent 70%),
    radial-gradient(560px 440px at 4% 92%, color-mix(in srgb, var(--highlight), transparent 86%), transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--paper) 0%,
    color-mix(in srgb, var(--paper), transparent 30%) 45%,
    color-mix(in srgb, var(--paper), transparent 88%) 100%);
  pointer-events: none;
}

/* width:100%: als Flex-Item würde der Container sonst auf Inhaltsbreite
   schrumpfen und wäre nicht mehr bündig mit dem Header-Logo */
.hero .container { position: relative; z-index: 2; width: 100%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hauptfarbe);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--highlight);
  display: inline-block;
}

/* Drei feste Zeilen (per <br>); Größe so gewählt, dass die längste Zeile
   („Aber mit viel gesundem Menschenverstand.“) auf Desktop einzeilig bleibt */
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 44ch;
  margin-bottom: 1.75rem;
}

/* Textmarker-Effekt: halbtransparenter gelber Balken hinter der unteren
   Texthälfte — wirkt wie von Hand markiert statt wie ein Hyperlink.
   Bricht sauber über Zeilen um (box-decoration-break). */
.accent {
  color: inherit;
  background-image: linear-gradient(
    color-mix(in srgb, var(--highlight), transparent 45%),
    color-mix(in srgb, var(--highlight), transparent 45%));
  background-size: 100% .45em;
  background-position: 0 82%;
  background-repeat: no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 .1em;
  margin: 0 -.1em;
}

.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-60);
  max-width: 54ch;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: .95rem 1.8rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--hauptfarbe), #fff 12%),
    var(--primary-dark));
  color: #fff;
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--hauptfarbe), transparent 35%);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--hauptfarbe), var(--primary-dark));
  box-shadow: 0 18px 36px -12px color-mix(in srgb, var(--hauptfarbe), transparent 25%);
}
.btn-primary .arrow { transition: transform .2s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-outline {
  border-color: color-mix(in srgb, var(--ink), #fff 75%);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--hauptfarbe); color: var(--hauptfarbe); }

.hero-note {
  margin-top: 3rem;
  font-size: .85rem;
  color: var(--ink-60);
}

/* Gestaffelter Einstieg der Hero-Elemente beim Laden */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow      { animation: hero-rise .7s .05s var(--ease) both; }
.hero h1            { animation: hero-rise .7s .18s var(--ease) both; }
.hero .lead         { animation: hero-rise .7s .32s var(--ease) both; }
.hero .hero-actions { animation: hero-rise .7s .46s var(--ease) both; }
.hero .hero-note    { animation: hero-rise .7s .60s var(--ease) both; }

/* --- Stat-Band --------------------------------------------------------------- */

.stats {
  border-block: 1px solid var(--line);
  background: var(--primary-mist);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.stat {
  background: var(--primary-mist);
  padding: 2.5rem 2rem;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--hauptfarbe);
  line-height: 1.1;
}
.stat b em { font-style: normal; color: var(--highlight); }
.stat span { font-size: .95rem; color: var(--ink-60); }

/* --- Sections ---------------------------------------------------------------- */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: 1rem; }
.section-head p { color: var(--ink-60); font-size: 1.1rem; }

/* --- heyprof / Produkt --------------------------------------------------------- */

.product { background: var(--primary-deep); color: #fff; position: relative; overflow: hidden; }
.product::before {
  content: '';
  position: absolute;
  width: 60vw; height: 60vw;
  right: -25vw; top: -30vw;
  border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--hauptfarbe), transparent 55%) 0%,
    transparent 65%);
  pointer-events: none;
}

/* Variante mit Screenshot der heyprof-Demo als Hintergrund (Startseite).
   Das Overlay ist links nahezu deckend (Textspalte bleibt lesbar) und gibt
   das Bild nach rechts hin frei; Grundton bleibt primary-deep, damit die
   Sektion auch ohne geladenes Bild funktioniert. */
.product.demo-bg {
  background:
    linear-gradient(100deg,
      color-mix(in srgb, var(--primary-deep), transparent 3%) 34%,
      color-mix(in srgb, var(--primary-deep), transparent 30%) 68%,
      color-mix(in srgb, var(--primary-deep), transparent 52%)),
    url('../img/heyprof-demo-bg.webp') right center / cover no-repeat,
    var(--primary-deep);
}

.product .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--highlight);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.product h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  color: #fff;
}
.product h2 .brand { color: var(--highlight); }

.product p { color: color-mix(in srgb, #fff, var(--hauptfarbe) 25%); max-width: 50ch; }
.product p + p { margin-top: 1rem; }

.product-features {
  list-style: none;
  margin: 1.75rem 0 2.25rem;
  display: grid;
  gap: .8rem;
}
.product-features li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  color: color-mix(in srgb, #fff, var(--hauptfarbe) 15%);
}
.product-features .tick {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: .15rem;
  border-radius: 50%;
  background: var(--highlight);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 700;
}

.btn-light {
  background: #fff;
  color: var(--primary-deep);
}
.btn-light:hover { background: var(--highlight); color: var(--ink); }

/* Button auf dunklem Grund, zweite Priorität */
.btn-ghost {
  border-color: color-mix(in srgb, #fff, transparent 55%);
  color: #fff;
}
.btn-ghost:hover { border-color: var(--highlight); color: var(--highlight); }

/* Browser-Mockup */
.mockup {
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
  overflow: hidden;
  transform: rotate(1.2deg);
  transition: transform .4s var(--ease);
}
.mockup:hover { transform: rotate(0deg) scale(1.01); }

.mockup-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--primary-mist);
}
.mockup-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.mockup-bar i:first-child { background: var(--highlight); }
.mockup-url {
  margin-left: .75rem;
  font-size: .78rem;
  color: var(--ink-60);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .2rem .8rem;
  flex: 1;
  text-align: center;
}

.mockup-chat { padding: 1.4rem; display: grid; gap: 1rem; }

.bubble {
  max-width: 85%;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.5;
}
.bubble.user {
  justify-self: end;
  background: var(--hauptfarbe);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble.bot {
  justify-self: start;
  background: var(--primary-soft);
  border-bottom-left-radius: 4px;
}
.bubble.bot b { color: var(--hauptfarbe); }

.typing {
  justify-self: start;
  display: inline-flex;
  gap: .3rem;
  padding: .85rem 1.1rem;
  background: var(--primary-soft);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hauptfarbe);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .2s; background: var(--highlight); }
.typing i:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* --- Leistungen ------------------------------------------------------------------ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  background: var(--paper);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hauptfarbe), var(--highlight));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--primary-line);
}
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--highlight);
  letter-spacing: .1em;
}

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--hauptfarbe);
  display: grid;
  place-items: center;
  margin: 1.1rem 0 1.3rem;
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.service-card p { color: var(--ink-60); font-size: .97rem; }

.service-tags {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
}
.service-tags li {
  font-size: .76rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-mist);
  border: 1px solid var(--primary-line);
  padding: .25rem .7rem;
  border-radius: 999px;
}

/* --- Über uns / Gründer ------------------------------------------------------------ */

.about { background: var(--primary-mist); border-block: 1px solid var(--line); }

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.founder-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.founder-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }

.founder-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.avatar {
  flex: 0 0 auto;
  width: 76px; height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%,
      color-mix(in srgb, var(--hauptfarbe), #fff 25%),
      var(--primary-dark));
  position: relative;
}
/* Foto-Avatar: Verlaufs-Hintergrund (sonst blauer Rahmen ums Bild) weg,
   stattdessen feine neutrale Kontur */
.avatar:has(img) { background: none; }
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.avatar::after {
  content: '';
  position: absolute;
  right: 1px; bottom: 1px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--highlight);
  border: 3px solid var(--paper);
}

.founder-card h3 { font-size: 1.35rem; }
.founder-role {
  font-size: .85rem;
  font-weight: 600;
  color: var(--hauptfarbe);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.founder-card > p { color: var(--ink-60); font-size: .97rem; }
.founder-card > p + p { margin-top: .8rem; }

.founder-focus {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--primary-line);
  font-size: .9rem;
  color: var(--ink-60);
}
.founder-focus b { color: var(--ink); font-weight: 600; }

.founder-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.25rem;
  font-size: .9rem;
  font-weight: 600;
}
.founder-link svg { width: 17px; height: 17px; }

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

.contact { background: var(--primary-deep); color: #fff; position: relative; overflow: hidden; }
.contact::after {
  content: '';
  position: absolute;
  left: -12vw; bottom: -22vw;
  width: 44vw; height: 44vw;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--highlight), transparent 55%);
  pointer-events: none;
}

.contact .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.contact h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); color: #fff; margin-bottom: 1.25rem; }
.contact h2 .accent { color: var(--highlight); background: none; }
.contact p { color: color-mix(in srgb, #fff, var(--hauptfarbe) 25%); max-width: 46ch; }

.contact-box {
  background: color-mix(in srgb, #fff, transparent 94%);
  border: 1px solid color-mix(in srgb, #fff, transparent 85%);
  border-radius: var(--radius);
  padding: 2.25rem;
  backdrop-filter: blur(6px);
}

.contact-box dl { display: grid; gap: 1.3rem; }
.contact-box dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: .25rem;
}
.contact-box dd { color: #fff; font-size: 1.02rem; }
.contact-box a { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--highlight); }
.contact-box a:hover { color: var(--highlight); }

/* --- Footer -------------------------------------------------------------------------- */

.site-footer {
  background: var(--primary-deep);
  color: color-mix(in srgb, #fff, var(--hauptfarbe) 35%);
  border-top: 1px solid color-mix(in srgb, #fff, transparent 88%);
  padding: 2.5rem 0;
  font-size: .9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer .wordmark { color: #fff; font-size: 1.1rem; }

.footer-links { display: flex; gap: 1.75rem; list-style: none; }
.footer-links a { color: inherit; }
.footer-links a:hover { color: var(--highlight); }

/* --- Unterseiten: Kopfbereich ---------------------------------------------------------- */

.page-hero {
  padding: 10.5rem 0 4.5rem;
  background-color: var(--primary-mist);
  background-image: radial-gradient(color-mix(in srgb, var(--hauptfarbe), #fff 78%) 1.2px, transparent 1.3px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.page-hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-60);
  max-width: 56ch;
}

.page-hero .hero-actions { margin-top: 2rem; }

/* --- Teaser-Karten (Startseite) --------------------------------------------------------- */

a.service-card {
  display: block;
  color: inherit;
}
a.service-card:hover { text-decoration: none; }

.card-more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.4rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--hauptfarbe);
}
.card-more .arrow { transition: transform .2s var(--ease); }
a.service-card:hover .card-more .arrow { transform: translateX(4px); }

/* --- Zweispaltige Info-Blöcke (z. B. Für Lehrende / Für Lernende) ------------------------ */

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.split-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  background: var(--paper);
}
.split-card h3 {
  font-size: 1.25rem;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.split-card h3::before {
  content: '';
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--highlight);
  flex: 0 0 auto;
}
.split-card:first-child h3::before { background: var(--hauptfarbe); }
.split-card p { color: var(--ink-60); font-size: .97rem; }

/* --- Vorgehen (Leistungen) ----------------------------------------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  border-left: 3px solid var(--highlight);
  background: var(--primary-mist);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; color: var(--primary-dark); }
.step p { font-size: .95rem; color: var(--ink-60); }

/* --- heyprof: dunkler Seitenkopf --------------------------------------------------------- */

.product.page-top { padding-top: 10.5rem; }

/* --- heyprof: VisuApp-Galerie -------------------------------------------------------------- */

.visu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.visu-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.visu-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }

.visu-thumb {
  height: 140px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(color-mix(in srgb, var(--hauptfarbe), #fff 80%) 1px, transparent 1.1px),
    var(--primary-mist);
  background-size: 18px 18px;
  border-bottom: 1px solid var(--line);
}
.visu-thumb svg { width: 64%; height: 74%; }

.visu-body { padding: 1.3rem 1.5rem 1.5rem; }
.visu-body h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.visu-body p { font-size: .9rem; color: var(--ink-60); }

/* --- heyprof: Live-Embeds (VisuApps per iframe, Click-to-Load) ----------------------------- */

.embed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.visu-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  transition: box-shadow .3s var(--ease);
}
.visu-embed:hover { box-shadow: var(--shadow-card); }

.visu-embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.visu-embed-head h3 { font-size: 1.05rem; }

.visu-tags {
  display: flex;
  gap: .4rem;
  list-style: none;
}
.visu-tags li {
  font-size: .72rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-mist);
  border: 1px solid var(--primary-line);
  padding: .2rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.visu-tags li.lvl {
  background: var(--highlight-soft);
  border-color: color-mix(in srgb, var(--highlight), #fff 55%);
  color: color-mix(in srgb, var(--highlight), var(--ink) 45%);
}

.visu-embed-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(color-mix(in srgb, var(--hauptfarbe), #fff 80%) 1px, transparent 1.1px),
    var(--primary-mist);
  background-size: 18px 18px;
}
.visu-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Click-to-Load-Overlay: App-Screenshot als Vorschau, iframe erst beim Klick */
.visu-embed-launch {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  overflow: hidden;
}
.visu-embed-launch .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.visu-embed-launch:hover .thumb { transform: scale(1.05); }
.visu-embed-launch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--primary-deep), transparent 92%) 0%,
    color-mix(in srgb, var(--primary-deep), transparent 96%) 55%,
    color-mix(in srgb, var(--primary-deep), transparent 65%) 100%);
  transition: background .3s var(--ease);
}
.visu-embed-launch .play,
.visu-embed-launch .label { position: relative; z-index: 1; }
.visu-embed-launch .play {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--hauptfarbe);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px -8px color-mix(in srgb, var(--primary-deep), transparent 40%);
  transition: transform .2s var(--ease), background .2s;
}
.visu-embed-launch .play svg { width: 22px; height: 22px; margin-left: 3px; }
.visu-embed-launch:hover .play { transform: scale(1.1); background: var(--highlight); color: var(--ink); }
.visu-embed-launch .label {
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  background: color-mix(in srgb, var(--primary-deep), transparent 35%);
  padding: .35rem .95rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Scroll-Schutz über laufenden Embeds: fängt Eingaben ab, bis einmal
   geklickt wurde; zeigt beim Hover einen dezenten Hinweis */
.visu-guard {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: transparent;
}
.visu-guard.off { display: none; }
.visu-guard span {
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  background: color-mix(in srgb, var(--primary-deep), transparent 30%);
  padding: .4rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.visu-guard:hover span,
.visu-guard:focus-visible span { opacity: 1; transform: none; }

.visu-embed-body { padding: 1rem 1.3rem 1.2rem; }
.visu-embed-body p { font-size: .9rem; color: var(--ink-60); }

/* Einzelnes, breites Embed (Startseite) */
.embed-solo { max-width: 880px; margin-inline: auto; }

/* --- heyprof: Plattform-Features ------------------------------------------------------------ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: .95rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.feature-item .service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  margin: 0;
  flex: 0 0 auto;
}
.feature-item .service-icon svg { width: 22px; height: 22px; }
.feature-item h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.feature-item p { font-size: .88rem; color: var(--ink-60); }

/* --- heyprof: Zielgruppen-Chips ---------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  list-style: none;
}
.chips li {
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--primary-line);
  background: var(--primary-mist);
  font-weight: 600;
  font-size: .92rem;
  color: var(--primary-dark);
}
.chips li.hl {
  background: var(--highlight-soft);
  border-color: color-mix(in srgb, var(--highlight), #fff 55%);
  color: color-mix(in srgb, var(--highlight), var(--ink) 45%);
}

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

/* --- CTA-Band ---------------------------------------------------------------------------------- */

.cta-band {
  background: var(--primary-deep);
  color: #fff;
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 1rem;
}
.cta-band p {
  color: color-mix(in srgb, #fff, var(--hauptfarbe) 25%);
  max-width: 52ch;
  margin: 0 auto 2rem;
}

/* --- Unterseiten (Impressum / Datenschutz) ------------------------------------------- */

.subpage { padding: 10rem 0 5rem; min-height: 70svh; }
.subpage h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2.5rem; }
.subpage h2 { font-size: 1.35rem; margin: 2.25rem 0 .75rem; }
.subpage p, .subpage li { color: var(--ink-60); max-width: 70ch; }
.subpage ul { padding-left: 1.25rem; }
.subpage .back {
  display: inline-flex;
  gap: .5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* --- Scroll-Reveal --------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .typing i { animation: none; }
  .hero .eyebrow, .hero h1, .hero .lead,
  .hero .hero-actions, .hero .hero-note { animation: none; }
}

/* --- Responsive -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .product .container,
  .contact .container,
  .founders-grid,
  .split-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .visu-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
  .embed-grid { grid-template-columns: 1fr; }
  .services-grid.cols-2 { grid-template-columns: 1fr; }
  .mockup { transform: none; }
}

@media (max-width: 680px) {
  .services-grid, .stats-grid, .visu-grid, .feature-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.5rem 1.25rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: .9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child a { border-bottom: 0; }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Quellenhinweis unter eingebetteten VisuApps (z. B. NASA-Credit) */
.visu-credit { margin-top: .6rem; font-size: .8rem; color: var(--ink-60); }
.visu-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
