/* ==========================================================================
   Closet — Website-Styles (Cal-AI-Stil, aus theme.ts `ui`)
   Tokens zentral in :root, kein Magic-Hex im Markup.
   ========================================================================== */

:root {
  /* Flächen */
  --surface: #ffffff;
  --surface-raised: #f7f7f8;
  --fill: #f2f2f4;
  --fill-soft: #f4f4f6;
  /* Tinte / Text */
  --ink: #16161a;
  --text: #111114;
  --text-secondary: #6e6e73;
  --text-muted: #8e8e93;
  --text-faint: #a1a1a6;
  --on-ink: #ffffff;
  /* Linien / Ränder */
  --line: #efeff1;
  --border: #e6e6e8;
  --border-strong: #e0e0e2;
  --divider: #f0f0f2;
  /* Akzent (nur positiv/aktiv) */
  --accent: #2bb673;
  --accent-soft: #e7f6ee;
  /* Maße */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto,
    Helvetica, Arial, sans-serif;
  --shadow-soft: 0 1px 2px rgba(16, 16, 26, 0.04),
    0 12px 32px rgba(16, 16, 26, 0.06);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-ink {
  background: var(--ink);
  color: var(--on-ink);
}

.btn-ink:hover {
  opacity: 0.9;
}

.btn-ghost {
  background: var(--fill);
  color: var(--text);
}

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

.hero {
  padding: 72px 0 40px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 20px;
  color: var(--text-secondary);
  margin: 0 0 28px;
  max-width: 30ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Telefon-Rahmen mit Screenshot */
.phone {
  justify-self: center;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  background: var(--fill);
  border-radius: 44px;
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--fill-soft), #e7e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-placeholder {
  color: var(--text-faint);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 24px;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.section {
  padding: 56px 0;
}

.section-head {
  text-align: center;
  max-width: 40ch;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-secondary);
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--fill);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card .ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Shopping / Produktempfehlungen
   -------------------------------------------------------------------------- */

.shopping-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.shopping-grid h2 {
  font-size: clamp(26px, 3.6vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
}

.fineprint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.product-card {
  justify-self: center;
  width: 100%;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.product-card .thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--fill-soft), var(--fill));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.product-card .src {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.product-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 4px 0 14px;
}

.product-card .price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-card .price {
  display: inline-block;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
}

.product-card .passt {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   CTA-Band
   -------------------------------------------------------------------------- */

.cta-band {
  text-align: center;
  padding: 20px 0 72px;
}

.cta-band .box {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
}

.cta-band h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 24px;
}

.cta-band .btn-ink {
  background: var(--on-ink);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Content-Seiten (Datenschutz, Support, Impressum)
   -------------------------------------------------------------------------- */

.doc {
  padding: 56px 0 80px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(30px, 4.4vw, 42px);
  margin-bottom: 8px;
}

.doc .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 40px;
}

.doc h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 40px 0 12px;
}

.doc h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 8px;
}

.doc p,
.doc li {
  color: var(--text-secondary);
  font-size: 16px;
}

.doc ul {
  padding-left: 20px;
}

.doc li {
  margin-bottom: 6px;
}

.doc a {
  color: var(--accent);
  font-weight: 500;
}

.doc a:hover {
  text-decoration: underline;
}

/* Platzhalter, die der Nutzer ausfüllen muss */
.fill {
  background: var(--accent-soft);
  color: #1c7a4d;
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92em;
}

.callout {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--text-secondary);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--divider);
  margin-top: 24px;
}

.faq details {
  border-bottom: 1px solid var(--divider);
  padding: 18px 0;
}

.faq summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--text-muted);
  font-weight: 400;
  font-size: 22px;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 12px 0 0;
}

.contact-card {
  background: var(--fill);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 28px 0;
}

.contact-card .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.contact-card a.mail {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  margin-top: 24px;
}

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

.site-footer .brand {
  font-size: 16px;
}

.site-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.site-footer nav a:hover {
  color: var(--text);
}

.site-footer .copy {
  color: var(--text-faint);
  font-size: 13px;
  width: 100%;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero p.lead {
    max-width: none;
  }
  .hero-cta {
    justify-content: center;
  }
  .eyebrow {
    margin-inline: auto;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .shopping-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .shopping-grid .eyebrow {
    margin-inline: auto;
  }
  .shopping-grid .lead {
    max-width: none;
  }
  .product-card {
    text-align: left;
  }
  .nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 18px;
  }
  .hero {
    padding: 48px 0 24px;
  }
  .phone {
    width: 240px;
  }
}
