/* Studie Migräne und Biss-Störung, Dr. Masouleh Dieburg. CI nach brand/DESIGNGUIDE.md */
:root{
  --green:#3E5824; --green-dark:#2F4517; --orange:#FF6720; --orange-ink:#B8420B;
  --moss:#788A66; --sage:#9EAB91; --sage-light:#B2BCA7;
  --mist:#F3F6EF; --paper:#FBFCF9; --grey:#E9EBE7; --ink:#1F2A1A; --muted:#5F675A; --white:#fff; --red:#B23A3A; --ok:#2E7D32;
  --font-head:"Jost","Helvetica Neue",Arial,sans-serif; --font-body:"Source Sans 3","Source Sans Pro","Helvetica Neue",Arial,sans-serif;
  --radius:16px; --radius-s:10px; --wrap:1160px; --text:680px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font-body);font-size:18px;line-height:1.6;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--green-dark);text-decoration-color:var(--orange);text-underline-offset:3px}
h1,h2,h3{font-family:var(--font-head);font-weight:600;color:var(--green);letter-spacing:-.01em;line-height:1.15;margin:0 0 .5em;text-wrap:balance}
h1{font-size:34px;line-height:1.12}
h2{font-size:27px}
h3{font-size:21px;font-weight:500;margin-top:0}
p{margin:0 0 1em;max-width:var(--text)}
ul,ol{max-width:var(--text)}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.wrap.narrow{max-width:820px}
.eyebrow{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--orange-ink);margin:0 0 10px}
.intro{font-size:19px;color:var(--muted)}
.muted{color:var(--muted)}
.small{font-size:15px}
.section{padding:64px 0}
.section.alt{background:var(--mist)}
.section + .section:not(.alt){border-top:1px solid var(--grey)}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:56px;padding:14px 24px;background:var(--green);color:#fff;font-family:var(--font-body);font-weight:600;font-size:18px;border:2px solid var(--green);border-radius:var(--radius-s);text-decoration:none;cursor:pointer;transition:background .15s,transform .1s}
.btn:hover{background:var(--green-dark);border-color:var(--green-dark)}
.btn:active{transform:translateY(1px)}
.btn:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.btn-secondary{background:#fff;color:var(--green);border-color:var(--green)}
.btn-secondary:hover{background:var(--mist);color:var(--green-dark)}
.btn-small{min-height:44px;padding:8px 16px;font-size:16px}
.btn-note{display:block;font-size:15px;color:var(--muted);margin-top:8px}

/* Header */
.site-header{position:sticky;top:0;z-index:20;background:rgba(251,252,249,.94);backdrop-filter:blur(6px);border-bottom:1px solid var(--grey);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--green)}
.brand img{width:44px;height:auto}
.brand span{display:flex;flex-direction:column;line-height:1.15}
.brand strong{font-family:var(--font-head);font-weight:600;font-size:16px;letter-spacing:.06em;text-transform:uppercase}
.brand small{font-size:12px;color:var(--orange-ink)}
@media (max-width:520px){.brand small{display:none}.site-header .btn-small{padding:8px 12px;font-size:15px}}

/* Hero */
.hero{padding:40px 0 56px;background:linear-gradient(180deg,var(--mist) 0%,var(--paper) 100%)}
.hero-grid{display:grid;gap:28px}
.hero-facts{list-style:none;padding:0;margin:0 0 24px;display:grid;gap:10px}
.hero-facts li{padding-left:30px;position:relative;font-size:17px}
.hero-facts li::before{content:"";position:absolute;left:0;top:7px;width:18px;height:18px;border-radius:50%;background:var(--orange);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat}
.hero-photo{margin:0}
.hero-photo img{border-radius:var(--radius);aspect-ratio:16/10;object-fit:cover;object-position:35% 30%}
.hero-photo figcaption{font-size:15px;color:var(--muted);margin-top:8px}
@media (min-width:900px){
  .hero{padding:64px 0 80px}
  .hero-grid{grid-template-columns:1.1fr 1fr;align-items:center;gap:48px}
  h1{font-size:52px;line-height:1.08}
  h2{font-size:36px}
  h3{font-size:23px}
  .section{padding:104px 0}
  body{font-size:19px}
}

