/* Web-App Marina Marhold-Jung. Farben aus Website und Flyern, große Schrift und große Knöpfe. */

@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/Figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --pink: #EC7BAD;
  --pink-dark: #B83F78;
  --pink-light: #FDEEF5;
  --green: #96BF44;
  --green-light: #F3F8F0;
  --olive: #5B6600;
  --olive-dark: #454D00;
  --ink: #343434;
  --muted: #666;
  --line: #E9E4E7;
  --paper: #FFFDFE;
  --white: #fff;
  --danger: #B3261E;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(52, 52, 52, .07);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--olive); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(30px, 6vw, 46px); }
h2 { font-size: clamp(24px, 4.4vw, 32px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: 50%; top: -80px; transform: translateX(-50%); background: var(--white); padding: 10px 18px; z-index: 2000; }
.skip-link:focus { top: 8px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* Rahmen */
.wrap { width: min(100%, 1040px); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { width: min(100%, 620px); }
.topbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.topbar__logo img { height: 52px; width: auto; }
.topbar__nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar__nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.topbar__nav a:hover { background: var(--pink-light); }
.topbar__nav a[aria-current="page"] { color: var(--pink-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px;
  border: 2px solid var(--olive); border-radius: 14px;
  background: var(--olive); color: var(--white);
  font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--olive-dark); border-color: var(--olive-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--olive); }
.btn--ghost:hover { background: var(--green-light); color: var(--olive-dark); }
.btn--danger { background: var(--white); color: var(--danger); border-color: var(--danger); }
.btn--danger:hover { background: #FBEDEC; border-color: var(--danger); }
.btn--small { min-height: 44px; padding: 8px 14px; font-size: 16px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Startseite */
.hero { background: var(--pink-light); padding: 44px 0; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__lead { font-size: 21px; }
.hero__img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.section { padding: 48px 0; }
.section--tint { background: var(--green-light); }
.tick-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.tick-list li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.price-card { background: var(--white); border: 2px solid var(--green); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.price-card__amount { font-size: 40px; font-weight: 800; color: var(--olive); line-height: 1.1; }
.feature-grid { display: grid; gap: 16px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; }

/* Karten */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card--accent { background: var(--pink-light); border-color: #F7D6E6; }
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.video-figure { margin: 0; }
.video-figure figcaption { margin-top: 6px; text-align: center; }
.video { display: block; width: 100%; border-radius: 12px; background: #F4F2F3; }
.grid { display: grid; gap: 16px; }
.tile { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--green); }
.tile__media { aspect-ratio: 16 / 10; background: var(--green-light); display: grid; place-items: center; color: var(--green); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__media--empty { aspect-ratio: 5 / 2; }
.tile__media svg { width: 48px; height: 48px; }
.tile__body { padding: 14px 16px 16px; }
.tile__title { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.tile__text { margin: 0; color: var(--muted); font-size: 16px; }
.book { display: flex; gap: 16px; text-decoration: none; color: inherit; }
.book__cover { flex: 0 0 104px; aspect-ratio: 2 / 3; background: var(--green-light); border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: var(--olive); font-weight: 700; font-size: 14px; text-align: center; padding: 6px; }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 8px; -webkit-overflow-scrolling: touch; }
.chip { flex: 0 0 auto; border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--olive); background: var(--olive); color: var(--white); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--green-light); color: var(--olive); }
.badge--warn { background: #FFF3DC; color: #7A5200; }
.badge--off { background: #EFEFEF; color: #555; }
.badge--pink { background: var(--pink-light); color: var(--pink-dark); }
.notice { background: var(--green-light); border-left: 5px solid var(--green); padding: 14px 16px; border-radius: 8px; }
.notice--warn { background: #FFF6E5; border-color: #E0A030; }
.notice--error { background: #FBEDEC; border-color: var(--danger); }
.prose p:last-child { margin-bottom: 0; }
.ingredients { list-style: none; padding: 0; }
.ingredients li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Formulare */
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=url], .field input[type=date], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 2px solid #CFCACC; border-radius: 12px; background: var(--white);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--olive); outline: none; }
.field .hint { font-size: 16px; color: var(--muted); margin: 6px 0 0; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; cursor: pointer; }
.check input { width: 26px; height: 26px; flex: 0 0 26px; margin-top: 1px; accent-color: var(--olive); }
.form-error { color: var(--danger); font-weight: 600; min-height: 1.2em; margin-bottom: 10px; }
.summary { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.summary th, .summary td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary th { width: 42%; font-weight: 600; color: var(--muted); }

/* App: Leiste unten auf dem Handy */
.app-main { padding: 20px 0 calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--white); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--nav-h); text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.bottom-nav svg { width: 26px; height: 26px; }
.bottom-nav a[aria-current="page"] { color: var(--pink-dark); }
.back { display: flex; width: fit-content; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-bottom: 12px; min-height: 44px; }

/* Verwaltung */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid var(--line); margin-bottom: 20px; -webkit-overflow-scrolling: touch; }
.tab { flex: 0 0 auto; border: 0; background: none; padding: 12px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab[aria-selected="true"] { color: var(--pink-dark); border-bottom-color: var(--pink); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row__main { flex: 1 1 220px; min-width: 0; }
.row__title { font-weight: 700; overflow-wrap: anywhere; }
.row__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat__value { font-size: 30px; font-weight: 800; color: var(--olive); line-height: 1.1; }
.stat__label { font-size: 15px; color: var(--muted); }
.thumb { width: 100%; max-width: 280px; border-radius: 12px; margin-bottom: 10px; }

/* Hinweis unten */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 12px; z-index: 900; max-width: calc(100% - 32px); box-shadow: var(--shadow); }

/* Dialog */
dialog { border: 0; border-radius: var(--radius); padding: 22px; max-width: min(92vw, 460px); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(52, 52, 52, .55); }
/* Willkommen beim ersten Start (app.js): Video so hoch, dass Text und „Weiter“ ohne Scrollen sichtbar bleiben */
dialog.welcome { max-width: min(92vw, 640px); width: 100%; }
dialog.welcome h2 { margin-top: 0; }
dialog.welcome:focus { outline: none; }
.welcome-video { display: block; max-width: 100%; margin: 0 auto 16px; border-radius: 12px; background: #000; }
.welcome-video--portrait { height: min(42vh, 520px); aspect-ratio: 9 / 16; width: auto; }
.welcome-video:not(.welcome-video--portrait) { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.welcome-more { text-align: center; margin: -4px 0 14px; }
.welcome-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.welcome-pair figure { margin: 0; text-align: center; }
.welcome-pair .welcome-video { margin-bottom: 6px; width: 100%; height: auto; max-height: 42vh; object-fit: contain; background: transparent; }

/* Fuß */
.footer { background: #2E3200; color: #F4F4EC; padding: 32px 0 calc(32px + var(--footer-extra, 0px)); font-size: 16px; }
.footer a, .footer button { color: #F4F4EC; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-size: 16px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.footer__links strong { font-weight: 700; }
.has-bottom-nav { --footer-extra: calc(var(--nav-h) + env(safe-area-inset-bottom)); }

/* Cookie-Banner, Aufbau wie bei bohr.media */
/* Cookie-Banner im Aufbau wie bei bohr.media (Übersicht + Einstellungen, Akzeptieren und Ablehnen gleich gewichtet).
   Klassen bewusst ohne „cookie“: Werbeblocker blenden solche Container sonst aus. */
.priv-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.priv-modal.is-visible { display: flex; }
.priv-modal__backdrop { position: absolute; inset: 0; background: rgba(52, 52, 52, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.priv-modal__card { position: relative; display: flex; flex-direction: column; width: min(600px, 100%); max-height: calc(100vh - 32px); overflow: hidden; border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.priv-modal__card:focus { outline: none; }
.priv-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 32px; padding: 26px 0 20px; border-bottom: 1px solid var(--line); flex: none; }
.priv-head img { width: 96px; height: auto; }
.priv-head .priv-h { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.priv-panel { display: none; }
.priv-panel.is-active { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 20px 32px 24px; }
.priv-scroll { overflow: auto; font-size: 16px; line-height: 1.6; padding-right: 6px; min-height: 0; }
.priv-scroll p { margin: 0; }
.priv-scroll p + p { margin-top: .8em; }
.priv-scroll a { color: var(--olive); text-decoration: underline; }
.priv-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--muted); cursor: pointer; position: relative; }
.priv-cat:first-child { padding-top: 0; }
.priv-cat b { display: block; font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.priv-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.priv-cat i { position: relative; flex: none; width: 46px; height: 26px; margin-top: 2px; border-radius: 26px; background: #8A8A8A; transition: background-color .2s; }
.priv-cat i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .2s; }
.priv-cat input:checked + i { background: var(--olive); }
.priv-cat input:checked + i::after { transform: translateX(20px); }
.priv-cat input:disabled + i { opacity: .6; cursor: not-allowed; }
.priv-cat input:focus-visible + i { outline: 3px solid var(--pink); outline-offset: 2px; }
.priv-actions { display: grid; gap: 12px; margin-top: 22px; flex: none; }
.priv-btn { background: var(--olive); color: var(--white); border: 0; border-radius: 999px; padding: 15px 20px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; transition: background-color .2s; }
.priv-btn:hover { background: var(--olive-dark); }
.priv-btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
/* „Individuelle Einstellungen“ schlichter, Akzeptieren und Ablehnen bleiben gleich auffällig */
.priv-btn--rahmen { background: var(--white); color: var(--olive); box-shadow: inset 0 0 0 2px var(--olive); }
.priv-btn--rahmen:hover { background: var(--green-light); color: var(--olive-dark); }
.priv-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 36px; padding: 16px 24px; background: #F4F2F3; font-size: 15px; flex: none; }
.priv-foot a, .priv-foot button { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: none; }
.priv-foot a:hover, .priv-foot button:hover { color: var(--ink); text-decoration: underline; }
.priv-foot [hidden] { display: none; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.3fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  /* Ab Tablet-Querformat stehen die Punkte oben */
  .bottom-nav { position: sticky; top: 69px; bottom: auto; display: flex; justify-content: center; gap: 8px; border-top: 0; border-bottom: 1px solid var(--line); padding: 0; z-index: 40; }
  .bottom-nav a { flex-direction: row; gap: 8px; height: 52px; padding: 0 18px; font-size: 17px; }
  .bottom-nav svg { width: 22px; height: 22px; }
  .app-main { padding-bottom: 40px; }
  .has-bottom-nav { --footer-extra: 0px; }
  .toast { bottom: 24px; }
}
@media (max-width: 560px) {
  .topbar__nav .hide-small { display: none; }
}
@media print {
  .topbar, .footer, .bottom-nav, .btn, .priv-modal { display: none !important; }
  body { background: #fff; font-size: 13pt; }
}
