/* ==========================================================
   R.U.N. – SITE
   Gemeinsames Design für alle Seiten ausser Home

   Ziel:
   - bestehende TYPO3/Fluid-Klassen weiterverwenden
   - alte feste 800px-/Float-Struktur responsiv überschreiben
   - modernes, ruhiges Erscheinungsbild
   - Mitglieder, Firmen, Events und SimpleModal berücksichtigen

   Hinweis:
   Das Hamburger-Menü benötigt später eine kleine Template/JS-Ergänzung.
   Diese Datei bereitet die Styles dafür bereits vor.
   ========================================================== */


/* ==========================================================
   1. DESIGN TOKENS
   ========================================================== */

:root {
    --run-blue: #1c4d9a;
    --run-blue-dark: #143a75;
    --run-blue-light: #eef4fc;

    --run-text: #334155;
    --run-text-muted: #64748b;
    --run-heading: #172033;

    --run-bg: #ffffff;
    --run-bg-soft: #f6f8fb;
    --run-border: #dbe3ee;

    --run-radius-sm: 8px;
    --run-radius: 14px;
    --run-radius-lg: 20px;

    --run-shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
    --run-shadow: 0 12px 35px rgba(15, 23, 42, 0.10);

    --run-container: 1100px;
    --run-content: 960px;

    --run-space-1: 0.5rem;
    --run-space-2: 0.75rem;
    --run-space-3: 1rem;
    --run-space-4: 1.5rem;
    --run-space-5: 2rem;
    --run-space-6: 3rem;

    --run-transition: 180ms ease;
}


/* ==========================================================
   2. BASIS
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-width: 0;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-width: 0;
    margin: 0;

    background: var(--run-bg);
    color: var(--run-text);

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
input,
textarea,
select {
    font: inherit;
}


/* ==========================================================
   3. TYPOGRAFIE
   ========================================================== */

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    margin-top: 0;
    color: var(--run-heading);
    line-height: 1.2;
}

body h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

body h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 650;
    letter-spacing: -0.025em;
}

body h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 650;
}

body h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 650;
}

body p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--run-text);
    font-size: 1rem;
    line-height: 1.7;
}

p.paragraph {
    min-height: 0;
    margin: 0.5rem 0;
    color: var(--run-blue);
    font-size: 1rem;
}

h3.heading,
h3.heading_list,
h1.heading_event,
h4.heading,
h4.heading_list,
h3.heading1,
h3.heading2 {
    color: var(--run-blue);
}

h3.heading {
    min-height: 0;
    margin: 0.45rem 0 0.45rem 0.65rem;
    font-size: 1rem;
}

h3.heading_list {
    min-height: 0;
    margin: 0.15rem 0 0.5rem 0.65rem;
    font-size: 1rem;
}

h1.heading_event {
    min-height: 0;
    margin: 0.35rem 0 0 0.65rem;
    font-size: 1rem;
    letter-spacing: 0;
}

h4.heading {
    min-height: 0;
    margin: 0.55rem 0 0.55rem 0.65rem;
    font-size: 0.85rem;
}

h4.heading_list {
    min-height: 0;
    margin: 0.15rem 0 0 0.65rem;
    font-size: 0.9rem;
}

h3.heading1 {
    min-height: 0;
    margin: 0.65rem 0 0.65rem 0.65rem;
    font-size: 1rem;
}

h3.heading2 {
    font-size: 0.9rem;
}


/* ==========================================================
   4. LINKS
   ========================================================== */

body a {
    color: var(--run-blue);
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: none;

    transition:
        color var(--run-transition),
        background-color var(--run-transition),
        border-color var(--run-transition),
        box-shadow var(--run-transition),
        transform var(--run-transition);
}

body a:visited {
    color: var(--run-blue);
}

body a:hover,
body a:focus-visible {
    color: var(--run-blue-dark);
}

body a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(28, 77, 154, 0.25);
    outline-offset: 3px;
}


/* ==========================================================
   5. HAUPTCONTAINER
   ========================================================== */

.main_wrapper {
    clear: both;

    width: min(calc(100% - 40px), var(--run-container));
    min-height: 100vh;

    margin: 0 auto;
    padding-bottom: var(--run-space-6);
}


/* Alte Spacer nur noch dort verwenden, wo sie strukturell nötig sind */

.row_4 {
    height: 20px;
}

.row_8 {
    clear: both;
    height: 28px;
}

.row_header_space {
    clear: both;
    height: 24px;
}

