/* =========================================================================
   Wigwam e.V. – Joomla-Template
   Gestaltung nach dem Vereinsflyer „Gemeinsam. Mitgestalten.“
   Eigene Anpassungen bitte in css/user.css, nicht hier.
   ========================================================================= */

:root {
  --wg-primary: #3e5a2a;
  --wg-primary-dark: color-mix(in srgb, var(--wg-primary) 78%, #000);
  --wg-primary-soft: color-mix(in srgb, var(--wg-primary) 10%, #fff);
  --wg-text: #3d3d3d;
  --wg-muted: #6f6f6a;
  --wg-soft: #f4f4f2;
  --wg-line: #dedfd8;
  --wg-white: #fff;
  --wg-radius: 6px;
  --wg-wrap: 1180px;
  --wg-font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wg-font-cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;

  /* Bootstrap an die Vereinsfarben anpassen */
  --bs-body-font-family: var(--wg-font);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--wg-text);
  --bs-body-bg: var(--wg-white);
  --bs-link-color: var(--wg-primary);
  --bs-link-color-rgb: 62, 90, 42;
  --bs-link-hover-color: var(--wg-primary-dark);
  --bs-link-hover-color-rgb: 47, 69, 32;
  --bs-border-color: var(--wg-line);
  --bs-primary: var(--wg-primary);
  --bs-primary-rgb: 62, 90, 42;
  --bs-heading-color: var(--wg-primary);
}

/* ---------- Grundlagen ---------- */

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  font-family: var(--wg-font);
  color: var(--wg-text);
  background: var(--wg-white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wg-primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--wg-primary-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--wg-primary) 55%, #fff); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--wg-font-cond);
  font-weight: 700;
  line-height: 1.15;
  color: var(--wg-primary);
  letter-spacing: .005em;
}
h1, .h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
h2, .h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
h3, .h3 { font-size: 1.45rem; }
h4, .h4 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; }

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

