/*
Theme Name: Aktiv nach 50
Theme URI: https://aktivnach50.de
Author: Patrick
Author URI: https://aktivnach50.de
Description: Modernes Blog-Theme für aktivnach50.de – aktiv leben ab 50. Sticky Header, Kategorie-Filter-Sidebar, Featured-Karussell, Magazin-Grid mit drei Kartengrößen, Werbe-Sidebar (IAB-Formate), SEO-Modul (Meta, Open Graph, JSON-LD), Customizer-Optionen für Farben, Karussell, Footer und Newsletter. Vollständig responsiv und übersetzungsbereit.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aktivnach50
Tags: blog, news, three-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, sticky-post
*/

/* =========================================================
   1. Design Tokens
   ========================================================= */
:root {
  /* Farben – abgeleitet aus dem Logo */
  --teal: #2AB3A6;
  --teal-deep: #0F766E;
  --teal-tint: #DFF3F0;
  --navy: #24405A;
  --navy-deep: #18324A;
  --orange: #F4A04C;
  --orange-deep: #E0663A;
  --orange-tint: #FCE9D4;
  --bg: #F4F8F8;
  --surface: #FFFFFF;
  --ink: #22394E;
  --ink-soft: #64798C;
  --line: #E2ECEC;
  /* Typografie */
  --font-head: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', -apple-system, 'Segoe UI', sans-serif;
  /* Geometrie */
  --radius: 20px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(24,50,74,.05), 0 6px 18px rgba(24,50,74,.07);
  --shadow-lg: 0 12px 34px rgba(24,50,74,.16);
  /* Abstände */
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 48px;
}

/* =========================================================
   2. Base / Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-deep); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--orange-deep); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--navy); line-height: 1.3; margin: 0 0 .5em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* Accessibility */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--surface); clip: auto !important; clip-path: none;
  color: var(--teal-deep); display: block; font-size: 14px; font-weight: 700;
  height: auto; left: 8px; top: 8px; line-height: normal; padding: 14px 22px;
  width: auto; z-index: 100000; border-radius: 12px; box-shadow: var(--shadow-lg);
}

/* =========================================================
   3. Sticky Header
   ========================================================= */
.an50-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.an50-header-inner {
  max-width: 1560px; margin: 0 auto;
  padding: 13px 28px;
  display: flex; align-items: center; gap: 22px;
}
.an50-logo, .custom-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.an50-logo img, .custom-logo-link img.custom-logo { height: 62px; width: auto; }
.an50-logo-text { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--navy); }
.an50-logo-text span { color: var(--teal); }

.an50-nav { flex: 1; min-width: 0; }
.an50-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.an50-menu a {
  display: inline-block; padding: 9px 15px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; color: var(--ink);
  transition: background .25s ease, color .25s ease;
}
.an50-menu a:hover,
.an50-menu .current-menu-item > a,
.an50-menu .current-menu-ancestor > a,
.an50-menu .current_page_item > a,
.an50-menu .current-cat > a,
.an50-menu .current-cat-ancestor > a {
  background: var(--teal-tint); color: var(--teal-deep); font-weight: 800;
}

/* Suchfeld (Pill) */
.an50-search-form {
  position: relative; display: flex; align-items: center;
  width: 236px; max-width: 100%;
}
.an50-search-form input[type="search"] {
  width: 100%;
  background: #EFF5F5; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px 10px 42px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  outline: none; transition: border-color .25s ease, box-shadow .25s ease;
}
.an50-search-form input[type="search"]:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42,179,166,.15);
}
.an50-search-form .an50-search-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  display: flex; pointer-events: none;
}
.an50-search-form .an50-search-submit {
  position: absolute; inset: 0; width: 100%;
  background: transparent; border: 0; opacity: 0; cursor: pointer;
  pointer-events: none;
}

