/* KG Goubloch Styleguide v3 - Testweise Anwendung */

:root {
  --kg-rot: #96191E;          /* Plakat-Rot, empfohlene neue Primaerfarbe */
  --kg-rot-dunkel: #641428;   /* Hover/Tiefe */
  --kg-text: #4E5251;         /* Textgrau, aus website-css */
  --kg-hellgrau: #CDCBCA;     /* Plakat-Grau */
  --kg-kappe-gold: #D7CF54;   /* Akzent aus Narrenkappe */
  --kg-kappe-blau: #28418F;   /* Akzent aus Narrenkappe */
  --kg-stempel-gold: #BD9634; /* Status-/Stempel-Farbe */
}

/* Fliesstext */
body,
p,
li,
.entry-content,
.elementor-widget-text-editor {
  font-family: 'Nunito', sans-serif !important;
  color: var(--kg-text);
}

/* Grosse Hero-Headline (H1) im Handschrift-Look des Plakat-Schriftzugs.
   Als h1.elementor-heading-title mit aufgefuehrt, damit diese Regel
   spezifischer ist als die reine .elementor-heading-title-Klasse unten
   (sonst gewinnt bei Elementor-Heading-Widgets, die als h1 gerendert
   werden, faelschlich die Fredoka-Regel). */
h1,
h1.elementor-heading-title,
h1.entry-title,
h1.page-title {
  font-family: 'Caveat', cursive !important;
  font-weight: 700 !important;
  font-size: 3em !important;
  line-height: 1.1 !important;
}

/* Zwischenueberschriften (H2-H6) in der runden Blockschrift.
   Bewusst ohne .entry-title/.page-title als Klassen, da diese auf
   Einzelseiten auch am echten h1 haengen koennen (siehe oben).
   Auch ohne den zusaetzlichen Selektor ".elementor-widget-heading
   .elementor-heading-title" (zwei Klassen = hoehere Spezifitaet als
   "h1.elementor-heading-title" oben - das hat die Caveat-Regel
   ausgehebelt). */
h2,
h3,
h4,
h5,
h6,
.elementor-heading-title {
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 600 !important;
}

/* Site-Titel / Logo-Schriftzug im Header, falls als Text sichtbar */
.site-title,
.site-title a,
#masthead .site-title a,
.ast-site-identity .site-title a {
  font-family: 'Caveat', cursive !important;
  font-weight: 700 !important;
  font-size: 2.2em !important;
}

/* Optionale Handschrift-Klasse fuer einzelne Textstellen in Elementor,
   z.B. das Vereinsmotto "Lebet glücklich, lebet froh...".
   Anwendung: <span class="kg-handschrift">Text</span> in ein
   Elementor-Text-Widget einfuegen. */
.kg-handschrift {
  font-family: 'Caveat', cursive !important;
  font-weight: 700 !important;
}

/* Links */
a,
a:visited {
  color: var(--kg-rot);
}
a:hover,
a:focus {
  color: var(--kg-rot-dunkel);
}

/* Buttons */
.ast-button,
button,
input[type="submit"],
.elementor-button,
.wp-block-button__link {
  background-color: var(--kg-rot) !important;
  border-color: var(--kg-rot) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 600 !important;
}
.ast-button:hover,
button:hover,
input[type="submit"]:hover,
.elementor-button:hover,
.wp-block-button__link:hover {
  background-color: var(--kg-rot-dunkel) !important;
  border-color: var(--kg-rot-dunkel) !important;
}

/* Abgerundete Karten statt der kantigen Zeta-Optik */
.elementor-widget-container,
.elementor-post__card,
.ast-card,
.comment-respond,
.widget {
  border-radius: 14px;
}

/* Wiederverwendbares Status-/Stempel-Badge, z. B. "Ausverkauft" im Terminplaner.
   Anwendung: <span class="kg-status-stempel">Ausverkauft!</span> in ein
   Elementor-Text-Widget bzw. eine Event-Karte einfuegen. */
.kg-status-stempel {
  display: inline-block;
  transform: rotate(-8deg);
  font-family: "Luckiest Guy", cursive !important;
  color: var(--kg-stempel-gold);
  -webkit-text-stroke: 1.5px #1a1a1a;
  letter-spacing: 1px;
}

