/* gut.in.form – Prototyp. Tokens zuerst, Komponenten danach. */
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-wght-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  /* CI aus Logo und Booklet */
  --teal: #61a6ab;
  --teal-soft: #d9eaeb;
  --petrol: #1f5a6b;
  --petrol-deep: #163f4b;
  --peach: #efb8a3;
  --peach-soft: #fae6dd;
  --coral: #c2491f;
  --sun: #f6cf73;
  --cream: #f6f4e9;
  --paper: #fffdf8;
  --ink: #17343c;
  --ink-soft: #46626a;
  --line: #d8ddd3;

  --font-sans: "Avenir Next", "Avenir", "Nunito Sans", system-ui, sans-serif;
  --font-serif: "Lora", "Iowan Old Style", Georgia, serif;

  --r-s: 12px; --r-m: 22px; --r-l: 40px;
  --shadow: 0 10px 30px -14px rgba(22, 63, 75, .35);
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(64px, 9vw, 120px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-sans); font-size: clamp(17px, 1.05vw + 13px, 19px); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; color: var(--petrol-deep); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); }
p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
section { padding-block: var(--section); position: relative; }
.eyebrow { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--coral); margin: 0 0 .6em; display: block; }
.lead { font-size: 1.2em; line-height: 1.5; color: var(--ink-soft); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.center { text-align: center; }
.center p { margin-inline: auto; }
.head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.center.head { margin-inline: auto; }

/* Flächen */
.bg-paper { background: var(--paper); }
.bg-teal { background: var(--teal); }
.bg-petrol { background: var(--petrol); color: #eef6f6; }
.bg-petrol h2, .bg-petrol h3 { color: #fff; }
.bg-petrol .eyebrow { color: var(--sun); }
.bg-petrol .lead, .bg-petrol p { color: #dcebed; }
.bg-petrol a:not(.btn) { color: #fff; }
.bg-peach { background: var(--peach-soft); }
.bg-teal h2, .bg-teal h3 { color: var(--petrol-deep); }
.bg-teal .eyebrow { color: var(--petrol-deep); }
.bg-teal .lead { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; min-height: 52px; padding: .75em 1.5em; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--petrol); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--petrol-deep); transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--petrol-deep); }
.btn-sun:hover { background: #f9dc94; transform: translateY(-2px); }
.btn-ghost { border-color: currentColor; color: var(--petrol); background: transparent; }
.btn-ghost:hover { background: rgba(31, 90, 107, .08); }
.bg-petrol .btn-ghost { color: #fff; }
.bg-petrol .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }
.center .btn-row { justify-content: center; }
.textlink { font-weight: 700; display: inline-flex; align-items: center; gap: .4em; min-height: 44px; }
.textlink svg { width: 1em; height: 1em; transition: transform .18s ease; }
.textlink:hover svg { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 244, 233, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 28px); }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 12px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--petrol); border-bottom-color: var(--coral); }
.nav .btn { min-height: 44px; padding: .5em 1.15em; color: #fff; border-bottom: 2px solid transparent; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; color: var(--petrol-deep); }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 1080px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav { position: absolute; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; justify-content: center; }
}

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-family: var(--font-serif); font-weight: 500; color: var(--coral); }
.hero-media { position: relative; width: 100%; max-width: 450px; justify-self: end; }
.page-hero .hero-media { max-width: 560px; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 48% 48% var(--r-l) var(--r-l) / 38% 38% var(--r-l) var(--r-l); position: relative; z-index: 1; }
.hero-media::before { content: ""; position: absolute; inset: 8% -9% -6% 14%; background: var(--peach); border-radius: 50% 50% var(--r-l) var(--r-l) / 40% 40% var(--r-l) var(--r-l); }
.hero-media::after { content: ""; position: absolute; width: 34%; aspect-ratio: 1; left: -8%; bottom: 6%; background: var(--sun); border-radius: 50%; z-index: 0; }
.hero-note { position: absolute; z-index: 2; right: -4%; bottom: 9%; background: var(--paper); border-radius: var(--r-m); padding: 14px 18px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.35; max-width: 230px; }
.hero-note strong { display: block; color: var(--petrol-deep); }
.page-hero .hero-media img { aspect-ratio: 5 / 4; border-radius: var(--r-l) 50% var(--r-l) var(--r-l) / var(--r-l) 44% var(--r-l) var(--r-l); }
.page-hero .hero-media::before { inset: 10% -6% -7% 20%; border-radius: var(--r-l); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 440px; margin-inline: auto; width: 86%; }
  .hero-note { right: -6%; }
}

/* Raster */
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.wide-left { grid-template-columns: 1.25fr .75fr; }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .split, .split.wide-left, .g2, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .g4 { grid-template-columns: 1fr; } }