/* Burger (nur mobil) */
.an50-burger {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  flex-shrink: 0; margin-left: auto;
}
.an50-burger span {
  display: block; width: 20px; height: 3px; border-radius: 2px;
  background: var(--navy); transition: transform .25s ease, opacity .25s ease;
}
.an50-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.an50-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.an50-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobiles Menü-Panel */
.an50-mobile-menu {
  display: none;
  flex-direction: column; gap: 14px;
  padding: 16px 28px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.98);
}
.an50-mobile-menu.is-open { display: flex; }
.an50-mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.an50-mobile-menu ul a {
  display: block; padding: 11px 15px; border-radius: 14px;
  font-weight: 700; font-size: 15.5px; color: var(--ink);
}
.an50-mobile-menu ul a:hover,
.an50-mobile-menu .current-menu-item > a { background: var(--teal-tint); color: var(--teal-deep); }
.an50-mobile-menu .an50-search-form { width: 100%; }

/* =========================================================
   4. Layout-Shells
   ========================================================= */
.an50-shell {
  max-width: 1560px; margin: 0 auto;
  padding: 26px 28px 56px;
}
.an50-shell--3col {
  display: grid;
  grid-template-columns: 240px minmax(0,1fr) 324px;
  gap: 26px;
  align-items: start;
}
.an50-shell--article {
  max-width: 1280px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 324px;
  gap: 32px;
  align-items: start;
}
.an50-shell--narrow { max-width: 900px; }
.an50-main, .an50-side-col, .an50-ads-col { min-width: 0; }

/* =========================================================
   5. Linke Sidebar – Meistgelesen + Newsletter
   ========================================================= */
.an50-side {
  position: sticky; top: 92px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding-right: 4px;
  display: flex; flex-direction: column; gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: #C9DAD9 transparent;
}
.an50-side::-webkit-scrollbar { width: 5px; }
.an50-side::-webkit-scrollbar-thumb { background: #C9DAD9; border-radius: 999px; }

/* Meistgelesen */
.an50-widget {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.an50-widget-title {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 16px;
}
.an50-popular-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 15px;
  counter-reset: none;
}
.an50-popular-item a {
  display: flex; align-items: flex-start; gap: 12px;
  color: inherit;
  transition: transform .25s ease;
}
.an50-popular-item a:hover { transform: translateX(3px); color: inherit; }
.an50-rank {
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  line-height: 1.2; flex-shrink: 0;
}
.an50-rank-1 { color: var(--teal); }
.an50-rank-2 { color: var(--orange); }
.an50-rank-3 { color: var(--teal-deep); }
.an50-rank-4 { color: var(--orange-deep); }
.an50-rank-5 { color: var(--navy); }
.an50-popular-title {
  font-size: 13.5px; font-weight: 700; line-height: 1.4;
  color: var(--ink);
}

/* Newsletter-Widget (Sidebar) */
.an50-side-newsletter {
  background: linear-gradient(150deg, var(--navy), var(--teal-deep));
  box-shadow: var(--shadow-sm);
}
.an50-side-newsletter-title {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: #fff; margin: 0 0 6px;
}
.an50-side-newsletter-text {
  font-size: 12.5px; line-height: 1.55;
  color: rgba(255,255,255,.8); margin: 0 0 14px;
}
.an50-side-newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.an50-side-newsletter-form input[type="email"] {
  width: 100%;
  background: rgba(255,255,255,.94);
  border: 0; border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  outline: none;
}
.an50-side-newsletter-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(42,179,166,.35);
}
.an50-side-newsletter-form button {
  width: 100%;
  background: var(--orange-deep); color: #fff; border: 0;
  border-radius: 999px; padding: 10px 18px;
  font-weight: 800; font-size: 13.5px;
  transition: background .25s ease;
}
.an50-side-newsletter-form button:hover { background: var(--orange); }
.an50-side-newsletter-hint { margin: 10px 0 0; font-size: 11.5px; }
.an50-side-newsletter-hint a { color: rgba(255,255,255,.85); }

/* =========================================================
   6. Sektions-Kopf (Akzentbalken + H2)
   ========================================================= */
