/* ============================================================
   Familienplattform Ostschweiz – Main CSS v1.0.0
   Maik Möhring Media · familienplattform-ostschweiz.ch
   ============================================================ */

/* ── GOOGLE FONTS IMPORT ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Lora:ital,wght@0,400;1,400&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --forest:        #1d4a2e;
  --forest-light:  #2e6b44;
  --forest-dark:   #122e1c;
  --amber:         #c9652a;
  --amber-light:   #e07d3a;
  --cream:         #faf7f2;
  --sand:          #f0ebe0;
  --stone:         #e8e0d0;
  --charcoal:      #1a1a1a;
  --mid:           #5a5247;
  --muted:         #9a9088;
  --white:         #ffffff;
  --radius:        10px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.05);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.08);
  --shadow-hover:  0 10px 30px rgba(0,0,0,0.12);
  --transition:    0.2s ease;
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'DM Sans', system-ui, sans-serif;
  --font-italic:   'Lora', Georgia, serif;
  --max-width:     1300px;
  --sidebar-w:     300px;
  --gap:           44px;
}

/* ── RESET & BASE ── */
*, *::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(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--forest-light); border-radius: 3px; }

/* ── SKIP LINK (accessibility) ── */
.skip-link {
  position: absolute; top: -40px; left: 8px; z-index: 9999;
  background: var(--forest); color: white; padding: 8px 16px;
  border-radius: 0 0 4px 4px; font-size: 13px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── TOP BAR ── */
.site-topbar {
  background: var(--forest);
  color: rgba(255,255,255,0.75);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-left span { display: flex; align-items: center; gap: 5px; }
.topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-right a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 11px;
  transition: color var(--transition);
}
.topbar-right a:hover { color: white; }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--forest);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}
.site-branding { flex-shrink: 0; }
.site-branding a { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.site-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--forest);
  letter-spacing: -0.5px;
}
.site-description {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber);
  font-weight: 600;
  margin-top: 3px;
}
/* Custom logo */
.site-branding .custom-logo-link img { max-height: 54px; width: auto; }

/* ── NAVIGATION ── */
.main-nav { flex: 1; }
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.main-nav ul li { position: relative; }
.main-nav ul li a {
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  padding: 7px 11px;
  border-radius: 5px;
  display: block;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-menu-ancestor > a {
  background: var(--sand);
  color: var(--forest);
}
/* Dropdown */
.main-nav ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  border-top: 3px solid var(--forest);
  z-index: 300;
}
.main-nav ul li:hover > ul { display: flex; }
.main-nav ul li ul li a { font-size: 13px; border-radius: 5px; }

/* Search button */
.header-search-toggle {
  background: var(--sand);
  border: 1.5px solid var(--stone);
  border-radius: 22px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.header-search-toggle:hover { border-color: var(--forest); color: var(--forest); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: var(--forest);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

/* ── SEARCH OVERLAY ── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 500;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}
.search-overlay.active { display: flex; }
.search-box {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-md);
}
.search-box .search-form { display: flex; gap: 10px; }
.search-box .search-field {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--stone);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition);
}
.search-box .search-field:focus { border-color: var(--forest); }
.search-box .search-submit {
  background: var(--forest);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
}
.search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

/* ── CATEGORY RIBBON ── */
.cat-ribbon { background: var(--forest-dark); }
.cat-ribbon-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-ribbon-inner::-webkit-scrollbar { display: none; }
.cat-ribbon a {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.65);
  padding: 11px 15px;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  display: block;
}
.cat-ribbon a:hover,
.cat-ribbon a.current { color: white; border-bottom-color: var(--amber); background: rgba(255,255,255,0.06); }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  background: var(--sand);
  border-bottom: 1px solid var(--stone);
  padding: 9px 0;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumbs-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.breadcrumbs a { color: var(--mid); }
.breadcrumbs a:hover { color: var(--forest); }
.breadcrumbs span + span::before { content: ' › '; margin: 0 4px; }

/* ── MAIN WRAPPER ── */
.site-wrapper {
  max-width: var(--max-width);
  margin: 36px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}
.site-wrapper.full-width { grid-template-columns: 1fr; }

/* ── PAGE HEADER (archives, search) ── */
.page-header {
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--stone);
}
.page-header .page-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-header .page-title::before {
  content: '';
  display: block;
  width: 5px;
  height: 34px;
  background: var(--forest);
  border-radius: 3px;
}
.page-header .archive-description {
  font-size: 14px;
  color: var(--mid);
  margin-top: 8px;
}