.wrap {
  width: 100%;
  max-width: var(--wg-wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 2000;
  padding: .6rem 1rem; background: var(--wg-primary); color: #fff; border-radius: var(--wg-radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Topbar ---------- */

.site-topbar { background: var(--wg-soft); font-size: .9rem; border-bottom: 1px solid var(--wg-line); }
.site-topbar .wrap { padding-block: .4rem; display: flex; justify-content: flex-end; gap: 1rem; }

/* ---------- Kopf ---------- */

.site-header { background: var(--wg-white); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 2rem);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand:hover { text-decoration: none; color: inherit; }

.brand-name {
  font-family: var(--wg-font-cond);
  font-weight: 700;
  font-size: clamp(3.25rem, 2rem + 6vw, 6.25rem);
  line-height: .88;
  letter-spacing: -.005em;
  color: var(--wg-primary);
  text-transform: uppercase;
}

.brand-claim {
  display: flex;
  flex-direction: column;
  margin-top: .6rem;
  font-family: var(--wg-font-cond);
  font-size: clamp(1.15rem, .9rem + 1.1vw, 1.85rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.brand-claim-1 { font-weight: 500; color: #2e2e2e; }
.brand-claim-2 { font-weight: 700; color: var(--wg-primary); }

.brand-rule {
  display: block;
  width: clamp(7rem, 30%, 12rem);
  height: 3px;
  margin-top: 1rem;
  background: var(--wg-primary);
}

.org {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 17rem;
}
.org-logo { width: clamp(84px, 8vw, 120px); height: auto; }
.org-line {
  margin: .6rem 0 0;
  font-size: .95rem;
  line-height: 1.45;
  color: var(--wg-text);
}

/* ---------- Navigation ---------- */

.site-nav {
  background: var(--wg-primary);
  color: #fff;
  z-index: 1020;
}
.site-nav.is-sticky { position: sticky; top: 0; }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav-main { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }

.site-nav .mod-menu {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  --bs-nav-link-padding-x: 0;
}

.site-nav .mod-menu > li { position: relative; display: flex; align-items: stretch; }

.site-nav .mod-menu a,
.site-nav .mod-menu .mod-menu__heading,
.site-nav .mod-menu .mod-menu__separator {
  display: block;
  padding: .95rem 1.05rem;
  font-family: var(--wg-font-cond);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

/* Pfeil-Knopf für Untermenüs (wird von Joomla ausgegeben) */
.site-nav .mod-menu__toggle-sub {
  display: inline-flex;
  align-items: center;
  margin-left: -.85rem;
  padding: 0 .7rem 0 0;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: .8rem;
}
.site-nav .mod-menu__toggle-sub [class*="icon-"] { margin-inline-start: .25rem; transition: transform .2s; }
.site-nav .mod-menu__toggle-sub[aria-expanded="true"] [class*="icon-"] { transform: rotate(180deg); }

.site-nav .mod-menu > li:hover,
.site-nav .mod-menu > li:focus-within,
.site-nav .mod-menu > li.active {
  background: var(--wg-primary-dark);
}
.site-nav .mod-menu > li.current > a { box-shadow: inset 0 -4px 0 #fff; }

/* Untermenüs (Desktop: Dropdown) */
.site-nav .mod-menu__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 15rem;
  margin: 0;
  padding: .4rem 0;
  list-style: none;
  background: var(--wg-white);
  border-top: 3px solid var(--wg-primary-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
  font-size: 1rem;
}
.site-nav .mod-menu > li:hover > .mod-menu__sub,
.site-nav .mod-menu > li:focus-within > .mod-menu__sub,
.site-nav .mod-menu__sub[aria-hidden="false"] { display: block; }

.site-nav .mod-menu__sub li { display: block; }
.site-nav .mod-menu__sub a {
  padding: .55rem 1.1rem;
  font-family: var(--wg-font);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--wg-text);
}
.site-nav .mod-menu__sub a:hover,
.site-nav .mod-menu__sub li.current > a { background: var(--wg-primary-soft); color: var(--wg-primary-dark); }
.site-nav .mod-menu__sub .mod-menu__toggle-sub { display: none; }
.site-nav .mod-menu__sub .mod-menu__sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 1rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  padding: .8rem 0;
  font-family: var(--wg-font-cond);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle-bars span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-search { padding-block: .5rem; }
.nav-search input { min-width: 12rem; border: 0; border-radius: var(--wg-radius); padding: .4rem .7rem; }

/* ---------- Banner ---------- */

.site-banner img { display: block; width: 100%; max-height: 460px; object-fit: cover; }

/* ---------- Inhalt & Raster ---------- */

.site-body { padding-block: clamp(1.5rem, 3vw, 2.75rem) clamp(2.5rem, 5vw, 4rem); }

.site-breadcrumbs { margin-bottom: 1.25rem; font-size: .92rem; color: var(--wg-muted); }
.site-breadcrumbs .breadcrumb { margin: 0; padding: 0 !important; background: none; }
.site-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { color: var(--wg-muted); }

.site-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
}
@media (min-width: 992px) {
  .has-sidebar-right .site-grid { grid-template-columns: minmax(0, 1fr) 20rem; }
  .has-sidebar-left .site-grid { grid-template-columns: 17rem minmax(0, 1fr); }
  .has-sidebar-left.has-sidebar-right .site-grid { grid-template-columns: 16rem minmax(0, 1fr) 18rem; }
}

.site-content:focus { outline: none; }

/* Seitenüberschrift mit Linie – wie „WAS WIR MACHEN ——“ im Flyer */
.page-header h1,
.page-header h2,
.com-content-category-blog > h1,
.com-content-category-blog > h2,
.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.page-header h1::after,
.page-header h2::after,
.com-content-category-blog > h1::after,
.com-content-category-blog > h2::after,
.section-title::after {
  content: "";
  flex: 1 1 auto;
  min-width: 3rem;
  max-width: 14rem;
  height: 2px;
  background: currentColor;
  opacity: .7;
}
.page-header { margin-bottom: .5rem; border: 0; padding: 0; }

/* Artikel */
.com-content-article .article-info,
.item-page .article-info,
.blog-item .article-info,
dl.article-info {
  margin: 0 0 1.25rem;
  font-size: .9rem;
  color: var(--wg-muted);
}
dl.article-info dd { display: inline-block; margin-right: 1rem; }
.article-info-term { display: none; }

.com-content-article__body,
.item-page [itemprop="articleBody"] { font-size: 1.0625rem; }
.com-content-article__body > :last-child { margin-bottom: 0; }

.com-content-article__body img,
.blog-item img { border-radius: 2px; }

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--wg-soft);
  border-left: 4px solid var(--wg-primary);
  font-style: italic;
}

hr { border: 0; height: 2px; background: var(--wg-line); opacity: 1; }

/* Blog-Ansicht */
.blog-items { display: grid; gap: 2rem; margin-bottom: 2rem; }
.blog-items.columns-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.blog-items.columns-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.blog-items.columns-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.blog-item { padding-bottom: 2rem; border-bottom: 1px solid var(--wg-line); }
.blog-item .item-title,
.blog-item h2 { font-size: 1.7rem; margin-bottom: .4rem; }
.blog-item h2 a { color: var(--wg-primary); text-decoration: none; }
.blog-item h2 a:hover { text-decoration: underline; }
.item-image { margin-bottom: 1rem; }
.item-image.float-start { margin-right: 1.25rem; }
.item-image.float-end { margin-left: 1.25rem; }
.readmore { margin-top: 1rem; }

/* Buttons */
.btn { font-family: var(--wg-font-cond); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border-radius: var(--wg-radius); }
.btn-primary,
.readmore .btn {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--wg-primary);
  --bs-btn-border-color: var(--wg-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--wg-primary-dark);
  --bs-btn-hover-border-color: var(--wg-primary-dark);
  --bs-btn-active-bg: var(--wg-primary-dark);
  --bs-btn-active-border-color: var(--wg-primary-dark);
}
.btn-secondary,
.btn-outline-primary {
  --bs-btn-color: var(--wg-primary);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--wg-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--wg-primary);
  --bs-btn-hover-border-color: var(--wg-primary);
  --bs-btn-active-bg: var(--wg-primary-dark);
  --bs-btn-active-color: #fff;
}

/* Formulare */
.form-control:focus,
.form-select:focus {
  border-color: var(--wg-primary);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--wg-primary) 25%, transparent);
}
.form-check-input:checked { background-color: var(--wg-primary); border-color: var(--wg-primary); }

