/* PicHaven — gemeinsames Stylesheet für pichaven.app.
   Farbwelt und Regeln: docs/BRAND.md (Ägäis/Santorini, Hafen, ruhig & einfach). */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/sourcesans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/sourcesans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #F4F6FA;
  --card: #ffffff;
  --text: #1A1E28;
  --muted: #5C6B7A;
  --accent: #0D5EAF;
  --accent-ink: #0A4C8F;
  /* Gefüllte Markenflächen (Knöpfe, Schrittziffern) bleiben in beiden Themes
     Ägäis mit weißer Figur — Hell-Ägäis trägt nur Text/Linien auf Dunkel. */
  --brand-fill: #0D5EAF;
  --brand-fill-hover: #0A4C8F;
  --border: #DCE3EE;
  --brand-grad: linear-gradient(170deg, #0D5EAF, #2050B8);
  --on-brand: #ffffff;
  --on-brand-muted: rgba(255, 255, 255, 0.78);
  --display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101720;
    --card: #19222E;
    --text: #E8EDF4;
    --muted: #93A2B5;
    --accent: #5AA0E8;
    --accent-ink: #82B8EE;
    --brand-fill: #0D5EAF;
    --brand-fill-hover: #2C7BD4;
    --border: #2A3746;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Anker landen sonst unter der sticky Kopfzeile. */
[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--accent); }
h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-right: auto;
}
.brand-link img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}
.site-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover:not(.btn) { color: var(--text); }
.lang-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted) !important;
}
.lang-switch:hover { border-color: var(--muted); }
@media (max-width: 640px) {
  .site-nav .hide-sm { display: none; }
}

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand-fill); color: #fff; }
.btn-primary:hover { background: var(--brand-fill-hover); }
.btn-quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-quiet:hover { border-color: var(--muted); }
/* Auf Markengrund (Hero, Schluss-CTA) */
.on-brand .btn-primary { background: #fff; color: #0D5EAF; }
.on-brand .btn-primary:hover { background: #E8F0FC; }
.on-brand .btn-quiet {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.on-brand .btn-quiet:hover { border-color: #fff; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--brand-grad);
  color: var(--on-brand);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 76px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.7rem);
  font-weight: 700;
  margin: 0 0 18px;
}
.hero .lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--on-brand-muted);
  max-width: 34em;
  margin-bottom: 28px;
}
.hero .assurance {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--on-brand-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 0;
  list-style: none;
}
.hero .assurance li::before { content: "✓ "; }
.hero-art { justify-self: center; }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-art { max-width: 340px; }
}

/* ---------- Sektionen ---------- */

.section { padding: 76px 0; }
.section.alt {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.section .intro {
  max-width: 42em;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Wertversprechen + Vertrauen: Kartenraster */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 800px) { .grid-3 { grid-template-columns: 1fr; } }
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px 20px;
}
.section.alt .value-card { background: var(--bg); }
.value-card .pict {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 14px;
}
.value-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.value-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

/* Schritte */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
@media (max-width: 800px) { .steps-grid { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px 20px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-fill);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* Vertrauens-Liste */
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
@media (max-width: 700px) { .trust-list { grid-template-columns: 1fr; } }
.trust-list li {
  padding-left: 30px;
  position: relative;
}
.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" d="M3.5 10.5 L8 15 L16.5 5.5"/></svg>') center / 100% no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" d="M3.5 10.5 L8 15 L16.5 5.5"/></svg>') center / 100% no-repeat;
}
.trust-list strong { display: block; }
.trust-list span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Preise ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 46rem;
}
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--accent); border-width: 2px; }
.price-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.price-card .price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  margin: 6px 0 2px;
}
.price-card .price small {
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
}
.price-card li { padding: 4px 0 4px 24px; position: relative; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.beta-note {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 46rem;
  font-size: 0.97rem;
}
.section.alt .beta-note, .section.alt .price-card { background: var(--bg); }

/* ---------- FAQ ---------- */

.faq { max-width: 46rem; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.08rem;
  padding: 14px 30px 14px 2px;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  color: var(--muted);
  margin: 0 0 16px;
  padding-right: 20px;
}

/* ---------- Schluss-CTA ---------- */

.cta-final {
  background: var(--brand-grad);
  color: var(--on-brand);
  border-radius: 22px;
  padding: 54px 40px;
  text-align: center;
}
.cta-final h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  margin-bottom: 12px;
}
.cta-final p {
  color: var(--on-brand-muted);
  max-width: 36em;
  margin: 0 auto 26px;
}
.cta-final .btn-row { justify-content: center; }
.cta-final .fineprint {
  margin: 20px auto 0;
  font-size: 0.88rem;
  color: var(--on-brand-muted);
  max-width: 44em;
}
.cta-final .fineprint a { color: var(--on-brand); }
@media (max-width: 640px) { .cta-final { padding: 40px 22px; } }

/* ---------- Fußzeile ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  font-size: 0.93rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: flex-start;
}
.site-footer .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-left: auto;
}
.site-footer h3 {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .brand-line { max-width: 20rem; }
.site-footer .brand-line .brand-link { margin: 0 0 8px; }

/* ---------- Inhaltsseiten (Beta, Recht) ---------- */

.prose {
  max-width: 42rem;
  padding: 48px 0 24px;
}
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 8px 0; }
.prose .lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 24px; }
.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 0.97rem;
}