/* ── SECTION HEADER ── */
.section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--stone);
}
.section-hdr h2 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 11px;
}
.section-hdr h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: var(--forest);
  border-radius: 2px;
}
.section-hdr .view-all {
  font-size: 12.5px;
  color: var(--amber);
  font-weight: 600;
  text-decoration: none;
}

/* ── HERO SECTION ── */
.hero-section {
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}
.hero-main-card { border-radius: 14px; overflow: hidden; position: relative; }
.hero-main-card a { display: block; }
.hero-main-thumb {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 60%, var(--amber) 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-main-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-main-card:hover .hero-main-thumb img { transform: scale(1.03); }
.hero-main-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  z-index: 1;
}
.hero-main-content {
  position: relative;
  z-index: 2;
  padding: 26px;
  color: white;
}
.hero-cat-badge {
  background: var(--amber);
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
  text-decoration: none;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 11px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  color: white;
}
.hero-meta {
  font-size: 12.5px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: white;
}
.hero-side-cards { display: flex; flex-direction: column; gap: 18px; }
.hero-side-card { border-radius: 12px; overflow: hidden; background: white; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.hero-side-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.hero-side-thumb {
  height: 140px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--forest), var(--amber));
}
.hero-side-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.hero-side-card:hover .hero-side-thumb img { transform: scale(1.05); }
.hero-side-body { padding: 15px; }
.side-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 6px;
  text-decoration: none;
}
.hero-side-title { font-family: var(--font-serif); font-size: 15px; font-weight: 700; line-height: 1.32; color: var(--charcoal); }
.hero-side-meta { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* ── ARTICLE GRID ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop: 3 Spalten */
  gap: 22px;
  margin-bottom: 44px;
}
/* Tablet: 2 Spalten */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
/* Mobile: 1 Spalte */
@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
}
.art-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.art-thumb { height: 168px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--forest), var(--amber)); }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.art-card:hover .art-thumb img { transform: scale(1.05); }
.art-cat-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  background: var(--forest);
  color: white;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 4px;
  text-decoration: none;
  z-index: 2;
}
.art-body { padding: 18px; }
.art-title { font-family: var(--font-serif); font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--charcoal); margin-bottom: 9px; }
.art-title a { color: inherit; text-decoration: none; }
.art-title a:hover { color: var(--forest); }
.art-excerpt { font-size: 13px; color: var(--mid); line-height: 1.62; margin-bottom: 13px; }
.art-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--stone); padding-top: 11px; }
.art-author-mini { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.author-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
  overflow: hidden;
}
/* Initialen-Avatar via Inline-CSS – kein img-Override nötig */
.art-author-name { font-size: 12px; font-weight: 600; color: var(--mid); }
.art-meta-sm { font-size: 11.5px; color: var(--muted); }
.art-read-time { font-size: 11.5px; color: var(--muted); }