.an50-section-head {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
}
.an50-section-head .an50-accent {
  width: 8px; height: 26px; border-radius: 4px;
  background: linear-gradient(180deg, var(--teal), var(--orange));
  flex-shrink: 0;
}
.an50-section-head h2 {
  font-weight: 700; font-size: 21px; color: var(--navy); margin: 0; flex: 1;
}
.an50-carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-top: 16px;
}

/* =========================================================
   7. Featured-Karussell
   ========================================================= */
.an50-carousel-wrap { position: relative; margin-bottom: 40px; }
.an50-parallax-circle {
  position: absolute; border-radius: 50%; filter: blur(58px);
  pointer-events: none; z-index: -1;
}
.an50-parallax-circle--teal {
  width: 320px; height: 320px; top: -70px; left: -90px;
  background: rgba(42,179,166,.16);
}
.an50-parallax-circle--orange {
  width: 300px; height: 300px; top: 40px; right: -70px;
  background: rgba(244,160,76,.16);
}
.an50-carousel { position: relative; z-index: 1; }
.an50-carousel-viewport {
  overflow: hidden; border-radius: var(--radius-lg);
}
.an50-carousel-track {
  display: flex;
  transition: transform .65s cubic-bezier(.22,.61,.36,1);
  transform: translateX(12%);
}
.an50-slide {
  position: relative;
  flex: 0 0 76%; margin-right: 2%;
  height: 380px;
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: flex-end;
  background: var(--navy);
}
.an50-slide img.an50-slide-img,
.an50-slide .an50-slide-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.an50-slide-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(140deg, #35586F, #7FA8A2);
}
.an50-slide-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,35,52,.8), transparent 68%);
}
.an50-slide-content {
  position: relative; padding: 26px 30px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.an50-slide-title {
  font-family: var(--font-head); font-weight: 600; font-size: 26px;
  color: #fff; line-height: 1.25; max-width: 620px; margin: 0;
}
.an50-slide-title a { color: #fff; }
.an50-slide-title a:hover { color: #fff; }
.an50-slide-date { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.8); }
.an50-slide-link { position: absolute; inset: 0; z-index: 2; }

.an50-carousel-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 0; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease;
}
.an50-carousel-arrow:hover { background: var(--teal-tint); }
.an50-carousel-dots {
  display: flex; justify-content: center; align-items: center; gap: 7px;
}
.an50-carousel-dots button {
  width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0;
  background: #C6DAD8;
  transition: width .35s ease, background .35s ease;
}
.an50-carousel-dots button.is-active { width: 26px; background: var(--teal); }

/* =========================================================
   8. Blog-Grid & Karten
   ========================================================= */
.an50-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 24px;
}
.an50-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}
.an50-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.an50-card-link {
  display: flex; flex-direction: column; height: 100%;
  color: inherit;
}
.an50-card-link:hover { color: inherit; }
.an50-card-thumb { flex-shrink: 0; overflow: hidden; background: #DCE9E8; }
.an50-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.an50-card-thumb .an50-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(140deg, #CFE4E1, #EFDCC8);
}
.an50-card-body {
  display: flex; flex-direction: column; gap: 8px;
  padding: 15px 18px 18px;
  min-height: 0;
}
.an50-card-meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: nowrap; flex-shrink: 0; min-width: 0;
}
.an50-chip {
  display: inline-block;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; padding: 4px 10px; border-radius: 999px;
  background: var(--teal-tint); color: var(--teal-deep);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.an50-date { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; flex-shrink: 0; }
.an50-card-title {
  font-weight: 600; font-size: 16.5px; line-height: 1.35;
  color: var(--navy); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0; /* Titel nie zusammenquetschen – notfalls fällt der Excerpt weg */
}
.an50-card-excerpt {
  font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Kartengrößen */
.an50-card.cardS { grid-row: span 2; }
.an50-card.cardS .an50-card-thumb { height: 150px; }
.an50-card.cardT { grid-row: span 3; }
.an50-card.cardT .an50-card-thumb { height: 290px; }
.an50-card.cardT .an50-card-excerpt { -webkit-line-clamp: 3; }
.an50-card.cardXL { grid-column: span 2; grid-row: span 4; }
.an50-card.cardXL .an50-card-thumb { height: 430px; }
.an50-card.cardXL .an50-card-title { font-size: 23px; line-height: 1.3; }

/* Load More & Pagination */
.an50-loadmore-wrap { display: flex; justify-content: center; margin-top: 34px; }
.an50-loadmore {
  background: transparent;
  border: 2px solid var(--teal); border-radius: 999px;
  color: var(--teal-deep); font-weight: 800; font-size: 15px;
  padding: 13px 30px;
  transition: background .25s ease, color .25s ease;
}
.an50-loadmore:hover { background: var(--teal); color: #fff; }
.an50-loadmore[disabled] { opacity: .55; cursor: wait; }

.an50-pagination { margin-top: 34px; }
.an50-pagination .nav-links {
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
}
.an50-pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 8px;
  border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: 14.5px;
  transition: background .25s ease, color .25s ease;
}
.an50-pagination .page-numbers:hover { background: var(--teal-tint); color: var(--teal-deep); }
.an50-pagination .page-numbers.current { background: var(--teal); border-color: var(--teal); color: #fff; }
.an50-pagination .page-numbers.dots { border: 0; background: transparent; }

/* =========================================================
   9. Rechte Sidebar – Werbung
   ========================================================= */
.an50-ads {
  position: sticky; top: 92px;
  display: flex; flex-direction: column; gap: 18px;
}
.an50-ads-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft);
}
.an50-ad-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 11px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px;
  align-items: center;
}
.an50-ad-card img, .an50-ad-card iframe { border-radius: 12px; max-width: 100%; display: block; }
.an50-ad-card .widget-title, .an50-ad-format {
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
  margin: 0; text-align: center; font-family: var(--font-body);
}
.an50-ad-placeholder {
  width: 100%; border-radius: 12px;
  background: linear-gradient(140deg, #E4EEED, #F2E7DA);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 12px; font-weight: 700;
}

/* =========================================================
   10. Footer
   ========================================================= */
.an50-footer {
  background: var(--navy-deep);
  border-radius: 28px 28px 0 0;
  margin-top: 30px;
}
.an50-footer-inner {
  max-width: 1560px; margin: 0 auto;
  padding: 52px 32px 26px;
}
.an50-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 40px;
}
.an50-wordmark {
  font-family: var(--font-head); font-weight: 700; font-size: 21px;
  color: #fff; margin-bottom: 12px;
}
.an50-wordmark span { color: var(--teal); }
.an50-footer-desc { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.7); margin: 0; }
.an50-footer h4 {
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: rgba(255,255,255,.55);
  margin: 0 0 16px;
}
.an50-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.an50-footer-menu a { font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.8); }
.an50-footer-menu a:hover { color: #fff; }
.an50-newsletter-text { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.7); margin: 0 0 16px; }
.an50-newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.an50-newsletter-form input[type="email"] {
  flex: 1; min-width: 170px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 11px 18px;
  color: #fff; font-size: 14px; font-weight: 600; outline: none;
}
.an50-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.an50-newsletter-form input[type="email"]:focus { border-color: var(--teal); }
.an50-newsletter-form button {
  background: var(--orange-deep); color: #fff; border: 0;
  border-radius: 999px; padding: 11px 24px;
  font-weight: 800; font-size: 14px;
  transition: background .25s ease;
}
.an50-newsletter-form button:hover { background: var(--orange); }
.an50-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 42px; padding-top: 22px;
  font-size: 13px; color: rgba(255,255,255,.55);
}

