/* ================================================================
   mein-pcos.at — Gemeinsames Design-System
   Alle Seiten laden diese Datei.
   ================================================================ */

/* --- Variablen & Reset --------------------------------------- */
:root {
  --sage:         #E36B9B;
  --sage-600:     #C34275;
  --sage-light:   #F3B3CD;
  --sage-xlight:  #FDF3F7;
  --cream:        #FBF6F8;
  --sand:         #F3DFE5;
  --terra:        #B57DAB;
  --terra-700:    #915987;
  --terra-light:  #F5E6F2;
  --brown:        #403539;
  --brown-mid:    #6C5F65;
  --brown-light:  #A4979D;
  --white:        #FFFFFF;
  --footer-bg:    #3F2536;

  --font-serif:   'Lora', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  --r-sm:  0.5rem;
  --r-md:  1rem;
  --r-lg:  1.5rem;
  --r-xl:  2rem;

  --shadow-soft: 0 2px 20px rgba(61,53,51,.08);
  --shadow-card: 0 4px 32px rgba(61,53,51,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--brown);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: var(--r-sm); }

/* --- Utility ------------------------------------------------- */
.container   { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm{ max-width: 780px;  margin: 0 auto; padding: 0 1.25rem; }
section      { padding: 4rem 0; }
@media(min-width:768px){ section { padding: 6rem 0; } }

/* Screen-reader only */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

/* --- Typografie ---------------------------------------------- */
h1,h2,h3,h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--brown); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h4 { font-size: 1.05rem; }
p  { line-height: 1.8; }

/* --- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: var(--r-md);
  font-family: var(--font-sans); font-weight: 600; font-size: .9rem;
  cursor: pointer; border: none; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary  { background: var(--sage);  color: var(--white); box-shadow: var(--shadow-soft); }
.btn-primary:hover  { background: var(--sage-600); box-shadow: var(--shadow-card); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--brown); border: 1.5px solid var(--sand); }
.btn-secondary:hover { border-color: var(--sage-light); background: var(--sage-xlight); }
.btn-terra    { background: var(--terra); color: var(--white); box-shadow: var(--shadow-soft); }
.btn-terra:hover    { background: var(--terra-700); box-shadow: var(--shadow-card); color: var(--white); }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* --- Badge --------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .75rem; border-radius: 99px;
  font-size: .8rem; font-weight: 600;
  background: var(--sage-xlight); color: var(--sage);
  border: 1px solid var(--sage-light);
}
.badge-terra { background: var(--terra-light); color: var(--terra); border-color: #e8b090; }

/* --- Cards --------------------------------------------------- */
.card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 1.75rem; box-shadow: var(--shadow-soft);
  border: 1px solid #eee8e0; transition: box-shadow .3s;
}
.card:hover { box-shadow: var(--shadow-card); }
.card-sage  { background: var(--sage-xlight); border-radius: var(--r-lg); padding: 1.75rem; border: 1px solid var(--sage-light); }

/* --- Header -------------------------------------------------- */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,245,239,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
#site-header.scrolled { border-color: var(--sand); box-shadow: var(--shadow-soft); }

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 80px; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-serif); font-size: 1.2rem;
  font-weight: 700; color: var(--brown);
  text-decoration: none; flex-shrink: 0;
}
.logo img { height: 56px; width: auto; max-width: 160px; object-fit: contain; }
.logo-fallback {
  width: 52px; height: 52px; background: var(--sage);
  border-radius: .6rem; display: flex; align-items: center;
  justify-content: center; color: white; font-size: 1.5rem;
  flex-shrink: 0;
}
.logo-text span { color: var(--sage); }