/* Karten */
.card { background: var(--paper); border-radius: var(--r-m); padding: clamp(22px, 2.6vw, 34px); box-shadow: var(--shadow); display: flex; flex-direction: column; color: var(--ink); }
.card h3 { color: var(--petrol-deep); }
.card p { color: var(--ink-soft); font-size: .97em; }
.card .textlink { margin-top: auto; }
.icon { width: 56px; height: 56px; border-radius: 50%; background: var(--teal-soft); color: var(--petrol); display: grid; place-items: center; margin-bottom: 18px; flex: none; }
.icon svg { width: 28px; height: 28px; }
.icon.peach { background: var(--peach-soft); color: var(--coral); }
.icon.sun { background: #fcefc9; color: #7a5a00; }

/* Angebote – vier Stufen */
.offer { position: relative; padding-top: clamp(26px, 3vw, 38px); }
.offer .step { font-family: var(--font-serif); font-style: italic; color: var(--coral); font-size: 1rem; margin-bottom: 6px; }
.offer .tag { align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--petrol-deep); margin-bottom: 16px; }
.offer .tag.free { background: #fcefc9; color: #6b4f00; }
.offer.featured { background: var(--petrol); }
.offer.featured h3 { color: #fff; }
.offer.featured p { color: #dcebed; }
.offer.featured .step { color: var(--sun); }
.offer.featured .textlink { color: #fff; }
.offer.featured .tag { background: rgba(255, 255, 255, .16); color: #fff; }

/* Symptome */
.pairs { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pairs li { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; background: var(--paper); border-radius: var(--r-s); padding: 16px 22px; }
.pairs li span:last-child { font-family: var(--font-serif); font-style: italic; color: var(--petrol); }
.pairs .pairs-head { background: none; padding-block: 0 4px; font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--petrol-deep); }
.pairs .pairs-head span:last-child { font: inherit; color: inherit; }
@media (max-width: 640px) { .pairs li { grid-template-columns: 1fr; gap: 4px; } .pairs .pairs-head span:last-child { display: none; } }

/* Lead-Magneten */
.magnet { border-radius: var(--r-l); padding: clamp(26px, 4vw, 52px); display: grid; grid-template-columns: auto 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; }
.magnet.book { background: var(--teal); }
.magnet.test { background: var(--peach); }
.magnet h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--petrol-deep); }
.magnet p { color: var(--ink); }
.magnet .cover { width: clamp(120px, 14vw, 180px); border-radius: 8px; box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .5); transform: rotate(-4deg); }
.dial { width: clamp(120px, 14vw, 170px); aspect-ratio: 1; border-radius: 50%; background: var(--paper); display: grid; place-items: center; text-align: center; font-weight: 700; color: var(--petrol-deep); line-height: 1.15; box-shadow: var(--shadow); }
.dial b { display: block; font-size: 2.2rem; color: var(--coral); font-family: var(--font-serif); }
@media (max-width: 640px) { .magnet { grid-template-columns: 1fr; } }

/* Zahlen */
.stat b { display: block; font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--sun); margin-bottom: 10px; }
.stat p { font-size: .98em; }

/* Bild-Platzhalter */
.ph { border-radius: var(--r-m); background: repeating-linear-gradient(135deg, var(--teal-soft) 0 14px, #e7f1f1 14px 28px); min-height: 260px; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--petrol-deep); font-size: .88rem; font-weight: 600; border: 1.5px dashed var(--teal); }
.ph small { display: block; font-weight: 400; color: var(--ink-soft); }
.ph.round { border-radius: 50%; aspect-ratio: 1; min-height: 0; }
.photo { border-radius: var(--r-m); width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.photo.arch { border-radius: 50% 50% var(--r-m) var(--r-m) / 36% 36% var(--r-m) var(--r-m); aspect-ratio: 4 / 5; }

/* Listen */
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.checks li { padding-left: 38px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }
.bg-petrol .checks li::before { background-color: var(--sun); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163f4b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding-bottom: 36px; position: relative; }
.steps li::before { content: counter(s); width: 64px; height: 64px; border-radius: 50%; background: var(--petrol); color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; position: relative; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: var(--teal); }
.steps h3 { margin-top: 14px; }
.steps p { color: var(--ink-soft); }
@media (max-width: 560px) { .steps li { grid-template-columns: 48px 1fr; gap: 16px; } .steps li::before { width: 48px; height: 48px; font-size: 1.2rem; } .steps li:not(:last-child)::after { left: 23px; top: 48px; } .steps h3 { margin-top: 8px; } }

/* Regenbogen */
.rainbow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rainbow div { border-radius: var(--r-m); padding: 20px 18px; background: var(--paper); border-top: 8px solid var(--c); font-size: .92rem; color: var(--ink-soft); }
.rainbow strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 900px) { .rainbow { grid-template-columns: 1fr 1fr; } }

/* Zitat */
.quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.35; color: var(--petrol-deep); max-width: 24ch; margin: 0; }
.bg-petrol .quote { color: #fff; }
.quote + cite { display: block; margin-top: 18px; font-style: normal; font-weight: 700; font-size: .95rem; }

/* Preisbox */
.pricebox { background: var(--paper); border-radius: var(--r-l); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); color: var(--ink); }
.pricebox .price { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; color: var(--petrol-deep); line-height: 1; margin: 8px 0 4px; }
.pricebox small { color: var(--ink-soft); }
.pricebox .btn { width: 100%; justify-content: center; margin-top: 22px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--paper); border-radius: var(--r-s); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 60px 20px 24px; font-weight: 700; color: var(--petrol-deep); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--coral); border-bottom: 2.5px solid var(--coral); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--ink-soft); }
.faq-group { margin: 40px 0 16px; font-size: 1.15rem; }