/* EventPrime: "Details anschauen"-Balken auf den Terminkacheln in Plakat-Rot statt Schwarz */
.ep-btn.ep-btn-dark {
  background-color: var(--kg-rot) !important;
  border-color: var(--kg-rot) !important;
  color: #ffffff !important;
}
/* Beschriftung immer weiß (wie „Veranstaltungen finden“) – auch gegen die rote Link-Farbe */
.ep-btn.ep-btn-dark *,
a:hover > .ep-btn.ep-btn-dark,
a:hover > .ep-btn.ep-btn-dark *,
a:focus > .ep-btn.ep-btn-dark * {
  color: #ffffff !important;
}
a:hover > .ep-btn.ep-btn-dark,
.ep-btn.ep-btn-dark:hover {
  background-color: var(--kg-rot-dunkel) !important;
  border-color: var(--kg-rot-dunkel) !important;
}

/* =====================================================================
   v0.10 – Konsolidierung nach Design-Audit (Primärfarbe Plakat-Rot #96191E)
   Ersetzt das frühere Customizer-CSS (Sicherung: backup/customizer-css-v0.9.css).
   Astra-Palette: 0 Rot, 1 Rot-dunkel, 2/3 Textgrau, 4 Hellgrau, 5 Weiß,
   6 Plakat-Grau, 7 Dunkelgrau, 8 Textgrau.
   ===================================================================== */

:root {
  --kg-hellgrau-bg: #E9EAEC;  /* Hellgrau aus dem Designguide (Flächen) */
  --kg-weiss: #FFFFFF;        /* Plakat-Weiß – kein Creme */
  --kg-seite: #F3F3F4;        /* Seitenhintergrund: leichtes Grau, mildert den Kontrast zum roten Header */
}

/* --- Rahmen & Header in Plakat-Rot, Inhalt auf leichtem Grau --- */
body,
.ast-separate-container {
  background-color: var(--kg-rot) !important;
}
.ast-primary-header-bar,
.ast-above-header-bar,
.ast-below-header-bar,
.site-header .ast-container,
.ast-mobile-header-content {
  background-color: var(--kg-rot) !important;
}
.site-content .ast-container {
  background-color: var(--kg-seite) !important;
  color: var(--kg-text);
}
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single:not(.ast-related-post),
.ast-separate-container .comments-area,
.ast-separate-container .error-404,
.ast-separate-container .no-results {
  background-color: var(--kg-seite) !important;  /* Karten (Termine, Aktuelles) bleiben weiß und heben sich ab */
}

/* --- Navigation: weiß auf Rot --- */
.main-header-menu .menu-link,
.ast-builder-menu-mobile .main-navigation .menu-link,
.ast-header-break-point .main-header-menu .menu-link,
.main-header-menu .ast-menu-toggle,
.ast-header-navigation-arrow {
  color: #ffffff !important;
}
.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link {
  color: var(--kg-hellgrau) !important;
}
.main-header-menu .sub-menu {
  background-color: var(--kg-rot-dunkel) !important;
}
/* Burger-Symbol auf dem Handy */
.ast-mobile-menu-trigger-minimal,
.menu-toggle.ast-mobile-menu-trigger-minimal {
  color: #ffffff !important;
  background: transparent !important;
}
.menu-toggle .ast-mobile-svg {
  fill: #ffffff !important;
}

/* --- Text & Überschriften --- */
body {
  font-weight: 400;
}
.entry-content strong,
.entry-content b {
  color: inherit;
}
/* Inhalts-Überschriften in normaler Schreibweise (Astra setzt global Versalien) */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5,
.entry-title {
  text-transform: none !important;
}
/* Einheitliche Größenskala (Desktop/Mobil). H1 bleibt Caveat (siehe oben). */
h1, h1.elementor-heading-title, h1.entry-title, h1.page-title {
  font-size: clamp(2.25rem, 5vw, 2.8125rem) !important; /* 36–45px */
}
.entry-content h2 { font-size: clamp(1.625rem, 3.5vw, 1.875rem); }  /* 26–30px */
.entry-content h3 { font-size: clamp(1.3125rem, 3vw, 1.5rem); }     /* 21–24px */
.entry-content h4 { font-size: 1.25rem; }
.entry-content h5 { font-size: 1.125rem; }
.entry-content h6 { font-size: 1rem; }