/* Paginierung */
.pagination { --bs-pagination-color: var(--wg-primary); --bs-pagination-active-bg: var(--wg-primary); --bs-pagination-active-border-color: var(--wg-primary); --bs-pagination-hover-color: var(--wg-primary-dark); --bs-pagination-focus-color: var(--wg-primary-dark); }
.com-content-category-blog__navigation { margin-top: 1rem; }

/* Tabellen */
.site-content table:not(.table) { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.site-content table:not(.table) th,
.site-content table:not(.table) td { padding: .55rem .7rem; border-bottom: 1px solid var(--wg-line); text-align: left; vertical-align: top; }
.site-content table:not(.table) th { font-family: var(--wg-font-cond); text-transform: uppercase; letter-spacing: .03em; color: var(--wg-primary); }

/* Systemmeldungen */
joomla-alert { border-radius: var(--wg-radius); }

/* ---------- Module (Chrome „wigwam“) ---------- */

.wg-module {
  margin-bottom: 1.75rem;
  padding: 1.35rem 1.4rem 1.4rem;
  background: var(--wg-soft);
  border-radius: 2px;
}
.wg-module:last-child { margin-bottom: 0; }

.wg-module-title {
  margin: 0 0 1rem;
  font-family: var(--wg-font-cond);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--wg-primary);
}
.wg-module-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: .55rem;
  background: currentColor;
}

.wg-module-body { font-size: .98rem; }
.wg-module-body > :last-child { margin-bottom: 0; }
.wg-module-body ul { padding-left: 1.1rem; }

