/*
Theme Name: WBW Theme
Theme URI: https://wildbeimwild.com
Author: IG Wild beim Wild
Author URI: https://wildbeimwild.com
Description: Schlankes Magazin-Theme fuer wildbeimwild.com. Ersetzt SmartMag ohne Bunyad-Ballast.
Version: 2.3.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wbw-theme
Requires at least: 6.0
Requires PHP: 7.4
*/

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --wbw-red: #b81400;
  --wbw-red-dark: #8a0f00;
  --wbw-topbar-bg: #b81400;
  --wbw-dark: #000;
  --wbw-black: #111;
  --wbw-body-bg: #f0f0f0;
  --wbw-white: #fff;
  --wbw-text: #333;
  --wbw-text-light: #666;
  --wbw-border: #e0e0e0;
  --wbw-max-width: 1200px;
  --wbw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wbw-font-heading: Georgia, "Times New Roman", serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--wbw-font);
  color: var(--wbw-text);
  background: var(--wbw-body-bg);
  line-height: 1.6;
}

a {
  color: var(--wbw-text);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--wbw-red);
}

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

ul, ol {
  list-style: none;
}

.wrap {
  max-width: var(--wbw-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === TOP BAR === */
.topbar {
  background: var(--wbw-topbar-bg);
  color: var(--wbw-white);
  font-size: 0.8125rem;
  padding: 6px 0;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--wbw-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.topbar .topbar-date {
  color: rgba(255, 255, 255, 0.9);
  justify-self: start;
}

.topbar .topbar-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-self: center;
}

.topbar .topbar-search-right {
  justify-self: end;
}

/* wp_nav_menu ul inside topbar - force horizontal */
.topbar-nav ul,
.topbar-nav .topbar-menu,
.topbar-nav .menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.topbar-nav ul li,
.topbar-nav .topbar-menu li,
.topbar-nav .menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  float: none !important;
}

.topbar-nav li::before,
.topbar-nav li::marker {
  content: none !important;
  display: none !important;
}

.topbar-nav a {
  color: var(--wbw-white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9375rem;
  letter-spacing: 0.5px;
}

.topbar-nav a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.topbar-search {
  background: none;
  border: none;
  color: var(--wbw-white);
  cursor: pointer;
  font-size: 1rem;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
}

/* === HEADER === */
.site-header {
  background: var(--wbw-white);
  padding: 15px 0;
  border-bottom: none;
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  flex: 1;
}

.btn-cta {
  display: inline-block;
  border: 2px solid var(--wbw-text);
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--wbw-text);
  transition: all 0.2s;
}

.btn-cta:hover {
  background: var(--wbw-text);
  color: var(--wbw-white);
}

.site-logo {
  flex: 0 0 auto;
  text-align: center;
}

.site-logo img {
  max-height: 60px;
  width: auto;
  margin: 0 auto;
}

.header-right {
  flex: 1;
  text-align: right;
  padding-right: 20px;
}

.lang-toggle {
  font-size: 1.25rem;
  color: var(--wbw-red);
  cursor: pointer;
  background: none;
  border: none;
}

/* Mobile search button (hidden on desktop) */
.mobile-search {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  color: var(--wbw-text);
}

/* === MAIN NAVIGATION === */
.main-nav {
  background: var(--wbw-white);
  border-bottom: 1px solid var(--wbw-border);
}

.main-nav .wrap {
  display: flex;
  justify-content: center;
}

.nav-desktop { display: flex; justify-content: center; width: 100%; }
.nav-mobile { display: none; width: 100%; }

.main-nav ul,
.main-nav .menu {
  display: flex !important;
  flex-direction: row !important;
  gap: 0;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-nav li {
  list-style: none !important;
}

.main-nav li::before,
.main-nav li::marker {
  content: none !important;
  display: none !important;
}

.main-nav li a {
  display: block;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1.3125rem;
  color: var(--wbw-text);
  text-transform: none;
  position: relative;
}

.main-nav li a:hover,
.main-nav li.current-menu-item a,
.main-nav li.current_page_item a {
  color: var(--wbw-red);
}

.main-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--wbw-red);
  transition: width 0.2s;
}

.main-nav li a:hover::after,
.main-nav li.current-menu-item a::after,
.main-nav li.current_page_item a::after {
  width: 100%;
}