/* =========================================================
   11. Kategorie-Seite (Hero, Sortierung)
   ========================================================= */
.an50-cat-hero {
  position: relative; height: 280px;
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  background-color: var(--navy);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.an50-cat-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,58,66,.88) 0%, rgba(15,90,88,.55) 55%, rgba(15,90,88,.1) 100%);
}
.an50-cat-hero-content {
  position: relative; padding: 26px 30px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.an50-breadcrumb {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.75);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.an50-breadcrumb a { color: rgba(255,255,255,.75); }
.an50-breadcrumb a:hover { color: #fff; }
.an50-cat-hero h1 {
  font-weight: 700; font-size: 36px; color: #fff; margin: 0; line-height: 1.15;
}
.an50-cat-hero-desc { font-size: 15.5px; color: rgba(255,255,255,.85); margin: 0; max-width: 640px; }
.an50-cat-hero-badge {
  background: #fff; color: var(--teal-deep);
  border-radius: 999px; padding: 6px 14px;
  font-size: 12.5px; font-weight: 800;
  margin-top: 4px;
}

.an50-sortbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 22px;
}
.an50-sortbar-label { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.an50-sort-pill {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  transition: background .25s ease, color .25s ease;
}
.an50-sort-pill:hover { background: var(--teal-tint); color: var(--teal-deep); }
.an50-sort-pill.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.an50-sort-pill.is-active:hover { background: var(--navy); color: #fff; }

/* =========================================================
   12. Artikel-Seite
   ========================================================= */
.an50-article-breadcrumb {
  font-size: 13.5px; font-weight: 700; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-bottom: 20px;
}
.an50-article-breadcrumb a { color: var(--ink-soft); }
.an50-article-breadcrumb a:hover { color: var(--teal-deep); }
.an50-article-breadcrumb .is-current { color: var(--navy); }

.an50-article-header { max-width: 820px; margin-bottom: 26px; }
.an50-article-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.an50-article-meta .an50-date { font-size: 14px; }
.an50-article-title {
  font-weight: 700; font-size: 38px; line-height: 1.2;
  color: var(--navy); margin: 0 0 14px;
  text-wrap: pretty;
}
.an50-article-intro { font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.an50-article-hero { position: relative; margin-bottom: 34px; }
.an50-article-hero img {
  width: 100%; height: 440px; object-fit: cover; display: block;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  position: relative; z-index: 1;
}
.an50-article-hero .an50-parallax-circle {
  width: 300px; height: 300px; top: -60px; right: -80px;
  background: rgba(244,160,76,.18); filter: blur(56px);
  z-index: -1; /* immer hinter Bild und Fließtext */
}

/* Fließtext */
.an50-content { max-width: 760px; }
.an50-content > * { margin-top: 0; margin-bottom: 22px; }
.an50-content p { font-size: 17px; line-height: 1.75; color: var(--ink); }
.an50-content h2 {
  font-weight: 600; font-size: 24px; line-height: 1.3; color: var(--navy);
  margin: 36px 0 14px;
}
.an50-content h3 { font-weight: 600; font-size: 20px; color: var(--navy); margin: 30px 0 12px; }
.an50-content ul, .an50-content ol {
  font-size: 17px; line-height: 1.75; padding-left: 24px; color: var(--ink);
}
.an50-content li { margin-bottom: 8px; }
.an50-content a { font-weight: 700; }
.an50-content blockquote {
  position: relative;
  background: var(--surface); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 14px 18px; margin: 22px 0;
  border: 0;
}
.an50-content blockquote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-head); font-weight: 700; font-size: 28px;
  line-height: 1; color: var(--teal);
  margin-bottom: 2px;
}
.an50-content blockquote p {
  font-family: var(--font-head); font-weight: 500;
  font-size: 12px; line-height: 1.6; color: var(--navy);
  margin: 0 0 8px;
}
.an50-content blockquote p:last-child { margin-bottom: 0; }
.an50-content blockquote cite {
  display: block; margin-top: 12px;
  font-size: 13.5px; font-weight: 600; font-style: normal; color: var(--ink-soft);
}
.an50-content img { border-radius: var(--radius); }
/* Eingebettete SVG-Diagramme aus der Redaktion */
.an50-content .an50-inline-svg {
  margin: 30px 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  overflow: hidden;
}
.an50-content .an50-inline-svg svg {
  width: 100%; height: auto; display: block;
  max-width: 100%;
}
.an50-content figure { margin: 30px 0; }
.an50-content figure img { max-width: 100%; height: auto; }
.an50-content figcaption {
  text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  margin-top: 10px;
}
.an50-content .wp-caption { max-width: 100%; }
.an50-content .wp-caption-text {
  text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-soft);
}

/* Schlagwörter */
.an50-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0; max-width: 760px; }
.an50-tags a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--ink);
  transition: background .25s ease, color .25s ease;
}
.an50-tags a:hover { background: var(--teal-tint); color: var(--teal-deep); }

