/* ==========================================================================
   Raiffeisen Wittgenstein-Hallenberg eG – Seitenlayout
   Orientiert an den Entwürfen aus dem Briefing (graue Kopf-/Fußleiste,
   Logo links, Navigation rechts, grüne Akzente). Ergänzt das Bootstrap Package.
   ========================================================================== */

:root {
    --sw-green: #6ab023;          /* Logo-Grün: Akzente, Linien, Icons */
    --sw-green-text: #3f7d20;     /* Grün für Text/Buttons (ausreichender Kontrast) */
    --sw-green-dark: #2f5f18;
    --sw-gray-bar: #6b7479;       /* Kopf-/Fußleiste (weiße Schrift, AA) */
    --sw-gray-box: #dfe2e3;       /* Dropdown, Infokästen */
    --sw-gray-soft: #f2f3f3;      /* Flächen (Kennzahlen, Abschnitte) */
    --sw-line: #d9dcdd;
    --sw-text: #262b2e;
    --sw-muted: #5f676b;
    --sw-max: 1240px;
    --sw-header-h: 96px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--sw-header-h) + 60px);
}
body {
    color: var(--sw-text);
    font-size: 1.0625rem;
    line-height: 1.65;
    background: #fff;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--sw-text);
    font-weight: 500;
    line-height: 1.25;
}
h1, .h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); }
h2, .h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
h3, .h3 { font-size: 1.25rem; }
a { color: var(--sw-green-text); }
a:hover { color: var(--sw-green-dark); }
:focus-visible { outline: 2px solid var(--sw-green-text); outline-offset: 2px; }
strong, b { font-weight: 600; }

.container { max-width: var(--sw-max); }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -.25em; }

.skip-link {
    position: absolute; z-index: 2000; top: .5rem; left: .5rem;
    padding: .5rem 1rem; background: var(--sw-text); color: #fff;
}

.btn { font-weight: 500; border-radius: 4px; padding: .6rem 1.4rem; }
.btn-primary {
    --bs-btn-bg: var(--sw-green-text);
    --bs-btn-border-color: var(--sw-green-text);
    --bs-btn-hover-bg: var(--sw-green-dark);
    --bs-btn-hover-border-color: var(--sw-green-dark);
    --bs-btn-active-bg: var(--sw-green-dark);
    --bs-btn-active-border-color: var(--sw-green-dark);
}
.btn-outline-primary {
    --bs-btn-color: var(--sw-green-text);
    --bs-btn-border-color: var(--sw-green-text);
    --bs-btn-hover-bg: var(--sw-green-text);
    --bs-btn-hover-border-color: var(--sw-green-text);
    --bs-btn-active-bg: var(--sw-green-dark);
}

