/* ============================================================
   Naturheilkunde-Portal – Stylesheet
   Farben: Waldgrün, Creme, Gold – seriös & naturnah
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #1E3D2A;
  --green-mid:    #2F6044;
  --green-light:  #4A8C62;
  --gold:         #B8972C;
  --gold-light:   #D4B44A;
  --cream:        #F7F3EC;
  --cream-dark:   #EDE7DB;
  --white:        #FFFFFF;
  --text-dark:    #1A1A1A;
  --text-mid:     #3D3D3D;
  --text-light:   #666666;
  --border:       #D4CFC7;
  --ad-bg:        #F0EDE6;
  --ad-border:    #C8C0B0;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.10);
  --shadow-md:    0 4px 12px rgba(0,0,0,.12);
  --shadow-lg:    0 8px 24px rgba(0,0,0,.14);
  --radius:       6px;
  --font-serif:   Georgia, 'Times New Roman', serif;
  --font-sans:    'Segoe UI', Arial, Helvetica, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.65;
}

a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--green-dark);
  line-height: 1.3;
}

/* --- Cookie Banner ----------------------------------------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--green-dark);
  color: var(--white);
  padding: 1.2rem 2rem;
  z-index: 9999;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
}
#cookie-banner p { flex: 1; font-size: .9rem; min-width: 200px; }
#cookie-banner a { color: var(--gold-light); }
.cookie-btn {
  padding: .55rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.cookie-btn-accept { background: var(--gold); color: var(--white); font-weight: 700; }
.cookie-btn-accept:hover { background: var(--gold-light); }
.cookie-btn-decline { background: transparent; color: var(--cream); border: 1px solid var(--cream-dark); }
.cookie-btn-decline:hover { background: rgba(255,255,255,.1); }

/* --- Header ------------------------------------------------- */
#site-header {
  background: var(--green-dark);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: .7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.logo-icon {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.logo-text { line-height: 1.15; }
.logo-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: .02em;
}
.logo-subtitle {
  font-size: .72rem;
  color: var(--gold-light);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Main Nav – only target the top-level <ul>, NOT nested dropdown <ul> */
#main-nav > ul {
  list-style: none;
  display: flex;
  gap: .15rem;
  flex-wrap: wrap;
}
#main-nav ul { list-style: none; }
#main-nav li { position: relative; }
#main-nav > ul > li > a {
  display: block;
  padding: .5rem .75rem;
  color: var(--cream);
  font-size: .85rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
#main-nav > ul > li > a:hover,
#main-nav > ul > li > a.active {
  background: var(--green-mid);
  color: var(--gold-light);
  text-decoration: none;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  min-width: 240px;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 200;
}
.dropdown-menu a {
  display: block;
  padding: .55rem 1rem;
  font-size: .85rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--cream-dark);
}
.dropdown-menu a:hover { background: var(--cream); color: var(--green-dark); text-decoration: none; }
/* Dropdowns are shown/hidden exclusively via JavaScript (.dropdown-open class) */
#main-nav li.dropdown-open > .dropdown-menu { display: block; }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--cream); margin: 5px 0; border-radius: 2px;
  transition: .3s;
}

/* --- Hero --------------------------------------------------- */
#hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
#hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
}
#hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.disclaimer-hero {
  display: inline-block;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: .6rem 1.2rem;
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
}

/* --- Layout ------------------------------------------------- */
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

/* --- Section Titles ---------------------------------------- */
.section-title {
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-icon { font-size: 1.3rem; }

/* --- Category Cards ---------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  background: var(--green-dark);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.card-icon { font-size: 1.6rem; }
.card-header h3 {
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-serif);
}
.card-header .card-num {
  margin-left: auto;
  font-size: .75rem;
  color: var(--gold-light);
  font-family: var(--font-sans);
}

.card-body { padding: 1.1rem 1.25rem; flex: 1; }
.card-body p {
  font-size: .88rem;
  color: var(--text-mid);
  margin-bottom: .75rem;
  line-height: 1.55;
}

.card-topics { list-style: none; margin-bottom: 1rem; }
.card-topics li {
  font-size: .83rem;
  color: var(--text-light);
  padding: .2rem 0;
  padding-left: 1rem;
  position: relative;
  border-bottom: 1px dotted var(--cream-dark);
}
.card-topics li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--green-light);
  font-size: .75rem;
}
.card-topics li:last-child { border-bottom: none; }

.card-footer {
  padding: .8rem 1.25rem;
  border-top: 1px solid var(--cream-dark);
  background: var(--cream);
}
.btn-card {
  display: inline-block;
  font-size: .82rem;
  color: var(--green-mid);
  font-weight: 600;
  text-decoration: none;
}
.btn-card:hover { color: var(--gold); text-decoration: none; }
.btn-card::after { content: ' →'; }

/* --- Disclaimer Box ---------------------------------------- */
.disclaimer-box {
  background: #FFF8E7;
  border: 1px solid #D4B44A;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: .85rem;
  color: var(--text-mid);
}
.disclaimer-box strong { color: var(--green-dark); }

/* --- Sidebar ----------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* Ad Slot */
.ad-slot {
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.ad-slot .ad-label {
  font-size: .68rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
  display: block;
}
.ad-placeholder {
  background: var(--cream-dark);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .8rem;
}
.ad-leaderboard { width: 300px; height: 250px; } /* Medium Rectangle */
.ad-skyscraper  { width: 300px; height: 600px; } /* Half Page Ad */
.ad-small       { width: 300px; height: 100px; }

/* Sidebar Widget */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  background: var(--green-dark);
  color: var(--white);
  padding: .65rem 1rem;
  font-size: .88rem;
  font-family: var(--font-serif);
  font-weight: 700;
}
.widget-body { padding: .9rem 1rem; }
.widget-nav-list { list-style: none; }
.widget-nav-list li { border-bottom: 1px solid var(--cream-dark); }
.widget-nav-list li:last-child { border-bottom: none; }
.widget-nav-list a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 0;
  font-size: .83rem;
  color: var(--text-mid);
}
.widget-nav-list a:hover { color: var(--green-dark); text-decoration: none; }
.widget-nav-list .wn-icon { font-size: 1rem; }