/* ── ARTICLE LIST (archive/category view) ── */
.article-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.list-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 240px 1fr;
  transition: box-shadow var(--transition);
}
.list-card:hover { box-shadow: var(--shadow-hover); }
.list-thumb { position: relative; height: 100%; min-height: 160px; overflow: hidden; background: linear-gradient(135deg, var(--forest), var(--amber)); }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.list-card:hover .list-thumb img { transform: scale(1.04); }
.list-body { padding: 22px; display: flex; flex-direction: column; justify-content: center; }
.list-cat-badge {
  display: inline-block;
  background: var(--forest);
  color: white;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 9px;
  text-decoration: none;
}
.list-title { font-family: var(--font-serif); font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.list-title a { color: var(--charcoal); text-decoration: none; }
.list-title a:hover { color: var(--forest); }
.list-excerpt { font-size: 13.5px; color: var(--mid); line-height: 1.65; margin-bottom: 14px; }
.list-footer { display: flex; align-items: center; gap: 14px; }

/* ── SINGLE POST ── */
.single-content { background: white; border-radius: 14px; padding: 36px; box-shadow: var(--shadow-sm); margin-bottom: 32px; }
.single-header { margin-bottom: 26px; }
.single-cat-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.post-cat-badge {
  background: var(--forest);
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: 4px;
  text-decoration: none;
}
.post-meta-item { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.single-title { font-family: var(--font-serif); font-size: 33px; font-weight: 900; line-height: 1.18; margin-bottom: 14px; }
.single-lead {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 17px;
  color: var(--mid);
  line-height: 1.68;
  border-left: 4px solid var(--forest);
  padding-left: 18px;
  margin-bottom: 24px;
}
.single-featured-img { border-radius: 10px; overflow: hidden; margin-bottom: 28px; }
.single-featured-img img { width: 100%; height: auto; }
.single-body { font-size: 15px; line-height: 1.8; color: var(--charcoal); }
.single-body h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 700; margin: 32px 0 12px; border-bottom: 2px solid var(--sand); padding-bottom: 8px; }
.single-body h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 700; margin: 26px 0 10px; }
.single-body p { margin-bottom: 18px; }
.single-body ul, .single-body ol { margin: 0 0 18px 24px; }
.single-body li { margin-bottom: 6px; }
.single-body strong { color: var(--forest-dark); }
.single-body blockquote {
  border-left: 4px solid var(--amber);
  background: var(--sand);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 16px;
  color: var(--mid);
}
.single-body a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--stone); }
.single-body a:hover { text-decoration-color: var(--forest); }
.single-body img { border-radius: 8px; margin: 20px 0; }
.single-body .wp-caption { margin: 20px 0; }
.single-body .wp-caption-text { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 6px; }