/* Ähnliche Beiträge */
.an50-related { margin-top: 46px; }
.an50-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.an50-related-grid .an50-card-thumb { height: 150px; }
.an50-related-grid .an50-card-title { font-size: 16px; }

/* =========================================================
   13. Kommentare
   ========================================================= */
.an50-comments { max-width: 760px; margin-top: 50px; }
.an50-comments-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.an50-comments .comment-list { list-style: none; margin: 0; padding: 0; }
.an50-comments .comment-list .children { list-style: none; padding-left: 32px; }
.an50-comments .comment-body {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px; margin-bottom: 18px;
}
.an50-comments .comment-author { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); }
.an50-comments .comment-author img { border-radius: 50%; }
.an50-comments .comment-metadata { font-size: 12.5px; font-weight: 600; }
.an50-comments .comment-metadata a { color: var(--ink-soft); }
.an50-comments .comment-content { font-size: 15.5px; line-height: 1.7; }
.an50-comments .reply a {
  font-size: 13px; font-weight: 800; color: var(--teal-deep);
}
.an50-comments .comment-respond { margin-top: 30px; }
.an50-comments .comment-respond .comment-reply-title { font-size: 20px; }
.an50-comments input[type="text"],
.an50-comments input[type="email"],
.an50-comments input[type="url"],
.an50-comments textarea {
  width: 100%; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; font-size: 15px; color: var(--ink);
  outline: none; transition: border-color .25s ease;
}
.an50-comments input:focus, .an50-comments textarea:focus { border-color: var(--teal); }
.an50-comments .form-submit input[type="submit"] {
  width: auto;
  background: var(--orange-deep); color: #fff; border: 0;
  border-radius: 999px; padding: 13px 30px;
  font-weight: 800; font-size: 15px; cursor: pointer;
  transition: background .25s ease;
}
.an50-comments .form-submit input[type="submit"]:hover { background: var(--orange); }

