/* ============================================================
   circady — geteiltes Stylesheet
   Apple-Designsprache · Creme-Hintergrund aus der Protokoll-Matrix
   System-Fonts (kein Webfont-CDN → DSGVO-konform)
   ============================================================ */

:root {
  --bg:          #f7f5f0;
  --bg-alt:      #efece5;
  --bg-card:     #fffdf9;
  --ink:         #1a1a1a;
  --ink-soft:    #4a4a47;
  --ink-faint:   #8a8a85;
  --accent:      #2f6a45;
  --accent-ink:  #234f34;
  --accent-soft: rgba(47, 106, 69, 0.08);
  --border:      #d8d4c8;
  --border-soft: #e8e4d8;

  --radius-card: 18px;
  --radius-pill: 980px;
  --maxw-text:   720px;
  --maxw-wide:   1180px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Arial, sans-serif;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.05);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.10);
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 100% 0%,  rgba(47, 106, 69, 0.06) 0%, transparent 38%),
    radial-gradient(circle at 0% 100%,  rgba(47, 106, 69, 0.04) 0%, transparent 42%);
  background-attachment: fixed;
}

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

/* === Layout-Helfer === */
.container {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 22px;
}
.section {
  padding: clamp(72px, 12vw, 150px) 0;
}
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* === Typografie === */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3 { letter-spacing: -0.021em; line-height: 1.08; font-weight: 600; }
h1 { font-size: clamp(40px, 7vw, 72px); }
h2 { font-size: clamp(30px, 4.6vw, 48px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; }
.lead {
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
}
.muted { color: var(--ink-faint); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #3a7d54; }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn--ghost:hover { background: var(--accent-soft); }

/* App-Store-Badge (nachgebaut, schwarzes Pill) */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 11px 20px 11px 18px;
  border-radius: 13px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.appstore-badge:hover { opacity: 0.85; }
.appstore-badge:active { transform: scale(0.97); }
.appstore-badge svg { width: 26px; height: 26px; flex: none; }
.appstore-badge .ab-text { display: flex; flex-direction: column; line-height: 1.15; }
.appstore-badge .ab-small { font-size: 11px; font-weight: 400; opacity: 0.9; }
.appstore-badge .ab-big   { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  height: 54px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.brand-name {
  font-size: 20px;
  font-weight: 200;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; flex: none; }

/* Sprachumschalter */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.lang-switch button {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch button.active {
  background: var(--ink);
  color: var(--bg);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 70px);
  text-align: center;
}
.hero .eyebrow { margin-bottom: 18px; display: block; }
.hero h1 { margin-bottom: 22px; }
.hero .lead {
  max-width: var(--maxw-text);
  margin: 0 auto 34px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* === Screenshot-Galerie === */
.shots {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: clamp(36px, 6vw, 70px);
}
.phone {
  position: relative;
  width: clamp(190px, 24vw, 260px);
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  background: #1a1a1a;
  padding: 9px;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.phone:nth-child(2) {
  margin-bottom: clamp(20px, 4vw, 48px);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #2a2a2c;
}
.phone-screen img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-ph {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8a8a90;
  background:
    repeating-linear-gradient(45deg, #303033 0 14px, #2a2a2c 14px 28px);
  text-align: center;
  padding: 16px;
}
.phone-ph .ph-num {
  font-size: 30px;
  font-weight: 600;
  color: #4a4a4f;
}
.phone-ph small { font-size: 12px; letter-spacing: 0.03em; }
/* Notch */
.phone-screen::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 20px;
  background: #1a1a1a;
  border-radius: 0 0 12px 12px;
}

/* ============================================================
   Feature-Spotlight (Kuratierte Protokolle)
   ============================================================ */
.spotlight {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}
.spotlight h2 { margin: 14px 0 18px; }
.spotlight .lead { margin-bottom: 24px; }
.checklist { list-style: none; margin: 0 0 30px; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  font-size: 16.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--border-soft);
}
.checklist li:first-child { border-top: none; }
.checklist li::before {
  content: "";
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.spotlight-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px;
}
.matrix-mini { display: grid; gap: 10px; }
.matrix-mini .mm-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.matrix-mini .mm-label {
  flex: none;
  width: 86px;
  font-size: 12px;
  color: var(--ink-faint);
  text-align: right;
}
.matrix-mini .mm-bar {
  flex: 1;
  height: 26px;
  border-radius: 7px;
  display: flex;
  overflow: hidden;
}
.mm-seg { height: 100%; }
.mm-seg.s1 { background: rgba(47, 106, 69, 0.88); }
.mm-seg.s2 { background: rgba(47, 106, 69, 0.52); }
.mm-seg.s3 { background: rgba(47, 106, 69, 0.24); }
.matrix-mini .mm-caption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
}

/* ============================================================
   Lösungs-Abschnitte (Solutions)
   ============================================================ */
.spotlight--reverse { direction: rtl; }
.spotlight--reverse > * { direction: ltr; }

/* Routine-Builder-Mock (Individuelle Routinen) */
.builder-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: grid;
  gap: 11px;
}
.builder-mock .bm-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.bm-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  font-size: 15px;
}
.bm-field .bm-val { color: var(--ink-faint); }
.bm-toggle {
  width: 40px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  position: relative;
  flex: none;
}
.bm-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
}