/* ==========================================================================
   Kopfzeile
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }

.topbar {
    background: var(--sw-gray-bar);
    color: #fff;
    font-size: .95rem;
    font-weight: 300;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 52px;
    padding: 0 1.5rem;
}
.topbar-contact { display: flex; align-items: center; gap: 3.5rem; min-width: 0; }
.topbar-link {
    display: inline-flex; align-items: center; gap: .75rem;
    color: #fff; text-decoration: none; white-space: nowrap;
}
.topbar-link:hover { color: #fff; text-decoration: underline; }
.topbar-link .icon { width: 26px; height: 26px; stroke-width: 1.25; }

.servicelinks { display: flex; align-items: center; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.servicelink {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: #fff;
}
.servicelink:hover, .servicelink[aria-expanded="true"] { color: #fff; opacity: .8; }
.servicelink .icon { width: 30px; height: 30px; stroke-width: 1.5; }

@media (max-width: 991.98px) {
    .topbar-contact { gap: 1.5rem; }
    .topbar-claim { display: none; }
}
@media (max-width: 767.98px) {
    .topbar-inner { padding: 0 .75rem; }
    .topbar-link span { display: none; }
    .topbar-contact { gap: .5rem; }
    .servicelinks { gap: .25rem; }
    .servicelink .icon { width: 24px; height: 24px; }
}

.mainbar-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    min-height: var(--sw-header-h);
    padding: 1rem 1.5rem;
}
.brand img { display: block; width: auto; height: 60px; }
@media (min-width: 1200px) { .brand img { height: 68px; } }
@media (max-width: 991.98px) { .mainbar-inner { align-items: center; padding: .75rem; } .brand img { height: 50px; } }

.mainnav-list { display: flex; gap: 2.75rem; margin: 0; padding: .1rem 1rem 0 0; list-style: none; }
.mainnav-item { position: relative; }
.mainnav-link {
    display: block;
    padding: .25rem 0;
    color: var(--sw-text);
    font-size: 1.15rem;
    font-weight: 400;
    text-decoration: none;
}
.mainnav-item:hover > .mainnav-link,
.mainnav-item:focus-within > .mainnav-link,
.mainnav-item.is-active > .mainnav-link { color: var(--sw-green-text); }

.mainnav-dropdown {
    position: absolute;
    top: 100%;
    left: -.35rem;
    min-width: 200px;
    margin: .35rem 0 0;
    padding: .35rem 0;
    list-style: none;
    background: var(--sw-gray-box);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility 0s linear .15s;
}
.mainnav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -.5rem; height: .5rem; }
.mainnav-item:hover > .mainnav-dropdown,
.mainnav-item:focus-within > .mainnav-dropdown { opacity: 1; visibility: visible; transition-delay: 0s; }
.mainnav-item:last-child .mainnav-dropdown { left: auto; right: -.35rem; }
.mainnav-dropdown a {
    display: block;
    padding: .2rem .75rem;
    color: var(--sw-text);
    font-size: 1.05rem;
    white-space: nowrap;
    text-decoration: none;
}
.mainnav-dropdown a:hover,
.mainnav-dropdown a:focus-visible,
.mainnav-dropdown a.is-active { color: var(--sw-green-dark); }
.mainnav-dropdown a.is-active { font-weight: 500; }

.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--sw-line); background: #fff; color: var(--sw-text);
}
.nav-toggle .icon { width: 24px; height: 24px; }

.searchbar { background: var(--sw-gray-box); }
.searchbar .container { padding-top: .9rem; padding-bottom: .9rem; }
.searchform { display: flex; gap: .5rem; max-width: 560px; margin-left: auto; }
.searchform .form-control { border-radius: 4px; }

.mobilenav { width: min(360px, 90vw) !important; }
.mobilenav .offcanvas-header { background: var(--sw-gray-bar); color: #fff; }
.mobilenav .offcanvas-header .nav-toggle { border: 0; background: transparent; color: #fff; }
.mobilenav .offcanvas-title { font-size: 1.1rem; }
.mobilenav .searchform { margin: 0 0 1rem; }
.mobilenav-list, .mobilenav-list ul { margin: 0; padding: 0; list-style: none; }
.mobilenav-list > li { border-bottom: 1px solid var(--sw-line); }
.mobilenav-row { display: flex; align-items: center; justify-content: space-between; }
.mobilenav-row a { flex: 1; padding: .8rem 0; color: var(--sw-text); font-size: 1.1rem; text-decoration: none; }
.mobilenav-list > li.is-active > .mobilenav-row a { color: var(--sw-green-text); }
.mobilenav-toggle { width: 44px; height: 44px; border: 0; background: transparent; color: var(--sw-text); }
.mobilenav-toggle .icon { transition: transform .2s ease; }
.mobilenav-toggle:not(.collapsed) .icon { transform: rotate(180deg); }
.mobilenav-list ul { padding: 0 0 .75rem .75rem; }
.mobilenav-list ul a { display: block; padding: .35rem 0; color: var(--sw-text); text-decoration: none; }
.mobilenav-list ul a.is-active { color: var(--sw-green-text); }
.mobilenav-contact { display: grid; gap: .6rem; margin-top: 1.5rem; }
.mobilenav-contact a { display: flex; align-items: center; gap: .5rem; color: var(--sw-text); text-decoration: none; }

/* ==========================================================================
   Eröffnungsbild
   ========================================================================== */

.hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(320px, 38vw, 560px);
    overflow: hidden;
    color: #fff;
    text-align: center;
    isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(35, 45, 40, .35); }
