/* Wechselzeit — gemeinsamer Look aller Seiten. Ruhige „Papier“-Optik wie in der App.
   Hell/dunkel folgt dem System; Umschalter setzt data-theme. Schriften liegen lokal in /fonts (SIL OFL). */

@font-face { font-family: 'Fraunces'; src: url('fonts/Fraunces_500Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/Fraunces_600SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('fonts/SourceSans3_400Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('fonts/SourceSans3_600SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('fonts/SourceSans3_700Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #F6F1E7;        /* Papier */
  --surface: #FFFCF5;   /* Blatt */
  --sunk: #EEE7DA;
  --ink: #2B2620;       /* Tinte */
  --ink-soft: #6A6157;
  --ink-faint: #A39889;
  --line: #E6DDCD;
  --button: #2B2620;
  --on-button: #FFFCF5;
  --ok: #4E7A55;
  --ok-soft: #DFEADB;
  --focus: #2B2620;
  --shadow: 0 1px 2px rgba(91, 74, 51, 0.06), 0 10px 30px rgba(91, 74, 51, 0.08);
  /* Elternfarben: Petrol (A) + Bernstein (B) */
  --a-base: #2E6E73; --a-tint: #DEE5E0; --a-strong: #BCCFCB; --a-ink: #193D3F;
  --b-base: #B7802A; --b-tint: #F3E8D5; --b-strong: #E8D4B4; --b-ink: #654617;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #1A1714; --surface: #24201B; --sunk: #2E2923;
    --ink: #F2EBDF; --ink-soft: #BDB2A2; --ink-faint: #7E7466; --line: #383129;
    --button: #F2EBDF; --on-button: #1A1714; --ok: #9CC3A0; --ok-soft: #26382A; --focus: #F2EBDF;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3);
    --a-base: #54888C; --a-tint: #273937; --a-strong: #2A4B4B; --a-ink: #C4D6D8;
    --b-base: #C49750; --b-tint: #533F20; --b-strong: #755523; --b-ink: #EBDBC3;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #1A1714; --surface: #24201B; --sunk: #2E2923;
  --ink: #F2EBDF; --ink-soft: #BDB2A2; --ink-faint: #7E7466; --line: #383129;
  --button: #F2EBDF; --on-button: #1A1714; --ok: #9CC3A0; --ok-soft: #26382A; --focus: #F2EBDF;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3);
  --a-base: #54888C; --a-tint: #273937; --a-strong: #2A4B4B; --a-ink: #C4D6D8;
  --b-base: #C49750; --b-tint: #533F20; --b-strong: #755523; --b-ink: #EBDBC3;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration-color: var(--ink-faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 740px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 10px; z-index: 10; }

h1, h2, h3 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(32px, 7vw, 54px); }
h2 { font-size: clamp(25px, 4.4vw, 34px); }
h3 { font-size: 20px; font-weight: 500; }

/* Kopf */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 22px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; color: var(--ink-soft); }
.top nav a:hover { color: var(--ink); }
.theme-btn { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 17px; font-family: inherit; }

/* Startseite */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 32px 0 56px; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-soft); margin: 18px 0 26px; max-width: 34em; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-soon { display: inline-flex; align-items: center; gap: 10px; background: var(--button); color: var(--on-button); border-radius: 16px; padding: 12px 20px; font-weight: 700; font-size: 16px; cursor: default; }
.store-soon svg { width: 20px; height: 20px; }
.hint { font-size: 15px; color: var(--ink-soft); }