/* ── TAG LIST ── */
.post-tags { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--stone); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags span { font-size: 12px; font-weight: 600; color: var(--mid); }
.post-tag {
  background: var(--sand);
  color: var(--mid);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.post-tag:hover { background: var(--forest); color: white; }

/* ── SHARE BUTTONS ── */
.share-row { display: flex; align-items: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.share-row span { font-size: 12.5px; font-weight: 600; color: var(--mid); }
.share-btn {
  padding: 7px 16px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.share-facebook { background: #1877f2; }
.share-twitter  { background: #000; }
.share-whatsapp { background: #25d366; }
.share-linkedin { background: #0a66c2; }
.share-copy     { background: var(--stone); color: var(--mid); cursor: pointer; border: none; font-family: var(--font-sans); }
.share-btn:hover { opacity: 0.88; color: white; }

/* ── AUTHOR BOX (single post) ── */
.author-box {
  background: white;
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  margin-bottom: 32px;
  border-top: 4px solid var(--forest);
}
.author-box-avatar { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; background: var(--forest); display: flex; align-items: center; justify-content: center; color: white; font-size: 30px; font-weight: 700; flex-shrink: 0; }
/* Initialen-Avatar übernimmt das Styling via Inline-CSS – kein img-Override nötig */
.author-box-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); font-weight: 700; margin-bottom: 6px; }
.author-box-name { font-family: var(--font-serif); font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.author-box-role { font-size: 12.5px; color: var(--amber); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.author-box-bio { font-size: 14px; color: var(--mid); line-height: 1.65; margin-bottom: 12px; }
.eeat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.eeat-tag { font-size: 11px; background: var(--sand); color: var(--mid); padding: 3px 10px; border-radius: 20px; font-weight: 500; }
.author-box-meta { font-size: 12px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.author-box-links { display: flex; gap: 8px; margin-top: 10px; }
.author-social-link {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sand); display: flex; align-items: center; justify-content: center;
  color: var(--mid); font-size: 14px; text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.author-social-link:hover { background: var(--forest); color: white; }

/* ── RELATED POSTS ── */
.related-posts { margin-bottom: 36px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ── COMMENTS ── */
.comments-area { background: white; border-radius: 14px; padding: 32px; box-shadow: var(--shadow-sm); }
.comments-title { font-family: var(--font-serif); font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.comment-list { list-style: none; }
.comment { padding: 18px 0; border-bottom: 1px solid var(--stone); }
.comment:last-child { border-bottom: none; }
.comment-author { font-weight: 600; font-size: 14px; }
.comment-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.comment-content { font-size: 14px; color: var(--mid); line-height: 1.65; }
.comment-form label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 5px; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--stone);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  margin-bottom: 14px;
  transition: border-color var(--transition);
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--forest); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.form-submit .submit {
  background: var(--forest);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition);
}
.form-submit .submit:hover { background: var(--forest-light); }

/* ── PAGINATION ── */
.pagination { margin: 36px 0; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-numbers {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--mid);
  background: white;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all var(--transition);
}
.page-numbers:hover { background: var(--forest); color: white; }
.page-numbers.current { background: var(--forest); color: white; }
.page-numbers.dots { background: none; box-shadow: none; }
.prev.page-numbers, .next.page-numbers { width: auto; padding: 0 16px; }

/* ── SIDEBAR ── */
.sidebar-inner { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 94px; }
.sidebar-widget { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.widget-title {
  background: var(--forest);
  color: white;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
}
.widget-body { padding: 18px; }

/* Ad Slots */
.ad-slot-widget { border: 2px dashed var(--stone); border-radius: 8px; padding: 20px 16px; text-align: center; background: #fafafa; min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ad-slot-label { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.ad-slot-size { font-size: 22px; font-weight: 300; color: var(--stone); font-family: var(--font-serif); }
.ad-slot-info { font-size: 11px; color: var(--muted); }

/* Popular Posts widget */
.popular-post-item { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--sand); }
.popular-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-num { font-size: 24px; font-family: var(--font-serif); font-weight: 900; color: var(--stone); line-height: 1; flex-shrink: 0; width: 30px; }
.popular-title { font-size: 13px; font-weight: 600; color: var(--charcoal); line-height: 1.38; text-decoration: none; }
.popular-title:hover { color: var(--forest); }
.popular-cat { font-size: 10.5px; color: var(--amber); font-weight: 600; margin-top: 3px; }

/* Categories widget */
.cat-widget-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--sand); font-size: 13.5px; }
.cat-widget-item:last-child { border-bottom: none; }
.cat-widget-name { display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--charcoal); text-decoration: none; }
.cat-widget-name:hover { color: var(--forest); }
.cat-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cat-count { background: var(--sand); color: var(--mid); font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px; }

/* Authors widget */
.widget-author-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--sand); text-decoration: none; }
.widget-author-item:last-child { border-bottom: none; }
.widget-author-av { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: white; flex-shrink: 0; overflow: hidden; }
/* Initialen-Avatar via Inline-CSS – kein img-Override */
.widget-author-name { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.widget-author-role { font-size: 11px; color: var(--muted); }
.widget-author-item:hover .widget-author-name { color: var(--forest); }

/* Tags widget */
.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tagcloud a {
  background: var(--sand);
  color: var(--mid);
  font-size: 12px !important;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all var(--transition);
}
.tagcloud a:hover { background: var(--forest); color: white; }

/* ── AUTHORS PAGE ── */
.authors-grid-full { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.author-full-card {
  background: white;
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--forest);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
}
.author-full-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; background: var(--forest); display: flex; align-items: center; justify-content: center; color: white; font-size: 26px; font-weight: 700; }
.author-full-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-full-name { font-family: var(--font-serif); font-size: 20px; font-weight: 700; }
.author-full-role { font-size: 11.5px; color: var(--amber); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; margin: 4px 0 10px; }
.author-full-bio { font-size: 13.5px; color: var(--mid); line-height: 1.62; margin-bottom: 12px; }
.author-articles-count { font-size: 12px; color: var(--muted); }

/* ── 404 PAGE ── */
.error-404-content { text-align: center; padding: 80px 20px; }
.error-404-code { font-family: var(--font-serif); font-size: 120px; font-weight: 900; color: var(--stone); line-height: 1; }
.error-404-title { font-family: var(--font-serif); font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.error-404-text { font-size: 15px; color: var(--mid); margin-bottom: 28px; }
.btn-primary {
  display: inline-block;
  background: var(--forest);
  color: white;
  padding: 13px 28px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--forest-light); color: white; }

/* ── FOOTER ── */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.8); margin-top: 70px; }
.footer-top-widgets { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-top-widgets-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
}
.footer-about .site-title { color: white; font-size: 21px; }
.footer-about .site-description { color: var(--amber); }
.footer-desc { font-size: 13px; line-height: 1.72; color: rgba(255,255,255,0.48); margin-top: 14px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.footer-badge { font-size: 10.5px; background: rgba(255,255,255,0.06); padding: 4px 10px; border-radius: 20px; color: rgba(255,255,255,0.38); }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.48); text-decoration: none; transition: color var(--transition); }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 17px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 10px;
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── ADMIN BAR OFFSET ── */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ── RESPONSIVE ── */