/* --- Tabellen: Hellgrau statt Creme --- */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
}
.entry-content table td,
.entry-content table th {
  padding: 10px 16px;
  border-bottom: 1px solid var(--kg-hellgrau);
  color: var(--kg-text);
}
.entry-content table tr:nth-child(even) {
  background-color: var(--kg-hellgrau-bg);
}

/* --- EventPrime an den Styleguide angleichen --- */
.emagic,
.emagic .ep-text-dark,
.emagic .ep-text-muted {
  color: var(--kg-text) !important;
}
.emagic h1, .emagic h2, .emagic h3, .emagic h4, .emagic h5, .emagic h6,
.emagic .ep-fw-bold:is(h1, h2, h3, h4, h5, h6) {
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 600 !important;
}
.emagic .ep-fs-2 { font-size: clamp(1.625rem, 3.5vw, 1.875rem) !important; }
/* Kleinsttexte (Datum, Ort, Adresse) auf mindestens 14px */
.emagic .ep-text-small,
.emagic .ep-text-small *,
.emagic .ep-event-date,
.emagic .ep-card-event-date-start,
.emagic .ep-single-box-info :is(p, span, div, a):not(.ep-img-link),
.emagic .kf-venue-address,
.emagic .em_color,
.emagic .ep-single-box-summery {
  font-size: 0.875rem !important;
}
/* Alle EventPrime-Buttons wie die übrigen Buttons: Fredoka, Rot, weiß, 10px Radius */
body .emagic button,
body .emagic .ep-btn {
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  border-radius: 10px !important;
}
body .emagic .ep-btn-outline-primary,
body .emagic .ep-loadmore-events,
body .emagic .ep-btn-outline-primary * {
  background-color: var(--kg-rot) !important;
  border-color: var(--kg-rot) !important;
  color: #ffffff !important;
}
body .emagic .ep-btn-outline-primary:hover,
body .emagic .ep-loadmore-events:hover {
  background-color: var(--kg-rot-dunkel) !important;
  border-color: var(--kg-rot-dunkel) !important;
}
/* Suchbutton hängt rechts am Eingabefeld – nur rechts runden */
body .emagic .ep-btn.ep-btn-dark.ep-btn-sm {
  border-radius: 0 10px 10px 0 !important;
}
/* Termin-Titel in den Kacheln und Listen in Rot */
.emagic a.ep-fw-bold,
.emagic .ep-img-link {
  color: var(--kg-rot) !important;
}
.emagic .ep-img-link { font-size: 1.125rem !important; }
/* „Details anschauen“ (Button ohne .ep-btn-Klasse) */
body button.ep-fw-bold.ep-text-small {
  font-weight: 600 !important;
}
/* Favoriten-Herz in Textgrau */
.emagic .material-icons-outlined.ep-handle-fav {
  color: var(--kg-text) !important;
}

/* --- Footer: Abschnittsüberschrift („Kontakt“) --- */
.site-footer h6,
.site-footer .wp-block-heading {
  font-size: 1.125rem !important;
}

/* Tabs auf der Termin-Seite */
.emagic .ep-tab-link.ep-tab-active {
  color: #ffffff !important;
}

