/* Tactina – Farben nach dem Pitch-Deck: 60 % Blau, 30 % Weiß, 10 % Orange. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2-variations"), url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #00294f;
  --navy-deep: #001f3d;
  --navy-card: #14395c;
  --navy-line: rgba(255, 255, 255, 0.16);
  --white: #ffffff;
  --paper: #f7f8fa;
  --ink: #00294f;
  --ink-soft: #4a6580;
  --on-navy-soft: rgba(255, 255, 255, 0.74);
  --orange: #ffa62b;
  --orange-press: #f39612;
  --error: #b3261e;
  --error-on-navy: #ffb3a7;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 30px 60px -28px rgba(0, 18, 38, 0.65), 0 10px 24px -12px rgba(0, 18, 38, 0.45);
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1; width: 100%; }

h1, h2, h3 { font-weight: 860; line-height: 1.06; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.accent { color: var(--orange); }

::selection { background: var(--orange); color: var(--navy); }
/* Auf Orange wäre orange Markierung unsichtbar. */
.replace-card.is-ours ::selection, .replace-card.is-ours::selection { background: var(--navy); color: var(--white); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Kopfzeile */

.site-header {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px var(--pad) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.logo .mark { width: 15px; height: 42px; }
.logo span { font-size: 27px; font-weight: 880; letter-spacing: -0.01em; line-height: 1; }
.header-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  transition: border-color 0.2s, background-color 0.2s;
}
.header-link:hover { border-color: var(--orange); background: rgba(255, 166, 43, 0.08); }

.mark { display: block; fill: currentColor; }

/* Buttons */

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0.005em;
  color: var(--navy);
  background: var(--orange);
  border: 0;
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 24px -12px rgba(255, 166, 43, 0.9);
}
.button:hover,
button:hover { background: var(--orange-press); transform: translateY(-1px); }
.button:active,
button:active { transform: translateY(0); }
button:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* Startseite: Hero */

.hero {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--pad) clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  grid-template-areas:
    "copy visual"
    "form visual";
  column-gap: clamp(32px, 6vw, 88px);
  row-gap: 36px;
  align-items: start;
}
.hero-copy { grid-area: copy; }
.hero h1 { font-size: clamp(42px, 5.4vw, 74px); }
.hero h1 .accent { display: block; }
.lead { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.5; color: var(--on-navy-soft); margin-top: 26px; max-width: 34em; }

.hero-visual {
  grid-area: visual;
  position: relative;
  align-self: center;
  height: min(680px, 82vh);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.hero-visual.is-dragging { cursor: grabbing; }
.halo {
  position: absolute;
  inset: 4% 0;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 166, 43, 0.22), rgba(255, 166, 43, 0) 62%),
    radial-gradient(closest-side, rgba(102, 152, 204, 0.34), rgba(20, 57, 92, 0) 100%);
  filter: blur(6px);
  pointer-events: none;
}
.poster {
  position: relative;
  width: auto;
  height: min(78%, 560px);
  max-height: 560px;
  filter: drop-shadow(0 40px 40px rgba(0, 10, 25, 0.5));
  transition: opacity 0.9s ease;
  animation: float 7s ease-in-out infinite;
}
.bookmark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-visual.is-3d .bookmark-canvas { opacity: 1; }
.hero-visual.is-3d .poster { opacity: 0; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) { .poster { animation: none; } }

/* Anmeldeformular */

.hero-form { grid-area: form; max-width: 560px; }
.signup {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 36px);
  box-shadow: var(--shadow);
}
.signup h2, .sheet-form h2 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; }

label { display: block; font-size: 15px; font-weight: 650; margin-bottom: 7px; color: var(--ink); }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid #dbe2ea;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: #8a9bb0; }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 166, 43, 0.35);
}
textarea { resize: vertical; min-height: 140px; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 420;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 20px 0 22px;
  cursor: pointer;
}
.check input { margin: 2px 0 0; width: 20px; height: 20px; flex: none; accent-color: var(--navy); cursor: pointer; }
.check a, .note a { color: var(--ink); }

.signup .button, .sheet-form button { width: 100%; }
.cf-turnstile { margin: 0 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin-top: 14px; font-size: 16px; }
.msg:empty { display: none; }
.msg.error { color: var(--error); }
.note { font-size: 15px; color: var(--ink-soft); margin: 4px 0 20px; }

/* Startseite: Problem */