.row_3 {
    clear: both;
    width: 100%;
    min-height: 50px;
}


/* ==========================================================
   6. HEADER / HAUPTNAVIGATION
   Erwartete Struktur:
   .menu
     .logo
     .menu_toggle
     .main_navigation
       .menu_button ...
   ========================================================== */

.row_1 {
    position: relative;
    z-index: 100;

    clear: both;
    width: 100%;
    min-height: 90px;
}

.menu {
    position: relative;

    display: flex;
    align-items: stretch;

    width: 100%;
    height: 64px;
    min-height: 64px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: var(--run-blue);
    border-radius: 0px 32px 32px 0px;
}

/* Logo: bündig links, ohne eigenen Hintergrund / Padding / Form */
.logo {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;

    float: none;

    width: auto;
    height: 64px;
    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
}

.logo a,
.logo img {
    display: block;

    width: auto;
    height: 64px;

    margin: 0;
    padding: 0;
}

.logo img {
    max-width: none;
    object-fit: contain;
}

/* Neuer Wrapper für die eigentliche Navigation */
.main_navigation {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: flex-end;

    min-width: 0;
    height: 64px;

    gap: 30px;

    margin: 0;
    padding: 0 18px;
}

/* Alter Spacer wird nach Template-Umstellung nicht mehr benötigt */
.space {
    display: none;
}

.menu_button {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;

    float: none;

    width: auto;
    height: 64px;
    min-width: 0;
    min-height: 64px;

    margin: 0;
    padding: 0;
}

.menu_button > a,
.menu_button > a:link,
.menu_button > a:visited,
.menu_button > a:hover,
.menu_button > a:focus,
.menu_button > a:active,
.menu_button > a p,
.menu_button > a:visited p,
.menu_button > a:hover p,
.menu_button > a:focus p {
    color: #fff;
}

.menu_button > a {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 64px;
    min-height: 64px;

    padding: 0 20px;

    border-radius: 24px;

    transition:
        color var(--run-transition),
        background-color var(--run-transition),
        box-shadow var(--run-transition),
        transform var(--run-transition);
}

.menu_button > a:hover,
.menu_button > a:focus-visible {
    color: var(--run-blue);

    background: #fff;
    box-shadow: 0 4px 14px rgba(10, 35, 75, 0.18);

    transform: translateY(-1px);
}

.menu_button > a:hover p,
.menu_button > a:focus-visible p {
    color: var(--run-blue);
}

p.paragraph_menu,
.menu_button p.paragraph_menu {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 64px;
    min-height: 64px;

    margin: 0;
    padding: 0;

    color: #fff;

    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

/* Falls das TypoScript weiterhin alte column_* Klassen ausgibt */
.main_navigation > .column_3,
.main_navigation > .column_4,
.main_navigation > .column_5,
.main_navigation > .column_6,
.main_navigation > .column_7 {
    flex: 0 0 auto;
    float: none;

    width: auto;
    height: 64px;
    min-height: 64px;
}

/* ==========================================================
   7. HAMBURGER
   ========================================================== */

.menu_toggle {
    display: none;
    flex: 0 0 auto;
    align-self: center;

    width: 46px;
    height: 46px;

    margin: 0 8px 0 auto;
    padding: 10px;

    cursor: pointer;

    background: transparent;
    border: 0;
    border-radius: 50%;
}

.menu_toggle span {
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px auto;

    background: #fff;
    border-radius: 999px;

    transition:
        transform var(--run-transition),
        opacity var(--run-transition);
}

.menu.menu_is_open .menu_toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu.menu_is_open .menu_toggle span:nth-child(2) {
    opacity: 0;
}

.menu.menu_is_open .menu_toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================
   8. SUBNAVIGATION
   ========================================================== */

.sub_menu_wrapper {
    width: 100%;
    max-width: var(--run-content);
    margin: 0 auto;
}


/* Oberer / unterer Abstand */

.sub_top,
.sub_botton {
    height: 10px;
}


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

.sub_menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 40px;

    margin: 0;
    padding: 0;

    gap: 8px;
}


/* Alten Clearfix aus reset.css deaktivieren */

.sub_menu::before,
.sub_menu::after {
    content: none !important;
    display: none !important;
}


/* Alter Spacer wird nicht mehr benötigt */

.sub_menu_space_left {
    display: none;
}


/* ----------------------------------------------------------
   Menüelemente
   ---------------------------------------------------------- */

