/* Closie – closie.de
   Flat, warm, ruhig. Keine Schatten, keine Großbuchstaben.
   Einzige Ausnahme vom Flat-Prinzip: der weiche Lichtschein im Hintergrund. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Farben ---------- */

:root {
  color-scheme: light dark;
  --background: #FBF6F0;
  --surface: #FFFDFA;
  --surface-muted: #F3EBE2;
  --border: #E8DCCF;
  --text-primary: #2B2420;
  --text-secondary: #75685F;
  --brand: #660033;
  --brand-hover: #520029;
  --on-brand: #FFFFFF;
  --blush: #F4DCE5;
  --sage: #6F8C6A;
  --honey: #C98E2E;
  --glow-rose: rgba(244, 220, 229, .95);
  --glow-honey: rgba(242, 205, 150, .55);
  --glow-apricot: rgba(247, 196, 168, .5);

  --radius-card: 24px;
  --radius-small: 16px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
  --prose: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1A1715;
    --surface: #25211E;
    --surface-muted: #2F2A26;
    --border: #3D3631;
    --text-primary: #F5EEE7;
    --text-secondary: #B5A89E;
    --brand: #E58AAE;
    --brand-hover: #EDA3C0;
    --on-brand: #1A1715;
    --blush: #4A2433;
    --sage: #9DB698;
    --honey: #D9A54E;
    --glow-rose: rgba(102, 0, 51, .38);
    --glow-honey: rgba(201, 142, 46, .14);
    --glow-apricot: rgba(180, 90, 60, .16);
  }
}

/* ---------- Grundlagen ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--background);
  /* Morgenlicht: großflächiger, weicher Schein */
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, var(--glow-rose), transparent 70%),
    radial-gradient(45rem 32rem at -5% 8%, var(--glow-honey), transparent 70%),
    radial-gradient(50rem 36rem at 60% 38rem, var(--glow-apricot), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main { flex: 1; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); letter-spacing: -0.03em; }
h3 { font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0 0 1em; text-wrap: pretty; }

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
a:hover { color: var(--brand-hover); }

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

img { max-width: 100%; height: auto; display: block; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: .6rem 1.1rem;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-brand); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lead {
  font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-secondary);
}

.muted { color: var(--text-secondary); }

/* ---------- Kopf & Fuß ---------- */

.site-header { padding-block: 20px; }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  color: var(--brand);
  text-decoration: none;
}
.wordmark:hover { color: var(--brand); }
.wordmark svg { width: 34px; height: 34px; flex: none; }

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: .45rem .95rem;
  border-radius: 999px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: .9375rem;
}
.site-nav a:hover { background: var(--surface-muted); color: var(--text-primary); }
.site-nav a[aria-current="page"] { background: var(--blush); }

