/* Spotario — Basis-Stile und Tokens.
   Quelle der Palette: Projekt_ExpandScout frontend/src/styles.css (gepinnt).
   Diese Datei ist seitenübergreifend; Seitenspezifisches gehört in eine
   eigene Datei (landing.css). */

:root {
  /* Grund */
  --bg-top: #f7f2e8;
  --bg-bottom: #ebe5d9;
  --wash-amber: rgba(245, 166, 35, 0.18);
  --wash-green: rgba(16, 185, 129, 0.16);

  /* Text */
  --ink: #1e241f;
  --ink-soft: rgba(30, 36, 31, 0.72);
  --ink-faint: rgba(30, 36, 31, 0.68);

  /* Flächen */
  --panel: rgba(255, 252, 245, 0.9);
  --panel-solid: #fffcf5;
  --hairline: rgba(59, 72, 63, 0.12);
  --hairline-strong: rgba(59, 72, 63, 0.22);
  --shadow-color: rgba(55, 46, 28, 0.12);

  /* Akzente — Index-Grün wie die Expansionsindex-Karte der App und der Logo-Pin */
  --petrol: #315846;
  --petrol-deep: #203a32;
  --index-verlauf: linear-gradient(135deg, #203a32 0%, #315846 100%);
  --prio-a: #b42318;
  --prio-b: #f79009;
  --prio-c: #13715b;

  /* Logo-Grün (aus dem Pin-Verlauf des Logos) */
  --logo-dark: rgb(39, 58, 51);
  --logo-mid: rgb(48, 73, 61);
  --logo-light: rgb(103, 124, 110);

  /* Schrift */
  --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* Form */
  --radius: 8px;
  --shadow-panel: 0 10px 30px -12px var(--shadow-color), 0 2px 8px -2px var(--shadow-color);
  --shadow-artifact: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 24px 48px -20px rgba(55, 46, 28, 0.28), 0 6px 16px -8px var(--shadow-color);

  /* Layout */
  --header-h: 74px;
  --page-max: 1120px;
  --text-max: 62ch;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--bg-bottom);
  background-image:
    radial-gradient(1100px 640px at 12% -6%, var(--wash-amber), transparent 62%),
    radial-gradient(1000px 600px at 88% -4%, var(--wash-green), transparent 60%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 28%, var(--bg-bottom) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(49, 88, 70, 0.25);
  color: var(--ink);
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--petrol);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--petrol-deep);
}

:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Gemeinsame Seitenteile: Kopf und Fuß, wiederverwendbar für Unterseiten */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(247, 242, 232, 0.92), rgba(247, 242, 232, 0.72));
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.site-header__brand img {
  height: 52px;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header__app {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-header__app::after {
  content: "↗";
  margin-left: 5px;
  font-size: 0.85em;
  color: var(--ink-faint);
}

.site-header__app:hover {
  color: var(--petrol);
}

.site-header__cta {
  font-size: 15px;
  font-weight: 600;
  color: #fff9f0;
  background: var(--index-verlauf);
  border: 1px solid #2c4f3f;
  border-radius: var(--radius);
  padding: 9px 16px;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.site-header__cta:hover {
  filter: brightness(1.12);
  color: #fff9f0;
  transform: translateY(-1px);
}

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 96px;
}

.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-faint);
}

.site-footer a {
  color: var(--ink-soft);
}