.sub_menu_col,
.sub_menu_col_2,
.sub_menu_col_3,
.sub_menu_col_act {
    display: flex;
    align-items: stretch;

    float: none;

    width: auto;
    min-width: 130px;
    height: 40px;

    margin: 0;
    padding: 0;

    border-radius: 20px;
}


/* ----------------------------------------------------------
   Link = gesamte Buttonfläche
   ---------------------------------------------------------- */

.sub_menu_col > a,
.sub_menu_col_2 > a,
.sub_menu_col_3 > a,
.sub_menu_col_act > a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 40px;

    margin: 0;
    padding: 0 22px;

    border-radius: 20px;

    transition:
        color var(--run-transition),
        background-color var(--run-transition),
        box-shadow var(--run-transition);
}


/* ----------------------------------------------------------
   Text
   ---------------------------------------------------------- */

.sub_menu h3.heading_sub_menu,
.sub_menu h3.heading_sub_menu_act {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}


/* ----------------------------------------------------------
   Normaler Button
   ---------------------------------------------------------- */

.sub_menu_col > a,
.sub_menu_col_2 > a,
.sub_menu_col_3 > a,
.sub_menu_col > a:visited,
.sub_menu_col_2 > a:visited,
.sub_menu_col_3 > a:visited {
    color: var(--run-blue);
    background: transparent;
}

.sub_menu_col h3.heading_sub_menu,
.sub_menu_col_2 h3.heading_sub_menu,
.sub_menu_col_3 h3.heading_sub_menu {
    color: var(--run-blue);
}


/* Hover normaler Button */

.sub_menu_col > a:hover,
.sub_menu_col_2 > a:hover,
.sub_menu_col_3 > a:hover,
.sub_menu_col > a:focus-visible,
.sub_menu_col_2 > a:focus-visible,
.sub_menu_col_3 > a:focus-visible {
    color: var(--run-blue);
    background: var(--run-blue-light);
}


/* ----------------------------------------------------------
   Aktiver Button
   ---------------------------------------------------------- */

.sub_menu_col_act {
    color: #fff;
    background: var(--run-blue);
}

.sub_menu_col_act > a,
.sub_menu_col_act > a:link,
.sub_menu_col_act > a:visited,
.sub_menu_col_act > a:hover,
.sub_menu_col_act > a:focus,
.sub_menu_col_act > a:focus-visible,
.sub_menu_col_act > a:active {
    color: #fff;
    background: var(--run-blue);
}


/*
   Explizit setzen, da ältere globale h3-Regeln
   sonst die blaue Schrift wieder überschreiben können.
*/

.sub_menu_col_act h3.heading_sub_menu_act,
.sub_menu_col_act > a h3.heading_sub_menu_act,
.sub_menu_col_act > a:visited h3.heading_sub_menu_act,
.sub_menu_col_act > a:hover h3.heading_sub_menu_act {
    color: #fff !important;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media screen and (max-width: 720px) {

    .sub_menu {
        flex-direction: column;
        align-items: stretch;

        gap: 6px;
    }

    .sub_menu_col,
    .sub_menu_col_2,
    .sub_menu_col_3,
    .sub_menu_col_act {
        width: 100%;
        min-width: 0;
    }

    .sub_menu_col > a,
    .sub_menu_col_2 > a,
    .sub_menu_col_3 > a,
    .sub_menu_col_act > a {
        width: 100%;
    }
}


/* ==========================================================
   9. CONTENT LAYOUT
   ========================================================== */

.row_2,
.row_2_kontakt {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    clear: both;

    width: 100%;
    min-height: 120px;

    gap: 24px 32px;

    background: transparent;
    border-radius: 0;
}

.row_2::before,
.row_2::after {
    content: none !important;
    display: none !important;
}

.members_content {
	padding-top: 40px;
}

.left_space,
.mid_space,
.right_space {
    display: none;

    float: none;
    width: 0;
    min-height: 0;
}

.content_left,
.content_right {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    float: none;

    width: 100%;
    min-width: 0;
    min-height: 0;

    gap: 16px;
	background: #f0f2fa;
	border-radius: 32px;
	
	padding: 20px;
}

.content_one_col {
    grid-column: 1 / -1;

    float: none;

    width: 100%;
    max-width: var(--run-content);
    min-height: 120px;
	
    margin: 0 auto;
	background: #f0f2fa;
	border-radius: 32px;
	padding: 20px;
}


/* TYPO3 Content-Elemente */

.content_left > *,
.content_right > *,
.content_one_col > * {
    max-width: 100%;
}

