/* ==================================================================
 * Storest Website – globale Design-Schicht (lädt nach main.css).
 *
 * Farben und Schrift folgen dem Design-System der App
 * (Storest/apps/frontend/src/styles/theme.css): Markenblau #003f88 /
 * #00509d / #42a5f5, Neutraltöne, Navy-Dark #0a152b, Schrift Geist.
 * main.css bleibt für die Seiteninhalte zuständig, diese Datei legt
 * Typografie, Navigation, Footer, Seitenköpfe und Buttons darüber.
 * ================================================================== */

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --surface-3: #e3e9f1;
  --border: rgba(10, 30, 60, 0.08);
  --border-strong: rgba(10, 30, 60, 0.15);
  --text: #0b1424;
  --text-2: #475266;
  --muted: #636e82;
  --brand: #003f88;
  --brand-2: #00509d;
  --brand-soft: rgba(0, 63, 136, 0.08);
  --accent: #42a5f5;
  --good: #0a7d2c;
  --good-soft: rgba(12, 163, 12, 0.1);
  --bad: #d03b3b;
  --warn: #b77400;
  --warn-soft: rgba(250, 178, 25, 0.14);
  --ring: rgba(0, 80, 157, 0.3);

  /* Navy-Dark (Standard-Theme der App) für Hero, Seitenköpfe, Footer */
  --navy: #0a152b;
  --navy-2: #0f1d38;
  --navy-3: #142645;
  --navy-border: rgba(160, 190, 235, 0.12);
  --navy-text: #f2f5fa;
  --navy-text-2: #b9c5da;
  --navy-muted: #8494b2;

  --shadow-card: 0 1px 2px rgba(10, 30, 60, 0.05), 0 1px 1px rgba(10, 30, 60, 0.03);
  --shadow-pop: 0 12px 40px -8px rgba(10, 30, 60, 0.2), 0 2px 6px rgba(10, 30, 60, 0.06);
  --radius: 14px;
  --radius-lg: 18px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Altnamen aus main.css auf die neue Palette legen */
  --c-surface: var(--surface);
  --c-surface-soft: var(--bg);
  --c-border: #e3e8ef;
  --c-text: var(--text);
  --c-muted: var(--muted);
  --c-profit: #16a34a;
}