nav.main-nav { display: flex; gap: .25rem; align-items: center; }
nav.main-nav a {
  padding: .4rem .8rem; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 500; color: var(--brown-mid);
}
nav.main-nav a:hover { color: var(--brown); background: var(--sage-xlight); }
nav.main-nav a.active { color: var(--sage); font-weight: 600; }
/* --- Nav: Trennstrich + Seitenlinks (terra) ---------------------- */
.nav-divider {
  display: inline-block; width: 1px; height: 1rem;
  background: var(--sand); margin: 0 .15rem; align-self: center;
}
nav.main-nav .nav-page-link { color: var(--terra); font-weight: 600; }
nav.main-nav .nav-page-link:hover { color: var(--terra-700); background: var(--terra-light); }
nav.main-nav .nav-page-link.active { color: var(--terra-700); }
.mobile-nav .nav-page-link { color: var(--terra); font-weight: 600; }


.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: .25rem; color: var(--brown);
}
.mobile-nav {
  display: none; flex-direction: column; gap: .25rem;
  padding: .75rem 1.25rem 1rem;
  border-top: 1px solid var(--sand);
  background: rgba(249,245,239,.98);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: .65rem .75rem; border-radius: var(--r-sm);
  font-weight: 500; color: var(--brown-mid);
}
.mobile-nav a:hover { background: var(--sage-xlight); color: var(--brown); }
.mobile-nav .nav-cta-mobile {
  margin-top: .5rem; background: var(--sage); color: white;
  text-align: center; border-radius: var(--r-md);
  padding: .65rem; font-weight: 600;
}

@media(max-width:700px) {
  nav.main-nav { display: none; }
  .hamburger   { display: block; }
  .nav-cta     { display: none; }
}

/* --- Section Header ------------------------------------------ */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .badge { margin-bottom: .75rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--brown-light); max-width: 520px; margin: 0 auto; }

/* --- Ad Placeholders ----------------------------------------- */
.ad-banner {
  background: var(--white);
  border: 1.5px dashed var(--sand);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--brown-light); font-size: .8rem; text-align: center;
}
.ad-horizontal { width: 100%; height: 90px; margin: 1.5rem 0; }
.ad-rectangle  { width: 100%; min-height: 250px; max-width: 360px; margin: 0 auto; }

/* --- Affiliate ----------------------------------------------- */
.affiliate-link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.25rem; background: var(--terra);
  color: white; border-radius: var(--r-md);
  font-size: .875rem; font-weight: 600; transition: all .2s;
}
.affiliate-link:hover { background: var(--terra-700); color: white; }
.affiliate-disclaimer { font-size: .75rem; color: var(--brown-light); font-style: italic; margin-top: .5rem; }
.affiliate-legal {
  margin-top: 1.5rem; padding: 1rem 1.25rem;
  background: var(--sand); border-radius: var(--r-md);
  font-size: .8rem; color: var(--brown-mid);
}

/* --- Newsletter ---------------------------------------------- */
.newsletter-section { background: var(--sage); padding: 4rem 0; }
.newsletter-inner   { text-align: center; max-width: 520px; margin: 0 auto; }
.newsletter-inner h2 { color: white; margin-bottom: .75rem; }
.newsletter-inner p  { color: rgba(255,255,255,.82); margin-bottom: 1.5rem; font-size: .95rem; }
.nl-form { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.nl-form input[type="email"] {
  flex: 1; min-width: 220px; padding: .75rem 1rem;
  border-radius: var(--r-md); border: none;
  background: rgba(255,255,255,.15); color: white;
  font-family: var(--font-sans); font-size: .9rem;
}
.nl-form input::placeholder { color: rgba(255,255,255,.6); }
.nl-form input:focus { outline: 2px solid white; }
.nl-legal { margin-top: .75rem; font-size: .75rem; color: rgba(255,255,255,.6); }
.nl-legal a { color: rgba(255,255,255,.8); text-decoration: underline; }

/* --- Disclaimer Bar ------------------------------------------ */
.disclaimer-bar {
  background: #f2ebe0; border-top: 1px solid var(--sand); padding: .75rem 0;
}
.disclaimer-inner { display: flex; gap: .75rem; align-items: flex-start; }
.disclaimer-inner .icon { font-size: 1rem; margin-top: .1rem; flex-shrink: 0; }
.disclaimer-inner p { font-size: .8rem; color: var(--brown-mid); }
.disclaimer-inner a { color: var(--sage); text-decoration: underline; }

/* --- Cookie Banner ------------------------------------------- */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; background: var(--white);
  border-top: 1px solid var(--sand);
  box-shadow: 0 -4px 30px rgba(61,53,51,.12);
  padding: 1.25rem; display: none;
}
#cookie-banner.visible { display: block; }
.cookie-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
}
.cookie-text { flex: 1; min-width: 250px; font-size: .85rem; color: var(--brown-mid); }
.cookie-text a { color: var(--sage); text-decoration: underline; }
.cookie-btns { display: flex; gap: .5rem; flex-wrap: wrap; }