.content_one_col figure,
.content_left figure,
.content_right figure {
    margin-left: 0;
    margin-right: 0;
}


/* ==========================================================
   10. GEMEINSAME CARD-BASIS
   ========================================================== */

.main_person,
.main_firma,
.main_wrapper_meeting {
    background: #fff;
    border: 1px solid rgba(28, 77, 154, 0.14);
    border-radius: 16px;

    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.07);

    transition:
        transform var(--run-transition),
        border-color var(--run-transition),
        box-shadow var(--run-transition);
}

.main_person:hover,
.main_firma:hover,
.main_wrapper_meeting:hover {
    border-color: rgba(28, 77, 154, 0.38);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}


/* ==========================================================
   11. MITGLIEDER / PERSONEN
   ========================================================== */

.main_person {
    clear: both;

    width: 100%;
    max-width: none;
    min-height: 104px;

    margin: 0;
    padding: 14px 16px;

    cursor: pointer;
}

.pers_sp_1,
.pers_sp3 {
    display: none;
}

.pers_sp_2 {
    float: none;

    width: 100%;
    min-height: 0;
}

.pers_row_top,
.pers_row_botton {
    display: none;
}

.pers_row_content {
    display: flex;
    align-items: center;

    clear: both;

    width: 100%;
    height: auto;
    min-height: 74px;

    gap: 16px;
}

.person_image {
    display: flex;
    flex: 0 0 72px;
    align-items: center;
    justify-content: center;

    float: none;

    width: 72px;
    height: 72px;
    min-height: 72px;
}

.person_content {
    flex: 1 1 auto;
    float: none;

    display: flex;
    flex-direction: column;
    justify-content: center;

    width: auto;
    min-width: 0;
    min-height: 72px;
}

.person_content_sp_1,
.person_content_sp_2 {
    display: flex;
    align-items: center;

    clear: both;

    width: 100%;
    min-height: 0;
}

.person_content_sp_1 + .person_content_sp_2 {
    margin-top: 5px;
}

.person_content h1,
.person_content h2,
.person_content h3,
.person_content h4,
.person_content p {
    margin-top: 0;
    margin-bottom: 0;
}

.person_content a {
    font-weight: 600;
}

.row_1_person,
.row_2_person {
    clear: both;

    width: 100%;
    height: auto;
    min-height: 0;
}

.person_name {
    float: none;

    width: auto;
    min-height: 0;
}

img.image,
img.image1,
img.image2 {
    display: block;

    object-fit: cover;
    border-radius: 50%;
}

img.image1 {
    width: 72px;
    height: 72px;
}

img.image2 {
    width: 120px;
    height: 120px;
}

img.logo_klein {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

img.logo_gross {
    max-width: 100%;
    max-height: 120px;

    margin-left: 20px;

    object-fit: contain;
}


/* ==========================================================
   12. FIRMEN
   ========================================================== */

.main_firma {
    clear: both;

    width: 100%;
    max-width: none;
    min-height: 104px;

    margin: 0;
    padding: 14px 16px;

    cursor: pointer;
}

.firma_sp_1,
.firma_sp3 {
    display: none;
}

.firma_sp_2 {
    float: none;

    width: 100%;
    min-height: 0;
}

.firma_row_top,
.firma_row_botton {
    display: none;
}

.firma_row_content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;

    clear: both;

    width: 100%;
    min-height: 74px;

    gap: 18px;
}

.firma_column_1,
.firma_column_2 {
    float: none;

    width: 100%;
    min-width: 0;
    min-height: 0;
}

.firma_row_4,
.firma_row_5 {
    clear: both;

    width: 100%;
    min-height: 0;
}

.firma_row_4 + .firma_row_5 {
    margin-top: 5px;
}

.firma_row_content h1,
.firma_row_content h2,
.firma_row_content h3,
.firma_row_content h4,
.firma_row_content p {
    margin-top: 0;
    margin-bottom: 0;
}

.firma_row_content a {
    font-weight: 600;
}


/* ==========================================================
   13. NEWS / EVENTS / MEETINGS
   ========================================================== */

.news_list_run_wrapper,
.event_list_run_wrapper {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);

    clear: both;

    width: 100%;
    max-width: 430px;

    margin: 0 auto 12px;

    gap: 10px;
}

.news_list_run_wrapper {
    min-height: 34px;
}

.event_list_run_wrapper {
    min-height: 70px;
}

.news_list_run_col_1,
.event_list_run_col_1 {
    float: none;

    width: 30px;
    min-height: 30px;
}