/* Cards / lists */
.two-col{display:grid;gap:20px}
@media (min-width:800px){.two-col{grid-template-columns:1fr 1fr}}
.card{background:#fff;border:1px solid var(--grey);border-radius:var(--radius);padding:24px}
.section.alt .card{background:#fff}
.card-yes{border-top:4px solid var(--green)}
.card-no{border-top:4px solid var(--sage)}
ul.check,ul.cross{list-style:none;padding:0;margin:0 0 12px;display:grid;gap:10px}
ul.check li,ul.cross li{padding-left:30px;position:relative}
ul.check li::before,ul.cross li::before{content:"";position:absolute;left:0;top:6px;width:18px;height:18px;border-radius:50%}
ul.check li::before{background:var(--green);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat}
ul.cross li::before{background:var(--sage);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4l5.6 5.6L5 17.6 6.4 19l5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6z'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4l5.6 5.6L5 17.6 6.4 19l5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6z'/%3E%3C/svg%3E") center/contain no-repeat}

/* Quotes */
.quotes{display:grid;gap:18px;margin:24px 0 16px}
@media (min-width:900px){.quotes{grid-template-columns:repeat(3,1fr)}}
.quotes blockquote{margin:0;background:#fff;border:1px solid var(--grey);border-left:4px solid var(--orange);border-radius:var(--radius);padding:22px}
.quotes blockquote p{font-size:17px;margin:0 0 12px}
.quotes footer{font-size:15px;color:var(--muted)}
.disclaimer{font-size:15px;color:var(--muted)}
.doctor-quote{margin:32px 0 0;padding:0 0 0 20px;border-left:4px solid var(--orange);max-width:var(--text)}
.doctor-quote p{font-family:var(--font-head);font-size:22px;font-weight:500;color:var(--green);margin:0 0 6px}
.doctor-quote footer{color:var(--muted);font-size:16px}
.note{background:var(--mist);border-radius:var(--radius);padding:20px 22px;margin-top:8px;max-width:var(--text)}
.note p{margin:0}

/* Scrolly */
.scrolly{display:grid;gap:24px;margin-top:24px;margin-bottom:24px}
.scrolly-figure{position:sticky;top:64px;z-index:2}
.scrolly-stage{position:relative;aspect-ratio:16/9;border-radius:var(--radius);overflow:hidden;background:#F7F9F3;border:1px solid var(--grey)}
.scrolly-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;opacity:0;transition:opacity .6s ease}
.scrolly-img.is-active{opacity:1}
.scrolly-dots{position:absolute;left:14px;bottom:12px;display:flex;gap:6px}
.scrolly-dots i{width:8px;height:8px;border-radius:50%;background:var(--sage-light);transition:background .3s,transform .3s}
.scrolly-dots i.on{background:var(--orange);transform:scale(1.25)}
.scrolly-steps{display:grid;gap:16px}
.step{background:#fff;border:1px solid var(--grey);border-radius:var(--radius);padding:22px;transition:border-color .3s,box-shadow .3s;opacity:.55;transition:opacity .4s}
.step.is-active{opacity:1;border-color:var(--sage)}
.step-num{display:inline-block;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--orange-ink);margin-bottom:8px}
.step h3{margin-bottom:8px}
.step p{margin:0;max-width:none}
@media (max-width:899px){
  .scrolly-figure{top:60px}
  .scrolly-steps{padding-top:8px}
  .step{scroll-margin-top:calc(60px + 56vw)}
}
@media (min-width:900px){
  .scrolly{grid-template-columns:1.15fr 1fr;gap:40px;align-items:start}
  .scrolly-figure{top:96px}
  .scrolly-steps{gap:20vh;padding:20vh 0 30vh}
  .step{opacity:.4}
}
@media (prefers-reduced-motion:reduce){
  .scrolly-img{transition:none}.step{opacity:1;transition:none}
}

/* Split */
.split{display:grid;gap:28px;align-items:center}
.split-figure{margin:0}
.split-figure img{border-radius:var(--radius)}
.split-figure figcaption{font-size:15px;color:var(--muted);margin-top:10px}
.split-tight{margin-top:40px}
.photos{display:grid;gap:14px;grid-template-columns:2fr 1fr;align-items:end}
@media (min-width:900px){.split{grid-template-columns:1fr 1fr;gap:56px}.split.split-tight{grid-template-columns:1fr 1fr}}

/* Timeline */
.timeline{list-style:none;padding:0;margin:24px 0 0;counter-reset:s;display:grid;gap:18px;max-width:760px}
.timeline li{position:relative;padding-left:56px;counter-increment:s}
.timeline li::before{content:counter(s);position:absolute;left:0;top:0;width:40px;height:40px;border-radius:50%;background:var(--green);color:#fff;font-family:var(--font-head);font-weight:600;display:flex;align-items:center;justify-content:center}
.timeline li::after{content:"";position:absolute;left:19px;top:44px;bottom:-18px;width:2px;background:var(--grey)}
.timeline li:last-child::after{display:none}
.timeline strong{display:block;font-family:var(--font-head);font-weight:500;font-size:20px;color:var(--green);margin-bottom:4px}
.timeline span{display:block;color:var(--ink)}

/* Studies */
.studies{display:grid;gap:16px;margin:24px 0}
@media (min-width:800px){.studies{grid-template-columns:1fr 1fr}}
.study{background:#fff;border:1px solid var(--grey);border-radius:var(--radius);padding:20px}
.study strong{font-family:var(--font-head);font-weight:500;color:var(--green)}
.study p{margin:6px 0;max-width:none;font-size:17px}
.study small{color:var(--muted)}

/* Drive table */
table.drive{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--grey);border-radius:var(--radius);overflow:hidden;font-variant-numeric:tabular-nums}
table.drive th,table.drive td{text-align:left;padding:12px 16px;border-bottom:1px solid var(--grey)}
table.drive th{background:var(--mist);font-family:var(--font-head);font-weight:500;color:var(--green)}
table.drive tr.is-region td{background:#FFF1E8;font-weight:600}

/* FAQ */
.faq{display:grid;gap:10px;margin-top:20px}
.faq details{background:#fff;border:1px solid var(--grey);border-radius:var(--radius-s);padding:0 20px}
.faq summary{cursor:pointer;padding:16px 0;font-family:var(--font-head);font-weight:500;font-size:19px;color:var(--green);list-style:none;display:flex;justify-content:space-between;gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--orange);font-size:24px;line-height:1;flex:none}
.faq details[open] summary::after{content:"–"}
.faq details p{margin:0 0 16px;max-width:none}

/* Form */
.apply{background:var(--mist)}
.form{background:#fff;border:1px solid var(--grey);border-radius:var(--radius);padding:24px;margin-top:20px}
.progress{height:6px;background:var(--sage-light);border-radius:3px;overflow:hidden}
.progress span{display:block;height:100%;width:20%;background:var(--orange);transition:width .3s}
.step-label{font-size:14px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:10px 0 18px}
fieldset{border:0;padding:0;margin:0}
.fstep{display:none}
.fstep.is-active{display:block}
legend{font-family:var(--font-head);font-weight:500;font-size:21px;color:var(--green);margin-bottom:12px;padding:0}
.legend2{margin-top:26px}
.options{display:grid;gap:8px}
.options label{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--grey);border-radius:var(--radius-s);cursor:pointer;background:var(--paper)}
.options label:has(input:checked){border-color:var(--green);background:#EEF3E6}
.options label:has(input:focus-visible){outline:3px solid var(--orange);outline-offset:2px}
.options input{width:20px;height:20px;accent-color:var(--green);margin:0;flex:none}
@media (min-width:640px){.options-multi{grid-template-columns:1fr 1fr}}
.fields{display:grid;gap:14px}
@media (min-width:640px){.fields{grid-template-columns:1fr 1fr}.field.wide{grid-column:1/-1}}
.field span{display:block;font-size:15px;font-weight:600;color:var(--muted);margin-bottom:4px}
.field input{width:100%;font:inherit;padding:12px 14px;border:1px solid var(--sage);border-radius:var(--radius-s);background:#fff;color:var(--ink)}
.field input:focus-visible{outline:3px solid var(--orange);outline-offset:1px;border-color:var(--green)}
.field input.invalid{border-color:var(--red)}
.consent{display:flex;gap:12px;align-items:flex-start;margin-top:24px;font-size:16px;line-height:1.5}
.consent input{width:22px;height:22px;flex:none;margin-top:3px;accent-color:var(--green)}
.hp{position:absolute;left:-9999px;opacity:0;height:0;width:0}
.form-error{color:var(--red);font-weight:600;margin:16px 0 0}
.form-nav{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.form-nav .btn{flex:1 1 160px}
.result{background:#fff;border:1px solid var(--grey);border-left:6px solid var(--ok);border-radius:var(--radius);padding:28px;margin-top:20px}
.result h3{margin-bottom:12px}
.result .btn{margin:8px 0 12px}

/* Footer */
.site-footer{background:var(--green-dark);color:#DCE5D0;padding:40px 0 100px;font-size:16px}
.site-footer a{color:#fff}
.footer-grid{display:grid;gap:24px}
@media (min-width:800px){.footer-grid{grid-template-columns:1fr 1fr}.site-footer{padding-bottom:48px}}
.site-footer .small{color:#B7C4A8;margin-top:14px}

/* Mobile bar */
.mobile-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(251,252,249,.96);border-top:1px solid var(--grey);transform:translateY(110%);transition:transform .3s}
.mobile-bar .btn{width:100%}
.mobile-bar.is-visible{transform:none}
@media (min-width:800px){.mobile-bar{display:none}}

/* Consent */
.consent-box,.consent#consent{position:fixed;z-index:40;left:12px;right:12px;bottom:80px;background:#fff;border:1px solid var(--grey);border-radius:var(--radius);padding:16px;box-shadow:0 8px 30px rgba(31,42,26,.15);display:block;margin:0}
.consent#consent p{font-size:15px;margin:0 0 12px;max-width:none}
.consent#consent div{display:flex;gap:10px;flex-wrap:wrap}
@media (min-width:800px){.consent#consent{left:auto;right:24px;bottom:24px;max-width:440px}}

/* Reveal */
.js .reveal{opacity:0;transform:translateY(6px);transition:opacity .4s,transform .4s}
.js .reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.js .reveal{opacity:1;transform:none;transition:none}}

/* Legal pages */
.legal{padding:40px 0 80px}
.legal h1{font-size:30px}
.legal h2{font-size:22px;margin-top:32px}

#consent[hidden],.mobile-bar[hidden]{display:none}