/* Superkompensation — zwei gestapelte Grafiken */
.sc-stack { display: grid; gap: 22px; }
.sc-figure { margin: 0; }
.sc-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #1f1f21;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.22);
}
.sc-frame img,
.sc-frame svg { width: 100%; display: block; }
.sc-ph {
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8a8a90;
  background: repeating-linear-gradient(45deg, #2a2a2c 0 14px, #242426 14px 28px);
  text-align: center;
  padding: 22px;
}
.sc-ph .sc-ph-title { font-size: 15px; font-weight: 600; color: #b8b8bc; }
.sc-ph small { font-size: 12px; }
.sc-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.45;
  text-align: center;
}

/* Superkompensation: Text oben, Bilder nebeneinander darunter */
.sc-intro {
  max-width: 760px;
  margin: 0 auto clamp(34px, 5vw, 56px);
  text-align: center;
}
.sc-intro .checklist {
  text-align: left;
  max-width: 540px;
  margin: 24px auto 0;
}
.sc-row {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}
.sc-explain {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ============================================================
   Feature-Grid
   ============================================================ */
.feature-head { text-align: center; max-width: var(--maxw-text); margin: 0 auto 56px; }
.feature-head h2 { margin: 14px 0 16px; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card .ic {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .ic svg { width: 23px; height: 23px; stroke: var(--accent); }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }

/* ============================================================
   Download-Sektion (QR + App Store)
   ============================================================ */
.download-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 5vw, 52px);
}
.qr {
  width: 168px;
  height: 168px;
  flex: none;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
  color: var(--ink-faint);
}
.qr svg { width: 46px; height: 46px; opacity: 0.4; }
.qr small { font-size: 11.5px; line-height: 1.35; }
.download-text h2 { margin-bottom: 14px; }
.download-text .lead { margin-bottom: 22px; }
.download-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   Rechtsseiten (Impressum / Datenschutz / Support)
   ============================================================ */
.page-hero {
  padding: clamp(56px, 9vw, 110px) 0 clamp(24px, 4vw, 40px);
}
.legal {
  max-width: var(--maxw-text);
  margin: 0 auto;
  padding-bottom: clamp(60px, 10vw, 120px);
}
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal p, .legal li { font-size: 16px; color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { margin: 0 0 12px 22px; }
.legal a { color: var(--accent); }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal hr { border: none; border-top: 1px solid var(--border-soft); margin: 32px 0; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 14.5px;
}
.legal th, .legal td {
  text-align: left;
  padding: 9px 13px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.legal th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }
.legal td { color: var(--ink-soft); }
.legal-updated {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.note {
  background: var(--accent-soft);
  border: 1px solid rgba(47, 106, 69, 0.22);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--accent-ink);
  margin: 22px 0;
}
.placeholder-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 3px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

/* === FAQ-Akkordeon === */
.faq { max-width: var(--maxw-text); margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq summary {
  font-size: 17px;
  font-weight: 500;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 20px; color: var(--ink-soft); font-size: 15.5px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 52px 0 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 26px; height: 26px; border-radius: 6px; }
.footer-brand span { font-size: 18px; font-weight: 200; letter-spacing: 0.14em; }
.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.6;
}
.footer-pillars { margin-top: 6px; }

/* ============================================================
   Scroll-Reveal-Animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .spotlight { grid-template-columns: 1fr; }
  .sc-row { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .download-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .download-actions { justify-content: center; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { flex-direction: column; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn, .hero-cta .appstore-badge { width: 100%; }
  .phone:nth-child(2) { margin-bottom: 0; }
}

/* === Bewegung reduzieren === */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .appstore-badge { transition: none; }
}

/* === Kontaktformular === */
.contact-card { text-align: left; }
.contact-form { margin-top: 4px; }
.form-row { margin-bottom: 16px; text-align: left; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-faint); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%238a8a85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.contact-form button[type="submit"] { margin-top: 4px; }
.contact-form button[type="submit"]:disabled { opacity: 0.6; cursor: default; }
/* Honeypot — für Menschen unsichtbar */
.contact-form .hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}
.form-status { margin-top: 14px; font-size: 15px; text-align: center; min-height: 1.2em; }
.form-status.is-pending { color: var(--ink-soft); }
.form-status.is-success { color: var(--accent); font-weight: 600; }
.form-status.is-error   { color: #b3261e; font-weight: 600; }

/* === Tastatur-Fokus === */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