/* Formular */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; color: var(--petrol-deep); }
.form input, .form textarea, .form select { font: inherit; padding: 14px 16px; border-radius: var(--r-s); border: 1.5px solid #9fb1b2; background: #fff; color: var(--ink); min-height: 52px; width: 100%; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--petrol); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .check { display: flex; gap: 12px; font-weight: 400; align-items: flex-start; }
.form .check input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 3px; }
.notice { background: #fcefc9; border-left: 6px solid var(--sun); border-radius: var(--r-s); padding: 16px 20px; font-size: .95rem; color: #4a3800; }
.notice strong { display: block; }
.form-ok { display: none; background: var(--teal-soft); border-radius: var(--r-s); padding: 16px 20px; font-weight: 700; color: var(--petrol-deep); }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--petrol-deep); color: #cfe2e4; padding-block: 64px 84px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; display: inline-block; padding: 5px 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { color: var(--sun); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid img { height: 54px; width: auto; margin-bottom: 18px; border-radius: 8px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; font-size: .85rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Umschalter Design / Struktur (nur Prototyp) */
.proto-bar { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; gap: 4px; padding: 5px; background: #111; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); font-family: system-ui, sans-serif; }
.proto-bar button { border: 0; border-radius: 999px; padding: 9px 16px; font: 600 13px system-ui, sans-serif; cursor: pointer; background: transparent; color: #bbb; min-height: 40px; }
.proto-bar button[aria-pressed="true"] { background: #fff; color: #111; }
.todo { display: inline-block; background: #fcefc9; color: #5a4300; font: 600 .74rem system-ui, sans-serif; padding: 3px 9px; border-radius: 6px; letter-spacing: .02em; vertical-align: middle; }

/* Struktur-Ansicht: Graustufen, Abschnittsnamen, Zeichenumfang */
html[data-mode="wf"] {
  --teal: #bdbdbd; --teal-soft: #e9e9e9; --petrol: #3a3a3a; --petrol-deep: #1c1c1c; --peach: #d6d6d6; --peach-soft: #efefef;
  --coral: #555; --sun: #cfcfcf; --cream: #f7f7f7; --paper: #fff; --ink: #1c1c1c; --ink-soft: #555; --line: #cfcfcf;
  --shadow: none;
}
html[data-mode="wf"] img:not(.logo img) { filter: grayscale(1) contrast(.85) brightness(1.08); }
html[data-mode="wf"] .card, html[data-mode="wf"] .pricebox, html[data-mode="wf"] .pairs li { border: 1.5px solid #bbb; }
html[data-mode="wf"] .notice, html[data-mode="wf"] .todo, html[data-mode="wf"] .offer .tag.free, html[data-mode="wf"] .icon.sun { background: #e6e6e6; color: #333; }
html[data-mode="wf"] .ph { background: repeating-linear-gradient(135deg, #e4e4e4 0 14px, #f1f1f1 14px 28px); }
html[data-mode="wf"] [data-wf] { outline: 1.5px dashed #9a9a9a; outline-offset: -8px; }
html[data-mode="wf"] [data-wf]::before { content: attr(data-wf); position: absolute; top: 14px; left: 14px; z-index: 5; background: #111; color: #fff; font: 600 12px/1 system-ui, sans-serif; padding: 7px 10px; border-radius: 6px; letter-spacing: .02em; }
html[data-mode="wf"] [data-chars]::after { content: " ≈ " attr(data-chars) " Zeichen"; font: 600 11px system-ui, sans-serif; background: #111; color: #fff; padding: 2px 7px; border-radius: 5px; margin-left: 8px; white-space: nowrap; vertical-align: middle; letter-spacing: 0; text-transform: none; font-style: normal; }
html:not([data-mode="wf"]) .wf-only { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .proto-bar, .site-header { display: none; } }
