/* Ruh — Designsystem „Nacht" (docs/DESIGN.md) */

:root {
  --bg: #0b0f14;
  --surface: #121820;
  --ember: #d08c4a;
  --ember-dim: #8a5d33;
  --text: #e8e0d4;
  --text-dim: #9a917f;
  --line: #232b36;
  --sleep-red: #b4543c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header {
  padding: 28px 0;
}
header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.logo span { color: var(--ember); }
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav > a {
  color: var(--text-dim);
  font-size: 15px;
  white-space: nowrap;
}
nav > a:hover { color: var(--text); text-decoration: none; }

/* Schmale Screens: Anker-Links weichen, Sprachwahl bleibt */
@media (max-width: 720px) {
  nav { gap: 16px; }
  nav > a[href^="#"] { display: none; }
}

/* Sprachumschalter — kompaktes Globus-Dropdown (kein JS) */
.langpick { position: relative; margin-left: 4px; }
.langpick summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 14px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.langpick summary::-webkit-details-marker { display: none; }
.langpick summary::marker { content: ""; }
.langpick summary:hover { color: var(--text); border-color: var(--ember-dim); }
.langpick[open] summary { color: var(--text); border-color: var(--ember-dim); }
.langpick summary svg { width: 15px; height: 15px; }
.langpick summary .chev { width: 12px; height: 12px; opacity: 0.6; transition: transform 0.2s ease; }
.langpick[open] summary .chev { transform: rotate(180deg); }
.langpick > ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 148px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.75);
  z-index: 30;
}
.langpick > ul li { margin: 0; }
.langpick > ul a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text-dim);
}
.langpick > ul a small { color: var(--text-dim); opacity: 0.55; font-size: 12px; }
.langpick > ul a:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.langpick > ul a[aria-current="page"] { color: var(--ember); }
.langpick > ul a[aria-current="page"] small { color: var(--ember-dim); opacity: 1; }

/* Hero */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--ember);
}
.hero p.lead {
  color: var(--text-dim);
  font-size: 19px;
  max-width: 560px;
  margin: 0 auto 40px;
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.cta {
  display: inline-block;
  background: var(--ember);
  color: var(--bg);
  font-size: 17px;
  padding: 16px 36px;
  border-radius: 100px;
}
.cta:hover { text-decoration: none; filter: brightness(1.08); }
.cta-note {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Phone mock */
.mock {
  margin: 80px auto 0;
  width: 280px;
  border: 1px solid var(--line);
  border-radius: 44px;
  padding: 14px;
  background: #05070a;
}
.mock .screen {
  border-radius: 32px;
  background: var(--bg);
  height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.mock .ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid var(--ember-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.98); }
  50% { transform: scale(1.04); }
}
.mock .moon { color: var(--ember); }
.mock .moon svg { width: 28px; height: 28px; }
.mock .ring b {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 22px;
}
.mock .ring small { color: var(--text-dim); font-size: 12px; }
.mock .hint { color: var(--text-dim); opacity: 0.6; font-size: 11px; }

/* Sections */
section { padding: 80px 0; border-top: 1px solid var(--line); }
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 32px;
  margin-bottom: 12px;
}
.section-lead {
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 48px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.card .icon { margin-bottom: 14px; display: block; color: var(--ember); }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 0; max-width: 620px; }
.step {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step .num {
  font-family: Georgia, serif;
  color: var(--ember);
  font-size: 22px;
  min-width: 32px;
}
.step p { color: var(--text-dim); font-size: 15px; }
.step h3 { font-size: 17px; margin-bottom: 4px; }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 820px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
}
.plan.featured { border-color: var(--ember-dim); }
.plan .name { color: var(--text-dim); font-size: 14px; margin-bottom: 10px; }
.plan .price {
  font-family: Georgia, serif;
  font-size: 34px;
  margin-bottom: 4px;
}
.plan .per { color: var(--text-dim); font-size: 13px; margin-bottom: 16px; }
.plan .tag {
  display: inline-block;
  color: var(--ember);
  border: 1px solid var(--ember-dim);
  border-radius: 100px;
  font-size: 12px;
  padding: 3px 12px;
}

/* FAQ */
details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  max-width: 720px;
}
summary {
  cursor: pointer;
  font-size: 17px;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--ember); }
details[open] summary::after { content: "–"; }
details p { color: var(--text-dim); font-size: 15px; padding-top: 12px; max-width: 640px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
  color: var(--text-dim);
  font-size: 14px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
footer a { color: var(--text-dim); margin-right: 20px; }
.disclaimer { font-size: 12px; opacity: 0.7; max-width: 480px; }

/* Legal pages */
.legal { padding: 60px 0 100px; max-width: 720px; }
.legal h1 { font-family: Georgia, serif; font-weight: 400; font-size: 36px; margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-dim); font-size: 15px; margin-bottom: 12px; }
.legal ul { padding-left: 20px; }

@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  nav a { margin-left: 16px; }
  section { padding: 56px 0; }
}
