/* =========================================================
   TrauerKompass – Stylesheet
   Ruhig, warm, würdevoll. Gedämpfte Farben, viel Weißraum.
   ========================================================= */

:root {
  /* Marke */
  --navy:        #0d1b3e;
  --navy-deep:   #0a1430;
  --gold:        #c79a3a;
  --gold-soft:   #d9b863;
  --gold-tint:   #f3ead2;

  /* Helle, warme Grundflächen */
  --bg:          #faf7f1;
  --bg-alt:      #f3eee5;
  --surface:     #ffffff;

  /* Text */
  --ink:         #2a2e3a;
  --ink-soft:    #5b6172;
  --ink-muted:   #8a8f9e;
  --on-navy:     #eef1f8;
  --on-navy-soft:#b9c2d8;

  --line:        #e7e0d3;

  --radius:      18px;
  --radius-lg:   28px;
  --shadow:      0 18px 50px -28px rgba(13, 27, 62, 0.35);
  --shadow-soft: 0 10px 30px -20px rgba(13, 27, 62, 0.25);

  --maxw:        1080px;
  --maxw-narrow: 720px;

  --font-body:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head:   "Lora", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: .2px;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.narrow { max-width: var(--maxw-narrow); }
.center { text-align: center; margin-inline: auto; }
.muted  { color: var(--ink-soft); }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--on-navy);
  padding: .75rem 1.25rem;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; color: var(--on-navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
}
.brand:hover { color: var(--ink); }
.brand__mark img { width: 34px; height: 34px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: .98rem;
  font-weight: 500;
}
.site-nav a { color: var(--ink-soft); }
.site-nav a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: var(--on-navy) !important;
  padding: .5rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--navy-deep); }
