@import url('/custom/assets/fonts/fonts.css');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --c-primary:       #334330;
  --c-primary-deep:  #243023;
  --c-primary-soft:  #4a5f46;
  --c-secondary:     #f89700;
  --c-secondary-dk:  #d97f00;
  --c-secondary-ink: #a85d00;   /* orange, dunkel genug für Text auf Creme */

  --c-bg:            #fbf6ec;   /* warmes Creme — Logo-Schrift "gesund" sitzt auf dem dunklen Header */
  --c-surface:       #ffffff;
  --c-sand:          #f2e9d6;
  --c-text:          #26301f;
  --c-text-muted:    #66705f;
  --c-border:        #e7dfca;

  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 1px 2px rgba(36, 48, 35, .06), 0 8px 24px -12px rgba(36, 48, 35, .22);
  --shadow-lg: 0 2px 4px rgba(36, 48, 35, .08), 0 18px 40px -14px rgba(36, 48, 35, .32);

  --header-h: 76px;
  --logo-h:   50px;
}

/* ============================================================
   BASIS
   ============================================================ */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--c-secondary-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--c-primary); }

:focus-visible { outline: 3px solid var(--c-secondary); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 650;
  line-height: 1.18;
  color: var(--c-primary);
  letter-spacing: -.01em;
  font-variation-settings: 'opsz' 96;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--c-secondary); color: var(--c-primary-deep);
  padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 1rem; color: var(--c-primary-deep); }

.page-canvas { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1 0 auto; }

/* ============================================================
   HEADER / MENÜ
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background-color: var(--c-primary);
  border-bottom: 3px solid var(--c-secondary);
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .45);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: var(--header-h);
}

.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { display: block; height: var(--logo-h); width: auto; }

.site-nav__list {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
}

.site-nav__link {
  position: relative; display: block;
  padding: .55rem .95rem;
  color: #f4efe2; text-decoration: none;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.site-nav__link::after {
  content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .25rem;
  height: 2px; background: var(--c-secondary);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav__link:hover { color: #fff; }
.site-nav__link:hover::after,
.site-nav__link.active::after { transform: scaleX(1); }
.site-nav__link.active { color: #fff; }

.site-nav__cta { margin-left: .5rem; }
.site-nav__cta .site-nav__link {
  background: var(--c-secondary); color: var(--c-primary-deep);
  padding: .55rem 1.2rem;
}
.site-nav__cta .site-nav__link::after { display: none; }
.site-nav__cta .site-nav__link:hover { background: #ffad33; color: var(--c-primary-deep); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px;
  background: transparent; border: 2px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  :root { --header-h: 68px; --logo-h: 44px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--c-primary-deep);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, visibility .3s;
    box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .5);
  }
  .site-nav.is-open { max-height: 80vh; visibility: visible; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 1rem 1.25rem; }
  .site-nav__link { padding: .85rem 1rem; border-radius: var(--radius-sm); }
  .site-nav__link::after { display: none; }
  .site-nav__link.active { background: rgba(255, 255, 255, .08); box-shadow: inset 3px 0 0 var(--c-secondary); }
  .site-nav__cta { margin: .5rem 0 0; }
  .site-nav__cta .site-nav__link { text-align: center; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar { background: var(--c-sand); border-bottom: 1px solid var(--c-border); }
.breadcrumb-bar .breadcrumb {
  display: flex; flex-wrap: wrap; margin: 0; padding: .7rem 0;
  list-style: none; font-size: .9rem;
}
.breadcrumb-item + .breadcrumb-item { padding-left: .5rem; }
.breadcrumb-item + .breadcrumb-item::before {
  float: left; padding-right: .5rem; color: var(--c-text-muted);
  content: var(--bs-breadcrumb-divider, '›');
}
.breadcrumb-item a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--c-primary); text-decoration: underline; }
.breadcrumb-item.active { color: var(--c-primary); font-weight: 600; }

/* ============================================================
   STARTSEITE — HERO
   ============================================================ */