/* --- Footer -------------------------------------------------- */
footer { background: var(--footer-bg); color: rgba(255,255,255,.7); padding: 2.5rem 0; }
.footer-inner {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 1.25rem;
}
.footer-logo .logo { color: white; }
.footer-logo .logo img { height: 44px; filter: brightness(0) invert(1); opacity: .85; }
.footer-logo .logo-text span { color: var(--sage-light); }
.footer-logo .logo-fallback { background: var(--sage-light); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: .85rem; }
.footer-links a:hover { color: var(--sage-light); }
.footer-bottom {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .8rem; text-align: center;
  color: rgba(255,255,255,.6);
}

/* --- Prose (Blog-Artikel) ------------------------------------ */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin: 2rem 0 .75rem; }
.prose h3 { margin: 1.5rem 0 .5rem; color: var(--sage-600); }
.prose p  { margin-bottom: 1.1rem; color: var(--brown-mid); }
.prose ul, .prose ol { margin: .75rem 0 1.25rem 1.25rem; color: var(--brown-mid); }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--brown); }
.prose a  { color: var(--sage); text-decoration: underline; }
.prose a:hover { color: var(--sage-600); }
.prose blockquote {
  border-left: 3px solid var(--sage-light);
  padding: .75rem 1.25rem; margin: 1.5rem 0;
  background: var(--sage-xlight); border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--brown-mid); font-style: italic;
}
.prose .disclaimer-box {
  background: var(--terra-light); border-left: 3px solid var(--terra);
  padding: .85rem 1.25rem; border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 1.5rem 0; font-size: .875rem; color: var(--brown-mid);
}

/* --- Page Hero (für Unterseiten) ----------------------------- */
.page-hero {
  background: linear-gradient(150deg, var(--cream) 0%, var(--sand) 45%, var(--sage-xlight) 100%);
  padding: 4rem 0 3rem;
}
.page-hero .badge { margin-bottom: 1rem; }
.page-hero p { color: var(--brown-mid); max-width: 620px; margin-top: .75rem; font-size: 1.05rem; }

/* --- Blog-Karten -------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.blog-card { display: flex; flex-direction: column; text-decoration: none; }
.blog-card .card { flex: 1; display: flex; flex-direction: column; }
.blog-card:hover .card { box-shadow: var(--shadow-card); }
.blog-card h3 { transition: color .2s; margin-bottom: .4rem; }
.blog-card:hover h3 { color: var(--sage-600); }
.blog-card .excerpt { color: var(--brown-mid); font-size: .875rem; flex: 1; margin-bottom: 1rem; }
.blog-card .meta {
  display: flex; gap: .75rem; font-size: .78rem;
  color: var(--brown-light); padding-top: .75rem;
  border-top: 1px solid #eee8e0; align-items: center;
}
.blog-card .meta .read-more { margin-left: auto; color: var(--sage); font-weight: 600; }
.cat-tag {
  display: inline-block; padding: .2rem .65rem;
  border-radius: 99px; font-size: .75rem; font-weight: 600;
  background: var(--sage-xlight); color: var(--sage); margin-bottom: .65rem;
}

/* --- Category Filter ----------------------------------------- */
.cat-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.cat-btn {
  padding: .3rem .9rem; border-radius: 99px; border: 1.5px solid var(--sand);
  background: var(--white); color: var(--brown-mid); font-size: .82rem;
  font-family: var(--font-sans); font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.cat-btn:hover, .cat-btn.active { background: var(--sage); color: white; border-color: var(--sage); }

/* --- Legal Pages --------------------------------------------- */
.legal-content h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--sand); }
.legal-content h2:first-of-type { border-top: none; }
.legal-content h3 { font-size: 1.05rem; margin: 1.25rem 0 .4rem; color: var(--sage-600); }
.legal-content p  { color: var(--brown-mid); margin-bottom: .9rem; font-size: .9rem; }
.legal-content ul { color: var(--brown-mid); margin: .5rem 0 1rem 1.25rem; font-size: .9rem; }
.legal-content li { margin-bottom: .3rem; }
.legal-content a  { color: var(--sage); text-decoration: underline; }
.legal-box {
  background: var(--sage-xlight); border: 1px solid var(--sage-light);
  border-radius: var(--r-md); padding: 1.25rem; margin: 1rem 0;
  font-size: .875rem;
}