.problem {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--pad);
  border-top: 1px solid var(--navy-line);
  text-align: center;
}
.problem h2 { font-size: clamp(34px, 4.6vw, 60px); }
.problem h2 .accent { display: block; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: clamp(48px, 6vw, 80px);
}
.stat .num { font-size: clamp(56px, 7.4vw, 104px); font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.stat .num small { font-size: 0.48em; font-weight: 800; letter-spacing: 0; }
.stat p:last-child { margin: 18px auto 0; max-width: 13em; font-size: clamp(18px, 1.8vw, 22px); color: var(--on-navy-soft); }

/* Startseite: So funktioniert es (weiß) */

.how { background: var(--white); color: var(--ink); }
.how-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 10vw, 130px) var(--pad); }
.how h2 { font-size: clamp(36px, 4.6vw, 60px); max-width: 9em; }
.steps {
  list-style: none;
  padding: 0;
  margin: clamp(44px, 6vw, 72px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.steps li { border-top: 2px solid var(--navy); padding-top: 28px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-weight: 900;
  font-size: 20px;
}
.steps h3 { font-size: clamp(28px, 2.8vw, 36px); margin-top: 22px; }
.steps p { margin-top: 10px; font-size: 19px; color: var(--ink-soft); }

/* Startseite: Andere sperren. Wir ersetzen. */

.replace {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--pad) clamp(40px, 5vw, 64px);
}
.replace h2 { font-size: clamp(36px, 4.6vw, 60px); }
.replace-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(16px, 2.6vw, 32px);
  margin-top: clamp(40px, 5vw, 64px);
}
.replace-card {
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: var(--navy-card);
  border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 44px);
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.replace-card.is-ours { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.replace-step { font-size: 18px; }
.replace-card h3 { font-size: clamp(32px, 3.4vw, 46px); margin-top: 18px; max-width: 7em; }
.replace-card .mark { position: absolute; top: 28px; right: 30px; width: 16px; height: 44px; color: var(--navy); }
.replace-arrow {
  align-self: center;
  width: 46px;
  height: 30px;
  background: var(--white);
  clip-path: polygon(0 32%, 58% 32%, 58% 0, 100% 50%, 58% 100%, 58% 68%, 0 68%);
}

/* Startseite: Abschluss */

.closing {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) var(--pad);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closing-mark { width: 30px; height: 84px; color: var(--white); margin-bottom: 34px; }
.closing h2 { font-size: clamp(44px, 6vw, 80px); }
.closing .lead { margin: 22px auto 36px; }

/* Fußzeile */

.site-footer { background: var(--navy-deep); color: var(--on-navy-soft); }
.site-footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 16px;
}
.site-footer .logo .mark { width: 11px; height: 30px; }
.site-footer .logo span { font-size: 21px; }
.site-footer nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-footer nav a { color: var(--on-navy-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--white); }

/* Unterseiten */

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) var(--pad) clamp(64px, 9vw, 110px);
}
.page h1 { font-size: clamp(38px, 5.2vw, 62px); }
.center h1 { max-width: 14em; }
.page-intro .lead { margin-top: 18px; }

.sheet {
  margin-top: 36px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.sheet-form { max-width: 620px; }
.sheet-form .fields { margin-bottom: 14px; }
.sheet-form .field-full { margin-bottom: 14px; }

.legal h1 { font-size: clamp(34px, 4.4vw, 48px); margin-bottom: 26px; }
.legal h2 { font-size: 25px; margin-top: 40px; margin-bottom: 12px; }
.legal h3 { font-size: 20px; margin-top: 28px; margin-bottom: 8px; }
.legal p { margin-bottom: 14px; }
.legal p, .legal li { color: var(--ink); overflow-wrap: anywhere; font-size: 17px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--ink); }
.todo { background: #ffe9a8; color: #3a2d00; padding: 0 4px; border-radius: 4px; }

.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.done-mark {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
}
.done-mark svg { width: 38px; height: 38px; fill: none; stroke: var(--navy); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.center .actions { margin-top: 36px; }
.center .msg { color: var(--white); font-size: 19px; margin-top: 24px; max-width: 32em; }
.center .msg.error { color: var(--error-on-navy); }
.text-link { color: var(--white); font-weight: 600; }

/* Einblenden beim Scrollen (nur mit JavaScript, ohne Bewegungsreduktion) */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Mobil */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "visual" "form";
    row-gap: 8px;
  }
  .hero-visual { min-height: 0; height: clamp(320px, 80vw, 440px); }
  .poster { height: 86%; }
  .hero-form { max-width: none; }
  .stats { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr; }
  .replace-cards { grid-template-columns: 1fr; }
  .replace-card { min-height: 200px; }
  .replace-arrow { justify-self: center; transform: rotate(90deg); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .fields { grid-template-columns: 1fr; }
  .header-link { display: none; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; }
}