/* === MOBILE NAV TOGGLE === */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 14px 20px;
  color: var(--wbw-text);
}

/* === MAIN CONTENT LAYOUT === */
.site-content {
  background: var(--wbw-white);
  margin-top: 0;
}

.content-wrap {
  max-width: var(--wbw-max-width);
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  gap: 40px;
}

.content-main {
  flex: 1;
  min-width: 0;
}

.content-sidebar {
  flex: 0 0 300px;
  max-width: 300px;
  min-width: 0;
  position: sticky;
  top: 20px;
  align-self: flex-start;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  --wp--preset--font-size--small: 0.8125rem;
  --wp--preset--font-size--medium: 0.875rem;
  --wp--preset--font-size--large: 0.875rem;
  --wp--preset--font-size--x-large: 0.875rem;
}

/* Sidebar: Block-Editor-Overrides zuruecksetzen */
.content-sidebar p,
.content-sidebar .wp-block-paragraph,
.content-sidebar .wp-block-heading,
.content-sidebar .wp-block-list,
.content-sidebar ul,
.content-sidebar ol,
.content-sidebar li,
.content-sidebar span,
.content-sidebar a,
.content-sidebar [class*="has-"][class*="-font-size"],
.content-sidebar [style*="font-size"],
.content-sidebar .is-layout-flow > *,
.content-sidebar .is-layout-constrained > * {
  font-size: inherit !important;
  line-height: inherit !important;
}

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

.content-sidebar .wp-block-image {
  margin: 0 0 15px;
}

.content-sidebar .wp-block-image img {
  width: 100%;
  height: auto;
}

/* Touch-Targets: Links in Sidebar Media-Text-Widgets min. 44px */
.content-sidebar .wp-block-media-text__content a {
  display: block;
  min-height: 44px;
  padding: 8px 0;
}

/* === PAGE HEADING === */
.page-heading {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 25px;
  padding-left: 15px;
  border-left: 4px solid var(--wbw-red);
  line-height: 1.3;
}

/* === POST GRID === */
.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #ddd;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-card:hover .post-card-image img {
  transform: scale(1.03);
}

.post-card-image .cat-badge {
  position: absolute;
  bottom: 12px;
  left: 10px;
  background: var(--wbw-red);
  color: var(--wbw-white) !important;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 14px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.5px;
  text-decoration: none;
  z-index: 2;
  box-sizing: border-box;
}

.post-card-image .cat-badge:hover {
  background: var(--wbw-red-dark);
}

.post-card-image > a:first-child {
  display: block;
  width: 100%;
  height: 100%;
}

.post-card-title {
  margin-top: 12px;
  font-family: var(--wbw-font);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.post-card-title a {
  color: var(--wbw-text);
  display: block;
  padding: 4px 0;
  min-height: 44px;
}

.post-card-title a:hover {
  color: var(--wbw-red);
}

/* === PAGINATION === */
.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--wbw-border);
  font-size: 0.875rem;
  font-weight: 600;
}

.pagination .current,
.pagination a:hover {
  background: var(--wbw-red);
  color: var(--wbw-white);
  border-color: var(--wbw-red);
}

/* === SIDEBAR === */
.widget {
  margin-bottom: 30px;
}

.widget-title {
  background: var(--wbw-dark);
  color: var(--wbw-white);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 18px;
  margin-bottom: 0;
}

.widget-content {
  padding: 15px 18px;
  background: var(--wbw-white);
  border: 1px solid var(--wbw-border);
  border-top: none;
}

/* Neueste Aktivitaeten Widget */
.activity-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--wbw-border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.8125rem;
}

.activity-date {
  color: var(--wbw-text-light);
}

.activity-badge {
  display: inline-block;
  background: var(--wbw-red);
  color: var(--wbw-white);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  letter-spacing: 0.5px;
}

.activity-badge--green {
  background: #27ae60;
}

.activity-badge--blue {
  background: #2980b9;
}

.activity-title {
  font-size: 0.875rem;
  line-height: 1.4;
}

.activity-link {
  display: block;
  text-align: right;
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wbw-text);
}

.activity-link:hover {
  color: var(--wbw-red);
}