.news_list_run_col_2,
.event_list_run_col_2 {
    float: none;

    width: auto;
    min-width: 0;
    min-height: 30px;
}

.main_wrapper_meeting {
    clear: both;
    float: none;

    width: 100%;
    max-width: 330px;
    height: auto;
    min-height: 85px;

    margin: 0 0 24px;
    padding: 14px 16px;
}

.meeting_row_1,
.meeting_row_2 {
    clear: both;

    width: 100%;
    height: auto;
    min-height: 24px;
}

p.event_paragraph {
    min-height: 0;

    margin: 0 0 0.2rem 0.65rem;

    color: var(--run-blue);

    font-size: 0.85rem;
    line-height: 1.45;
}


/* ==========================================================
   14. POPUPS – PERSON / FIRMA
   ========================================================== */

.popup_main_wrapper {
    clear: both;

    width: 100%;
    max-width: 760px;
    height: auto;
    min-height: 400px;

    margin: 0 auto;
}

.popup_left,
.popup_popup_right,
.popup_column_8,
.popup_column_11 {
    display: none;
}

.popup_content {
    float: none;

    width: 100%;
    min-height: 0;
}

.popup_top {
    height: 10px;
}

.popup_con_cont {
    clear: both;

    width: 100%;
    height: auto;
    min-height: 0;
}

.popup_row_1 {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);

    clear: both;

    width: 100%;
    height: auto;
    min-height: 150px;

    gap: 20px;
}

.popup_image {
    float: none;

    width: 150px;
    height: 150px;
}

.popup_name_logo {
    float: none;

    width: 100%;
    height: auto;
    min-height: 150px;
}

.popup_name {
    clear: both;

    width: 100%;
    height: auto;
    min-height: 50px;
}

.popup_row_9 {
    clear: both;

    width: 100%;
    height: auto;
    min-height: 100px;
}

.popup_logo {
    float: left;

    width: 100px;
    min-height: 100px;
}

.popup_column_7 {
    min-height: 100px;

    margin-left: 115px;
    margin-right: 0;
}

.popup_row_6 {
    clear: both;

    height: auto;
    min-height: 230px;
}

.popup_column_9 {
    float: left;

    width: 150px;
    min-height: 230px;
}

.popup_column_10 {
    min-height: 230px;

    margin-left: 165px;
    margin-right: 0;
}

.popup_row_12,
.popup_row_13,
.popup_row_14,
.popup_row_15,
.popup_row_16 {
    width: 100%;
    min-height: 38px;
}

.popup_row_17 {
    width: 100%;
    min-height: 40px;
}

.popup_popup_botton {
    height: 10px;
}

p.popup_paragraph {
    min-height: 0;

    margin: 0.5rem 0 0.5rem 0.65rem;

    color: var(--run-blue);

    font-size: 0.85rem;
}


/* Neuere kleine Popup-Variante */

.new_popup__wrapper {
    clear: both;

    width: 100%;
    max-width: 480px;
    height: auto;
    min-height: 250px;

    margin: 0 auto;
    padding: 16px;
}

.new_popup_img_logo {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);

    clear: both;

    width: 100%;
    min-height: 150px;

    gap: 20px;
}

.new_popup_inage {
    float: none;

    width: 150px;
    height: 150px;
}

.new_popup_logo {
    display: flex;
    align-items: center;

    float: none;

    width: 100%;
    height: 150px;
}

.new_popup_info {
    clear: both;

    width: 100%;
    min-height: 100px;

    margin-top: 16px;
}

.new_popup_left,
.new_popup_right {
    display: none;
}

.new_popup_info_text {
    float: none;

    width: 100%;
    min-height: 71px;
}

.nee_popup_name {
    clear: both;

    width: 100%;
    height: auto;
    min-height: 20px;
}

.new_popup_adresse {
    clear: both;

    width: 100%;
    min-height: 50px;
}


/* ==========================================================
   15. EVENT POPUP
   ========================================================== */

.event_popup_wrapper {
    clear: both;

    width: 100%;
    max-width: 720px;
    height: auto;
    min-height: 380px;

    margin: 0 auto;
    padding: 16px;
}

.event_popup_titel {
    clear: both;

    width: 100%;
    min-height: 66px;
}

.event_popup_row_2 {
    clear: both;

    width: 100%;
    height: auto;
    min-height: 35px;
}

.event_popup_row_3 {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);

    clear: both;

    width: 100%;
    height: auto;
    min-height: 25px;
}