.site-footer {
  margin-top: clamp(64px, 10vw, 120px);
  padding-block: 32px 40px;
  border-top: 1px solid var(--border);
  font-size: .9375rem;
  color: var(--text-secondary);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer p { margin: 0; }

/* ---------- Bausteine ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 52px;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
}
.pill--brand { background: var(--brand); color: var(--on-brand); }
a.pill--brand:hover { background: var(--brand-hover); color: var(--on-brand); }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--honey);
  flex: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--blush);
  color: var(--text-primary);
  font-size: .875rem;
  font-weight: 700;
}

section { scroll-margin-top: 24px; }

.section { padding-block: clamp(56px, 9vw, 112px) 0; }

.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--text-secondary); font-size: 1.125rem; }
.section-head--center { margin-inline: auto; text-align: center; }

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

.hero { padding-block: clamp(24px, 5vw, 64px) 0; }

.hero .wrap {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
  .device { width: min(100%, 300px, calc((100svh - 120px) * 1320 / 2868)); min-width: 240px; }
}

.hero h1 { margin-bottom: .4em; }
.hero .lead { max-width: 34rem; margin-bottom: 2rem; }

/* ---------- App-Store-Badge (offiziell, unverändert; Mindesthöhe 40 px, Freiraum ¼ der Höhe) ---------- */

.store {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.store-badge { display: inline-block; padding: 0; border-radius: 10px; line-height: 0; }
.store-badge img { height: 56px; width: auto; }
.store-badge--soon { cursor: default; }
.store-note {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-size: .9375rem;
  color: var(--text-secondary);
}
.closing .store { justify-content: center; margin-top: 28px; }

/* ---------- Telefon / Screenshot ---------- */

.device {
  position: relative;
  width: min(100%, 300px);
  margin-inline: auto;
  aspect-ratio: 1320 / 2868;
  border-radius: 46px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.device img { width: 100%; height: 100%; object-fit: cover; }

/* Platzhalter-Bildschirm „Heute“, bis die echten Screenshots da sind */
.mock {
  position: absolute;
  inset: 0;
  padding: 18% 9% 9%;
  display: flex;
  flex-direction: column;
  gap: 5%;
  background:
    radial-gradient(120% 60% at 80% 0%, var(--glow-rose), transparent 70%),
    var(--background);
  font-size: clamp(11px, 3.4vw, 13px);
}
.mock-title { font-weight: 700; font-size: 2.2em; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.mock-sub { color: var(--text-secondary); margin: .2em 0 0; font-size: 1.05em; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-chip {
  padding: .35em .9em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .95em;
}
.mock-chip--on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 700; }
.mock-outfit {
  flex: 1;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
.mock-outfit span { position: absolute; border-radius: 14px; }
.mock-outfit .p1 { left: 12%; top: 9%;  width: 44%; height: 40%; background: var(--blush); border-radius: 18px 18px 10px 10px; }
.mock-outfit .p2 { right: 10%; top: 14%; width: 28%; height: 26%; background: var(--surface-muted); border: 1px solid var(--border); }
.mock-outfit .p3 { left: 18%; top: 53%; width: 34%; height: 38%; background: var(--text-secondary); opacity: .55; border-radius: 10px 10px 6px 6px; }
.mock-outfit .p4 { right: 14%; bottom: 10%; width: 24%; height: 14%; background: var(--honey); opacity: .8; border-radius: 999px; }
.mock-button {
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  text-align: center;
  font-weight: 700;
  padding: .9em;
}

/* ---------- Schritte ---------- */

.steps {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li { padding: 28px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--brand);
  font-weight: 700;
  font-size: 1.125rem;
}
.steps p { margin: 0; color: var(--text-secondary); }

/* ---------- Funktionen ---------- */

.features { display: grid; gap: 16px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }

.feature { overflow: hidden; display: flex; flex-direction: column; }
.feature-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(80% 90% at 20% 0%, var(--glow-honey), transparent 70%),
    radial-gradient(80% 90% at 90% 100%, var(--glow-rose), transparent 70%),
    var(--surface-muted);
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* Ohne Screenshot nur ein ruhiges Icon-Feld */
.feature-visual:not(:has(img)) { aspect-ratio: auto; height: 168px; }
.feature-visual img {
  width: 46%;
  margin-top: 12%;
  align-self: start;
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--border);
  border-bottom: 0;
}
.feature-visual svg { width: 76px; height: 76px; color: var(--brand); }
.feature-body { padding: 26px 28px 30px; }
.feature-body p { margin: 0; color: var(--text-secondary); }

/* ---------- Datenschutz ---------- */

.privacy {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) { .privacy { grid-template-columns: 1.2fr .8fr; } }

.promises { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.promises li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 1.0625rem;
}
.promises svg { width: 28px; height: 28px; color: var(--sage); }

.privacy-art {
  aspect-ratio: 1;
  max-width: 320px;
  width: 100%;
  margin-inline: auto;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--surface) 40%, transparent 41%),
    radial-gradient(closest-side, var(--blush), transparent 100%);
  display: grid;
  place-items: center;
}
.privacy-art svg { width: 38%; height: 38%; color: var(--brand); }

/* ---------- Abschluss ---------- */

.closing { text-align: center; max-width: 620px; margin-inline: auto; }
.closing p { color: var(--text-secondary); font-size: 1.125rem; }

/* ---------- Unterseiten ---------- */

.page { padding-block: clamp(24px, 5vw, 64px) 0; }
.page .wrap { max-width: calc(var(--prose) + 2 * var(--gutter)); }
.page h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem); }
.page .lead { margin-bottom: 2.5rem; }

.prose h2 {
  font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);
  margin-top: 2.4em;
  letter-spacing: -0.02em;
}
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand); }
.prose address { font-style: normal; margin-bottom: 1em; }
.prose .meta { font-size: .9375rem; color: var(--text-secondary); }

.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96875rem; }
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: .8em .9em .8em 0;
  border-bottom: 1px solid var(--border);
}
.prose th { font-weight: 700; }

.summary-card { padding: 24px 28px; margin-bottom: 1rem; }
.summary-card ul { margin: 0; }

.notice {
  padding: 16px 20px;
  border-radius: var(--radius-small);
  background: var(--blush);
  margin-bottom: 2rem;
  font-size: .96875rem;
}
.notice p:last-child { margin: 0; }

/* Platzhalter, die Daniel noch füllt – fallen bewusst auf */
.todo {
  background: rgba(201, 142, 46, .18);
  border: 1px dashed var(--honey);
  border-radius: 6px;
  padding: 0 .3em;
}

/* FAQ */
.faq { display: grid; gap: 12px; margin-bottom: 2.5rem; }
.faq details { padding: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
  border-radius: var(--radius-card);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-muted) no-repeat center / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%2375685F' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 2v10M2 7h10'/%3E%3C/svg%3E");
}
.faq details[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%2375685F' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 7h10'/%3E%3C/svg%3E");
}
.faq summary:hover { color: var(--brand); }
.faq .answer { padding: 0 24px 22px; color: var(--text-secondary); }
.faq .answer p:last-child { margin: 0; }

.contact-card {
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.contact-card h2 { margin: 0 0 .2em; font-size: 1.375rem; }
.contact-card p { margin: 0; color: var(--text-secondary); }

/* 404 */
.not-found { text-align: center; padding-block: clamp(48px, 10vw, 120px) 0; }
.not-found .lead { max-width: 30rem; margin: 0 auto 2rem; }