/* Neueste Aktivitaeten Widget */
.wbw-aktivitaeten { list-style: none; margin: 0; padding: 0; }
.wbw-aktivitaeten li { margin-bottom: 0; padding: 8px 6px; border-bottom: 1px solid rgba(0,0,0,.06); transition: background .15s ease; }
.wbw-aktivitaeten li:hover { background: rgba(0,0,0,.03); border-radius: 4px; }
.wbw-aktivitaeten li:last-child { border-bottom: none; }
.wbw-aktivitaeten .wbw-akt-meta { display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.wbw-aktivitaeten .wbw-akt-date { font-size: 12px; color: #555; }
.wbw-aktivitaeten .wbw-akt-label { font-size: 11px !important; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.wbw-akt-label--dossier { background: #2e7d32; color: #fff; }
.wbw-akt-label--beitrag { background: #1565c0; color: #fff; }
.wbw-akt-label--mustertext { background: #bf360c; color: #fff; }
.wbw-akt-label--medien { background: #7b1fa2; color: #fff; }
.wbw-akt-label--faq { background: #00695c; color: #fff; }
.wbw-akt-label--kanton { background: #c62828; color: #fff; }
.wbw-akt-label--petition { background: #e65100; color: #fff; }
.wbw-aktivitaeten .wbw-akt-title { font-size: 13px; line-height: 1.35; }
.wbw-aktivitaeten .wbw-akt-title a { color: inherit; text-decoration: none; }
.wbw-aktivitaeten .wbw-akt-title a:hover { text-decoration: underline; }
.wbw-akt-footer { margin-top: 10px; text-align: right; font-size: 12px; }
.wbw-akt-footer a { color: #555; text-decoration: none; font-weight: 600; }
.wbw-akt-footer a:hover { text-decoration: underline; }

/* Chronik Widget/Shortcode */
.wbw-chronik { margin: 0; padding: 0; }
.wbw-chronik-monat { font-size: 1.5rem; font-weight: 700; margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 2px solid rgba(0,0,0,.1); }
.wbw-chronik-monat:first-child { margin-top: 0; }
.wbw-chronik-liste { list-style: none; margin: 0 0 20px; padding: 0; }
.wbw-chronik-liste li { margin-bottom: 0; padding: 8px 6px; border-bottom: 1px solid rgba(0,0,0,.06); transition: background .15s ease; }
.wbw-chronik-liste li:hover { background: rgba(0,0,0,.03); border-radius: 4px; }
.wbw-chronik-liste li:last-child { border-bottom: none; }
.wbw-chronik-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 2px; }
.wbw-chronik-date { font-size: 0.9375rem; color: #555; min-width: 85px; }
.wbw-chronik-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; padding: 2px 8px; border-radius: 3px; white-space: nowrap; }
.wbw-ck-dossier { background: #2e7d32; color: #fff; }
.wbw-ck-beitrag { background: #1565c0; color: #fff; }
.wbw-ck-mustertext { background: #bf360c; color: #fff; }
.wbw-ck-medien { background: #7b1fa2; color: #fff; }
.wbw-ck-faq { background: #00695c; color: #fff; }
.wbw-ck-kanton { background: #c62828; color: #fff; }
.wbw-ck-petition { background: #e65100; color: #fff; }
.wbw-chronik-title { font-size: 1.125rem; line-height: 1.5; }
.wbw-chronik-title a { color: inherit; text-decoration: none; }
.wbw-chronik-title a:hover { text-decoration: underline; }
.wbw-chronik-total { font-size: 13px; color: #555; margin-top: 16px; text-align: right; }
.wbw-chronik-legende { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.08); }

/* Image Banner Widget */
.widget-banner img {
  width: 100%;
  height: auto;
}

/* Category Tag Cloud Widget */
.widget-categories .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.widget-categories .tag-cloud a {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 5px 14px;
  font-size: 0.8125rem;
  color: var(--wbw-white);
  transition: all 0.2s;
}

.widget-categories .tag-cloud a:hover {
  background: var(--wbw-white);
  color: var(--wbw-dark);
}

/* === EINORDNUNG / FULL WIDTH SECTION === */
.einordnung-section {
  margin-top: 0;
  border-top: 1px solid var(--wbw-border);
}

.section-einordnung {
  max-width: var(--wbw-max-width);
  margin: 0 auto;
  padding: 40px 20px 50px;
}

.section-einordnung h2 {
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-einordnung p,
.einordnung-content p {
  max-width: 800px;
  margin: 0 auto 15px;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.einordnung-content {
  max-width: 800px;
  margin: 0 auto;
}

.einordnung-content h3 {
  font-size: 1.125rem;
  margin: 1.25em 0 0.5em;
}

.einordnung-content a {
  color: var(--wbw-red);
}

.einordnung-content a:hover {
  color: var(--wbw-red-dark);
}

.einordnung-content details {
  margin-bottom: 5px;
}

.einordnung-content summary {
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--wbw-border);
}

.einordnung-content details[open] summary {
  margin-bottom: 10px;
}

.section-einordnung details {
  max-width: 800px;
  margin: 0 auto;
}

.section-einordnung summary {
  cursor: pointer;
  font-size: 0.9375rem;
  padding: 8px 0;
}

.homepage-faq a, .homepage-faq a:visited { color: #cc0000; text-decoration: underline; }
.homepage-faq a:hover { color: #990000; }

/* === SINGLE POST === */
.single-header {
  margin-bottom: 25px;
}

.single-cat {
  display: inline-block;
  background: var(--wbw-red);
  color: var(--wbw-white);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.single-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.single-subtitle {
  font-size: 1.125rem;
  color: var(--wbw-text-light);
  line-height: 1.5;
  margin-bottom: 15px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--wbw-text-light);
  margin-bottom: 15px;
}

.single-meta img {
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.single-meta-text {
  line-height: 1.4;
}

/* Share Buttons */
.single-share {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wbw-white) !important;
  text-decoration: none !important;
  transition: opacity 0.2s;
}

.share-btn:hover {
  opacity: 0.85;
  color: var(--wbw-white) !important;
}

.share-fb {
  background: #1877f2;
}

.share-tw {
  background: #000;
}

.share-email {
  background: #555;
}

/* Bottom Share Bar (full width) */
.single-share-bottom {
  display: flex;
  margin: 30px 0;
}

.share-bottom-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  color: var(--wbw-white) !important;
  text-decoration: none !important;
  font-size: 1.125rem;
  font-weight: 700;
  transition: opacity 0.2s;
}

.share-bottom-btn:hover {
  opacity: 0.85;
  color: var(--wbw-white) !important;
}

.share-bottom-fb { background: #1877f2; }
.share-bottom-tw { background: #333; }
.share-bottom-email { background: #555; }
.share-bottom-wa { background: #25d366; }
.share-bottom-link { background: #0077b5; }

/* Related Posts */
.related-posts {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--wbw-border);
}

.related-title {
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--wbw-red);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 25px;
}

.related-card-image {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 10px;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.related-card:hover .related-card-image img {
  transform: scale(1.03);
}

.related-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
  text-align: center;
}

.related-card-title a {
  color: var(--wbw-text);
}

.related-card-title a:hover {
  color: var(--wbw-red);
}

.related-card-date {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: var(--wbw-text-light);
}

/* Spenden CTA */
.wbw-spenden-cta {
  text-align: center;
  padding: 30px 25px;
  margin-top: 30px;
  border: 1px solid var(--wbw-border);
}

.wbw-spenden-cta strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.wbw-spenden-cta p {
  font-size: 0.9375rem;
  color: var(--wbw-text-light);
  margin-bottom: 15px;
}

.wbw-spenden-btn {
  display: inline-block;
  border: 2px solid var(--wbw-text);
  padding: 10px 30px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wbw-text);
  border-radius: 30px;
  transition: all 0.2s;
}

.wbw-spenden-btn:hover {
  background: var(--wbw-text);
  color: var(--wbw-white);
}

.single-featured-image {
  margin-bottom: 25px;
}

.single-featured-image img {
  width: 100%;
  height: auto;
}

.single-content {
  font-size: 1.3125rem !important;
  line-height: 1.75 !important;
  /* WordPress.com CSS Custom Properties ueberschreiben */
  --wp--preset--font-size--small: 1.125rem;
  --wp--preset--font-size--medium: 1.3125rem;
  --wp--preset--font-size--large: 1.3125rem;
  --wp--preset--font-size--x-large: 1.3125rem;
}

/* Block-Editor Global-Styles zuruecksetzen (Embeds ausgenommen) */
.single-content > p,
.single-content > .wp-block-paragraph,
.single-content > ul,
.single-content > ol,
.single-content > .wp-block-list,
.single-content li,
.single-content > label,
.single-content > figcaption {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* WordPress has-*-font-size Klassen ueberschreiben */
.single-content .has-small-font-size,
.single-content .has-medium-font-size,
.single-content .has-large-font-size,
.single-content .has-x-large-font-size,
.single-content [class*="has-"][class*="-font-size"] {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Ueberschriften: eigene Groessen beibehalten */
.single-content h1,
.single-content h1[style] { font-size: 1.875rem !important; line-height: 1.3 !important; }
.single-content h2,
.single-content h2[style] { font-size: 1.5rem !important; line-height: 1.3 !important; }
.single-content h3,
.single-content h3[style] { font-size: 1.3125rem !important; line-height: 1.3 !important; }
.single-content h4,
.single-content h4[style] { font-size: 1.1875rem !important; line-height: 1.4 !important; }

.single-content .wp-block-heading {
  line-height: 1.3 !important;
}

/* Embeds: YouTube / Video */
.single-content .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe,
.single-content .wp-block-embed-youtube .wp-block-embed__wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
}

/* Embeds: WordPress oEmbed-Karten (nicht Video) */
.single-content .wp-block-embed {
  margin: 8px 0 !important;
}

.single-content .wp-block-embed__wrapper {
  position: relative;
  max-width: 800px;
}

.single-content p {
  margin-bottom: 1.2em;
}

.single-content h2 {
  margin: 1.5em 0 0.75em;
  font-weight: 700;
}

.single-content h3 {
  margin: 1.25em 0 0.5em;
  font-weight: 700;
}

.single-content blockquote {
  border-left: 4px solid var(--wbw-red);
  padding: 15px 20px;
  margin: 1.5em 0;
  background: #f9f9f9;
  font-style: italic;
}

.single-content ul,
.single-content ol {
  margin: 1em 0 1em 1.5em;
}

.single-content ul {
  list-style: disc;
}

.single-content ol {
  list-style: decimal;
}

.single-content li {
  margin-bottom: 0.5em;
}

.single-content img {
  margin: 1.5em 0;
}

.single-content a {
  color: var(--wbw-red);
  text-decoration: underline;
}

.single-content a:hover {
  color: var(--wbw-red-dark);
}

.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.single-content th,
.single-content td {
  border: 1px solid var(--wbw-border);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.9375rem;
}

.single-content th {
  background: #f5f5f5;
  font-weight: 700;
}

/* Post navigation */
.post-nav {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--wbw-border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.post-nav a {
  font-size: 0.875rem;
  font-weight: 600;
}

/* === FOOTER === */
.site-footer-widgets {
  background: var(--wbw-dark) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 40px 0 !important;
}

.site-footer-widgets a {
  color: rgba(255, 255, 255, 0.85) !important;
}

.site-footer-widgets a:hover {
  color: var(--wbw-white) !important;
}

.footer-columns {
  max-width: var(--wbw-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 40px !important;
}

/* Jedes direkte Kind der footer-columns als Grid-Item */
.footer-columns > * {
  min-width: 0;
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wbw-white) !important;
  margin-bottom: 20px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85) !important;
}

.footer-col a:hover {
  color: var(--wbw-white) !important;
}

/* Footer category pills */
.footer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-cat-tag {
  display: inline-block;
  padding: 10px 14px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.footer-cat-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--wbw-white) !important;
  color: var(--wbw-white) !important;
}

/* Footer quote */
.footer-quote {
  font-style: italic;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 15px;
  line-height: 1.6;
}

/* Newsletter form in footer */
.footer-newsletter p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-newsletter label {
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: var(--wbw-white);
  color: var(--wbw-text);
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.footer-newsletter button {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: var(--wbw-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}

.footer-newsletter button:hover {
  background: var(--wbw-white);
  color: var(--wbw-dark);
}

/* Footer about */
.footer-about {
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-about strong {
  color: var(--wbw-white);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 15px 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--wbw-white);
  font-size: 1rem;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 0.8;
}

.footer-social .social-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social .social-youtube {
  background: #c00;
}

.footer-social .social-facebook {
  background: #1877f2;
}

/* Bottom bar */
.site-footer-bottom {
  background: var(--wbw-black);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 20px 0;
  font-size: 0.8125rem;
  line-height: 1.8;
}

.site-footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer-bottom a:hover {
  color: var(--wbw-white);
}

/* === SEARCH OVERLAY === */
.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.97);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  overflow-y: auto;
}

.search-overlay.active {
  display: flex;
}

.search-overlay-inner {
  width: 90%;
  max-width: 700px;
}

.search-overlay form {
  width: 100%;
}

.search-overlay input[type="search"] {
  width: 100%;
  padding: 18px 20px;
  font-size: 2.5rem;
  font-weight: 900;
  border: none;
  border-bottom: 3px solid var(--wbw-dark);
  background: transparent;
  color: #000;
  outline: none;
  font-family: var(--wbw-font);
}

.search-overlay input[type="search"]::placeholder {
  color: #000;
  font-weight: 900;
}

.search-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--wbw-dark);
  font-size: 2rem;
  cursor: pointer;
}

.search-hint {
  font-size: 0.8125rem;
  color: var(--wbw-text-light);
  margin-top: 12px;
  line-height: 1.5;
}

/* Live Search Results */
.wbw-live-search-results {
  margin-top: 10px;
}

.wbw-live-box {
  background: var(--wbw-white);
  border: 1px solid var(--wbw-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
}

.wbw-live-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wbw-live-results li {
  border-bottom: 1px solid var(--wbw-border);
}

.wbw-live-results li:last-child {
  border-bottom: none;
}

.wbw-live-results a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 8px;
  text-decoration: none;
  color: var(--wbw-text);
  transition: background 0.15s;
}

.wbw-live-results a:hover {
  background: rgba(0, 0, 0, 0.03);
}

.wbw-live-thumb {
  flex: 0 0 60px;
}

.wbw-live-thumb img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  display: block;
}

.wbw-live-text {
  flex: 1;
  min-width: 0;
}

.wbw-live-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--wbw-dark);
}

.wbw-live-date {
  display: block;
  font-size: 0.8125rem;
  color: var(--wbw-text-light);
  margin-top: 2px;
}

.wbw-live-all {
  padding: 12px 8px;
  text-align: center;
  border-top: 1px solid var(--wbw-border);
  background: #f9f9f9;
}

.wbw-live-all a {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--wbw-text);
  text-decoration: none;
}

.wbw-live-all a:hover {
  color: var(--wbw-red);
}

.wbw-live-no-results {
  padding: 20px 8px;
  color: var(--wbw-text-light);
  font-size: 0.875rem;
}

/* === LANGUAGE DROPDOWN === */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--wbw-white);
  border: 1px solid var(--wbw-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 100;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu {
  display: block;
}

.lang-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.8125rem;
  color: var(--wbw-text);
}

.lang-menu a:hover {
  background: #f5f5f5;
}

/* === ARCHIVE / CATEGORY PAGES === */
.archive-header {
  margin-bottom: 25px;
}

.archive-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  padding-left: 15px;
  border-left: 4px solid var(--wbw-red);
}

.archive-description {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--wbw-text-light);
}

/* === 404 === */
.error-404 {
  text-align: center;
  padding: 60px 20px;
}

.error-404 h1 {
  font-size: 3rem;
  color: var(--wbw-red);
  margin-bottom: 15px;
}

.error-404 p {
  font-size: 1.125rem;
  margin-bottom: 20px;
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
  .content-wrap {
    flex-direction: column;
  }

  .content-sidebar {
    flex: none;
    width: 100%;
  }

  .footer-columns {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Topbar: komplett versteckt */
  .topbar {
    display: none !important;
  }

  /* Header: Suche links, Logo mitte, Globe rechts */
  .header-left,
  .header-right {
    display: block;
    flex: 1;
  }

  .header-left {
    text-align: left;
  }

  .header-right {
    text-align: right;
  }

  .btn-cta {
    display: none;
  }

  .mobile-search {
    display: inline-block;
  }

  .site-header .wrap {
    justify-content: space-between;
  }

  .site-logo img {
    max-height: 45px;
  }

  /* Navigation: Desktop-Menu ausblenden, Mobile-Menu anzeigen */
  .nav-desktop {
    display: none !important;
  }

  .nav-mobile {
    display: flex !important;
    justify-content: flex-start;
  }

  .nav-toggle {
    display: none !important;
  }

  .main-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav .wrap {
    justify-content: flex-start;
    padding: 0;
  }

  .main-nav ul,
  .main-nav .menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 0 10px;
    gap: 0;
  }

  .main-nav li a {
    padding: 10px 14px;
    font-size: 0.8125rem;
    white-space: nowrap;
    border-bottom: none;
  }

  /* Scrollbar verstecken */
  .main-nav::-webkit-scrollbar,
  .main-nav ul::-webkit-scrollbar,
  .main-nav .menu::-webkit-scrollbar {
    display: none;
  }

  .main-nav,
  .main-nav ul,
  .main-nav .menu {
    scrollbar-width: none;
  }

  /* Content */
  .content-wrap {
    padding: 20px 15px;
    gap: 25px;
  }

  .page-heading {
    font-size: 0.9375rem;
  }

  /* Post Grid: 1 Spalte */
  .post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Single Post */
  .single-title {
    font-size: 1.25rem;
  }

  .single-subtitle {
    font-size: 1rem;
  }

  .single-meta {
    flex-wrap: wrap;
  }

  /* Share Buttons */
  .single-share {
    flex-wrap: wrap;
  }

  .share-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .single-share-bottom {
    flex-wrap: nowrap;
  }

  .share-bottom-btn {
    padding: 10px 0;
    font-size: 0.9375rem;
  }

  /* Related Posts: 1 Spalte */
  .related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Breadcrumbs */
  .wbw-breadcrumbs {
    font-size: 0.75rem;
    line-height: 1.5;
    word-break: break-word;
  }

  /* Spenden CTA */
  .wbw-donation {
    padding: 1.5rem 1rem;
  }

  .wbw-donation h3 {
    font-size: 1.2rem;
  }

  /* Pagination */
  .pagination {
    flex-wrap: wrap;
  }

  /* Einordnung */
  .section-einordnung {
    padding: 25px 15px;
  }

  .section-einordnung h2 {
    font-size: 1.125rem;
  }

  /* Search Overlay */
  .search-overlay input[type="search"] {
    font-size: 1rem;
    padding: 14px 15px;
  }
}

/* Kleine Handys */
@media (max-width: 480px) {
  .topbar {
    padding: 4px 0;
  }

  .topbar-inner {
    padding: 0 10px;
  }

  .site-header {
    padding: 10px 0;
  }

  .post-card-title {
    font-size: 0.9375rem;
  }

  .widget-title {
    font-size: 0.75rem;
    padding: 10px 14px;
  }

  .share-bottom-btn {
    font-size: 0.8125rem;
  }

  .related-card-title {
    font-size: 0.8125rem;
  }
}

/* === WORDPRESS DEFAULTS === */
.alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin: 1em auto;
}

.wp-caption {
  max-width: 100%;
  margin-bottom: 1em;
}

.wp-caption-text {
  font-size: 0.8125rem;
  color: var(--wbw-text-light);
  padding-top: 6px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Gallery */
.gallery {
  display: grid;
  gap: 10px;
  margin: 1.5em 0;
}

.gallery-columns-2 { grid-template-columns: 1fr 1fr; }
.gallery-columns-3 { grid-template-columns: 1fr 1fr 1fr; }
.gallery-columns-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

/* Comments (minimal) */
.comments-area {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--wbw-border);
}

.comments-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.comment-list {
  list-style: none;
}

.comment-body {
  padding: 15px 0;
  border-bottom: 1px solid var(--wbw-border);
}

.comment-meta {
  font-size: 0.8125rem;
  color: var(--wbw-text-light);
  margin-bottom: 8px;
}

.comment-content {
  font-size: 0.9375rem;
}

.comment-respond {
  margin-top: 30px;
}

.comment-form label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--wbw-border);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.comment-form textarea {
  min-height: 150px;
}

.comment-form .submit {
  background: var(--wbw-red);
  color: var(--wbw-white);
  border: none;
  padding: 10px 25px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comment-form .submit:hover {
  background: var(--wbw-red-dark);
}

/* === KONTAKTFORMULAR (Jetpack / Block) === */
.single-content .wp-block-jetpack-contact-form label,
.single-content .contact-form label {
  display: block;
  font-size: 0.9375rem !important;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--wbw-text);
}

.single-content .wp-block-jetpack-contact-form input[type="text"],
.single-content .wp-block-jetpack-contact-form input[type="email"],
.single-content .wp-block-jetpack-contact-form input[type="tel"],
.single-content .wp-block-jetpack-contact-form input[type="url"],
.single-content .wp-block-jetpack-contact-form textarea,
.single-content .contact-form input[type="text"],
.single-content .contact-form input[type="email"],
.single-content .contact-form input[type="tel"],
.single-content .contact-form input[type="url"],
.single-content .contact-form textarea,
.single-content .wpcf7 input[type="text"],
.single-content .wpcf7 input[type="email"],
.single-content .wpcf7 input[type="tel"],
.single-content .wpcf7 input[type="url"],
.single-content .wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--wbw-border);
  font-size: 1rem !important;
  font-family: var(--wbw-font);
  margin-bottom: 16px;
  background: var(--wbw-white);
  color: var(--wbw-text);
  box-sizing: border-box;
}

.single-content .wp-block-jetpack-contact-form textarea,
.single-content .contact-form textarea,
.single-content .wpcf7 textarea {
  min-height: 200px;
  resize: vertical;
}

.single-content .wp-block-jetpack-contact-form input:focus,
.single-content .wp-block-jetpack-contact-form textarea:focus,
.single-content .contact-form input:focus,
.single-content .contact-form textarea:focus,
.single-content .wpcf7 input:focus,
.single-content .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--wbw-red);
}

.single-content .wp-block-jetpack-button button,
.single-content .wp-block-jetpack-contact-form [type="submit"],
.single-content .contact-form [type="submit"],
.single-content .contact-submit button,
.single-content .wpcf7 input[type="submit"],
.single-content .wpcf7-submit {
  display: inline-block;
  background: var(--wbw-red) !important;
  color: var(--wbw-white) !important;
  border: none !important;
  padding: 14px 36px;
  font-size: 0.875rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
  min-height: 48px;
}

.single-content .wp-block-jetpack-button button:hover,
.single-content .wp-block-jetpack-contact-form [type="submit"]:hover,
.single-content .contact-form [type="submit"]:hover,
.single-content .contact-submit button:hover,
.single-content .wpcf7 input[type="submit"]:hover,
.single-content .wpcf7-submit:hover {
  background: var(--wbw-red-dark) !important;
}

/* === BREADCRUMBS === */
.wbw-breadcrumbs {
  font-size: 0.8125rem;
  color: var(--wbw-text-light);
  margin-bottom: 15px;
  line-height: 1.4;
}

.wbw-breadcrumbs a {
  color: var(--wbw-text-light);
}

.wbw-breadcrumbs a:hover {
  color: var(--wbw-red);
}

/* === DOSSIER-HINWEIS === */
.wbw-dossier-hinweis {
  margin-top: 30px;
  padding: 15px 20px;
  background: #f8f8f8;
  border-left: 4px solid var(--wbw-red);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.wbw-dossier-hinweis a {
  color: var(--wbw-red);
}

.wbw-dossier-hinweis a:hover {
  color: var(--wbw-red-dark);
}

/* === SMARTMAG COMPAT / CUSTOMIZER STYLES === */

/* Donation CTA (Reusable Block compat) */
.wbw-donation {
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  max-width: 720px;
  text-align: center;
  background: #f6f7f8;
  border-radius: 6px;
}

.wbw-donation h3 {
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
}

.wbw-donation p {
  margin-bottom: 1.2rem;
  color: #444;
}

.wbw-donation-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  text-decoration: none;
  color: #3a7d44;
  background: transparent;
  border: 2px solid #3a7d44;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.wbw-donation-btn span {
  transition: transform 0.2s ease;
}

.wbw-donation-btn:hover {
  background: #3a7d44;
  color: #fff;
}

.wbw-donation-btn:hover span {
  transform: translateX(4px);
}

/* Blockquote */
.wp-block-quote {
  border-left: 5px solid var(--wbw-red);
}

/* Hidden title: WordPress.com + Jetpack + manuell */
.hidden-title,
.hide-page-title .single-title,
.page-title-hidden .single-title,
body.hide-title .single-title,
.post-title-hidden .single-title {
  display: none;
}

/* Screen reader anchor */
.wbw-reader-anchor {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Homepage Einordnung spacing */
.homepage-context-row {
  margin-top: 3rem;
}

.homepage-context {
  text-align: center;
}

.homepage-context h2 {
  margin-bottom: 1rem;
}

.homepage-context p,
.homepage-context details {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