/* Search Widget */
.search-widget { display: flex; gap: .5rem; }
.search-widget input {
  flex: 1;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  font-family: var(--font-sans);
  background: var(--cream);
}
.search-widget input:focus { outline: 2px solid var(--green-light); }
.search-widget button {
  padding: .55rem .9rem;
  background: var(--green-mid);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .85rem;
}
.search-widget button:hover { background: var(--green-dark); }

/* Newsletter Widget */
.newsletter-form { display: flex; flex-direction: column; gap: .6rem; }
.newsletter-form input {
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  font-family: var(--font-sans);
}
.newsletter-form input:focus { outline: 2px solid var(--green-light); }
.btn-primary {
  padding: .6rem 1rem;
  background: var(--green-mid);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: background .2s;
}
.btn-primary:hover { background: var(--green-dark); }
.newsletter-form p {
  font-size: .74rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* --- Ad Banner (top/below hero) ---------------------------- */
.ad-banner-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  justify-content: center;
}
.ad-banner-leaderboard {
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 970px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--text-light);
  font-size: .8rem;
}
.ad-banner-leaderboard .ad-label { font-size: .68rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .1em; }

/* --- Topic Page -------------------------------------------- */
.topic-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  padding: 2.5rem 1.5rem;
}
.topic-hero-inner { max-width: 1280px; margin: 0 auto; }
.topic-breadcrumb {
  font-size: .8rem;
  color: var(--gold-light);
  margin-bottom: .6rem;
}
.topic-breadcrumb a { color: var(--gold-light); }
.topic-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--white); margin-bottom: .5rem; }
.topic-hero p { color: rgba(255,255,255,.8); max-width: 680px; }

.topic-intro {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.topic-intro h2 { font-size: 1.25rem; margin-bottom: .75rem; }
.topic-intro p { font-size: .92rem; color: var(--text-mid); margin-bottom: .75rem; }

.content-placeholder {
  background: var(--cream);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: .88rem;
  margin-bottom: 1.5rem;
}
.content-placeholder .ph-icon { font-size: 2rem; margin-bottom: .5rem; }
.content-placeholder strong { display: block; color: var(--text-mid); margin-bottom: .25rem; }

.subtopic-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.subtopic-header {
  background: var(--green-dark);
  padding: .8rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
}
.subtopic-header h3 { color: var(--white); font-size: 1rem; }
.subtopic-header .expand-icon { margin-left: auto; color: var(--gold-light); font-size: .9rem; }
.subtopic-body { padding: 1.25rem; }
.subtopic-body p { font-size: .9rem; color: var(--text-mid); margin-bottom: .75rem; }

/* --- Footer ------------------------------------------------- */
#site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  margin-top: 3rem;
  border-top: 3px solid var(--gold);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-col h4 {
  color: var(--gold-light);
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .9rem;
  font-family: var(--font-sans);
}
.footer-col p { font-size: .83rem; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul a { font-size: .83rem; color: rgba(255,255,255,.65); }
.footer-col ul a:hover { color: var(--gold-light); text-decoration: none; }

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}

.footer-bottom {
  background: rgba(0,0,0,.2);
  padding: .8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: .5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { color: rgba(255,255,255,.45); font-size: .78rem; }
.footer-bottom-links a:hover { color: var(--gold-light); text-decoration: none; }

/* --- Impressum / Datenschutz pages ------------------------- */
.legal-page { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem; }
.legal-page h1 { font-size: 1.9rem; margin-bottom: .5rem; }
.legal-page .last-updated { font-size: .82rem; color: var(--text-light); margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.2rem; margin: 1.75rem 0 .6rem; padding-bottom: .4rem; border-bottom: 1px solid var(--border); }
.legal-page h3 { font-size: 1rem; margin: 1.1rem 0 .4rem; color: var(--green-mid); }
.legal-page p, .legal-page li { font-size: .9rem; color: var(--text-mid); line-height: 1.7; margin-bottom: .6rem; }
.legal-page ul { padding-left: 1.5rem; margin-bottom: .8rem; }
.legal-page a { color: var(--green-mid); }

/* --- Responsive -------------------------------------------- */
@media (max-width: 1024px) {
  .page-wrap { grid-template-columns: 1fr 260px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  #main-nav { display: none; width: 100%; order: 3; }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; }
  .dropdown-menu { position: static; display: none; box-shadow: none; border: none; border-left: 3px solid var(--gold); }
  #main-nav li.dropdown-open > .dropdown-menu { display: block; }
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  #hero { padding: 2.5rem 1rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Utility ----------------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