/* ---------- Typografie ---------- */
body,
.roboto-loaded body {
  font-family: var(--font);
  font-feature-settings: "ss01", "cv11";
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
p,
li {
  letter-spacing: normal;
}
h1,
h2,
h3,
h4 {
  letter-spacing: -0.02em;
}
.sub-headline {
  font-weight: 600;
  letter-spacing: -0.025em;
}
::selection {
  background: rgba(66, 165, 245, 0.25);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 1.375rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  height: 2.375rem;
  padding: 0 1rem;
  font-size: 0.9375rem;
  border-radius: 9px;
}
.btn-lg {
  height: 3.375rem;
  padding: 0 1.75rem;
  font-size: 1.0625rem;
}
.btn-primary {
  background: var(--brand-2);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 40, 90, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-primary:hover {
  background: var(--brand);
}
.btn-accent {
  background: var(--accent);
  color: #06162f;
  box-shadow: 0 8px 24px -8px rgba(66, 165, 245, 0.6);
}
.btn-accent:hover {
  background: #6cb8f7;
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--text-2);
}
.btn-ghost-dark {
  color: var(--navy-text);
  border: 1px solid rgba(160, 190, 235, 0.25);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(160, 190, 235, 0.4);
}

/* Bestehende „Kostenlos starten“-Links auf Unterseiten */
.free-start-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  background: var(--brand-2);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 40, 90, 0.25);
}
.free-start-link:hover {
  opacity: 1;
  background: var(--brand);
}
.calc-modern .calc-next-step-link {
  border-radius: 10px;
  font-weight: 600;
  background: var(--brand-2);
}
.calc-modern .calc-next-step-link:hover {
  opacity: 1;
  background: var(--brand);
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner {
  max-width: 76rem;
  margin: 0 auto;
  height: 4rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.site-nav .brand img {
  width: 1.875rem;
  height: 1.875rem;
}
.site-nav .links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav .links a {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav .links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.site-nav .links a.active {
  color: var(--brand-2);
}
.site-nav .actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-nav .login {
  padding: 0.5rem 0.8rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
}
.site-nav .login:hover {
  color: var(--text);
}
.site-nav .menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 1.375rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.site-nav .mobile-panel {
  display: none;
}
@media (max-width: 60rem) {
  .site-nav .links,
  .site-nav .login {
    display: none;
  }
  .site-nav .menu-toggle {
    display: inline-flex;
  }
  .site-nav .actions .btn {
    display: none;
  }
  .site-nav.open .mobile-panel {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
  }
  .site-nav .mobile-panel a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.25rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .site-nav .mobile-panel a i {
    color: var(--muted);
  }
  .site-nav .mobile-panel .btn {
    margin-top: 0.75rem;
    border-bottom: 0;
    justify-content: center;
    color: #fff;
  }
}

/* ---------- Seitenköpfe der Unterseiten ---------- */
.top-headline-bg,
.calc-modern .top-headline-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 22rem at 50% -6rem, rgba(66, 165, 245, 0.28), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, #0c1a35 100%);
  color: var(--navy-text);
  padding: 4.5rem 1.5rem 4.75rem;
  text-align: center;
}
.top-headline-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(160, 190, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 190, 235, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.top-headline-bg > * {
  position: relative;
}
.top-headline-bg h1,
.calc-modern .top-headline-bg h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 52rem;
  margin: 0 auto;
}
.top-headline-bg p,
.calc-modern .top-headline-bg .subtitle {
  margin: 1rem auto 0;
  max-width: 44rem;
  color: var(--navy-text-2);
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: normal;
}
.calc-modern .top-headline-bg {
  padding-bottom: 6rem;
}

/* ---------- Artikel-Bausteine ---------- */
.article h2 {
  font-weight: 650;
  letter-spacing: -0.02em;
}
.article .callout {
  background: var(--brand-soft);
  border: 1px solid rgba(0, 80, 157, 0.12);
  border-left: 3px solid var(--brand-2);
  border-radius: 12px;
}
.article .callout-warn {
  background: var(--warn-soft);
  border-color: rgba(183, 116, 0, 0.18);
  border-left-color: #e59a00;
}
.article .inline-tool-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.article .cta-box {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(40rem 16rem at 100% 0%, rgba(66, 165, 245, 0.25), transparent 70%),
    var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
}
.article .cta-box p {
  color: var(--navy-text-2);
}
.article .cta-box .free-start-link {
  background: var(--accent);
  color: #06162f;
  box-shadow: 0 8px 24px -8px rgba(66, 165, 245, 0.6);
}
.article .cta-box .free-start-link:hover {
  background: #6cb8f7;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--navy);
  color: var(--navy-text-2);
  border-top: 1px solid var(--navy-border);
}
.site-footer-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2.5rem;
}
.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy-text);
  font-weight: 650;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.site-footer .brand img {
  width: 1.75rem;
  height: 1.75rem;
}
.site-footer .about p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--navy-muted);
  max-width: 18rem;
}
.site-footer .col p {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-text);
  margin-bottom: 1rem;
}
.site-footer .col a {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 0.3rem 0;
  color: var(--navy-text-2);
  transition: color 0.15s ease;
}
.site-footer .col a:hover {
  color: #fff;
}
.site-footer .bottom {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--navy-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--navy-muted);
}
.site-footer .bottom a {
  color: var(--navy-text-2);
}
.site-footer .bottom a:hover {
  color: #fff;
}
@media (max-width: 60rem) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer .about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 30rem) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}
.site-footer .col a i {
  margin-right: 0.4rem;
}
.site-footer .col a[href^="mailto"] {
  word-break: break-word;
}