.home-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 380px at 88% -10%, rgba(248, 151, 0, .28), transparent 62%),
    radial-gradient(700px 420px at -5% 120%, rgba(255, 255, 255, .07), transparent 60%),
    var(--c-primary);
  color: #f4efe2;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
}
.home-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
  background: var(--c-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.home-hero__slogan {
  display: inline-block; margin: 0 0 1rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-secondary);
}
.home-hero__title {
  max-width: 18ch; margin: 0 0 1.25rem;
  font-size: clamp(2.3rem, 6vw, 4.2rem); color: #fff;
}
.home-hero__body { max-width: 56ch; font-size: 1.15rem; color: #e6e1d0; }
.home-hero__body p { margin: 0; }
.home-hero__cats {
  display: flex; flex-wrap: wrap; gap: .6rem;
  list-style: none; margin: 2rem 0 0; padding: 0;
}
.home-hero__cats a {
  display: inline-block; padding: .5rem 1.15rem;
  border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background-color .2s, border-color .2s, color .2s;
}
.home-hero__cats a:hover { background: var(--c-secondary); border-color: var(--c-secondary); color: var(--c-primary-deep); }

/* ============================================================
   CONTENT-BEREICH
   ============================================================ */
.page-content { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }

.page-intro { margin-bottom: 2.25rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--c-border); position: relative; }
.page-intro::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 72px; height: 2px; background: var(--c-secondary); }
.page-intro h1 { margin: 0 0 .6rem; font-size: clamp(2rem, 4.5vw, 3rem); }
.page-intro__text { max-width: 60ch; font-size: 1.15rem; color: var(--c-text-muted); }
.page-intro__text p { margin: 0; }

/* Kategorie-Sektionen (Startseite) */
.category-section { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.category-section__header {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem;
  margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--c-border);
}
.category-section__title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.category-section__title a { color: inherit; text-decoration: none; }
.category-section__title a:hover { color: var(--c-secondary-ink); }
.category-section__link { font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.category-section__link:hover { text-decoration: underline; }

/* ============================================================
   ARTIKEL-KARTEN
   ============================================================ */
.article-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--c-text);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-secondary); color: var(--c-text); }

.article-card__img-wrap { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-sand); }
.article-card--hero .article-card__img-wrap { aspect-ratio: 4 / 3; }
.article-card__img-wrap img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.article-card:hover .article-card__img-wrap img { transform: scale(1.05); }