.sheet { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: 22px; }
.today { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.today .who { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 600; line-height: 1.2; }
.today .who span { color: var(--a-ink); }
.today small { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 2px; }
.chip { font-size: 13.5px; font-weight: 600; background: var(--sunk); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-head strong { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 19px; }
.cal-head .arrows { color: var(--ink-faint); font-size: 18px; letter-spacing: 10px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal .wd { text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-soft); padding-bottom: 2px; }
.cal .wd.we { color: var(--ink); }
.day { position: relative; aspect-ratio: 1 / 1.02; border-radius: 10px; padding: 5px 6px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; font-size: 15px; font-weight: 600; }
.day.empty { background: transparent; }
.day.a { background: var(--a-tint); color: var(--a-ink); }
.day.b { background: var(--b-tint); color: var(--b-ink); }
.day .l { align-self: flex-end; font-size: 11px; font-weight: 700; opacity: 0.85; line-height: 1; }
.day .n { position: relative; z-index: 1; line-height: 1; }
/* Übergabetag: schräg geteilt, oben links die Farbe von vorher */
.day.ho::before { content: ''; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.day.ho.from-a::before { background: var(--a-tint); }
.day.ho.from-b::before { background: var(--b-tint); }
.day .l { position: relative; z-index: 1; }
.day.today { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 700; }
.day .dot { position: absolute; left: 7px; bottom: 7px; width: 6px; height: 6px; border-radius: 3px; background: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 18px; height: 18px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.sw.a { background: var(--a-tint); color: var(--a-ink); }
.sw.b { background: var(--b-tint); color: var(--b-ink); }
.sw.ho { background: linear-gradient(135deg, var(--a-tint) 50%, var(--b-tint) 50%); }
.sw.dot::after { content: ''; width: 6px; height: 6px; border-radius: 3px; background: var(--ink); }

section.block { padding: 56px 0; border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature p { color: var(--ink-soft); margin-top: 12px; }
.feature ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.feature li { padding-left: 26px; position: relative; }
.feature li::before { content: ''; position: absolute; left: 4px; top: 0.62em; width: 10px; height: 10px; border-radius: 3px; background: var(--ink-faint); }
.card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: var(--sunk); border-radius: 999px; padding: 7px 14px; font-size: 15px; font-weight: 600; }
.pill.on { background: var(--button); color: var(--on-button); }
.row-days { display: flex; gap: 5px; margin-top: 14px; }
.row-days .day { flex: 1; aspect-ratio: auto; min-height: 46px; }

.req { display: grid; gap: 12px; }
.req .who { font-size: 14px; color: var(--ink-soft); }
.req .title { font-weight: 700; font-size: 17px; }
.req .btns { display: flex; gap: 8px; margin-top: 4px; }
.fake-btn { flex: 1; text-align: center; border-radius: 14px; padding: 10px 12px; font-weight: 700; font-size: 15px; background: var(--sunk); }
.fake-btn.yes { background: var(--button); color: var(--on-button); }
.status { font-size: 14px; color: var(--ok); font-weight: 600; }

.msgs { display: grid; gap: 10px; }
.msg { max-width: 86%; border-radius: 18px; padding: 10px 14px; font-size: 15.5px; }
.msg.a { background: var(--a-tint); color: var(--a-ink); border-bottom-left-radius: 6px; }
.msg.b { background: var(--b-tint); color: var(--b-ink); justify-self: end; border-bottom-right-radius: 6px; }
.msg small { display: block; font-size: 12.5px; opacity: 0.8; margin-top: 3px; }

.sum { font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.exp { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.exp:first-of-type { border-top: 0; }
.exp span:last-child { font-weight: 700; white-space: nowrap; }
.exp small { display: block; color: var(--ink-soft); font-size: 13.5px; }

/* Preise */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.price { background: var(--surface); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.price.pro { box-shadow: var(--shadow), inset 0 0 0 2px var(--ink); }
.price h3 { font-size: 22px; font-weight: 600; }
.price .amount { font-family: 'Fraunces', Georgia, serif; font-size: 32px; font-weight: 600; margin: 8px 0 2px; }
.price .amount small { font-family: 'Source Sans 3', sans-serif; font-size: 16px; font-weight: 400; color: var(--ink-soft); }
.price .sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.price ul { list-style: none; display: grid; gap: 8px; }
.price li { padding-left: 28px; position: relative; }
.price li::before { content: '✓'; position: absolute; left: 4px; top: 0; font-weight: 700; color: var(--ok); }
.small-print { font-size: 14.5px; color: var(--ink-soft); margin-top: 18px; }

/* FAQ */
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: 18px; padding: 4px 20px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--ink-soft); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 16px; color: var(--ink-soft); }

/* Text-Seiten */
.doc { padding-bottom: 8px; }
.doc h1 { font-size: clamp(30px, 6vw, 42px); margin: 12px 0 6px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc h3 { font-size: 18px; margin: 18px 0 6px; }
.doc p, .doc li { font-size: 16.5px; }
.doc p { margin-bottom: 10px; }
.doc ul, .doc ol { margin: 8px 0 12px 22px; }
.doc li { margin-bottom: 6px; }
.stand { color: var(--ink-soft); font-size: 14px; margin-bottom: 8px; }
.note { background: var(--surface); border-radius: 16px; padding: 14px 18px; margin: 16px 0; font-size: 15.5px; color: var(--ink-soft); box-shadow: inset 4px 0 0 var(--ink-faint); }
.doc .note p:last-child { margin-bottom: 0; }

/* Fuß */
footer { margin-top: 56px; padding: 24px 0 44px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-soft); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
footer nav a { color: var(--ink-soft); }
footer .by { font-size: 13px; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 860px) {
  .hero, .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature .visual { order: 2; }
  .prices { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .top nav .hide-s { display: none; }
  .sheet { padding: 14px; border-radius: 22px; }
  .cal { gap: 3px; }
  .day { padding: 4px; font-size: 13.5px; border-radius: 8px; }
  .day .l { font-size: 10px; }
  .day .dot { left: 5px; bottom: 5px; width: 5px; height: 5px; }
  .today .who { font-size: 21px; }
  section.block { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