/* Modulklassen-Varianten (Modul → Erweitert → Modulklasse) */
.wg-module.plain { padding: 0; background: none; }
.wg-module.green { background: var(--wg-primary); color: #fff; }
.wg-module.green .wg-module-title,
.wg-module.green a { color: #fff; }
.wg-module.white { background: #fff; border: 1px solid var(--wg-line); }

/* Menüs in Seitenleisten */
.sidebar .mod-menu { list-style: none; padding: 0; margin: 0; display: block; }
.sidebar .mod-menu li a { display: block; padding: .45rem 0; border-bottom: 1px solid var(--wg-line); text-decoration: none; color: var(--wg-text); }
.sidebar .mod-menu li a:hover,
.sidebar .mod-menu li.current > a { color: var(--wg-primary); font-weight: 600; }
.sidebar .mod-menu .mod-menu__sub { list-style: none; padding-left: 1rem; }

/* Neueste Beiträge / Artikellisten */
.sidebar .mod-articleslatest,
.sidebar .mod-articlesnews { list-style: none; padding: 0; margin: 0; }
.sidebar .mod-articleslatest li,
.sidebar .mod-articlesnews li { padding: .45rem 0; border-bottom: 1px solid var(--wg-line); }

/* Login-Modul */
.wg-module--mod_login .form-control { background: #fff; }
.wg-module--mod_login .mod-login__submit .btn { width: 100%; }
.wg-module--mod_login ul { list-style: none; padding: 0; margin: .75rem 0 0; font-size: .92rem; }

/* Kalender (z. B. JEvents, DPCalendar) in Seitenleisten */
.sidebar table { width: 100%; border-collapse: collapse; font-size: .92rem; text-align: center; }
.sidebar table th,
.sidebar table td { padding: .3rem .1rem; }
.sidebar table a { font-weight: 600; }

/* ---------- Bausteine für Beiträge (im Editor als CSS-Klassen nutzbar) ---------- */

/* Nummerierte Liste mit grünen Kreisen – wie „WAS WIR MACHEN“ */
ol.wg-steps {
  list-style: none;
  counter-reset: wgstep;
  padding: 0;
  margin: 0 0 1.5rem;
}
ol.wg-steps > li {
  counter-increment: wgstep;
  position: relative;
  padding: .7rem 0 .7rem 2.6rem;
  border-bottom: 1px solid var(--wg-line);
}
ol.wg-steps > li:last-child { border-bottom: 0; }
ol.wg-steps > li::before {
  content: counter(wgstep);
  position: absolute;
  left: 0;
  top: .62rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wg-primary);
  color: #fff;
  font-family: var(--wg-font-cond);
  font-weight: 700;
  font-size: .95rem;
}

/* Hinweisbox – wie „MACH MIT!“ */
.wg-box {
  padding: 1.35rem 1.5rem;
  background: var(--wg-soft);
  margin-bottom: 1.5rem;
}
.wg-box > :first-child { margin-top: 0; }
.wg-box > :last-child { margin-bottom: 0; }
.wg-box h2, .wg-box h3 { text-transform: uppercase; font-size: 1.55rem; }
.wg-box h2::after, .wg-box h3::after { content: ""; display: block; width: 2.5rem; height: 2px; margin-top: .5rem; background: currentColor; }

/* Termin – wie „KOMM ZUM GEPLANTEN TREFFEN“ */
.wg-event {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
  border-top: 2px solid var(--wg-line);
  border-bottom: 2px solid var(--wg-line);
}
.wg-event::before {
  content: "";
  flex: 0 0 3.25rem;
  height: 3.25rem;
  background: var(--wg-primary);
  -webkit-mask: url("../images/calendar.svg") center / contain no-repeat;
  mask: url("../images/calendar.svg") center / contain no-repeat;
}
.wg-event > * { margin: 0; }
.wg-event strong,
.wg-event .wg-event-date {
  display: block;
  font-family: var(--wg-font-cond);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--wg-primary);
}

/* Runder Stempel – wie „WIR FREUEN UNS AUF DICH!“ */
.wg-badge {
  display: inline-grid;
  place-items: center;
  width: 8rem;
  height: 8rem;
  padding: 1rem;
  border-radius: 50%;
  background: var(--wg-primary);
  color: #fff;
  font-family: var(--wg-font-cond);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  font-style: italic;
  transform: rotate(-6deg);
}

/* Hervorgehobener Einleitungstext */
.wg-lead { font-size: 1.25rem; line-height: 1.55; }
.wg-lead strong, .wg-green { color: var(--wg-primary); }

/* ---------- Fuß ---------- */

.site-footer { margin-top: auto; }

.footer-modules { background: var(--wg-soft); padding-block: 2.5rem; border-top: 1px solid var(--wg-line); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 2rem; }
.footer-modules .wg-module { background: none; padding: 0; margin: 0; }

.footer-bar { background: var(--wg-soft); border-top: 1px solid var(--wg-line); }
.footer-modules + .footer-bar { border-top-color: var(--wg-line); }

.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.4rem;
  font-size: .95rem;
}

.footer-copy { color: var(--wg-muted); }
.footer-copy > * { margin: 0; }

.footer-menu .mod-menu { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.footer-menu .mod-menu a {
  font-family: var(--wg-font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--wg-primary);
}
.footer-menu .mod-menu a:hover { text-decoration: underline; }

.footer-heart { color: var(--wg-primary); line-height: 0; }

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1030;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--wg-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.back-top.is-visible { opacity: 1; pointer-events: auto; }
.back-top:hover { color: #fff; background: var(--wg-primary-dark); }

/* ---------- Fehlerseite ---------- */

.error-content { max-width: 46rem; }
.error-code {
  margin: 0;
  font-family: var(--wg-font-cond);
  font-weight: 700;
  font-size: clamp(5rem, 3rem + 8vw, 8rem);
  line-height: 1;
  color: var(--wg-primary-soft);
  -webkit-text-stroke: 2px var(--wg-primary);
}
.error-detail { margin-top: 2rem; font-size: .9rem; color: var(--wg-muted); }
.error-detail .badge { background: var(--wg-primary); }

/* ---------- Druckansicht / Popups ---------- */

.contentpane { padding: 1.5rem; }

/* ---------- Mobil ---------- */

@media (max-width: 991.98px) {
  .nav-toggle { display: inline-flex; }

  .nav-inner { flex-wrap: wrap; }

  .nav-main {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: .75rem;
  }
  .site-nav.is-open .nav-main { display: flex; }

  .site-nav .mod-menu { flex-direction: column; width: 100%; }
  .site-nav .mod-menu > li { flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .18); }
  .site-nav .mod-menu > li > a { flex: 1 1 auto; padding: .75rem 0; }
  .site-nav .mod-menu > li:hover,
  .site-nav .mod-menu > li:focus-within,
  .site-nav .mod-menu > li.active { background: none; }
  .site-nav .mod-menu > li.current > a { box-shadow: none; text-decoration: underline; text-underline-offset: .3em; }
  .site-nav .mod-menu__toggle-sub { margin: 0; padding: 0 .25rem 0 1rem; font-size: 1rem; }

  .site-nav .mod-menu__sub,
  .site-nav .mod-menu > li:hover > .mod-menu__sub,
  .site-nav .mod-menu > li:focus-within > .mod-menu__sub {
    display: block;
    flex: 0 0 100%;
    position: static;
    min-width: 0;
    padding: 0 0 .6rem 1rem;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav .mod-menu__sub[aria-hidden="true"],
  .site-nav .mod-menu > li:hover > .mod-menu__sub[aria-hidden="true"],
  .site-nav .mod-menu > li:focus-within > .mod-menu__sub[aria-hidden="true"] { display: none; }
  .site-nav .mod-menu__sub a { color: #fff; padding: .4rem 0; opacity: .9; }
  .site-nav .mod-menu__sub a:hover,
  .site-nav .mod-menu__sub li.current > a { background: none; color: #fff; opacity: 1; text-decoration: underline; }

  .nav-search input { width: 100%; }
}

@media (max-width: 640px) {
  .header-inner { flex-direction: column-reverse; align-items: flex-start; gap: 1.25rem; }
  .org { flex-direction: row; align-items: center; text-align: left; max-width: none; gap: .9rem; }
  .org-logo { width: 64px; }
  .org-line { margin: 0; font-size: .85rem; }
  .wg-event { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Druck ---------- */

@media print {
  .site-nav, .site-topbar, .sidebar, .back-top, .site-footer .footer-modules, .skip-link { display: none !important; }
  .site-grid { display: block; }
  .brand-name { font-size: 3rem; }
  a { color: inherit; text-decoration: none; }
}

@media (max-width: 640px) {
  .page-header h1::after,
  .page-header h2::after,
  .com-content-category-blog > h1::after,
  .com-content-category-blog > h2::after { display: none; }
}

/* Zusätzliche Login-Buttons (z. B. Passkey/WebAuthn) – SVG-Symbol begrenzen */
button[class*="plg_system_webauthn_login_button"],
.mod-login__submit .btn,
.offline-login .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
button[class*="plg_system_webauthn_login_button"] { margin-bottom: .5rem; padding: .45rem .75rem; }
.mod-login__submit .btn svg,
.offline-login .btn svg,
button[class*="plg_system_webauthn_login_button"] svg {
  flex: none;
  width: 1.35em;
  height: 1.35em;
  fill: currentColor;
}

/* Hinweis auf die Agentur am Herz */
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .95rem;
  color: var(--wg-muted);
  text-decoration: none;
}
.footer-credit strong { font-weight: 600; color: var(--wg-primary); }
.footer-credit .footer-heart { color: var(--wg-primary); transition: transform .25s ease, fill .25s ease; }
.footer-credit:hover { color: var(--wg-text); }
.footer-credit:hover strong { text-decoration: underline; text-underline-offset: .18em; }
.footer-credit:hover .footer-heart { transform: scale(1.18); }
.footer-credit:hover .footer-heart path { fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .footer-credit:hover .footer-heart { transform: none; } }
/* Platz für den „Nach oben“-Knopf auf schmalen Bildschirmen */
@media (max-width: 991.98px) { .footer-bar { padding-bottom: 3.75rem; } }