/* ─ Tablet landscape ─ */
@media (max-width: 1100px) {
  :root { --sidebar-w: 260px; --gap: 28px; }
  .hero-section { grid-template-columns: 1fr; }
  .hero-side-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-top-widgets-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .authors-grid-full { grid-template-columns: 1fr; }
}

/* ─ Tablet portrait / large mobile ─ */
@media (max-width: 768px) {
  /* Layout */
  .site-wrapper { grid-template-columns: 1fr; margin: 16px auto; padding: 0 16px; }
  .sidebar-inner { position: static; }

  /* Navigation – fullscreen overlay */
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex; position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh; background: white;
    z-index: 500; flex-direction: column;
    padding: 72px 20px 24px; overflow-y: auto;
  }
  .main-nav.is-open ul { flex-direction: column; width: 100%; gap: 2px; }
  .main-nav.is-open ul li a { font-size: 15px; padding: 11px 14px; border-radius: 8px; }
  .main-nav.is-open ul li ul {
    position: static; box-shadow: none; border-radius: 0;
    border-top: none; padding: 0 0 0 14px; display: flex;
  }
  .menu-toggle { display: flex; }
  .header-search-toggle { display: none; }
  .header-inner { padding: 0 16px; height: 60px; }
  .site-title { font-size: 16px; }
  .site-description { display: none; }

  /* Hero */
  .hero-main-thumb { height: 260px; }
  .hero-title { font-size: 19px; }
  .hero-main-content { padding: 18px; }
  .hero-side-cards { grid-template-columns: 1fr; gap: 14px; }
  .hero-side-thumb { height: 160px; }

  /* Article grid & list */
  .art-thumb { height: 185px; }
  .art-body { padding: 14px; }
  .art-title { font-size: 15px; }
  .list-card { grid-template-columns: 1fr; }
  .list-thumb { min-height: 165px; height: 165px; }
  .list-body { padding: 16px; }
  .list-title { font-size: 17px; }

  /* Single article */
  .single-content { padding: 18px 16px; border-radius: 10px; }
  .single-title { font-size: 22px; line-height: 1.22; }
  .single-lead { font-size: 15px; padding-left: 14px; margin-bottom: 18px; }
  .single-featured-img { margin-bottom: 20px; }
  .single-body { font-size: 14.5px; line-height: 1.78; }
  .single-body h2 { font-size: 19px; margin: 24px 0 10px; }
  .single-body h3 { font-size: 16px; margin: 20px 0 8px; }
  .single-body ul, .single-body ol { margin: 0 0 16px 18px; }
  .single-body p { margin-bottom: 15px; }
  .single-body blockquote { padding: 13px 16px; font-size: 14.5px; }
  .single-body img { border-radius: 6px; }
  .single-body table { font-size: 12.5px; }
  /* Prevent inline HTML from overflowing */
  .single-body { overflow-x: hidden; }
  .single-body * { max-width: 100%; }

  /* Single post meta */
  .single-cat-row { gap: 7px; margin-bottom: 10px; }
  .post-meta-item { font-size: 11.5px; }
  .post-tags { gap: 6px; }

  /* Share buttons */
  .share-row { gap: 7px; flex-wrap: wrap; }
  .share-btn { padding: 6px 12px; font-size: 11.5px; }

  /* Author box */
  .author-box { grid-template-columns: 1fr; text-align: center; padding: 20px; gap: 14px; }
  .author-box-avatar { margin: 0 auto; }
  .eeat-tags { justify-content: center; }
  .author-box-links { justify-content: center; }
  .author-box-meta { justify-content: center; }

  /* Related posts */
  .related-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Sidebar */
  .sidebar-inner { gap: 18px; }
  .widget-body { padding: 14px; }

  /* Footer */
  .footer-top-widgets-inner { grid-template-columns: 1fr; gap: 22px; padding: 28px 16px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 14px 16px; }
  .site-footer { margin-top: 40px; }

  /* Topbar */
  .site-topbar { display: none; }

  /* Page header */
  .page-header .page-title { font-size: 22px; }
}