/* --- Image Replacements (Emojis) ----------------------------- */
.img-icon-large { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-soft); display: block; margin-bottom: 1rem; border: 2px solid var(--white); }
.img-icon-card { width: 64px; height: 64px; border-radius: var(--r-md); object-fit: cover; margin-bottom: 1rem; box-shadow: var(--shadow-soft); }
.img-sport { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.75rem; display: block; box-shadow: var(--shadow-soft); }
.img-snack { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.5rem; display: block; }
.img-benefit { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-bottom: 0.75rem; box-shadow: var(--shadow-soft); }
.img-recipe { width: 100%; height: 160px; border-radius: var(--r-md) var(--r-md) 0 0; object-fit: cover; display: block; margin: -1.5rem -1.5rem 1rem -1.5rem; width: calc(100% + 3rem); max-width: none; }
.img-card-banner { width: calc(100% + 3.5rem); max-width: none; margin: 0 -1.75rem 1.25rem -1.75rem; height: 160px; object-fit: cover; display: block; border-radius: var(--r-md) var(--r-md) 0 0; border-bottom: 1px solid var(--sand); }

/* --- Responsive ---------------------------------------------- */
@media(max-width:600px) {
  .hero-btns .btn { width: 100%; justify-content: center; }
  .nl-form { flex-direction: column; }
  .nl-form input[type="email"] { min-width: unset; width: 100%; }
  .nl-form .btn { width: 100%; justify-content: center; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* --- Klaro Cookie Consent — Branding --------------------------------- */
.klaro .cookie-notice, .klaro .cookie-modal .cm-modal {
  font-family: inherit;
  color: var(--brown);
}
.klaro .cookie-notice { background: var(--white); box-shadow: 0 -4px 24px rgba(64,53,57,.15); }
.klaro .cn-body, .klaro .cm-body { color: var(--brown-mid); }
.klaro .cookie-notice .cn-buttons .cn-learn-more,
.klaro .cookie-modal .cm-btn.cm-btn-info { color: var(--terra-700); }
.klaro .cm-btn.cm-btn-success,
.klaro .cookie-notice .cn-buttons .cn-ok {
  background: var(--sage) !important; border-color: var(--sage) !important; color: var(--white) !important; border-radius: var(--r-sm, 8px);
}
.klaro .cm-btn.cm-btn-success:hover,
.klaro .cookie-notice .cn-buttons .cn-ok:hover { background: var(--sage-600) !important; border-color: var(--sage-600) !important; }
.klaro .cm-btn.cm-btn-danger {
  background: var(--white) !important; color: var(--sage-600) !important; border: 1px solid var(--sage) !important;
}
.klaro .cookie-notice .cn-buttons .cn-ok.cn-decline {
  background: var(--white); color: var(--sage-600); border: 1px solid var(--sage);
}
.klaro .cookie-modal a, .klaro .cookie-notice a { color: var(--terra-700); }
.klaro input[type=checkbox]:checked + .slider,
.klaro .slider.round.active,
.klaro .slider .slider-knob { background: var(--sage) !important; }
.klaro .cm-modal { border-radius: var(--r-md, 12px); }
.klaro .cm-powered-by { display: none !important; }