/* --- Startseite: Hero lesbar auf dem dunklen Foto --- */
.home .elementor-element-b097460 .elementor-heading-title,
.home .elementor-element-4cf36f2 .elementor-heading-title {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
/* Header mit Logo ist höher als vorher – Hero-Inhalt darunter beginnen lassen */
@media (min-width: 922px) {
  .home .elementor-element-20e6f5a {
    padding-top: 120px !important;
  }
}

/* --- Startseite: „Nächster Termin“ ([goubloch_naechster_termin]) --- */
.kg-next-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  background: var(--kg-weiss);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  max-width: 1000px;
  margin: 0 auto 2rem;
}
.kg-next-event-bild { display: block; position: relative; min-height: 220px; }
.kg-next-event .kg-next-event-bild .kg-next-event-img {
  position: absolute; inset: 0; max-width: none;
  display: block; width: 100%; height: 100%;
  object-fit: cover;
}
.kg-next-event-platzhalter {
  background: linear-gradient(135deg, var(--kg-rot), var(--kg-rot-dunkel));
  min-height: 220px;
}
.kg-next-event-text {
  padding: 1.5rem 1.75rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: .75rem;
}
.kg-next-event-badge {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: .8125rem;
  background: var(--kg-rot); color: #fff;
  padding: .25rem .75rem; border-radius: 99px;
}
.kg-next-event-kopf { display: flex; align-items: center; gap: 1rem; }
.kg-next-event-kalender {
  flex: 0 0 auto; width: 4rem; text-align: center;
  border: 2px solid var(--kg-rot); border-radius: 10px; overflow: hidden;
  font-family: 'Fredoka', sans-serif; font-weight: 600; line-height: 1;
}
.kg-next-event-tag { display: block; font-size: 1.75rem; color: var(--kg-rot); padding: .4rem 0 .2rem; }
.kg-next-event-monat { display: block; font-size: .8125rem; color: #fff; background: var(--kg-rot); padding: .25rem 0; text-transform: uppercase; }
.kg-next-event .kg-next-event-titel { margin: 0; font-size: 1.5rem; line-height: 1.2; text-transform: none; }
.kg-next-event-titel a { color: var(--kg-rot); text-decoration: none; }
.kg-next-event-meta { margin: 0; color: var(--kg-text); }
.kg-next-event-btn {
  display: inline-block; margin-top: .25rem;
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  background: var(--kg-rot); color: #fff !important;
  padding: .6rem 1.4rem; border-radius: 10px; text-decoration: none;
}
.kg-next-event-btn:hover { background: var(--kg-rot-dunkel); }
.kg-next-event-alle { font-size: .9375rem; }
@media (max-width: 700px) {
  .kg-next-event { grid-template-columns: 1fr; margin-left: 1rem; margin-right: 1rem; }
  .kg-next-event-bild, .kg-next-event-platzhalter { min-height: 180px; max-height: 240px; }
}

/* Kompakte Variante im Hero-Banner ([goubloch_naechster_termin kompakt="1"]) */
.kg-next-event--kompakt {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem;
  max-width: 320px; margin: 0;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, .5); /* Foto soll sichtbar durchscheinen – bewusst ohne Weichzeichner */
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
  text-decoration: none !important;
  color: var(--kg-text) !important;
}
.kg-next-event--kompakt:hover { background: rgba(255, 255, 255, .75); }
.kg-next-event--kompakt .kg-next-event-badge { font-size: .75rem; }
.kg-next-event--kompakt .kg-next-event-kopf { gap: .75rem; align-items: flex-start; }
.kg-next-event--kompakt .kg-next-event-kalender { width: 3.25rem; }
.kg-next-event--kompakt .kg-next-event-tag { font-size: 1.4rem; padding: .3rem 0 .15rem; }
.kg-next-event--kompakt .kg-next-event-monat { font-size: .6875rem; }
.kg-next-event--kompakt .kg-next-event-info { display: flex; flex-direction: column; gap: .2rem; }
.kg-next-event--kompakt .kg-next-event-titel {
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: 1.0625rem; line-height: 1.2; color: var(--kg-rot);
}
.kg-next-event--kompakt .kg-next-event-meta { font-size: .875rem; line-height: 1.4; color: #2B2E2D; }
.kg-next-event--kompakt .kg-next-event-mehr {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: .875rem;
  color: var(--kg-rot);
}
.kg-next-event--kompakt:hover .kg-next-event-mehr { color: var(--kg-rot-dunkel); }

/* Platzierung im Hero der Startseite: Desktop oben rechts im Bild, sonst unter den Icons */
.home .elementor-element-20e6f5a { position: relative; }
@media (min-width: 922px) {
  .home .elementor-element-kgnxt02 {
    position: absolute !important;
    top: 160px; right: 32px;
    width: 320px !important; max-width: 320px;
    z-index: 2;
  }
}
@media (max-width: 921px) {
  .home .elementor-element-kgnxt02 { width: 100%; padding: 1.5rem 20px 0; }
}

/* =====================================================================
   v0.21 – Seitenbreite im Verhältnis A4 quer
   Breite höchstens Fensterhöhe × 1,414 (√2), aber nie unter 1000 px,
   damit die Terminübersicht 4-spaltig bleibt. Rot läuft außen herum.
   ===================================================================== */
:root { --kg-seiten-max: max(1000px, min(1200px, 141.4vh)); }  /* höchstens 1200px: Elementor-Boxed-Inhalt (1140px, z. B. 4 Spalten Aktuelles) mit ~30px Luft je Seite; A4 hoch (70.7vh) getestet: zu schmal */
@media (min-width: 922px) {
  #page {
    max-width: var(--kg-seiten-max);
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, .25);
  }
  /* Footer-Inhalt nicht an den Seitenrand kleben */
  #page .site-footer .ast-builder-grid-row-container-inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* =====================================================================
   v0.27 – Impressum/Datenschutz
   ===================================================================== */