/* ─ Small mobile (≤ 480px) ─ */
@media (max-width: 480px) {
  :root { --radius: 8px; }

  .site-wrapper { margin: 12px auto; padding: 0 12px; }
  .header-inner { padding: 0 12px; height: 56px; }
  .site-title { font-size: 14.5px; }

  /* Hero compact */
  .hero-main-thumb { height: 200px; }
  .hero-title { font-size: 17px; }
  .hero-main-content { padding: 14px; }
  .hero-cat-badge { font-size: 9.5px; padding: 3px 8px; margin-bottom: 7px; }
  .hero-side-thumb { height: 145px; }
  .hero-side-body { padding: 12px; }
  .hero-side-title { font-size: 13.5px; }

  /* Cards */
  .art-thumb { height: 170px; }
  .art-body { padding: 12px; }
  .art-title { font-size: 14px; }
  .art-excerpt { font-size: 12.5px; }
  .art-footer { padding-top: 9px; }
  .list-thumb { height: 150px; min-height: 150px; }
  .list-body { padding: 14px; }
  .list-title { font-size: 15.5px; }

  /* Single article – most critical for "langgezogen" fix */
  .single-content { padding: 14px 13px; border-radius: 8px; margin-bottom: 18px; }
  .single-title { font-size: 19px; line-height: 1.25; margin-bottom: 10px; }
  .single-lead { font-size: 14.5px; padding-left: 12px; border-left-width: 3px; }
  .single-body { font-size: 14px; line-height: 1.75; }
  .single-body h2 { font-size: 17px; margin: 20px 0 9px; padding-bottom: 6px; }
  .single-body h3 { font-size: 15px; margin: 16px 0 7px; }
  .single-body ul, .single-body ol { margin: 0 0 14px 16px; }
  .single-body p { margin-bottom: 13px; }

  /* Share row – vertical on very small */
  .share-row { gap: 6px; }
  .share-btn { padding: 5px 10px; font-size: 11px; border-radius: 4px; }

  /* Author box */
  .author-box { padding: 16px 14px; }
  .author-box-name { font-size: 18px; }
  .author-box-bio { font-size: 13px; }

  /* Tags */
  .post-tag { font-size: 11px; padding: 3px 10px; }

  /* Sidebar widgets */
  .widget-title { padding: 10px 14px; }
  .widget-body { padding: 12px; }

  /* Comments */
  .comments-area { padding: 18px 14px; }
  .comments-title { font-size: 18px; }

  /* Pagination */
  .page-numbers { width: 36px; height: 36px; font-size: 13px; }
  .prev.page-numbers, .next.page-numbers { padding: 0 12px; }

  /* Footer */
  .footer-top-widgets-inner { padding: 22px 12px; gap: 18px; }
  .footer-bottom { padding: 12px; font-size: 11px; }

  /* Breadcrumbs */
  .breadcrumbs { font-size: 11px; padding: 7px 0; }
  .breadcrumbs-inner { padding: 0 12px; }
}

/* ─ Very small (≤ 360px) ─ */
@media (max-width: 360px) {
  .site-wrapper { padding: 0 10px; }
  .header-inner { padding: 0 10px; }
  .single-content { padding: 12px 11px; }
  .single-title { font-size: 17px; }
  .single-body h2 { font-size: 16px; }
  .share-btn { padding: 5px 8px; font-size: 10.5px; }
}

/* ── PRINT ── */
@media print {
  .site-topbar, .site-header, .cat-ribbon, .sidebar-inner,
  .share-row, .site-footer, .cat-ribbon { display: none !important; }
  .site-wrapper { display: block; }
  .single-content { box-shadow: none; }
}