.event_popup_col_1,
.event_popup_col_2 {
    float: none;

    width: 100%;
    height: auto;
    min-height: 25px;
}

.event_popup_col_2 {
    display: flex;
    flex-wrap: wrap;
}

.event_popup_col_2_1,
.event_popup_col_2_2,
.event_popup_col_2_3,
.event_popup_col_2_4 {
    float: none;
    height: auto;
    min-height: 25px;
}

.event_popup_col_2_1 {
    width: 180px;
}

.event_popup_col_2_2 {
    width: 40px;
}

.event_popup_col_2_3 {
    width: 55px;
}

.event_popup_col_2_4 {
    width: 100px;
}

.event_popup_ort,
.event_popup_row_5,
.event_popup_row_7 {
    clear: both;

    width: 100%;
    height: auto;
    min-height: 25px;
}

.event_popup_row_6 {
    clear: both;

    width: 100%;
    min-height: 70px;
}

.event_popup_col_6_2 {
    float: none;

    width: 100%;
    min-height: 25px;
    max-height: none;
}

p.event_popup {
    min-height: 0;

    margin: 0.125rem 0;

    color: #fff;

    font-size: 1rem;
}

h3.heading_popup {
    margin: 0.25rem 0;

    color: #fff;

    font-size: 1.3rem;
}


/* ==========================================================
   16. SIMPLEMODAL
   Ersetzt die relevanten Regeln aus basic.css
   ========================================================== */

.hide,
#basic-modal-content {
    display: none;
}

#simplemodal-overlay {
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
}

#simplemodal-container {
    width: min(760px, calc(100vw - 32px)) !important;
    height: auto !important;
    max-height: calc(100vh - 32px);

    padding: 18px;

    overflow: auto;

    color: var(--run-text);
    background: #fff;
    border: 0;
    border-radius: var(--run-radius-lg);

    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.24);
}

#simplemodal-container .simplemodal-data {
    padding: 8px;
}

#simplemodal-container code {
    display: block;

    margin-bottom: 12px;
    padding: 6px 8px;

    color: #e2e8f0;
    background: #0f172a;
    border-left: 3px solid var(--run-blue);

    font-size: 0.8rem;
}

#simplemodal-container a {
    color: var(--run-blue);
}

#simplemodal-container a.modalCloseImg {
    position: absolute;
    z-index: 3200;
    top: 10px;
    right: 10px;

    display: block;

    width: 36px;
    height: 36px;

    cursor: pointer;

    background:
        #fff
        url("../img/basic/x.png")
        center / 20px 20px
        no-repeat;

    border-radius: 50%;

    box-shadow: var(--run-shadow-sm);
}

#simplemodal-container h3,
#simplemodal-container p {
    color: var(--run-blue);
}

#simplemodal-container p.gray {
    min-height: 0;

    margin: 0.125rem 0;

    color: var(--run-text-muted);

    font-size: 1rem;
}


/* ==========================================================
   17. KONTAKT
   ========================================================== */

.row_2_kontakt {
    grid-template-columns: 1fr;
}

.row_2_kontakt .content_one_col {
    padding: clamp(20px, 4vw, 48px);

    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--run-border);
    border-radius: var(--run-radius-lg);

    box-shadow: var(--run-shadow-sm);
}


/* Falls das alte body-background noch per TypoScript gesetzt wird */

body[background] {
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}


/* ==========================================================
   18. FORMULARE / ALLGEMEINE CONTENT-ELEMENTE
   ========================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    max-width: 100%;

    padding: 11px 13px;

    color: var(--run-text);
    background: #fff;
    border: 1px solid var(--run-border);
    border-radius: var(--run-radius-sm);

    transition:
        border-color var(--run-transition),
        box-shadow var(--run-transition);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;

    border-color: var(--run-blue);
    box-shadow: 0 0 0 3px rgba(28, 77, 154, 0.12);
}

button,
input[type="submit"],
input[type="button"] {
    padding: 10px 18px;

    cursor: pointer;

    color: #fff;
    background: var(--run-blue);
    border: 0;
    border-radius: 999px;

    font-weight: 600;

    transition:
        background-color var(--run-transition),
        transform var(--run-transition),
        box-shadow var(--run-transition);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--run-blue-dark);
    box-shadow: var(--run-shadow-sm);
    transform: translateY(-1px);
}

table {
    width: 100%;

    border-collapse: collapse;
}

th,
td {
    padding: 10px 12px;

    border-bottom: 1px solid var(--run-border);

    text-align: left;
    vertical-align: top;
}


/* ==========================================================
   19. TABLET
   ========================================================== */