/* =========================================================
   14. Seiten, Suche, 404
   ========================================================= */
.an50-page-hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  padding: 44px 38px;
  background: linear-gradient(160deg, rgba(24,50,74,.95), rgba(15,118,110,.75));
  margin-bottom: 30px;
}
.an50-page-hero h1 { color: #fff; font-size: 32px; font-weight: 700; margin: 0; }
.an50-page-hero p { color: rgba(255,255,255,.85); font-size: 15.5px; margin: 8px 0 0; }
.an50-empty {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px; text-align: center;
}
.an50-empty p { color: var(--ink-soft); font-size: 16px; }
.an50-empty .an50-search-form { margin: 20px auto 0; width: 320px; max-width: 100%; }

/* =========================================================
   14b. Affiliate-Link-Bausteine (Shortcode [affiliate], Hover-States)
   ========================================================= */
.aff-1a a { font-size: 17px; }
/* Produktkarte: bis zu 4 Vorteile – 1+2 links, 3+4 rechts */
.aff-1c-bullets {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 18px;
}
@media (max-width: 640px) {
  .aff-1c-bullets {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
}
.aff-1a a:hover { color: #0A6B5F !important; border-bottom-color: #0E8577 !important; }
.aff-1b:hover { background: #DDF0EB !important; }
.aff-1c .aff-btn:hover { background: #0A6B5F !important; }
.aff-1d:hover { background: #0A6B5F !important; }
.aff-1e a:hover { color: #0A6B5F !important; }
.aff-1f:hover { border-color: #0E8577 !important; background: #F7FBFA !important; }

/* =========================================================
   15. WordPress-Kernklassen
   ========================================================= */
.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-block-image img { border-radius: var(--radius); }
.sticky { /* Marker-Klasse für Sticky Posts */ }
.bypostauthor { /* Marker-Klasse für Beitragsautor-Kommentare */ }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { margin: 0; }
.gallery-item img { border-radius: 12px; width: 100%; height: auto; }
.post-password-form input[type="password"] {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px;
}
.post-password-form input[type="submit"] {
  background: var(--teal); color: #fff; border: 0;
  border-radius: 999px; padding: 10px 22px; font-weight: 800;
}

/* =========================================================
   16. Responsive
   ========================================================= */
@media (max-width: 1220px) {
  .an50-shell--3col { grid-template-columns: 232px minmax(0,1fr); }
  .an50-shell--article { grid-template-columns: 1fr; }
  .an50-ads-col { grid-column: 1 / -1; }
  .an50-ads {
    position: static;
    flex-direction: row; flex-wrap: wrap;
    justify-content: center; align-items: flex-start;
    margin-top: 10px;
  }
  .an50-ads-label { width: 100%; text-align: center; }
}
@media (max-width: 1020px) {
  .an50-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .an50-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .an50-shell--3col { grid-template-columns: minmax(0,1fr); }
  .an50-nav, .an50-header-search { display: none; }
  .an50-burger { display: flex; }
  .an50-logo img, .custom-logo-link img.custom-logo { height: 52px; }
  .an50-ads-col { display: none; }
  /* Meistgelesen + Newsletter rutschen unter den Inhalt */
  .an50-side-col { order: 2; }
  .an50-main { order: 1; }
  .an50-side {
    position: static; max-height: none; overflow: visible;
    padding-right: 0;
  }
  /* Karussell mobil: volle Breite ohne Peek-Effekt (JS rechnet passend um) */
  .an50-slide { flex: 0 0 100%; margin-right: 0; height: 300px; }
  .an50-carousel-track { transform: translateX(0); }
  .an50-slide-title {
    font-size: 20px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .an50-slide-content { padding: 18px 20px; }
  .an50-parallax-circle { display: none; }
  .an50-article-title { font-size: 28px; }
  .an50-article-hero img { height: 260px; }
  .an50-cat-hero { height: 240px; }
  .an50-cat-hero h1 { font-size: 28px; }
  .an50-related-grid { grid-template-columns: 1fr; }
  .an50-content p, .an50-content ul, .an50-content ol { font-size: 16.5px; }
}
@media (max-width: 640px) {
  /* 1 Spalte mit automatischer Kartenhöhe – nichts wird mehr abgeschnitten */
  .an50-grid { grid-template-columns: minmax(0,1fr); grid-auto-rows: auto; }
  .an50-card.cardS, .an50-card.cardT, .an50-card.cardXL {
    grid-column: auto; grid-row: auto;
  }
  .an50-card.cardS .an50-card-thumb,
  .an50-card.cardT .an50-card-thumb { height: 200px; }
  .an50-card.cardXL .an50-card-thumb { height: 240px; }
  .an50-card.cardXL .an50-card-title { font-size: 18px; }
  .an50-card-title { -webkit-line-clamp: 3; }
  .an50-card-excerpt { -webkit-line-clamp: 3; }
  .an50-footer-grid { grid-template-columns: 1fr; }
  .an50-shell { padding-left: 18px; padding-right: 18px; }
  .an50-header-inner { padding-left: 18px; padding-right: 18px; }
}

/* =========================================================
   17. Reduced Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