/* ── EMPFEHLUNGEN – HOMEPAGE ── */
.fpos-home-listings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.fpos-home-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.fpos-home-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.fpos-home-card-premium { border: 2px solid var(--forest); }
.fpos-home-premium-badge {
  position: absolute; top: 0; right: 12px;
  background: var(--amber); color: white;
  font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  padding: 3px 10px; border-radius: 0 0 6px 6px; z-index: 2;
}
.fpos-home-thumb { height: 140px; overflow: hidden; background: linear-gradient(135deg,var(--forest),var(--amber)); position: relative; }
.fpos-home-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.fpos-home-card:hover .fpos-home-thumb img { transform: scale(1.05); }
.fpos-home-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.fpos-home-body { padding: 14px; }
.fpos-home-cat { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); background: var(--cream); padding: 2px 8px; border-radius: 4px; }
.fpos-home-title { font-family: var(--font-serif); font-size: 14.5px; font-weight: 700; line-height: 1.35; margin: 7px 0 4px; }
.fpos-home-title a { color: var(--charcoal); text-decoration: none; }
.fpos-home-title a:hover { color: var(--forest); }
.fpos-home-adr { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.fpos-home-stars { color: #f0a500; font-size: 12px; margin-bottom: 8px; }
.fpos-home-stars small { color: var(--muted); font-size: 10.5px; }
.fpos-home-more { font-size: 12px; font-weight: 600; color: var(--forest); text-decoration: none; }
.fpos-home-more:hover { text-decoration: underline; }

/* CTA Banner */
.fpos-home-listing-cta {
  background: linear-gradient(135deg, var(--forest), var(--forest-light));
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.fpos-home-listing-cta-text { color: white; display: flex; flex-direction: column; gap: 3px; }
.fpos-home-listing-cta-text strong { font-size: 15px; }
.fpos-home-listing-cta-text span { font-size: 13px; opacity: .8; }
.fpos-home-listing-cta-btn {
  background: white; color: var(--forest);
  padding: 11px 22px; border-radius: 7px;
  font-size: 13.5px; font-weight: 700; text-decoration: none;
  white-space: nowrap; transition: var(--transition);
  flex-shrink: 0;
}
.fpos-home-listing-cta-btn:hover { background: var(--cream); color: var(--forest); }

/* Responsive homepage */
@media (max-width: 900px) { .fpos-home-listings { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fpos-home-listings { grid-template-columns: 1fr; } }

/* ── EMPFEHLUNGEN – SIDEBAR ── */
.fpos-sidebar-listing {
  display: flex; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--sand); align-items: flex-start;
}
.fpos-sidebar-listing:last-of-type { border-bottom: none; }
.fpos-sidebar-premium { background: #fafff8; border-radius: 6px; padding: 9px 8px; margin: 0 -8px; }
.fpos-sidebar-thumb {
  width: 46px; height: 46px; border-radius: 7px;
  flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--forest), var(--amber));
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.fpos-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fpos-sidebar-cat { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--amber); margin-bottom: 2px; }
.fpos-sidebar-title { font-size: 12.5px; font-weight: 600; color: var(--charcoal); text-decoration: none; line-height: 1.35; display: block; }
.fpos-sidebar-title:hover { color: var(--forest); }
.fpos-sidebar-adr { font-size: 11px; color: var(--muted); margin-top: 2px; }
.fpos-sidebar-all {
  display: block; text-align: center; margin-top: 12px;
  font-size: 12.5px; font-weight: 600; color: var(--forest);
  background: var(--cream); padding: 8px; border-radius: 6px;
  text-decoration: none; transition: var(--transition);
}
.fpos-sidebar-all:hover { background: var(--forest); color: white; }
.fpos-sidebar-eintragen {
  display: block; text-align: center; margin-top: 6px;
  font-size: 12px; font-weight: 600; color: var(--amber);
  text-decoration: none; padding: 6px;
  border: 1.5px dashed var(--amber); border-radius: 6px;
  transition: var(--transition);
}
.fpos-sidebar-eintragen:hover { background: var(--amber); color: white; }