.hero-text { max-width: 900px; padding: 3rem 1.5rem; }
.hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
    font-weight: 600;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero-lead {
    margin: 1rem auto 0;
    font-size: clamp(1.05rem, 1rem + .45vw, 1.35rem);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

/* Bild-Element im Kopfbild-Bereich (z. B. Energie) */
.hero-content .frame { padding: 0 !important; margin: 0 !important; }
.hero-content .frame-container { max-width: 100%; padding: 0; }
.hero-content .gallery-row, .hero-content .gallery-item, .hero-content figure { margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: none !important; }
.hero-content img { display: block; width: 100%; height: auto; }
@media (min-width: 992px) {
    .hero-content img { height: min(620px, 42vw); object-fit: cover; }
}

/* ==========================================================================
   Inhalt
   ========================================================================== */

.page-content { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-content > .frame:first-child { padding-top: 0; }
.frame { --frame-spacing: clamp(1.25rem, 2.5vw, 2.25rem); }
.frame-container-default { max-width: var(--sw-max) !important; }

.frame-background-light { background: var(--sw-gray-soft); --frame-background: var(--sw-gray-soft); }
.frame-background-primary { background: var(--sw-green-text); color: #fff; }
.frame-background-primary h2, .frame-background-primary h3 { color: #fff; }
.frame-background-primary a:not(.btn) { color: #fff; }
.page-content > .frame-background-light,
.page-content > .frame-background-primary { padding-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }

.frame-header { margin-bottom: 1.25rem; }
.element-subheader { color: var(--sw-muted); font-size: 1.1rem; font-weight: 300; }
.frame-inner p { max-width: 78ch; }
.lead-text { font-size: 1.2rem; font-weight: 300; }

/* Container */
.frame-type-container .container-nested { width: 100%; }
.frame-type-container .frame { padding-top: 0; }
.frame-type-container .frame + .frame { margin-top: 1.5rem; }
/* Reine Abschnittsüberschrift direkt vor einem Container: Abstände nicht doppeln */
.page-content > .frame-type-header + .frame-type-container { padding-top: 0; }

/* Karten (card_group, menu_card) – flach wie im Marken-Beispiel */
.card {
    height: 100%;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.frame-background-none .card { border: 1px solid var(--sw-line); box-shadow: none; }
.card-img-top img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 1.25rem 1.25rem .5rem; }
.card-title { font-size: 1.2rem; font-weight: 500; margin-bottom: .5rem; }
.card-text, .card-body p { font-size: .975rem; }
.card-footer { background: transparent; border-top: 0; padding: 0 1.25rem 1.25rem; }
.card-footer a, .card .btn { padding: 0; border: 0; background: none; color: var(--sw-green-text); font-weight: 500; font-size: .95rem; }
.card-footer a:hover, .card .btn:hover { text-decoration: underline; color: var(--sw-green-dark); }

/* Kennzahlen-Leiste (icon_group, frame_class "facts") */
.frame-facts { padding: 0 !important; }
/* Kein Zusammenziehen der Abstände, da die Leiste selbst keinen Innenabstand hat */
.frame-facts + .frame { margin-top: 0; }
.frame-facts .frame-container { max-width: var(--sw-max); }
.frame-facts .icongroup {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: var(--sw-gray-soft);
    padding: 1.25rem 0;
    margin: 0;
}
@media (min-width: 992px) {
    .frame-facts .icongroup { grid-template-columns: repeat(4, 1fr); padding: 1.5rem 0; }
    .frame-facts .icongroup-item + .icongroup-item { border-left: 1px solid var(--sw-line); }
}
.frame-facts .icongroup-item {
    display: flex; align-items: center; gap: 1.1rem;
    width: auto; margin: 0; padding: .75rem 1.75rem;
}
.frame-facts .icongroup-item-icon {
    flex: 0 0 auto; width: 54px; height: 54px; margin: 0;
    display: grid; place-items: center; background: none; color: var(--sw-green);
}
.frame-facts .icongroup-item-icon svg, .frame-facts .icongroup-item-icon img { width: 50px; height: 50px; fill: currentColor; }
.frame-facts .icongroup-item-text-header {
    margin: 0; color: var(--sw-green-text); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); font-weight: 600; line-height: 1.1;
}
.frame-facts .icongroup-item-text-subheader { margin: .2rem 0 0; color: var(--sw-muted); font-size: .95rem; line-height: 1.3; }

/* Checkliste (frame_class "checklist") */
.frame-checklist ul { display: grid; gap: .6rem; padding: 0; list-style: none; }
@media (min-width: 768px) { .page-content > .frame-checklist ul { grid-template-columns: repeat(2, 1fr); gap: .75rem 2.5rem; } }
.frame-checklist li { position: relative; padding-left: 2rem; }
.frame-checklist li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ab023' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Logo-Raster (AGRAVIS-Marken, frame_class "logo-grid") */
.frame-logo-grid .gallery-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0 0 1rem; }
@media (min-width: 768px) { .frame-logo-grid .gallery-row { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .frame-logo-grid .gallery-row { grid-template-columns: repeat(5, 1fr); } }
.frame-logo-grid .gallery-item { width: auto !important; max-width: none !important; flex: none !important; margin: 0 !important; padding: 0 !important; }
.frame-logo-grid .gallery-item figure, .frame-logo-grid .gallery-item .image {
    display: flex; flex-direction: column; height: 100%; margin: 0; padding: 1.25rem;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.frame-logo-grid .gallery-item img { display: block; width: 100%; height: 90px; object-fit: contain; }
.frame-logo-grid figcaption { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--sw-line); font-size: .9rem; }
.frame-logo-grid { background: #f7f5ef; }
.page-content > .frame-logo-grid { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }

/* ==========================================================================
   Standorte (Kacheln + Karte)
   ========================================================================== */

.locations { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 992px) {
    .locations { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 3.5rem; }
    .locations-map { position: sticky; top: calc(var(--sw-header-h) + 70px); }
}
.locations-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; align-items: start; }
.locations-list > .location-card:first-child:nth-last-child(odd) { grid-column: 1; }
.locations-list > .location-card:first-child:nth-last-child(odd) + .location-card { grid-column: 1; }
@media (max-width: 479.98px) { .locations-list { grid-template-columns: 1fr; } }

.location-card { position: relative; }
.location-toggle {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; padding: 0; border: 0; background: none; color: var(--sw-text); text-align: center;
}
.location-image { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sw-gray-soft); }
.location-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.location-toggle:hover .location-image img { transform: scale(1.03); }
.location-image-placeholder {
    display: grid; place-items: center; width: 100%; height: 100%;
    background: var(--sw-gray-box); color: var(--sw-muted); font-size: .9rem;
}
.location-title { margin-top: .6rem; font-size: 1.25rem; line-height: 1.3; }
.location-subtitle { font-size: 1rem; color: var(--sw-muted); }
.location-more { margin-top: .15rem; font-size: .875rem; color: var(--sw-green-text); }
.location-toggle:not(.collapsed) .location-more { visibility: hidden; }
.location-toggle:not(.collapsed) .location-title { color: var(--sw-green-text); }

/* Grauer Infokasten, klappt unter dem Bild auf und überlagert die Nachbarn */
.location-panel { position: relative; z-index: 5; }
.location-details {
    position: relative;
    margin-top: .75rem;
    padding: 1.5rem 1.75rem 1.25rem;
    background: var(--sw-gray-box);
    color: var(--sw-text);
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
@media (min-width: 768px) {
    .location-panel { position: absolute; left: 0; top: 100%; width: min(460px, 90vw); }
    .location-card:nth-child(even) .location-panel { left: auto; right: 0; }
    .location-panel.collapsing { transition: none; }
}
.location-details p { margin: 0 0 1rem; }
.location-details-title { margin-bottom: .2rem !important; font-size: 1.1rem; font-weight: 500; }
.location-details a { color: var(--sw-text); }
.location-details a:hover { color: var(--sw-green-dark); }
.location-hours p { margin: 0 0 1rem; }
.location-hours strong { display: block; font-size: 1.1rem; font-weight: 500; margin-bottom: .2rem; }
.location-hours p:has(strong) { margin-bottom: .2rem; }
.location-close {
    position: absolute; top: .5rem; right: .5rem;
    width: 36px; height: 36px; border: 0; background: transparent; color: var(--sw-text);
}

.locations-map svg { display: block; width: 100%; height: auto; border: 1px solid var(--sw-line); }
.locations-map-attribution { margin: .4rem 0 0; color: var(--sw-muted); font-size: .75rem; text-align: right; }
.locations-map-attribution a { color: inherit; }
.map-marker { cursor: pointer; text-decoration: none; }
.map-marker-dot { fill: var(--sw-green); stroke: #fff; stroke-width: 4; transition: fill .15s ease; }
.map-marker-cross { stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.map-marker-label {
    fill: var(--sw-text); font-size: 26px; font-family: inherit;
    font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 7px; stroke-linejoin: round;
}
.map-marker:hover .map-marker-dot, .map-marker:focus-visible .map-marker-dot, .map-marker.is-active .map-marker-dot { fill: var(--sw-green-dark); }
.map-marker.is-active .map-marker-label { fill: var(--sw-green-dark); font-weight: 600; }

/* ==========================================================================
   Ansprechpartner (Reiter je Standort)
   ========================================================================== */

.contacts-tabs-scroll { overflow-x: auto; margin-bottom: 2.25rem; scrollbar-width: none; }
.contacts-tabs { flex-wrap: nowrap; border-bottom: 2px solid var(--sw-text); min-width: max-content; }
.contacts-tabs .nav-item { flex: 1 1 0; }
.contacts-tabs .nav-link {
    width: 100%; padding: .5rem 1rem; border: 0; border-radius: 0;
    background: transparent; color: var(--sw-text); font-size: 1.2rem; text-align: left; white-space: nowrap;
    border-bottom: 4px solid transparent; margin-bottom: -2px;
}
.contacts-tabs .nav-link:hover { color: var(--sw-green-text); }
.contacts-tabs .nav-link.active { color: var(--sw-green-text); border-bottom-color: var(--sw-green); }
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2.5rem 1.5rem; }
.contact-card { text-align: center; }
.contact-photo { width: 150px; height: 150px; margin: 0 auto .75rem; overflow: hidden; background: var(--sw-gray-soft); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.contact-photo-placeholder {
    display: grid; place-items: center; width: 100%; height: 100%;
    background: linear-gradient(#cfe8f7 0 55%, #a9cf6b 55% 100%); color: #fff;
}
.contact-photo-placeholder .icon { width: 55%; height: 55%; stroke-width: 1.25; }
.contact-name { margin: 0; font-size: 1.1rem; font-weight: 500; }
.contact-position { margin: 0; font-size: .95rem; color: var(--sw-muted); }
.contact-links { margin: .25rem 0 0; padding: 0; list-style: none; font-size: .95rem; }
.contact-links .icon { display: none; }
.contact-links a { color: var(--sw-text); text-decoration: none; overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--sw-green-dark); text-decoration: underline; }
.contact-links li:first-child::before { content: "Telefon: "; }
.contact-links li:has(a[href^="mailto"])::before { content: none; }

/* ==========================================================================
   Zeitstrahl (Historie)
   ========================================================================== */

.history-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.history-timeline::before { content: ""; position: absolute; top: .6rem; bottom: .6rem; left: 5.1rem; width: 2px; background: var(--sw-green); }
.history-entry { position: relative; display: grid; grid-template-columns: 4.25rem 1fr; gap: 2rem; padding-bottom: 1.5rem; }
.history-entry::before {
    content: ""; position: absolute; left: calc(5.1rem - 6px); top: .5rem;
    width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--sw-green);
}
.history-year { color: var(--sw-green-text); font-size: 1.25rem; font-weight: 600; text-align: right; line-height: 1.5; }
.history-text { margin: 0; max-width: 70ch; }
.history-entry.is-today::before { background: var(--sw-green); }
.history-entry.is-today .history-text { font-weight: 500; }

/* ==========================================================================
   News
   ========================================================================== */

.news-list-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.news-list-view > nav, .news-list-view > .page-navigation { grid-column: 1 / -1; }
.news-card { position: relative; display: flex; flex-direction: column; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.news-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.news-card-date { margin: 0 0 .25rem; color: var(--sw-muted); font-size: .875rem; }
.news-card-title { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 500; }
.news-card-title a { color: var(--sw-text); text-decoration: none; }
.news-card:hover .news-card-title a { color: var(--sw-green-text); }
.news-card-teaser { font-size: .95rem; }
.news-card-more { margin-top: auto; padding-top: .75rem; color: var(--sw-green-text); font-size: .95rem; font-weight: 500; }
.news-empty { padding: 1.25rem; background: var(--sw-gray-soft); color: var(--sw-muted); }

/* Externe Module */
.frame-type-html iframe { display: block; max-width: 100%; border: 0; }

/* Widget-Karten für externe Module (frame_class "widget", z. B. Märkte & Wetter) */
.frame-widget {
    display: flex; flex-direction: column;
    padding: 0 !important;
    background: #fff;
    border: 1px solid var(--sw-line);
    border-top: 3px solid var(--sw-green);
}
.frame-widget .frame-group-container,
.frame-widget .frame-group-inner,
.frame-widget .frame-container,
.frame-widget .frame-inner { display: flex; flex-direction: column; flex: 1; }
.frame-widget .frame-container { max-width: none !important; padding: clamp(1.25rem, 2vw, 1.75rem); }
.frame-widget .frame-header { margin: 0 0 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--sw-line); }
.frame-widget .element-header { margin: 0; font-size: 1.2rem; font-weight: 600; }
.frame-widget .element-subheader { margin: .25rem 0 0; font-size: .95rem; }
.frame-widget .frame-inner > :not(.frame-header) { align-self: center; margin-block: auto; max-width: 100%; }
/* Container nur mit Widget-Karten: Karten aller Spalten fließen in ein gleichmäßiges Raster */
.frame-type-container .row:has(.frame-widget):not(:has(> [class*="col-"] > .frame:not(.frame-widget))) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1.5rem;
    margin: 0;
}
.frame-type-container .row:has(.frame-widget):not(:has(> [class*="col-"] > .frame:not(.frame-widget))) > [class*="col-"] { display: contents; }
.frame-type-container .row:has(.frame-widget) .frame-widget + .frame-widget { margin-top: 0; }

/* ==========================================================================
   Formulare / Kontakt (angelehnt an Beispiel 4)
   ========================================================================== */

.form-control, .form-select { padding: .6rem .85rem; border-color: var(--sw-line); border-radius: 6px; }
.form-control::placeholder { color: #9aa1a4; }
.form-control:focus, .form-select:focus { border-color: var(--sw-green-text); box-shadow: 0 0 0 .2rem rgba(63, 125, 32, .15); }
.frame-type-form_formframework label { font-weight: 500; font-size: .95rem; }
.frame-type-form_formframework .form-group, .frame-type-form_formframework .mb-3 { margin-bottom: 1rem; }
.frame-type-form_formframework {
    padding: clamp(1.25rem, 3vw, 2rem) !important;
    border: 1px solid var(--sw-line);
    border-radius: 8px;
}
.frame-type-form_formframework .frame-container { padding: 0; }
.frame-type-form_formframework .actions .btn-primary,
.frame-type-form_formframework button[type="submit"] { width: 100%; padding: .75rem; background: #33662d; border-color: #33662d; }

.frame-layout-embedded { border: 1px solid var(--sw-line); border-radius: 8px; }
.frame-layout-embedded.frame-background-light { background: #fff; }
.frame-layout-embedded .frame-group-inner { background: #fff !important; }
.frame-layout-embedded h3 { margin: 1.25rem 0 .25rem; font-size: 1.05rem; font-weight: 600; }
.frame-layout-embedded p { margin-bottom: .5rem; color: var(--sw-muted); }
.frame-layout-embedded ul { margin: 0; padding: 1rem 1rem 1rem 1rem; background: var(--sw-gray-soft); border-radius: 6px; }

/* Suche */
.tx-indexedsearch-searchbox fieldset { border: 0; padding: 0; }
.tx-indexedsearch-searchbox legend { display: none; }
.tx-indexedsearch-res { padding: 1.25rem 0; border-bottom: 1px solid var(--sw-line); }

/* ==========================================================================
   Fußzeile
   ========================================================================== */

.site-footer { background: var(--sw-gray-bar); color: #fff; font-size: .95rem; font-weight: 300; }
.footer-inner {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 1.5rem 3rem; padding: 1.5rem 1.5rem 1.25rem;
}
.footer-heading { margin: 0; font-weight: 400; }
.footer-contact p { margin: 0; line-height: 1.55; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-legal { text-align: right; }
.footer-legal ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 2.5rem; margin: 0; padding: 0; list-style: none; font-size: 1.1rem; font-weight: 400; }
.footer-copy { margin: .5rem 0 0; font-size: .85rem; opacity: .85; }
@media (max-width: 767.98px) {
    .footer-legal, .footer-legal ul { text-align: left; justify-content: flex-start; }
}

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