@media screen and (max-width: 900px) {

    .main_wrapper {
        width: min(calc(100% - 32px), var(--run-container));
    }

    .menu {
        border-radius: 28px;
    }

    .main_navigation {
        gap: 4px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .menu_button > a {
        padding-right: 12px;
        padding-left: 12px;
    }

    p.paragraph_menu,
    .menu_button p.paragraph_menu {
        font-size: 0.88rem;
    }

    .row_2 {
        gap: 24px;
    }
}


/* ==========================================================
   20. MOBILE
   ========================================================== */

@media screen and (max-width: 720px) {

    body {
        font-size: 16px;
    }

    .main_wrapper {
        width: 100%;
        max-width: none;

        padding: 0 16px 40px;
    }

    .row_4 {
        height: 12px;
    }

    .row_1 {
        min-height: 76px;
    }


    /* ------------------------------------------------------
       Mobile Header / Hamburger
       ------------------------------------------------------ */

    .row_1 {
        min-height: 76px;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;

        height: 58px;
        min-height: 58px;

        padding: 0;

        overflow: visible;

        border-radius: 29px;

        transition:
            border-radius var(--run-transition),
            box-shadow var(--run-transition);
    }

    .logo,
    .logo a,
    .logo img {
        height: 58px;
    }

    .logo {
        min-width: 0;
        min-height: 0;
    }

    .menu_toggle {
        display: block;
        margin-left: auto;
    }

    .main_navigation {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        z-index: 200;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        height: auto;
        max-height: 0;

        gap: 4px;

        margin: 0;
        padding: 0 8px;

        overflow: hidden;

        visibility: hidden;
        opacity: 0;

        background: var(--run-blue);
        border-radius: var(--run-radius);

        box-shadow: var(--run-shadow);

        transform: translateY(-8px);

        transition:
            max-height 260ms ease,
            padding 260ms ease,
            opacity var(--run-transition),
            visibility var(--run-transition),
            transform var(--run-transition);
    }

    .menu.menu_is_open {
        overflow: visible;
    }

    .menu.menu_is_open .main_navigation {
        max-height: 500px;

        padding-top: 8px;
        padding-bottom: 8px;

        visibility: visible;
        opacity: 1;

        transform: translateY(0);
    }

    .menu_button,
    .main_navigation > .column_3,
    .main_navigation > .column_4,
    .main_navigation > .column_5,
    .main_navigation > .column_6,
    .main_navigation > .column_7 {
        flex: 0 0 auto;

        width: 100%;
        height: auto;
        min-height: 0;
    }

    .menu_button > a {
        justify-content: flex-start;

        width: 100%;
        height: 48px;
        min-height: 48px;

        padding: 0 18px;

        border-radius: var(--run-radius-sm);
    }

    p.paragraph_menu,
    .menu_button p.paragraph_menu {
        justify-content: flex-start;

        width: 100%;
        height: 48px;
        min-height: 48px;

        font-size: 0.95rem;
        text-align: left;
    }

    .menu_button > a:hover,
    .menu_button > a:focus-visible {
        transform: none;
    }


    /* ------------------------------------------------------
       Subnavigation
       ------------------------------------------------------ */

    .sub_menu {
        align-items: stretch;
        flex-direction: column;

        gap: 4px;
    }

    .sub_menu_col,
    .sub_menu_col_2,
    .sub_menu_col_3,
    .sub_menu_col_act {
        width: 100%;
        min-width: 0;
    }

    .sub_menu_col a,
    .sub_menu_col_2 a,
    .sub_menu_col_3 a,
    .sub_menu_col_act a {
        width: 100%;
    }


    /* ------------------------------------------------------
       Content
       ------------------------------------------------------ */

    .row_header_space {
        height: 12px;
    }

    .row_2,
    .row_2_kontakt {
        display: block;

        min-height: 0;
    }

    .content_left,
    .content_right,
    .content_one_col {
        width: 100%;
        max-width: none;
        min-height: 0;
    }

    .content_left + .content_right {
        margin-top: 16px;
    }

    .content_left,
    .content_right {
        gap: 12px;
    }

    .main_person,
    .main_firma {
        min-height: 0;
        padding: 12px 14px;
    }

    .row_2_kontakt .content_one_col {
        padding: 22px 18px;
    }


    /* ------------------------------------------------------
       Cards
       ------------------------------------------------------ */

    .main_person,
    .main_firma,
    .news_list_run_wrapper,
    .event_list_run_wrapper,
    .main_wrapper_meeting {
        max-width: none;
    }


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

    #simplemodal-container {
        width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 20px);

        padding: 12px;
    }

    .popup_main_wrapper,
    .event_popup_wrapper,
    .new_popup__wrapper {
        width: 100%;
        max-width: none;
        min-height: 0;

        padding: 10px;
    }

    .popup_row_1,
    .new_popup_img_logo {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .popup_image,
    .new_popup_inage {
        width: 120px;
        height: 120px;
    }

    .popup_name_logo,
    .new_popup_logo {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .popup_logo {
        float: none;

        width: 100%;
        min-height: 0;

        margin-bottom: 12px;
    }

    .popup_column_7,
    .popup_column_10 {
        margin-right: 0;
        margin-left: 0;
    }

    .popup_column_9 {
        float: none;

        width: 100%;
        min-height: 0;
    }

    .popup_row_6 {
        min-height: 0;
    }

    .event_popup_row_3 {
        grid-template-columns: 1fr;

        gap: 4px;
    }

    .event_popup_col_2 {
        display: block;
    }

    .event_popup_col_2_1,
    .event_popup_col_2_2,
    .event_popup_col_2_3,
    .event_popup_col_2_4 {
        width: 100%;
    }
}


/* ==========================================================
   21. KLEINE SMARTPHONES
   ========================================================== */

@media screen and (max-width: 420px) {

    .main_wrapper {
        padding-right: 12px;
        padding-left: 12px;
    }

    .pers_row_content {
        align-items: flex-start;
    }

    .person_image {
        flex-basis: 64px;

        width: 64px;
        height: 64px;
        min-height: 64px;
    }

    .person_image img {
        width: 64px;
        height: 64px;
    }

    .firma_row_content {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}


/* ==========================================================
   22. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ==========================================================
   LEGACY CLEARFIX RESET
   Alte reset.css erzeugt ::before/::after auf diversen Elementen.
   Bei modernen Grid-/Flex-Containern müssen diese entfernt werden.
   ========================================================== */

.row_2::before,
.row_2::after,
.firma_row_content::before,
.firma_row_content::after,
.pers_row_content::before,
.pers_row_content::after,
.main_navigation::before,
.main_navigation::after,
.sub_menu::before,
.sub_menu::after {
    content: none !important;
    display: none !important;
}

/* ==========================================================
   SIMPLEMODAL – Positionierung
   ========================================================== */

#simplemodal-container {
    position: fixed !important;

    top: 50% !important;
    left: 50% !important;

    width: min(760px, calc(100vw - 32px)) !important;
    height: auto !important;
    max-height: calc(100vh - 32px);

    margin: 0 !important;

    transform: translate(-50%, -50%);

    overflow: auto;

    padding: 18px;

    color: var(--run-text);
    background: #fff;

    border: 0;
    border-radius: var(--run-radius-lg);

    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.24);
}