.article-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.35rem; }
.article-card__cat {
  align-self: flex-start; margin-bottom: .6rem; padding: .15rem .65rem;
  background: rgba(248, 151, 0, .16); color: var(--c-secondary-ink);
  border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.article-card__title { margin: 0 0 .5rem; font-size: 1.28rem; transition: color .2s; }
.article-card:hover .article-card__title { color: var(--c-secondary-ink); }
.article-card--hero .article-card__title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.article-card--compact .article-card__title { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.article-card--compact .article-card__body { padding: .85rem 1rem 1rem; }
.article-card__excerpt {
  margin: 0; font-size: .97rem; color: var(--c-text-muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================
   ARTIKEL-DETAIL
   ============================================================ */
.article, .page-article {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.article-header { padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem) 1.25rem; }
.article-header__cat {
  display: inline-block; margin-bottom: .9rem; padding: .2rem .8rem;
  background: var(--c-primary); color: #fff; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
}
.article-header__cat:hover { background: var(--c-secondary); color: var(--c-primary-deep); }
.article-header h1 { margin: 0; font-size: clamp(1.9rem, 4.2vw, 3rem); }

.article-header__image { margin: 0; }
.article-header__image img { display: block; width: 100%; aspect-ratio: 97 / 50; object-fit: cover; }

.article-body, .page-body { padding: clamp(1.5rem, 4vw, 2.5rem); }
.page-article__title { margin: 0; padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem) 0; font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
.page-body { padding-top: 1.25rem; }

.article-body > :first-child { font-size: 1.2rem; color: var(--c-text); }
.article-body h2, .page-body h2 { margin: 2.2rem 0 .8rem; font-size: clamp(1.45rem, 2.8vw, 1.85rem); }
.article-body h3, .page-body h3 { margin: 1.8rem 0 .6rem; font-size: 1.3rem; }
.article-body p, .page-body p { margin: 0 0 1.2rem; }
.article-body ul, .article-body ol, .page-body ul, .page-body ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.article-body li, .page-body li { margin-bottom: .4rem; }
.article-body li::marker { color: var(--c-secondary); font-weight: 700; }
.article-body img, .page-body img { display: block; margin: 1.6rem auto; border-radius: var(--radius-sm); }
.article-body blockquote {
  margin: 1.8rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--c-secondary);
  background: var(--c-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; color: var(--c-primary);
}
.article-body table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .97rem; }
.article-body th, .article-body td { padding: .6rem .8rem; border: 1px solid var(--c-border); text-align: left; }
.article-body th { background: var(--c-sand); color: var(--c-primary); }
.article-body hr { margin: 2rem 0; border: 0; border-top: 2px solid var(--c-border); }
.article-body strong { color: var(--c-primary); }

.related-articles { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 2rem; border-top: 2px solid var(--c-border); }
.related-articles h2 { margin: 0 0 1.5rem; font-size: clamp(1.5rem, 3vw, 2rem); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: calc(var(--header-h) + 1.25rem); display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 992px) { .sidebar { margin-top: 0; } }

.fi-newsletter-cta {
  position: relative; overflow: hidden;
  padding: 1.6rem 1.4rem 1.5rem; border-radius: var(--radius);
  background:
    radial-gradient(220px 160px at 100% 0, rgba(248, 151, 0, .35), transparent 70%),
    var(--c-primary);
  color: #e9e4d4; box-shadow: var(--shadow);
}
.fi-newsletter-cta__badge {
  display: inline-block; margin-bottom: .8rem; padding: .15rem .7rem;
  background: var(--c-secondary); color: var(--c-primary-deep); border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.fi-newsletter-cta__title { margin: 0 0 .6rem; font-size: 1.45rem; color: #fff; }
.fi-newsletter-cta__text { margin: 0 0 1.2rem; font-size: .97rem; line-height: 1.55; }
.btn-newsletter {
  display: inline-block; padding: .65rem 1.3rem; border-radius: 999px;
  background: var(--c-secondary); color: var(--c-primary-deep);
  font-weight: 700; text-decoration: none; transition: background-color .2s, transform .2s;
}
.btn-newsletter:hover { background: #ffad33; color: var(--c-primary-deep); transform: translateX(3px); }

.sidebar-categories {
  padding: 1.4rem; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.sidebar-categories h4 { margin: 0 0 .8rem; font-size: 1.2rem; }
.sidebar-categories ul { margin: 0; padding: 0; list-style: none; }
.sidebar-categories li + li { border-top: 1px solid var(--c-border); }
.sidebar-categories a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .65rem 0; color: var(--c-text); font-weight: 600; text-decoration: none;
}
.sidebar-categories a::after { content: '→'; color: var(--c-secondary); transition: transform .2s; }
.sidebar-categories a:hover { color: var(--c-secondary-ink); }
.sidebar-categories a:hover::after { transform: translateX(4px); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.pagination.justify-content-center { justify-content: center; }
.page-link {
  display: block; min-width: 2.6rem; padding: .5rem .8rem; text-align: center;
  background: var(--c-surface); color: var(--c-primary); text-decoration: none; font-weight: 700;
  border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  transition: background-color .2s, border-color .2s, color .2s;
}
a.page-link:hover { background: var(--c-sand); border-color: var(--c-secondary); color: var(--c-primary); }
.page-item.active .page-link { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.page-item.disabled .page-link { opacity: .45; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  flex-shrink: 0; margin-top: auto;
  background: var(--c-primary); border-top: 4px solid var(--c-secondary);
  color: #d9d4c3; text-align: center;
  padding: clamp(2.25rem, 5vw, 3.25rem) 0 2.25rem;
}
.site-footer__logo { display: inline-block; margin-bottom: .75rem; }
.site-footer__logo img { display: block; height: var(--logo-h); width: auto; }
.site-footer__slogan { margin: 0 0 1.25rem; font-family: var(--font-heading); font-style: italic; font-size: 1.1rem; color: #f4efe2; }
.site-footer__copy { margin: 0 0 1rem; font-size: .92rem; color: #b9b5a4; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; }
.footer-nav a { color: #f4efe2; text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer-nav a:hover { color: var(--c-secondary); text-decoration: underline; }

/* ============================================================
   FORMULARE (Newsletter, Turnstile)
   ============================================================ */
.page-body iframe { max-width: 100%; border-radius: var(--radius-sm); }
.page-body input[type="text"], .page-body input[type="email"], .page-body textarea, .page-body select {
  width: 100%; padding: .7rem .9rem; font: inherit; color: var(--c-text);
  background: var(--c-bg); border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
}
.page-body input:focus, .page-body textarea:focus { border-color: var(--c-secondary); outline: none; box-shadow: 0 0 0 3px rgba(248, 151, 0, .25); }
.page-body button, .page-body input[type="submit"] {
  padding: .7rem 1.5rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--c-secondary); color: var(--c-primary-deep); font: inherit; font-weight: 700;
}
.page-body button:hover, .page-body input[type="submit"]:hover { background: #ffad33; }

/* ============================================================
   RESPONSIV
   ============================================================ */
@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .article-card--hero .article-card__img-wrap { aspect-ratio: 16 / 10; }
  .category-section__link { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
