/*
 * skipperscope.com – Bordbuch-Corporate-Design (docs/ui/corporate-design.md).
 * Werte 1:1 aus der Belegung „Hell“ in app/globals.css; die Website kennt nur diese
 * Belegung. Schriften liegen unter /fonts (IBM Plex, SIL OFL 1.1), keine Drittanbieter.
 */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  /* Marke – in allen Belegungen gleich */
  --brand-navy: #0d3561;
  --brand-navy-deep: #082444;
  --brand-navy-soft: #1b5a8c;
  --brand-aqua: #9fdcdc;
  --brand-orange: #f8582a;

  /* Rollen, Belegung „Hell“ */
  --ss-bg: #f5f8fb;
  --ss-surface: #ffffff;
  --ss-line: #d9e2ec;
  --ss-text: #10233d;
  --ss-text-muted: #5a6b82;
  --ss-nav-bg: #082444;
  --ss-on-nav: #ffffff;
  --ss-accent-text: #0d3561;
  --ss-primary: #f8582a;
  --ss-primary-ink: #0b1f33;
  --ss-r-ctl: 10px;
  --ss-r-card: 14px;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { min-width: 320px; background: var(--ss-nav-bg); }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ss-nav-bg);
  color: var(--ss-on-nav);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
::selection {
  background: color-mix(in srgb, var(--brand-aqua) 45%, transparent);
  color: var(--brand-navy-deep);
}
a:focus-visible {
  outline: 2px solid var(--brand-aqua);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Hintergrund: nautisches Raster und zwei Lichtflecken wie im App-Hero */
.decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.nautical-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, transparent 0 8%, rgba(159, 220, 220, 0.06) 8.2% 8.4%, transparent 8.6% 100%);
  background-size: 52px 52px, 52px 52px, 380px 380px;
}
.glow { position: absolute; width: 24rem; height: 24rem; border-radius: 50%; filter: blur(64px); }
.glow-left { left: -10rem; top: 7rem; background: rgba(27, 90, 140, 0.35); }
.glow-right { right: -8rem; top: 3rem; background: rgba(159, 220, 220, 0.12); }

header, main, footer { position: relative; z-index: 1; }

/* Kopfzeile */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 36, 68, 0.92);
  padding-top: env(safe-area-inset-top);
}
.bar {
  max-width: 80rem;
  margin: 0 auto;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
}
.bar-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.bar-link:hover { color: #fff; }

/* Wortmarke: Icon plus „Skipper“ (Aqua) und „Scope“ (Orange) auf Navy-Chip */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border-radius: 12px;
  background: var(--ss-nav-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-decoration: none;
}
.wordmark img { width: 36px; height: 36px; border-radius: 8px; display: block; }
.skipper { color: var(--brand-aqua); }
.scope { color: var(--brand-orange); }

/* Startseite */
.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 20px 56px;
}
.hero {
  width: 100%;
  max-width: 54rem;
  margin: 0 auto;
  text-align: center;
}
.logo {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  display: block;
  margin: 0 auto 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(159, 220, 220, 0.3);
  background: rgba(159, 220, 220, 0.12);
  color: var(--brand-aqua);
  font-size: 0.8125rem;
  font-weight: 600;
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  /* Seefeuer „Iso 4s“ (Gleichtaktfeuer): 2 s Orange, 2 s Aqua, harter Wechsel ohne Überblenden
     (Freigabe 27.10.2026). Ohne Animation bleibt der Punkt orange. */
  background: var(--brand-orange);
  box-shadow: 0 0 6px 1px rgba(248, 88, 42, 0.55);
  animation: iso-light 4s steps(1, end) infinite;
}
.hero h1 {
  margin: 24px 0 0;
  font-size: clamp(2rem, 6.5vw, 4.15rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 .accent { display: block; color: var(--brand-aqua); }
.claim {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lead {
  margin: 12px auto 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.125rem;
  line-height: 1.75;
  text-wrap: pretty;
}
.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Primärknopf: Orange mit Navy-Schrift (5,1:1), eine Hauptaktion pro Seite */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--ss-primary);
  color: var(--ss-primary-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(248, 88, 42, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.button-primary:hover { filter: brightness(1.05); transform: translateY(-2px); }
.button-primary svg { width: 16px; height: 16px; flex: none; }

/* Instagram-Badge: Sekundärknopf auf Navy (Rahmen Weiß 18 %, Fläche 6 %, Hover 11 %).
   Das Symbol ist Aqua und wird beim Überfahren orange (Corporate Design, Abschnitt 10). */
.badge-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.badge-instagram svg { width: 18px; height: 18px; flex: none; color: var(--brand-aqua); transition: color 0.15s ease; }
@media (hover: hover) {
  .badge-instagram:hover { background: rgba(255, 255, 255, 0.11); }
  .badge-instagram:hover svg { color: var(--brand-orange); }
}

/* Rechtsseiten: Papierfläche mit Karte wie die Rechtsseiten der App */
.legal-main {
  flex: 1;
  background: var(--ss-bg);
  color: var(--ss-text);
  padding: 48px 20px 64px;
}
.legal-card {
  max-width: 48rem;
  margin: 0 auto;
  padding: 28px 24px;
  border: 1px solid var(--ss-line);
  border-radius: 16px;
  background: var(--ss-surface);
  box-shadow: 0 1px 2px rgba(16, 35, 61, 0.06);
}
.kicker {
  margin: 0;
  color: var(--ss-accent-text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.legal-card h1 {
  margin: 8px 0 0;
  font-size: clamp(1.75rem, 5vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.legal-card section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--ss-line); }
.legal-card section:first-of-type { padding-top: 0; border-top: 0; }
.legal-card h2 { margin: 0 0 12px; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.legal-card p { margin: 0 0 12px; color: var(--ss-text-muted); line-height: 1.75; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card a { color: var(--ss-accent-text); font-weight: 600; text-underline-offset: 2px; }
.legal-card a:focus-visible { outline-color: var(--ss-accent-text); }

/* Fußzeile */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--ss-nav-bg);
  padding-bottom: env(safe-area-inset-bottom);
  font-size: 0.875rem;
}
.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px;
  color: rgba(255, 255, 255, 0.56);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }

@keyframes iso-light {
  0% { background: var(--brand-orange); box-shadow: 0 0 6px 1px rgba(248, 88, 42, 0.55); }
  50% { background: var(--brand-aqua); box-shadow: 0 0 6px 1px rgba(159, 220, 220, 0.45); }
  100% { background: var(--brand-aqua); box-shadow: 0 0 6px 1px rgba(159, 220, 220, 0.45); }
}
@media (prefers-reduced-motion: reduce) {
  .pill .dot { animation: none; }
  .button-primary, .badge-instagram, .badge-instagram svg { transition: none; }
  .button-primary:hover { transform: none; }
}
@media (min-width: 640px) {
  .bar, .footer-inner { padding-left: 32px; padding-right: 32px; }
  .legal-main { padding: 64px 32px 80px; }
  .legal-card { padding: 36px; }
}
@media (max-width: 400px) {
  .wordmark { font-size: 1.05rem; gap: 8px; }
  .wordmark img { width: 32px; height: 32px; }
  .logo { width: 112px; height: 112px; border-radius: 26px; }
  .lead { font-size: 1rem; }
  .footer-inner { justify-content: center; text-align: center; }
}
