:root { --container: 1100px; }
.container { max-width: var(--container); margin-inline: auto; padding: 1rem; }
.site-header, .site-footer { background: #f7f7f7; }
.menu { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1rem; }
.hero .hero-card { display: block; padding: 1rem; }
.post-card { display: block; margin-bottom: 1rem; }

body {
	overflow-x: hidden;
}

.text-color-primary {
	color: rgb(6, 77, 150) !important;
}
.bg-color-primary {
	background-color: rgb(6, 77, 150, 25%) !important;
}
.text-color-secondary {
	color: rgb(246, 188, 46) !important;
}
.bg-color-secondary {
	background-color: rgb(246, 188, 46, 25%) !important;
}
/* Vollbreit ziehen – Hintergrund geht bis an den Viewportrand */
.full-bleed {
  margin-inline: calc(50% - 50vw);
  padding-inline: clamp(1rem, 3vw, 3rem); /* etwas Seitenluft */
}
.mw-800 {
	max-width: 800px; !important;
}



.text-hero-1 {
	color: rgb(6,77,150) !important;
}
.bg-hero-1 {
	background-color: rgb(6,77,150, 10%) !important;
}
.text-hero-2 {
	color: rgb(230,65,29) !important;
}
.bg-hero-2 {
	background-color: rgb(230,65,29, 10%) !important;
}
.text-hero-3 {
	color: rgb(245,189,46) !important;
}
.bg-hero-3 {
	background-color: rgb(245,189,46, 10%) !important;
}
.hero-card {
  padding: 20px;
  line-height: 1.4em;
  font-weight: 700;
  display: inline-block;
  border-radius: var(--wa-border-radius-m);
}

.donate-banner {
  /*background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);*/
  color: #fff;
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.donate-card { display:block; background: rgba(255,255,255,0.08); backdrop-filter: blur(6px); }
.donate-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1rem;
}
.donate-headline {
  margin: 0 0 .25rem;
  font-size: clamp(1.25rem, 2vw + 1rem, 1.75rem);
  display: flex; gap: .6rem; align-items: center;
}
.donate-sub { margin: 0; opacity: .95; }
.donate-cta wa-button { --wa-button-width: auto; }
.donate-cta i { margin-right: .5rem; }
@media (max-width: 720px) {
  .donate-content { grid-template-columns: 1fr; text-align: center; }
  .donate-cta { justify-self: center; }
}


/* ========== BEGIN: BEITRAG ==========*/
article {
	max-width: 800px !important;
}

main .container {
	max-width: 800px !important;
}
/* =========== END: BEITRAG ===========*/


/* ========== BEGIN: HEADER ==========*/
h1.welcome-md {
  margin: auto;
    margin-top: auto;
    margin-left: auto;
  background-color: #f6bc2e;
  color: #fff;
  padding: 20px;
  line-height: 1.4em;
  font-weight: 700;
  margin-left: -100px;
  display: inline-block;
  border-radius: var(--wa-border-radius-m);
}
h1.welcome {
  background-color: #f6bc2e;
  color: #fff;
  padding: 20px;
  line-height: 1.4em;
  font-weight: 700;
  display: inline-block;
  border-radius: var(--wa-border-radius-m);
}
/* =========== END: HEADER ===========*/


/* ========== BEGIN: FOOTER ==========*/
.unique-color-dark {
  background-color: #1c2331 !important;
}
footer.page-footer .footer-copyright {
  overflow: hidden;
  color: rgba(255,255,255,0.6);
  background-color: rgba(0,0,0,0.2);
}
/* ========== END: FOOTER ==========*/

.fa-flex {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

h1:not(.no-decals):before, h2:not(.no-decals):before {
    content: '';
    height: 0.9rem;
    display: block;
    background-image: url('/wp-content/themes/verein-theme/assets/img/drei-punkte.svg');
    background-size: contain;
    background-repeat: no-repeat;
	margin-top: 2rem !important;
}

/* ========== BEGIN: NEWS ==========*/
/* Grid für Teaser */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1rem;
}
.news-thumb {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;        /* Bild wird passend beschnitten */
  max-height: 280px;        /* Höhe begrenzen */
}
.news-card, .news-teaser {
  display: flex;
  flex-direction: column;
}
.news-card img, .news-teaser img {
  object-position: center;  /* zentrieren */
}

/* Artikelkopf */
.article-hero .hero-image img { width:100%; height:auto; display:block; border-radius: 12px; margin-bottom: .75rem; }
.article-title { margin:.5rem 0 0.25rem; }

/* Spalten-/Media&Text-Block leichte Abstände */
.wp-block-columns { gap: 1.25rem; align-items: start; }
.wp-block-media-text { gap: 1rem; }

/* Tabelle Block-Styles */
.wp-block-table { width:100%; overflow-x:auto; }
.wp-block-table table { width:100%; border-collapse: collapse; }
.wp-block-table th, .wp-block-table td { padding:.6rem .8rem; border:1px solid #e5e5e5; }
.wp-block-table thead th { background:#f7f7f9; font-weight:600; }
.wp-block-table tbody tr:nth-child(even) { background:#fafafa; }
/* =========== END: NEWS ===========*/

/* ========== BEGIN: KONTAKT ========== */
.kontakt-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1.2fr .8fr;
}
@media (max-width: 860px){ .kontakt-grid { grid-template-columns: 1fr; } }

.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px){ .form-row { grid-template-columns: 1fr; } }

.form-field { margin-bottom: .9rem; }
.form-field label { display:block; font-weight:600; margin-bottom:.35rem; }
.form-field input, .form-field textarea {
  width:100%; padding:.7rem .8rem; border:1px solid #ddd; border-radius: .5rem; font:inherit;
}
.form-consent { margin: 1rem 0; }
.consent-label { display:flex; align-items:flex-start; gap:.6rem; }
.consent-label input { margin-top:.2rem; }

.form-actions { margin-top: 1rem; }
.notice { display:block; }
.notice.success { border-left: 4px solid #198754; }
.notice.error   { border-left: 4px solid #dc3545; }

/* Hilfsklasse für Icons */
.fa-flex { display:inline-flex; align-items:center; justify-content:center; line-height:1; }
/* =========== END: KONTAKT =========== */


/* ========== BEGIN: MENU ========== */
:root {
  --container: 1100px;

  /* Nav-Button-Design */
  --nav-btn-h: 42px;
  --nav-pad-x: .9rem;
  --nav-radius: .6rem;

  /* Farben */
  --nav-primary: #E6411D;         /* Blau */
  --nav-primary-hover: #E57862;
  --nav-on-primary: #fff;
  --nav-active-bg: #f4f6f8;       /* Grau für aktiv */
  --nav-active-bd: #e5e7eb;
  --focus: 0 0 0 3px rgba(13,110,253,.25);
}

.container { max-width: var(--container); margin-inline: auto; padding: 0 1rem; }

/* Header-Grundlayout */
.site-header {
  /* position: sticky; */ top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #eee;
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 1rem; min-height: 64px;
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
}
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { display: block; height: auto; max-height: 96px; }

/* Nav rechts */
.site-nav { display: block; }
.nav-list {
  list-style: none;
  display: flex;
  flex: 1 1 auto;
  justify-content: stretch;
  margin: 0; padding: 0; gap: .3rem;
  position: relative;
}
.nav-list > li {
  flex: 1 1 0;
  min-width: 150px;
  position: relative; overflow: visible;
}
.nav-list > li > a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--nav-btn-h);
  padding: 0 var(--nav-pad-x);
  border-radius: var(--nav-radius);
  background: var(--nav-primary);
  color: var(--nav-on-primary);
  border: 1px solid transparent;
  line-height: 1;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.nav-list > li > a:hover { background: var(--nav-primary-hover); }
.nav-list > li > a:focus-visible { outline: none; box-shadow: var(--focus); }

/* Einheitliche Icon-Größe innerhalb der Links (inkl. FA7 Whiteboard) */
.nav-list > li > a i {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95em; line-height: 1;
}

/* Aktiver Menüpunkt + Ahnenzustand: grau hervorheben */
.nav-list > li.current-menu-item > a,
.nav-list > li.current-page-ancestor > a {
  background: var(--nav-active-bg);
  color: inherit;
  border-color: var(--nav-active-bd);
}

/* Caret NUR bei Items mit Untermenü (Font Awesome 7 Whiteboard) */
.nav-list > li.menu-item-has-children > a::after {
  content: "\f107"; /* angle-down / caret; Codepoint wie FA6, Family = FA7 Whiteboard */
  font-family: "Font Awesome 7 Whiteboard";
  font-weight: 900;
  display: inline-block;
  margin-left: .35rem;
  line-height: 1;
}

/* Dropdowns (Unterseiten) */
.nav-list li .sub-menu,
.nav-list li .children {
  position: absolute; top: 100%; right: 0;
  min-width: 220px; background: #fff; border: 1px solid #eee; border-radius: .6rem;
  padding: .4rem; display: none; box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.nav-list li:hover > .sub-menu,
.nav-list li:hover > .children { display: block; }
/* Einträge im Dropdown */
.sub-menu li a, .children li a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .6rem;
  border-radius: .4rem;
  line-height: 1;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.sub-menu li a:hover, .children li a:hover { background: #f4f6f8; }

.sub-menu .menu-item-object-post {
	margin-inline-start: 0.125em !important;
}
.sub-menu .menu-item-object-page {
	margin-inline-start: 0.125em !important;
}

/* Submenu-Grundlayout ohne Standard-Bullets */
.sub-menu,
.children {
  list-style: none;   /* <– Bulletpoints ausschalten */
  margin: 0;
  padding: 0;    /* Reset, wir fügen eigenen Einzug hinzu */
}
/* Bullets in Submenüs als FA7-Play-Symbol */
.sub-menu li a::before,
.children li a::before {
  content: "\f04b"; /* fa-play */
  font-family: "Font Awesome 7 Whiteboard";
  font-weight: 900;
  display: inline-block;
  margin-right: .2rem;
  font-size: .8em;
  line-height: 1;
  color: var(--nav-primary, #0d6efd); /* gleiche Farbe wie deine Buttons */
}

/* Mobile: Toggle sichtbar, Nav kollabiert */
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .header-inner { grid-template-columns: auto auto; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; grid-column: 1 / -1; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: .25rem; padding: .5rem 0; }
  .nav-list > li > a { white-space: normal; } /* Umbrechen erlauben */
  .nav-list li .sub-menu, .nav-list li .children {
    position: static; border: 0; box-shadow: none; padding: 0; display: block;
  }
  .nav-list li > a { padding: .6rem .4rem; }
}

/* Screenreader-only helper */
.sr-only {
  position: absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); border:0;
}

/* Aktiver Pfeil (links) – FA7 Whiteboard; bleibt schlank dank line-height:1 */
.nav-list > li.current-menu-item > a::before,
/*
.nav-list > li.current-page-ancestor > a::before {
  content: "\f105";
  font-family: "Font Awesome 7 Whiteboard"; font-weight: 900;
  display: inline-block; margin-right: .35rem; line-height: 1;
}
*/
/* =========== END: MENU =========== */



/* NEWS CARD */
.wa-news-card {
  border: 6px solid rgb(245, 189, 46);   /* CI-Farbe */
  border-radius: 0;                      /* eckig */
  background: #fff;                      /* weißer Hintergrund */
  color: #111;
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  box-shadow: none;
}

.wa-news-card__thumb {
  display: block;
  line-height: 0;
  border: 3px solid transparent; /* Platz für Fokusrahmen */
}

.news-thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.wa-news-card__header {
  margin: 0;
}

.wa-news-card__title {
  font-size: clamp(1.125rem, 1.2vw + 1rem, 1.5rem);
  line-height: 1.2;
  margin: 0;
}

.wa-news-card__title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.wa-news-card__title-link:hover {
  border-bottom-color: rgb(245, 189, 46);
}

.wa-news-card__excerpt {
  margin: 0;
  color: #333;
  font-size: 1rem;
}

.wa-button {
  display: inline-block;
  font: inherit;
  text-decoration: none;
  border: 3px solid currentColor;
  padding: 0.6rem 1rem;
  border-radius: 0;
  line-height: 1;
  cursor: pointer;
}

.wa-button--neutral {
  color: #000;
  background: rgb(245, 189, 46);
}

.wa-button--neutral:hover {
  filter: brightness(0.95);
}

.wa-button--small {
  font-size: 1rem;
}

.wa-news-card__actions {
  margin: 0;
}

/* Tastatur-Fokus */
.wa-news-card a:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* Bewegungsreduktion beachten */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* NEWS CARD */