@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(58% 42% at 50% 27%, rgba(217, 184, 99, .20), rgba(217, 184, 99, 0) 62%),
    radial-gradient(130% 90% at 50% -5%, #1a2f66 0%, var(--navy) 46%, var(--navy-deep) 100%);
  color: var(--on-navy);
  text-align: center;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(5rem, 12vw, 8rem);
  overflow: hidden;
}
/* Weiche Farbflächen für organische Tiefe */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 42% at 16% 20%, rgba(86, 116, 196, .32), transparent 70%),
    radial-gradient(46% 46% at 86% 74%, rgba(199, 154, 58, .12), transparent 72%);
}
/* Zarte Sterne */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(1.6px 1.6px at 11% 16%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.3px 1.3px at 78% 11%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 26% 30%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.4px 1.4px at 90% 32%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 6% 54%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 40% 76%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.3px 1.3px at 94% 84%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 20% 88%, rgba(255,255,255,.4), transparent);
  animation: tk-twinkle 7s ease-in-out infinite alternate;
}
@keyframes tk-twinkle {
  from { opacity: .55; }
  to   { opacity: 1; }
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero__logo img {
  width: clamp(120px, 22vw, 180px);
  height: auto;
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 8px 28px rgba(199, 154, 58, .35));
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: .9rem;
}
.hero__title { color: #fff; margin-bottom: 1.1rem; }
.hero__lead {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.75;
  color: var(--on-navy-soft);
  max-width: 600px;
  margin: 0 auto 2.25rem;
}
.hero__fade {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
}

/* ---------- Store-Badges ---------- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  justify-content: center;
}
.store-badges--center { justify-content: center; }

/* Offizielle Store-Badges */
.app-badge {
  display: inline-block;
  border-radius: 12px;
  transition: transform .2s ease, filter .2s ease;
}
.app-badge img { height: 52px; width: auto; display: block; }
.app-badge:hover { transform: translateY(-2px); filter: brightness(1.05); }
.app-badge:focus-visible { outline-offset: 4px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: #fff;
  color: var(--navy);
  padding: .7rem 1.3rem;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.badge:hover {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -18px rgba(0,0,0,.45);
}
.badge__icon { width: 26px; height: 26px; flex: none; }
.badge__text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.badge__text small { font-size: .68rem; letter-spacing: .02em; opacity: .8; }
.badge__text strong { font-size: 1.05rem; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--intro { padding-top: clamp(3rem, 7vw, 5rem); }
.section--quiet { background: var(--bg); }
.section__head { margin-bottom: 2.75rem; }
.section__head.center { max-width: 640px; margin-inline: auto; }
.section__head h2 { margin-bottom: .4rem; }

/* ---------- Feature-Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--gold-tint);
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { color: var(--navy); }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Screenshots ---------- */
.section--screens { background: var(--bg-alt); }
.screens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
.screen { margin: 0; }
.screen img {
  width: clamp(190px, 40vw, 256px);
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.screen:hover img { transform: translateY(-4px); }

/* ---------- Versprechen / emotionaler Kern ---------- */
.promise {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.9rem 3rem;
  max-width: 820px;
  margin-inline: auto;
}
@media (max-width: 560px) {
  .promise { grid-template-columns: 1fr; }
}
.promise li {
  position: relative;
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold-soft);
}
.promise strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .25rem;
}
.promise span { color: var(--ink-soft); }

/* ---------- Wolken-Bildstreifen ---------- */
.cloud-band {
  position: relative;
  overflow: visible;
  height: clamp(240px, 38vw, 420px);
  background-image:
    linear-gradient(to bottom, var(--bg) 0%, rgba(250,247,241,0) 14% 86%, var(--bg) 100%),
    url("/assets/img/clouds.png");
  background-size: cover, cover;
  background-position: center, center 38%;
  background-repeat: no-repeat, no-repeat;
}
/* eine Wolke, die oben aus dem Band herausragt */
.cloud-band__puff {
  display: none; /* nur Desktop – siehe Media-Query */
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(420px, 46vw, 720px);
  aspect-ratio: 941 / 492;
  background: url("/assets/img/cloud-puff.webp?v=3") no-repeat center / contain;
  transform: translateY(-38%);
  pointer-events: none;
}
@media (min-width: 900px) {
  .cloud-band__puff { display: block; }
  /* Luft über dem Band, damit die herausragende Wolke keinen Text berührt */
  .section--above-clouds { padding-bottom: 10rem; }
}

/* ---------- Krisenhilfe ---------- */
.crisis {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-soft);
}
.crisis__title { font-size: 1.4rem; color: var(--navy); }
.crisis p { color: var(--ink-soft); }
.crisis__numbers {
  list-style: none;
  margin: 1.25rem 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.crisis__numbers a {
  display: inline-block;
  background: var(--gold-tint);
  color: var(--navy);
  font-weight: 600;
  padding: .55rem 1.1rem;
  border-radius: 999px;
}
.crisis__numbers a:hover { background: var(--gold-soft); }
.crisis__note { font-size: .92rem; margin: 0; }

/* ---------- Download CTA ---------- */
.section--cta {
  background: radial-gradient(120% 100% at 50% 0%, #15295a 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: var(--on-navy);
  text-align: center;
}
.section--cta h2 { color: #fff; }
.section--cta .lead { color: var(--on-navy-soft); margin-bottom: 2rem; }
.cta-mark img {
  width: 84px; height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 8px 24px rgba(199,154,58,.4));
}
.cta-steps {
  color: var(--gold-soft);
  font-size: .95rem;
  margin: -.4rem 0 2rem;
}

/* ---------- Hero: Aussage-Headline, Triplet, Buttons ---------- */
.hero__title--statement {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.28;
}
.hero__triplet {
  color: var(--gold-soft);
  font-size: 1rem;
  margin: -.4rem 0 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
}
.btn-primary, .btn-ghost {
  display: inline-block;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--gold); color: #2c2410; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: #2c2410; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--on-navy); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }

/* ---------- Karten-Label ---------- */
.card__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-tint);
  padding: .2rem .65rem;
  border-radius: 999px;
  margin-bottom: .7rem;
}

/* ---------- „Für wen" – Gründe-Liste ---------- */
.reasons {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.reasons li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}
.reasons li::before {
  content: "✓";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  margin-top: .1rem;
}
@media (max-width: 640px) {
  .reasons { grid-template-columns: 1fr; }
}

/* ---------- Team / Hinter TrauerKompass ---------- */
.team__intro {
  max-width: 720px;
  margin: 0 auto 2.75rem;
  text-align: center;
  color: var(--ink-soft);
}
.team-grid {
  display: grid;
  gap: 1.4rem;
  max-width: 760px;
  margin-inline: auto;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-soft);
}
.team__photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 4px var(--gold-tint), var(--shadow-soft);
}
.team__body { min-width: 0; }
.team__body p { color: var(--ink-soft); font-size: .98rem; line-height: 1.65; margin: 0; }
.team__name { color: var(--navy); margin: 0 0 .1rem; }
.team__role {
  color: var(--gold);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 .7rem !important;
}
@media (max-width: 560px) {
  .team-card { flex-direction: column; text-align: center; gap: 1.1rem; padding: 1.75rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  text-align: center;
  padding: 3rem 0 2.5rem;
}
.disclaimer {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: .92rem;
  color: var(--on-navy-soft);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: .95rem;
}
.footer-nav a { color: var(--on-navy); }
.footer-nav a:hover { color: var(--gold-soft); }
.copyright { font-size: .85rem; color: var(--ink-muted); margin: 0; }

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: var(--navy);
  color: var(--on-navy);
  border-radius: 16px;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .55);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 1.75rem;
}
.cookie-banner__text {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--on-navy-soft);
  max-width: 64ch;
}
.cookie-banner__text a { color: var(--gold-soft); }
.cookie-banner__actions {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}
.btn-cookie {
  font: inherit;
  font-weight: 500;
  padding: .55rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.btn-cookie--solid { background: var(--gold); color: #2c2410; border-color: var(--gold); }
.btn-cookie--solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-cookie--ghost { background: transparent; color: var(--on-navy); border-color: rgba(255,255,255,.45); }
.btn-cookie--ghost:hover { border-color: #fff; }
@media (max-width: 560px) {
  .cookie-banner__actions { width: 100%; }
  .btn-cookie { flex: 1; }
}

/* ---------- Reveal-Animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero::after { animation: none; opacity: .8; }
  .card:hover, .badge:hover, .app-badge:hover, .screen:hover img { transform: none; }
}

/* ---------- 404-Seite ---------- */
.notfound {
  display: flex;
  align-items: center;
  min-height: 68vh;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.notfound__logo {
  width: 88px;
  height: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 8px 24px rgba(199, 154, 58, .25));
}
.notfound__code {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .1em;
  margin: 0 0 .25rem;
}
.notfound h1 { color: var(--navy); }
.btn-home {
  display: inline-block;
  margin-top: 1.75rem;
  background: var(--navy);
  color: var(--on-navy);
  padding: .8rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
}
.btn-home:hover { background: var(--navy-deep); color: var(--on-navy); }

/* ---------- Rechtstexte (Impressum/Datenschutz) ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal h1 { color: var(--navy); }
.legal h2 { font-size: 1.3rem; color: var(--navy); margin-top: 2.25rem; }
.legal h3 { font-size: 1.05rem; color: var(--navy); margin-top: 1.5rem; margin-bottom: .35rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--ink-soft); }
.legal li { margin-bottom: .35rem; }
.legal p { color: var(--ink-soft); }
.legal a { color: var(--gold); word-break: break-word; }
.legal .back { display: inline-block; margin-bottom: 1.5rem; font-weight: 500; }
.legal .todo {
  background: var(--gold-tint);
  border: 1px dashed var(--gold);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