/* Platzhalter auf den Rechtsseiten – fallen auf, bis echter Text drinsteht */
.entry-content .kg-platzhalter {
  background: #FFF3CD;
  border-left: 4px solid #DBA617;
  padding: .75rem 1rem;
  border-radius: 4px;
  color: #664D03;
  font-size: .9375rem;
}
/* Footer-Zeile: Impressum · Datenschutz */
.site-below-footer-wrap .ast-footer-copyright a {
  color: var(--kg-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-below-footer-wrap .ast-footer-copyright a:hover {
  color: var(--kg-rot);
}
/* Datenschutz-Hinweis über dem Absende-Knopf der Formulare */
.wpforms-container .kg-form-datenschutz {
  font-size: .875rem;
  color: var(--kg-text);
  margin: 0;
}
.wpforms-container .kg-form-datenschutz a { color: var(--kg-rot); text-decoration: underline; }

/* =====================================================================
   v0.28 – Instagram-Feed Zwei-Klick-Lösung ([goubloch_instagram])
   ===================================================================== */
.kg-insta-platzhalter {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--kg-weiss);
  border: 1px solid var(--kg-hellgrau-bg);
  border-radius: 12px;
  text-align: center;
  color: var(--kg-text);
}
.kg-insta-icon { width: 40px; height: 40px; color: var(--kg-rot); margin-bottom: .5rem; }
.kg-insta-text { font-size: .9375rem; margin: 0 0 1.25rem; }
.kg-insta-text a { color: var(--kg-rot); text-decoration: underline; }
.kg-insta-btn {
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 600;
  font-size: .9375rem;
  background: var(--kg-rot) !important;
  color: #fff !important;
  border: 0;
  border-radius: 10px;
  padding: .75rem 1.5rem;
  cursor: pointer;
}
.kg-insta-btn:hover, .kg-insta-btn:focus { background: var(--kg-rot-dunkel, #641428) !important; }
.kg-insta-merken { display: block; margin-top: .75rem; font-size: .875rem; cursor: pointer; }
.kg-insta-merken input { margin-right: .35rem; vertical-align: middle; }
.kg-insta-profil { display: inline-block; margin-top: .75rem; font-size: .875rem; color: var(--kg-rot); }
.kg-insta-widerruf span { margin-left: .5rem; font-size: .875rem; }

/* =====================================================================
   v0.29 – Footer neu: rotes Band wie der Header
   Zeile oben: „Über uns“ (Logo + Text) | „Kontakt“ · Mitte: Social-Icons · unten: Copyright
   ===================================================================== */
.site-footer .site-above-footer-wrap,
.site-footer .site-primary-footer-wrap {
  background: var(--kg-rot, #96191E) !important;
  color: rgba(255, 255, 255, .92);
  border: 0 !important;
}
.site-footer .site-below-footer-wrap {
  background: #641428 !important;
  border: 0 !important;
}
.site-footer .site-above-footer-wrap { padding: 56px 0 28px !important; }
.site-footer .site-primary-footer-wrap { padding: 0 0 36px !important; }
.site-footer .site-below-footer-wrap { padding: 14px 0 !important; }

/* Zwei Spalten statt vier (Spalten 2 und 3 sind leer) */
.site-footer .site-footer-above-section-2,
.site-footer .site-footer-above-section-3 { display: none !important; }
@media (min-width: 545px) {
  .site-footer .site-above-footer-inner-wrap {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) !important;
    column-gap: 56px;
    align-items: start;
  }
  .site-footer .site-footer-above-section-4 { justify-self: end; }
}

/* Überschriften: „Über uns“ / „Kontakt“ */
.site-footer .kg-footer-titel,
.site-footer .site-footer-above-section-4 h6 {
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.0625rem !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff !important;
  margin: 0 0 14px !important;
  padding-bottom: 8px;
  position: relative;
}
.site-footer .kg-footer-titel::after,
.site-footer .site-footer-above-section-4 h6::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .55);
}

/* Über uns: Logo neben dem Text */
.site-footer .ast-footer-html-1 .ast-builder-html-element { text-align: left; }
.kg-footer-ueber { display: flex; gap: 28px; align-items: center; } /* Logo vertikal mittig zum Text */
.kg-footer-logo { width: 116px; height: auto; flex: none; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .25)); }
.kg-footer-ueber p { margin: 0; max-width: 46ch; line-height: 1.7; color: rgba(255, 255, 255, .9); }