/* ==========================================================
   KONTAKTFORMULAR
   ========================================================== */

.contact_content {
	background: #f0f2fa;
	border-radius: 32px;
	margin-top: 40px;
}

/* ==========================================================
   MITGLIEDER – Spalten ohne Hintergrund
   ========================================================== */

.members_content .content_left,
.members_content .content_right {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* ==========================================================
   MOBILE – MITGLIEDER / FIRMEN SPACING
   ========================================================== */

@media screen and (max-width: 720px) {

    /* Abstand zwischen Header und Subnavigation */
    .sub_menu_wrapper {
        position: relative;
        z-index: 1;

        margin-top: 16px;
        margin-bottom: 0;
    }

    /* Subnavigation soll ihre tatsächliche Höhe einnehmen */
    .sub_menu {
        position: relative;

        width: 100%;
        height: auto;
        min-height: 0;

        margin: 0;
    }

    /* Content beginnt garantiert NACH der Subnavigation */
    .members_content {
        position: relative;
        clear: both;

        padding-top: 100px;
    }

    /* Mitglieder-/Firmenspalten */
    .members_content .content_left,
    .members_content .content_right {
        gap: 8px;

        padding: 0;

        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .members_content .content_left + .content_right {
        margin-top: 8px;
    }

    /* Karten kompakt */
    .members_content .main_person,
    .members_content .main_firma {
        min-height: 0;
        padding: 10px 12px;
    }
}