/* ========================================
   GRUPPEN - Styling für Übersichts- und Detailseiten
   Farbschema: Senfgelb/Gold (#CAA90B)
   Orientiert am Styling von neuigkeiten-styling.css
   ======================================== */

/* ========================================
   HERO SUBPAGE - Gruppen-spezifisch
   Heller goldener Hintergrund mit dunkler Schrift
   WCAG AA-konform: Kontrastverhältnis > 4.5:1
   Konsistent mit Senfgelb als Hauptakzent
   ======================================== */

.hero-gruppen {
    background: #f5e6a3;
    background: -webkit-linear-gradient(315deg, #f5e6a3 0%, #e8d68a 100%);
    background: linear-gradient(135deg, #f5e6a3 0%, #e8d68a 100%);
    padding: 3rem 0 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #CAA90B;
}

/* Dezentes Hintergrundmuster */
.hero-gruppen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(202, 169, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(202, 169, 11, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-gruppen .container {
    position: relative;
    z-index: 1;
}

.hero-gruppen h1 {
    color: #4a3c06;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.hero-gruppen p {
    color: #5c4a0a;
    font-size: 1.1rem;
    margin: 0;
    max-width: 600px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #5c4a0a;
}

.breadcrumb a {
    color: #6b5a08;
    text-decoration: none;
    font-weight: 600;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #3d3107;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #8a7209;
}

/* ========================================
   ÜBERSICHTSSEITE - Gruppen-Grid
   ======================================== */

.gruppen-intro {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text, #333);
}

.gruppen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 4rem 0;
}

.gruppen-card {
    margin: 0;
}

.gruppen-card-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 1.5rem;
    background: #fff;
    background: var(--color-white, #fff);
    border: 1px solid #e0e0e0;
    border-left: 5px solid #CAA90B;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    color: var(--color-text, #333);
    -webkit-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
}

/* Abstände zwischen Flex-Kindern (Safari-kompatibel statt gap) */
.gruppen-card-link > * + * {
    margin-left: 1.25rem;
}

.gruppen-card-link:hover {
    border-left-color: #a8890a;
    background: #fff;
    -webkit-box-shadow: 0 8px 16px rgba(202, 169, 11, 0.15);
    box-shadow: 0 8px 16px rgba(202, 169, 11, 0.15);
    -webkit-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    transform: translateY(-3px);
}

.gruppen-card-icon {
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: -webkit-linear-gradient(315deg, #CAA90B 0%, #a8890a 100%);
    background: linear-gradient(135deg, #CAA90B 0%, #a8890a 100%);
    border-radius: 50%;
    color: #fff;
    -webkit-box-shadow: 0 2px 6px rgba(202, 169, 11, 0.3);
    box-shadow: 0 2px 6px rgba(202, 169, 11, 0.3);
}

.gruppen-card-icon svg {
    width: 24px;
    height: 24px;
}

.gruppen-card-title {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #333;
}

.gruppen-card-arrow {
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    color: #CAA90B;
    font-size: 1.25rem;
    opacity: 0;
    -webkit-transform: translateX(-10px);
    -ms-transform: translateX(-10px);
    transform: translateX(-10px);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.gruppen-card-link:hover .gruppen-card-arrow {
    opacity: 1;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

/* Kontakt-Hinweis Box */
.gruppen-contact-hint {
    background: linear-gradient(135deg, #fffcf0 0%, #fff8e1 100%);
    border: 1px solid #e8d78a;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 4px 12px rgba(202, 169, 11, 0.08);
}

.gruppen-contact-hint h2 {
    color: #8a7209;
    font-size: 1.6rem;
    margin: 0 0 1rem 0;
}

.gruppen-contact-hint p {
    color: var(--color-text, #555);
    max-width: 600px;
    margin: 0 auto 1.75rem auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

.gruppen-contact-hint .btn-solid {
    background-color: #CAA90B;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.gruppen-contact-hint .btn-solid:hover {
    background-color: #a8890a;
    -webkit-box-shadow: 0 4px 12px rgba(202, 169, 11, 0.3);
    box-shadow: 0 4px 12px rgba(202, 169, 11, 0.3);
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

/* ========================================
   DETAILSEITE - 3-Spalten Layout (FULL)
   ======================================== */

/* Desktop-Layout: [Sidebar (links)] [Main (mitte)] [Contact (rechts)] */
.contact-grid {
    display: -ms-grid;
    display: grid;
    gap: 40px;
    -ms-grid-columns: 1fr 40px 1.5fr 40px 1fr;
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-areas: "sidebar main contact";
}

/* Grid-Bereiche zuweisen */
.contact-details {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
    grid-area: sidebar;
}

.group-main-content {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
    grid-area: main;
}

.group-contact-column {
    -ms-grid-row: 1;
    -ms-grid-column: 5;
    grid-area: contact;
}

/* ========================================
   ADAPTIVES LAYOUT - MEDIUM (2 Spalten)
   Für Gruppen mit wenig Hauptinhalt aber Sidebar-Content
   ======================================== */

.gruppe-layout-medium {
    -ms-grid-columns: 1fr 40px 1fr;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "sidebar contact";
}

.gruppe-layout-medium .group-main-content {
    display: none;
}

.gruppe-layout-medium .contact-details {
    -ms-grid-column: 1;
}

.gruppe-layout-medium .group-contact-column {
    -ms-grid-column: 3;
}

/* ========================================
   ADAPTIVES LAYOUT - MINIMAL (Kompakt)
   Für Gruppen mit sehr wenig Inhalt
   ======================================== */

.gruppe-layout-minimal {
    -ms-grid-columns: 1.2fr 40px 1fr;
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas: "contact sidebar";
}

.gruppe-layout-minimal .group-main-content {
    display: none;
}

.gruppe-layout-minimal .contact-details {
    -ms-grid-column: 3;
    grid-area: sidebar;
}

.gruppe-layout-minimal .group-contact-column {
    -ms-grid-column: 1;
    grid-area: contact;
}

/* Ansprechpartner-Block im Kontakt-Bereich (für minimal/medium) */
.contact-ansprechpartner {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 1rem;
    line-height: 1.6;
}

/* Tablet-Ansicht (2 Spalten) */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        grid-template-areas: 
            "sidebar main"
            "contact main";
        gap: 25px;
    }
    
    /* Medium und Minimal bleiben 2-spaltig */
    .gruppe-layout-medium,
    .gruppe-layout-minimal {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobil-Ansicht (1 Spalte) */
@media (max-width: 767px) {
    .contact-grid,
    .gruppe-layout-medium,
    .gruppe-layout-minimal {
        display: block;
    }

    .contact-details,
    .group-main-content,
    .group-contact-column {
        margin-bottom: 30px;
    }
    
    .contact-details:last-child,
    .group-main-content:last-child,
    .group-contact-column:last-child {
        margin-bottom: 0;
    }
    
    /* Bei minimal: Kontakt zuerst */
    .gruppe-layout-minimal .group-contact-column {
        order: -1;
    }
}

/* ========================================
   DETAILSEITE - Sections & Text Content
   ======================================== */

.group-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    word-wrap: break-word;
}

.group-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Einheitliche H2-Überschriften für ALLE Spalten */
.contact-details h2,
.group-contact-column h2 {
    font-family: "FS Me W01 Bold", Arial, sans-serif;
    font-size: 1.5rem;
    color: var(--color-secondary, #3d807f);
    margin-bottom: 0.75rem;
    margin-top: 0;
    font-weight: 700;
    line-height: 1.3;
}

.group-section ul, 
.group-section ol {
    margin-left: 0; 
    margin-bottom: 1rem;
    padding-left: 1rem; 
}

.group-section li {
    margin-bottom: 0.5rem;
}

.group-section p {
    margin-bottom: 1rem;
}

/* Text-Content Styling */
.group-text-content {
    white-space: pre-line;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text, #333);
}

.group-text-content > *:first-child {
    margin-top: 0;
}

.group-text-content > *:last-child {
    margin-bottom: 0;
}

.group-text-content ul,
.group-text-content ol {
    white-space: normal;
}

/* H2 innerhalb von Text-Content NUR in der Hauptspalte */
.group-main-content .group-text-content h2 {
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
    line-height: 1.3;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(202, 169, 11, 0.3);
    padding-bottom: 0.5rem;
    display: inline-block;
    padding-right: 1rem;
}

.group-main-content .group-text-content h3,
.group-main-content .group-text-content h4 {
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
    line-height: 1.3;
}

.group-text-content a {
    color: #a8890a;
    text-decoration: underline;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.group-text-content a:hover {
    color: #8a7209;
}

/* Clearfix für Floats */
.group-section::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================================
   DETAILSEITE - Einheitliche Buttons
   ======================================== */

/* Basis-Style für alle Gruppen-Buttons */
.contact-details .btn,
.group-contact-column .btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: "FS Me W01 Bold", Arial, sans-serif;
    font-weight: bold;
    text-decoration: none;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

/* Solid Buttons (ausgefüllt) */
.contact-details .btn-solid,
.group-contact-column .btn-solid {
    background-color: #CAA90B;
    color: #3d2a00; /* Dunkler Braunton für guten Kontrast */
    border: none;
}

.contact-details .btn-solid:hover,
.group-contact-column .btn-solid:hover {
    background-color: #a8890a;
    color: #fff;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 12px rgba(202, 169, 11, 0.3);
    box-shadow: 0 4px 12px rgba(202, 169, 11, 0.3);
}

/* Outline Buttons (nur Rahmen) */
.contact-details .btn-outline,
.group-contact-column .btn-outline {
    background-color: transparent;
    color: #6b5a08;
    border: 2px solid #CAA90B;
}

.contact-details .btn-outline:hover,
.group-contact-column .btn-outline:hover {
    background-color: #CAA90B;
    color: #3d2a00;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 12px rgba(202, 169, 11, 0.3);
    box-shadow: 0 4px 12px rgba(202, 169, 11, 0.3);
}

/* Spezifische Button-Abstände */
.group-contact-btn {
    margin-bottom: 1.5rem;
}

.group-map-btn {
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.group-more-btn {
    margin-top: 0.75rem;
}

.group-contact-block {
    margin-bottom: 1.5rem; 
    padding: 1rem; 
    background: #f9f9f9; 
    border-radius: 8px;
}

.group-contact-block address {
    margin-bottom: 1rem;
    font-style: normal;
    line-height: 1.6;
}

.group-contact-block p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.group-contact-block p:last-child {
    margin-bottom: 0;
}

.group-contact-block a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px dotted #CAA90B;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.group-contact-block a:hover {
    color: #a8890a;
    border-bottom-style: solid;
}

.contact-social {
    margin-top: 0.5rem;
}

/* ========================================
   DETAILSEITE - Listen (News, Events)
   ======================================== */

.group-list {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
    white-space: normal;
}

.group-list li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted #ccc;
}

.group-list li:last-child {
    border-bottom: none;
}

.group-list a {
    font-weight: bold;
    text-decoration: none;
    color: #333;
    color: var(--color-text, #333);
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.group-list a:hover {
    color: #a8890a;
}

.list-meta {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

/* ========================================
   DETAILSEITE - Banner & Bilder
   ======================================== */

.group-banner img {
    width: 100%; 
    height: auto; 
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Eingebettete Bilder (Vollbreite, für Angebote) */
.group-section-image {
    display: block;
    width: 100%;
    margin: 1.5rem 0 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.group-section-image img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

.group-section-image:hover img {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

/* Rechts-floatende Bilder */
.group-embedded-image-right {
    display: block;
    float: right;
    width: 45%;
    margin: 0.5rem 0 1rem 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Links-floatende Bilder */
.group-embedded-image-left {
    display: block;
    float: left;
    width: 45%;
    margin: 0.5rem 1.5rem 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.group-embedded-image-right img,
.group-embedded-image-left img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

.group-embedded-image-right:hover img,
.group-embedded-image-left:hover img {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

/* Responsive Bilder */
@media (max-width: 768px) {
    .group-embedded-image-right,
    .group-embedded-image-left {
        float: none;
        width: 100%;
        margin: 0 0 1.5rem 0;
    }
}

/* ========================================
   DETAILSEITE - Video Container
   ======================================== */

.video-container {
    position: relative; 
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0; 
    overflow: hidden; 
    max-width: 100%;
    background: #000;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
}

/* ========================================
   LIGHTBOX MODAL
   ======================================== */

.lightbox-overlay {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    -webkit-transform: scale(0.9);
    -ms-transform: scale(0.9);
    transform: scale(0.9);
}

.lightbox-overlay.visible .lightbox-content {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: #bbb;
}

/* ========================================
   ZURÜCK-BUTTON
   ======================================== */

.gruppe-back-link {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.gruppe-back-link .btn-outline {
    display: inline-block;
    padding: 12px 24px;
    color: #6b5a08;
    border: 2px solid #CAA90B;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.gruppe-back-link .btn-outline:hover {
    background-color: #CAA90B;
    color: #3d2a00;
    -webkit-transform: translateX(-3px);
    -ms-transform: translateX(-3px);
    transform: translateX(-3px);
}

/* ========================================
   MELDUNGEN (Fehler, Warnings)
   ======================================== */

.meldung {
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.meldung-warning {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3d6 100%);
    border: 1px solid #f0d58c;
    color: #8a6d3b;
}

.meldung-warning h2 {
    color: #8a6d3b;
    margin: 0 0 0.75rem 0;
}

.meldung-warning p {
    margin: 0.5rem 0;
}

.meldung-warning .btn-solid {
    margin-top: 1rem;
    background: #8a6d3b;
}

.meldung-warning .btn-solid:hover {
    background: #6d5630;
}

/* ========================================
   KONTAKTFORMULAR - Gruppen-Kontaktseite
   ======================================== */

/* 2-Spalten Grid für Kontaktseite */
.gruppe-kontakt-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 40px 1.5fr;
    grid-template-columns: 1fr 1.5fr;
    grid-template-areas: "details form";
    gap: 40px;
}

.gruppe-kontakt-grid .contact-details {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
    grid-area: details;
}

.gruppe-kontakt-grid .contact-form {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
    grid-area: form;
}

@media (max-width: 767px) {
    .gruppe-kontakt-grid {
        display: block;
    }
    
    .gruppe-kontakt-grid .contact-details,
    .gruppe-kontakt-grid .contact-form {
        margin-bottom: 30px;
    }
    
    .gruppe-kontakt-grid .contact-form:last-child {
        margin-bottom: 0;
    }
}

/* Anmerkungen-Block */
.contact-anmerkungen {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.contact-anmerkungen h3 {
    font-size: 1.1rem;
    color: var(--color-secondary, #3d807f);
    margin-bottom: 0.5rem;
}

/* Social Media Block auf Kontaktseite */
.contact-social-block {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.contact-social-block h3 {
    font-size: 1.1rem;
    color: var(--color-secondary, #3d807f);
    margin-bottom: 0.5rem;
}

.contact-social-block a {
    color: #8a7209;
    text-decoration: none;
    font-weight: 500;
}

.contact-social-block a:hover {
    color: #CAA90B;
    text-decoration: underline;
}

/* Formular-Button im Gruppen-Stil */
.gruppe-kontakt-grid .contact-form .btn-solid {
    background-color: #CAA90B;
    color: #3d2a00;
}

.gruppe-kontakt-grid .contact-form .btn-solid:hover {
    background-color: #a8890a;
    color: #fff;
}

/* Form Row für PLZ/Ort/Land - Browser-kompatibel */
.form-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.form-row > .form-group {
    padding: 0 0.5rem;
    margin-bottom: 1rem;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
}

.form-group-plz {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 120px;
    flex: 0 0 120px;
    max-width: 120px;
}

.form-group-land {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .form-row {
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }
    
    .form-group-plz {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 120px;
        flex: 0 0 120px;
    }
    
    .form-group-land {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 200px;
        flex: 0 0 200px;
        max-width: 200px;
    }
}

@media (max-width: 500px) {
    .form-row > .form-group {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .form-group-plz {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Select-Element - Safari-kompatibel */
.form-group select,
.form-group-land select {
    display: block;
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select:focus,
.form-group-land select:focus {
    outline: none;
    border-color: #CAA90B;
    -webkit-box-shadow: 0 0 0 3px rgba(202, 169, 11, 0.2);
    box-shadow: 0 0 0 3px rgba(202, 169, 11, 0.2);
}

/* IE/Edge Dropdown-Pfeil entfernen */
.form-group select::-ms-expand,
.form-group-land select::-ms-expand {
    display: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .hero-gruppen {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .gruppen-grid {
        grid-template-columns: 1fr;
    }
    
    .gruppen-card-link {
        padding: 1.25rem;
    }
    
    .gruppen-contact-hint {
        padding: 1.5rem;
    }
    
    .gruppen-contact-hint h2 {
        font-size: 1.35rem;
    }
    
    .contact-details h2,
    .group-contact-column h2 {
        font-size: 1.35rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .contact-grid {
        display: block;
    }
    
    .contact-details,
    .group-main-content,
    .group-contact-column {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .group-contact-block {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .lightbox-overlay {
        display: none !important;
    }
}