/* Kontakt: Anschrift und Mail mit kleinen Symbolen */
.site-footer .site-footer-above-section-4 .widget { margin-bottom: 0; }
.site-footer .kg-footer-adresse,
.site-footer .kg-footer-mail {
  position: relative;
  padding-left: 30px;
  margin: 0 0 12px !important;
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}
.site-footer .kg-footer-adresse::before,
.site-footer .kg-footer-mail::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  background: #fff; opacity: .85;
  -webkit-mask: var(--kg-icon) center / contain no-repeat; mask: var(--kg-icon) center / contain no-repeat;
}
.site-footer .kg-footer-adresse { --kg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.site-footer .kg-footer-mail { --kg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }

/* Social-Icons: weiße runde Knöpfe, beim Überfahren invertiert */
.site-footer .site-primary-footer-wrap .ast-builder-grid-row-container-inner {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 26px !important;
}
.site-footer .footer-social-inner-wrap { display: flex; justify-content: center; gap: 14px; }
.site-footer .footer-social-item {
  width: 46px; height: 46px; margin: 0 !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14) !important;
  justify-content: center; align-items: center;
  transition: background .2s, transform .2s;
}
.site-footer .footer-social-item svg { width: 20px !important; height: 20px !important; fill: #fff !important; color: #fff !important; }
.site-footer .footer-social-item:hover,
.site-footer .footer-social-item:focus-visible { background: #fff !important; transform: translateY(-2px); }
.site-footer .footer-social-item:hover svg,
.site-footer .footer-social-item:focus-visible svg { fill: var(--kg-rot, #96191E) !important; }

/* Copyright-Zeile */
.site-footer .site-below-footer-wrap .ast-footer-copyright,
.site-footer .site-below-footer-wrap .ast-footer-copyright p { color: rgba(255, 255, 255, .8) !important; font-size: .875rem; margin: 0; }
.site-footer .site-below-footer-wrap .ast-footer-copyright a { color: #fff !important; }
.site-footer .site-below-footer-wrap .ast-footer-copyright a:hover { color: #fff !important; text-decoration-thickness: 2px; }

/* Handy: alles mittig untereinander */
@media (max-width: 544px) {
  .site-footer .site-above-footer-wrap { padding: 44px 0 20px !important; }
  .site-footer .site-above-footer-inner-wrap { row-gap: 32px; }
  .kg-footer-ueber { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .site-footer .ast-footer-html-1 .ast-builder-html-element { text-align: center; }
  .site-footer .kg-footer-titel::after,
  .site-footer .site-footer-above-section-4 h6::after { left: 50%; transform: translateX(-50%); }
  .site-footer .site-footer-above-section-4 { text-align: center; }
  .site-footer .kg-footer-adresse, .site-footer .kg-footer-mail { display: inline-block; text-align: left; }
  .site-footer .site-footer-above-section-4 .widget { text-align: center; }
}
/* Feinschliff Footer */
.site-footer .site-footer-above-section-1 > .footer-widget-area-inner { display: none; } /* leerer Widget-Bereich 1 */
.kg-footer-logo-wrap { margin: 0; flex: none; }
.kg-footer-ueber > p:empty { display: none; }
.kg-insta { margin-bottom: 3.5rem; } /* Abstand Instagram-Karte zum Footer */
@media (max-width: 544px) {
  .site-footer .site-primary-footer-wrap { padding-bottom: 28px !important; }
  .site-footer .site-primary-footer-wrap .ast-builder-grid-row-container-inner { padding-top: 22px !important; }
  .site-footer .kg-footer-adresse,
  .site-footer .kg-footer-mail { display: block; padding-left: 0; text-align: center; }
  .site-footer .kg-footer-adresse::before,
  .site-footer .kg-footer-mail::before { position: static; display: block; margin: 0 auto 4px; }
}
@media (max-width: 544px) {
  .site-footer .site-above-footer-wrap .ast-builder-grid-row-container-inner,
  .site-footer .site-below-footer-wrap .ast-builder-grid-row-container-inner { padding-left: 24px !important; padding-right: 24px !important; }
}
/* Kontakt ohne Abstand zwischen Anschrift und Mail -> drei Zeilen wie „Über uns“ */
.site-footer .kg-footer-adresse { margin-bottom: 0 !important; }
@media (max-width: 544px) { .site-footer .kg-footer-adresse { margin-bottom: 10px !important; } }
.site-footer .kg-footer-adresse, .site-footer .kg-footer-mail { line-height: 1.7; } /* gleicher Zeilenabstand wie „Über uns“ */

/* Listen mit Vorschaubild (Seiten Prinzenpaare 1152, Orden 1153, Präsidenten 1154).
   Seit v0.34 hier statt als <style> im Seiteninhalt – der Klassisch-Block im Editor entfernte das <style>-Tag (Orden, 11.11.2026). */
.pp-entry { margin: 0 0 0.85em; }
.pp-entry h3 { margin: 0 0 0.3em; }
.pp-row { display: flex; align-items: flex-start; gap: 1rem; }
.pp-image { flex: 0 0 110px; width: 110px; position: relative; z-index: 1; }
.pp-image img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; transform-origin: top left; }
.pp-image:hover { z-index: 20; }
.pp-image:hover img { transform: scale(3.2); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.pp-text { flex: 1 1 auto; min-width: 0; }
.pp-text p { margin: 0; line-height: 1.45; }
.pp-text > strong { display: inline-block; margin-bottom: 0.2em; } /* Orden/Präsidenten: Jahr direkt im Text */
.pp-entry:not(:has(h3)) .pp-text { padding-top: 0.15em; }
@media (max-width: 640px) { .pp-image:hover img { transform: scale(2.2); } }
/* Platzhalter-Bild (z. B. neuer Präsident ohne Foto): Hochformat wie die Fotos, Bild eingepasst, kein Zoom */
.pp-image img.pp-platzhalter { aspect-ratio: 2 / 3; object-fit: contain; background: #fff; padding: 8px; box-sizing: border-box; cursor: default; }
.pp-image:hover img.pp-platzhalter { transform: none; box-shadow: 0 1px 4px rgba(0,0,0,.25); }

/* Terminliste (EventPrime-Kacheln): Bild in voller Höhe (Termin-Grafiken sind 3:2) statt fest 140 px mit Zuschnitt.
   Sonst fehlt auf dem Handy (breite Kachel) oben/unten der Text der Grafik. EventPrime setzt die Höhe per JS-Variable
   --ep-imageCardHeight (auch mit !important am Bild) → Variable an der Bildfläche ungültig machen = automatische Höhe. Seit v0.36 */
body .ep-events .ep-box-card-item .ep-box-card-thumb { --ep-imageCardHeight: none; max-height: none; height: auto; }
body .ep-events .ep-box-card-item .ep-box-card-thumb img.ep-event-cover { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
