/*
Theme Name:  GFGF Theme
Description: GFGF Child Theme basierend auf GeneratePress. Orientiert am Originaldesign gfgf.org.
Author:      GFGF e.V.
Template:    generatepress
Version:     1.0.0
Text Domain: gfgf-theme
*/

/* === DESIGN-TOKEN === */
:root {
    --gfgf-blue:        #21368f;
    --gfgf-blue-light:  #9bcdfe;
    --gfgf-blue-lighter:#ddeefe;
    --gfgf-blue-link:   #2e97ff;
    --gfgf-text:        #070707;
    --gfgf-text-light:  #555555;
    --gfgf-bg:          #ffffff;
    --gfgf-bg-page:     #f2f2f2;
    --gfgf-border:      #dcdcdc;
    --gfgf-font-body:   'Open Sans', Arial, 'Noto Sans', sans-serif;
    --gfgf-font-head:   'Montserrat', Arial, sans-serif;
    --gfgf-radius:      2px;
}

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ============================================================
   BASIS
   ============================================================ */
body {
    font-family: var(--gfgf-font-body);
    color: var(--gfgf-text);
    background-color: var(--gfgf-bg-page);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

* { box-sizing: border-box; }

:focus-visible {
    outline: 3px solid var(--gfgf-blue-link);
    outline-offset: 2px;
}

/* ============================================================
   HEADER  (hellblau wie Original)
   ============================================================ */
.site-header {
    background-color: transparent;
    border-bottom: none;
    padding: 0;
}

/* Innerer Container */
.site-header .inside-header {
    display: flex;
    align-items: stretch;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--gfgf-blue-light);
}

/* Logo-Spalte – etwas heller */
.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    background-color: var(--gfgf-blue-light);
    flex: 1;
}

.site-branding .custom-logo-link img,
.site-branding .custom-logo {
    max-width: 100px;
    height: auto;
}

.site-title {
    font-family: var(--gfgf-font-head);
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--gfgf-blue);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--gfgf-bg);
}

.site-description {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gfgf-blue);
    margin: 2px 0 0;
}

/* Tagline-Zeile (zweite Header-Zeile) – volle Breite, hellblau */
.gfgf-header-bar {
    background-color: var(--gfgf-blue-light);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gfgf-blue);
    border-top: 1px solid rgba(33,54,143,0.15);
}

.gfgf-header-bar a {
    color: var(--gfgf-blue);
    text-decoration: none;
    font-weight: 700;
}

.gfgf-header-bar a:hover {
    text-decoration: underline;
}

/* Sprachschalter — Polylang-Flaggen oben rechts im Header */
.gfgf-lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 6px 20px 0;
    justify-content: flex-end;
    background: var(--gfgf-blue-light);
    max-width: 900px;
    margin: 0 auto;
}

.gfgf-lang-switcher ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.gfgf-lang-switcher ul li { margin: 0; }
.gfgf-lang-switcher ul li a,
.gfgf-lang-switcher ul li .no-translation {
    display: inline-block;
}
.gfgf-lang-switcher ul li a img,
.gfgf-lang-switcher ul li img {
    width: 26px;
    height: auto;
    display: block;
    border: 1px solid rgba(0,0,0,0.15);
}
/* Aktive Sprache: leicht transparent */
.gfgf-lang-switcher ul li.current-lang a img { opacity: 0.5; }

/* Fallback wenn keine Flags: Text-Links */
.gfgf-lang-switcher ul li a:not(:has(img)) {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gfgf-blue);
    text-decoration: none;
    padding: 2px 5px;
    border: 1px solid var(--gfgf-blue);
}

/* Alten gfgf-lang-switch ausblenden */
.gfgf-lang-switch { display: none; }

/* Polylang-Sprachschalter in der Nav */
.pll-parent-menu-item { display: none; } /* in Sidebar-Nav verstecken */

/* ============================================================
   HAUPTNAVIGATION – in der Header-Leiste ausblenden,
   Navigation läuft über die linke Sidebar
   ============================================================ */
.main-navigation {
    display: none !important;
}

/* ============================================================
   LAYOUT – Seite mit linker Sidebar
   ============================================================ */
#page {
    background: transparent;
}

.site-content {
    margin-top: 0;
    padding-top: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: var(--gfgf-bg);
}

.grid-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

/* GeneratePress content-area + sidebar */
.content-area {
    background: transparent;
    padding: 20px 24px;
}

/* Sidebar links */
.widget-area.sidebar.is-left-sidebar,
#left-sidebar,
.left-sidebar,
.inside-left-sidebar {
    margin: 0;
    padding: 0 !important;
}

#left-sidebar .gfgf-sidebar-nav,
#left-sidebar .gfgf-sidebar-nav ul,
#left-sidebar .gfgf-sidebar-nav .sidebar-menu {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.gfgf-sidebar-nav {
    background: transparent;
    padding: 0;
    border-right: 1px solid var(--gfgf-border);
}

/* ============================================================
   LINKE SIDEBAR-NAVIGATION (wie Original: uppercase, schwarz)
   ============================================================ */
.gfgf-sidebar-nav {
    padding: 0;
    margin: 0;
}

.gfgf-sidebar-nav-title {
    display: none; /* wie Original, kein Widget-Titel */
}

/* Nav-Menü im Sidebar-Widget */
.gfgf-sidebar-nav .menu,
.gfgf-sidebar-nav ul.nav-menu,
.gfgf-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gfgf-sidebar-nav ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--gfgf-border);
    list-style: none;
}

.gfgf-sidebar-nav ul li a,
.gfgf-sidebar-nav ul li > span {
    display: block;
    padding: 8px 16px 8px 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gfgf-text);
    text-decoration: none;
    line-height: 1.4;
}

.gfgf-sidebar-nav ul li a:hover,
.gfgf-sidebar-nav ul li:hover {
    background-color: var(--gfgf-blue-lighter);
}

.gfgf-sidebar-nav ul li.current-menu-item > a,
.gfgf-sidebar-nav ul li.current_page_item > a,
.gfgf-sidebar-nav ul li.current-menu-parent > a {
    background-color: var(--gfgf-blue-light);
    color: var(--gfgf-blue);
}

/* Sub-Menü etwas einrücken */
.gfgf-sidebar-nav ul ul {
    border-top: 1px solid var(--gfgf-border);
}

.gfgf-sidebar-nav ul ul li a {
    padding-left: 26px;
    font-size: 12px;
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0;
}

/* ============================================================
   HERO-BILD (volle Breite unter dem Header – optional)
   ============================================================ */
.gfgf-hero {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    line-height: 0;
}

.gfgf-hero img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.gfgf-subpage-slider {
    position: relative;
    max-width: 900px;
    height: 386px;
    margin: 0 auto;
    overflow: hidden;
    background: #cfe2f3;
}

.gfgf-subpage-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: gfgf-subpage-fade 18s infinite;
}

.gfgf-subpage-slide:nth-child(1) { animation-delay: 0s; }
.gfgf-subpage-slide:nth-child(2) { animation-delay: 6s; }
.gfgf-subpage-slide:nth-child(3) { animation-delay: 12s; }
.gfgf-subpage-slide.is-active { opacity: 1; }

.gfgf-subpage-slide img {
    width: 100%;
    height: 386px;
    object-fit: cover;
    display: block;
}

@keyframes gfgf-subpage-fade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    30% { opacity: 1; }
    38% { opacity: 0; }
    100% { opacity: 0; }
}

/* ============================================================
   ÜBERSCHRIFTEN
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--gfgf-font-head);
    color: var(--gfgf-text);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
}

h1 { font-size: 1.35rem; font-weight: 900; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1.05rem; }

/* Page-Titel */
.entry-title,
.page-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--gfgf-text);
    margin-bottom: 1rem;
}

/* ============================================================
   LINKS
   ============================================================ */
a {
    color: var(--gfgf-blue-link);
    text-decoration: none;
}

a:hover {
    color: var(--gfgf-blue-link);
    text-decoration: none;
}

/* Visited wie Original */
a:visited { color: var(--gfgf-blue-link); }

/* ============================================================
   STARTSEITE: WILLKOMMEN-TEXT (nicht mehr verwendet, ausgeblendet)
   ============================================================ */
.gfgf-welcome { display: none; }

/* ============================================================
   MUSEEN UND AUSSTELLUNGEN – Live-nahe Sonderdarstellung
   ============================================================ */
.gfgf-page-museums .entry-header {
    display: none;
}

.gfgf-page-museums .content-area {
    padding-top: 0;
}

.gfgf-page-museums .inside-article {
    padding-top: 18px;
}

.gfgf-page-museums .entry-content > .container {
    padding: 0;
}

.gfgf-page-museums .entry-content p {
    margin-bottom: 1rem;
}

.gfgf-page-museums .entry-content p:only-child {
    margin-bottom: 0;
}

.gfgf-page-museums #Search {
    display: block;
    width: 100%;
    max-width: 360px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #ced4da;
    background: #fff;
}

.gfgf-page-museums .museums-table {
    padding: 0;
}

.gfgf-page-museums .museums-table .row {
    display: flex;
    flex-wrap: wrap;
}

.gfgf-page-museums .museums-table .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.gfgf-page-museums .museums-table .table-row {
    margin-bottom: 15px;
}

.gfgf-page-museums .museums-table ul,
.gfgf-page-museums .museums-table li {
    padding-left: 0;
    list-style: none;
}

.gfgf-page-museums .museums-table .museum-headline {
    background-color: rgb(155, 205, 254);
    padding: 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    text-align: center;
    color: #000;
    margin-bottom: 5px;
}

.gfgf-page-museums .museums-table .museum-side,
.gfgf-page-museums .museums-table .museum-info,
.gfgf-page-museums .museums-table .museum-images {
    background-color: rgb(221, 238, 254);
    margin-bottom: 5px;
}

.gfgf-page-museums .museums-table .museum-text {
    padding: 15px;
    font-size: 13px;
    line-height: 1.5;
}

.gfgf-page-museums .museums-table .museum-text-h {
    padding-top: 15px;
    padding-bottom: 5px;
    font-weight: 700;
}

.gfgf-page-museums .museums-table .museum-text-t {
    padding-top: 5px;
    padding-bottom: 15px;
}

.gfgf-page-museums .museums-table .museum-images .file {
    width: 100%;
    display: flex;
}

.gfgf-page-museums .museums-table .museum-images .file a {
    display: block;
    width: 100%;
    height: 100%;
}

.gfgf-page-museums .museums-table .museum-images .file img {
    width: 100%;
    height: auto;
    display: block;
}

.gfgf-page-museums .museums-table .museum-images li {
    margin: 15px 15px 15px 0;
    width: 300px;
    height: 150px;
}

.gfgf-page-museums .museums-table hr {
    margin-top: 30px;
}

@media (min-width: 768px) {
    .gfgf-page-museums .museums-table .museum-headline {
        padding: 15px 5px 5px 30px;
    }

    .gfgf-page-museums .museums-table .col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .gfgf-page-museums .museums-table .col-md-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .gfgf-page-museums .museums-table .museum-text-h,
    .gfgf-page-museums .museums-table .museum-text-t {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .gfgf-page-museums .museums-table .text-md-right {
        text-align: right;
    }
}

/* ============================================================
   STARTSEITE: ALTE KACHELN (nicht mehr verwendet)
   ============================================================ */
.gfgf-tile-grid,
.gfgf-tile { display: none; }

/* ============================================================
   STARTSEITE: NEUES KACHEL-DESIGN (wie Original gfgf.org)
   ============================================================ */

/* Body auf Startseite: Hintergrundbild, kein grauer Kasten */
body.home {
    background-color: transparent;
}

/* GP-Content auf Home: keine Beschränkungen, transparent */
body.home #page,
body.home .site,
body.home .site-content,
body.home #content {
    padding: 0;
    background: transparent !important;
    box-shadow: none;
}
body.home .content-area,
body.home #primary,
body.home .site-main,
body.home .inside-article {
    max-width: 100%;
    width: 100%;
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    box-shadow: none;
    border: 0;
    float: none;
}
body.home .entry-header,
body.home .page-header { display: none; }

/* GP Header auf Home: nur innerer Bereich begrenzen */
body.home .site-header {
    background: transparent;
    box-shadow: none;
    border-bottom: none;
}
body.home .inside-header {
    max-width: 900px;
    margin: 0 auto;
    background: var(--gfgf-blue-light);
}
body.home .gfgf-header-bar {
    max-width: 900px;
    margin: 0 auto;
}

/* Home-Wrapper: volle Breite, bg-Bild via PHP inline-style gesetzt */
.gfgf-home-wrapper {
    width: 100%;
    min-height: 100vh;
}

/* Zentraler Container */
.gfgf-home-container {
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
}

:root {
    --gfgf-home-left-col: 212px;
}

/* --- NEWS-BAR --- */
.gfgf-news-bar {
    display: flex;
    align-items: stretch;
    background: #d8ecfb;
    min-height: 68px;
}
.gfgf-news-icon-col {
    width: var(--gfgf-home-left-col);
    min-width: var(--gfgf-home-left-col);
    background: #8fc7f4;
    flex-shrink: 0;
}
.gfgf-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 20px;
}
.gfgf-news-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: #2f2f2f;
    font-family: 'Montserrat', Arial Black, sans-serif;
    line-height: 1.2;
    margin: 0 0 6px;
}
.gfgf-news-btn {
    display: inline-block;
    background: #8fc7f4;
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    text-decoration: none !important;
    width: fit-content;
    text-transform: lowercase;
    letter-spacing: 0.01em;
}
.gfgf-news-btn:hover { background: #5da8e0; }

/* --- HERO-BILD --- */
.gfgf-hero-img {
    width: 100%;
    height: 305px;
    overflow: hidden;
    line-height: 0;
    display: block;
}
.gfgf-hero-img img {
    width: 100%;
    height: 305px;
    object-fit: cover;
    object-position: center 36%;
    display: block;
}

/* --- KACHELN --- */
.gfgf-home-tiles {
    display: flex;
    flex-direction: column;
}
.gfgf-home-tile {
    display: flex;
    align-items: stretch;
    min-height: 96px;
    text-decoration: none !important;
    border-bottom: 2px solid #ffffff;
    transition: filter 0.1s;
}
.gfgf-home-tile:last-child { border-bottom: none; }
.gfgf-home-tile:hover { filter: brightness(0.93); }

.gfgf-home-tile-icon {
    width: var(--gfgf-home-left-col);
    min-width: var(--gfgf-home-left-col);
    background: #8fc7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gfgf-home-icon-svg {
    width: 54px;
    height: 54px;
    fill: #ffffff;
    display: block;
}
.gfgf-home-icon-rim {
    display: inline-block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    letter-spacing: 0.04em;
}
.gfgf-home-tile-content {
    flex: 1;
    background: #d8ecfb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 26px;
}
.gfgf-home-tile-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: #2f2f2f;
    font-family: 'Montserrat', Arial Black, sans-serif;
    line-height: 1.18;
    margin: 0;
}
.gfgf-home-tile-subtitle {
    font-size: 0.82rem;
    color: #2f2f2f;
    margin-top: 6px;
    line-height: 1.4;
}

/* --- STARTSEITEN-FOOTER --- */
.gfgf-home-footer {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 26px;
    background: #222222;
    color: #f0f0f0;
    padding: 20px 24px;
}
.gfgf-home-footer-column {
    font-size: 0.75rem;
    line-height: 1.5;
}
.gfgf-home-footer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gfgf-home-footer-links a,
.gfgf-home-footer-contact a {
    color: #f0f0f0 !important;
    text-decoration: none !important;
    font-weight: 700;
}
.gfgf-home-footer-links a:hover,
.gfgf-home-footer-contact a:hover {
    text-decoration: underline !important;
}
.gfgf-home-footer-meta p,
.gfgf-home-footer-contact p {
    margin: 0 0 8px;
}
.gfgf-home-footer-heading {
    font-weight: 700;
    letter-spacing: 0.03em;
}
body.home .site-footer {
    display: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
    body.home .inside-header,
    body.home .gfgf-header-bar,
    .gfgf-home-container { max-width: 100%; }
    .gfgf-home-footer {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .gfgf-home-tile-icon { width: 100px; min-width: 100px; }
    .gfgf-home-tile-icon svg { width: 36px; height: 36px; }
    .gfgf-home-tile-title { font-size: 1.15rem; }
    .gfgf-news-icon-col { width: 70px; min-width: 70px; }
    .gfgf-news-title { font-size: 1rem; }
    .gfgf-home-icon-rim { font-size: 1.4rem; }
    .gfgf-hero-img, .gfgf-hero-img img { height: 150px; }
}


/* ============================================================
   VERANSTALTUNGS-DATUM-BOX (wie Original: hellblau)
   ============================================================ */
.gfgf-event-date {
    display: inline-block;
    background-color: var(--gfgf-blue-light);
    color: var(--gfgf-text);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 6px 14px;
    margin-bottom: 8px;
    min-width: 120px;
}

/* ============================================================
   FORMULARE
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
    border: 1px solid var(--gfgf-border);
    border-bottom-color: #cfcfcf;
    padding: 10px 16px;
    font-family: var(--gfgf-font-body);
    font-size: 0.93rem;
    color: inherit;
    background: #fff;
    width: 75%;
    border-radius: 0;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gfgf-blue-link);
    box-shadow: 0 0 0 2px rgba(46,151,255,0.2);
}

label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.93rem;
}

/* Submit-Button wie Original (hellblau) */
input[type="submit"],
button[type="submit"],
.wpcf7-submit {
    background-color: var(--gfgf-blue-light);
    border: none;
    padding: 6px 16px;
    font-family: var(--gfgf-font-body);
    font-size: 1rem;
    cursor: pointer;
    color: var(--gfgf-blue);
    font-weight: 600;
    border-radius: 0;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: var(--gfgf-blue);
    color: #fff;
}

/* ============================================================
   TABELLEN (Serviceunterlagen, Kataloge etc.)
   ============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 1rem 0;
}

th {
    background-color: var(--gfgf-blue-light);
    color: var(--gfgf-text);
    font-weight: 700;
    padding: 7px 10px;
    text-align: left;
    border: 1px solid var(--gfgf-border);
}

td {
    padding: 6px 10px;
    border: 1px solid var(--gfgf-border);
    vertical-align: top;
}

tr:nth-child(even) td {
    background-color: #f7f7f7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: #343434;
    border-top: none;
    padding: 0;
    font-size: 0.82rem;
    color: #ffffff;
}

.site-footer .inside-footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    display: block;
}

.site-footer a {
    color: var(--gfgf-blue-link);
    text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.gfgf-site-footer {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 260px;
    gap: 40px;
    align-items: flex-start;
    padding: 28px 24px;
    background: transparent;
    color: #ffffff;
    border-top: 0;
    box-sizing: border-box;
}

.gfgf-site-footer-column {
    min-width: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #ffffff;
}

.gfgf-site-footer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gfgf-site-footer-links a,
.gfgf-site-footer-contact a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
}

.gfgf-site-footer-links a:hover,
.gfgf-site-footer-contact a:hover {
    text-decoration: underline !important;
}

.gfgf-site-footer-meta {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.gfgf-site-footer-meta p,
.gfgf-site-footer-contact p {
    margin: 0 0 10px;
}

.gfgf-site-footer-heading {
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #ffffff;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer ul li {
    padding: 2px 0;
    font-weight: 700;
    font-size: 12px;
}

/* ============================================================
   SKIP-LINK (Barrierefreiheit)
   ============================================================ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    background: var(--gfgf-blue);
    color: #fff;
    padding: 8px 16px;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus { left: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .main-navigation {
        display: block !important; /* Mobile-Menü wieder zeigen */
        background: var(--gfgf-blue-lighter);
    }

    .main-navigation ul li a {
        color: var(--gfgf-text);
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        padding: 10px 16px;
        border-bottom: 1px solid var(--gfgf-border);
    }

    .main-navigation ul li.current-menu-item > a {
        background-color: var(--gfgf-blue-light);
    }

    .site-title { font-size: 1rem; }

    .gfgf-sidebar-nav { display: none; } /* Sidebar auf Mobile aus */

    .content-area { padding: 14px; }

    .gfgf-hero { max-height: 120px; }
    .gfgf-hero img { height: 120px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .site-header, .main-navigation, .site-footer, .gfgf-sidebar-nav { display: none; }
    body { background: #fff; }
}


/* ============================================================
   FOOTER WIDGETS (3-spaltig wie Original)
   ============================================================ */
.footer-widgets {
    background-color: transparent;
    border-top: none;
}

.footer-widgets-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 24px;
    padding: 20px 20px;
    background-color: var(--gfgf-bg-page);
    border-top: 1px solid var(--gfgf-border);
}

.footer-widgets .widget {
    padding: 0 !important;
    background: transparent !important;
}

.footer-widgets .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widgets .widget ul li {
    padding: 2px 0;
    font-size: 12px;
    font-weight: 700;
    border: none;
}

.footer-widgets .widget ul li a {
    color: var(--gfgf-blue-link);
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
}

.footer-widgets .widget p,
.footer-widgets .widget {
    font-size: 12px;
    color: var(--gfgf-text-light);
    line-height: 1.5;
}

/* ============================================================
   LOGO IM HEADER
   ============================================================ */
.site-branding .custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.site-branding .custom-logo {
    max-width: 100px;
    width: auto;
    height: auto;
}

/* ============================================================
   SITE-INFO (unterer Footer-Balken)
   ============================================================ */
.site-info {
    background-color: var(--gfgf-bg-page);
    border-top: 1px solid var(--gfgf-border);
}

.inside-site-info {
    font-size: 11px;
    color: var(--gfgf-text-light);
    padding: 10px 20px;
}

.inside-site-info a {
    color: var(--gfgf-text-light);
}

/* ============================================================
   GFGF-SIDEBAR-NAV KORRIGIERT
   ============================================================ */
.gfgf-sidebar-nav {
    margin: 0;
    padding: 0;
}

.gfgf-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gfgf-sidebar-nav ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--gfgf-border);
    list-style: none;
    position: relative;
}

.gfgf-sidebar-nav ul li a {
    display: block;
    padding: 8px 12px 8px 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gfgf-text);
    text-decoration: none;
    line-height: 1.4;
}

.gfgf-sidebar-nav ul li:hover > a,
.gfgf-sidebar-nav ul li a:hover {
    background-color: var(--gfgf-blue-lighter);
    color: var(--gfgf-text);
}

.gfgf-sidebar-nav ul li.current-menu-item > a,
.gfgf-sidebar-nav ul li.current_page_item > a {
    background-color: var(--gfgf-blue-lighter);
    color: var(--gfgf-text);
}

/* Sub-Menü */
.gfgf-sidebar-nav ul ul {
    display: none;
    border-top: 1px solid var(--gfgf-border);
    background-color: #f8f8f8;
}

.gfgf-sidebar-nav li.current-menu-item > ul,
.gfgf-sidebar-nav li.current_page_item > ul,
.gfgf-sidebar-nav li.current-menu-parent > ul,
.gfgf-sidebar-nav li.current_page_parent > ul,
.gfgf-sidebar-nav li.current-page-ancestor > ul {
    display: block;
}

.gfgf-sidebar-nav ul ul li a {
    padding-left: 26px;
    font-size: 12px;
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0;
}

/* ============================================================
   RESPONSIVE FOOTER
   ============================================================ */
@media (max-width: 768px) {
    .gfgf-site-footer {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 20px;
    }

    .footer-widgets-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================================
   MOBILE NAVIGATION (Hamburger + Dropdown-Menü)
   ============================================================ */
.gfgf-mobile-nav {
    display: none;
    background-color: var(--gfgf-blue-light);
    border-top: 1px solid var(--gfgf-border);
}

.gfgf-mobile-toggle {
    display: none;
    background: var(--gfgf-blue);
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: var(--gfgf-font-body);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.gfgf-mobile-toggle:hover { background: #1a2d7a; }

@media (max-width: 991px) {
    .gfgf-mobile-toggle { display: block; }

    .gfgf-sidebar-nav { display: none !important; }

    .gfgf-mobile-nav.open { display: block; }

    .gfgf-mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .gfgf-mobile-nav ul li {
        border-bottom: 1px solid var(--gfgf-border);
    }

    .gfgf-mobile-nav ul li a {
        display: block;
        padding: 10px 18px;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--gfgf-text);
        text-decoration: none;
    }

    .gfgf-mobile-nav ul li a:hover,
    .gfgf-mobile-nav ul li.current-menu-item > a {
        background-color: var(--gfgf-blue-lighter);
    }

    .gfgf-mobile-nav ul ul li a {
        padding-left: 32px;
        text-transform: none;
        font-weight: 600;
        font-size: 12px;
    }
}

/* ============================================================
   CPT ARCHIV-HEADER
   ============================================================ */
.gfgf-archive-header {
    border-bottom: 3px solid var(--gfgf-blue-light);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
}

.gfgf-archive-title {
    font-family: var(--gfgf-font-head);
    font-size: 1.5rem;
    color: var(--gfgf-blue);
    margin: 0 0 0.25rem 0;
}

.gfgf-archive-subtitle {
    color: var(--gfgf-text-light);
    font-size: 0.93rem;
    margin: 0;
}

/* ============================================================
   EVENT-LISTE
   ============================================================ */
.gfgf-event-list { margin: 0; }

.gfgf-event-item {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--gfgf-border);
    padding: 12px 0;
    align-items: flex-start;
}

.gfgf-event-date-box {
    background-color: var(--gfgf-blue-light);
    color: var(--gfgf-text);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 12px;
    min-width: 100px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.gfgf-event-title {
    font-size: 1rem;
    margin: 0 0 4px 0;
}

.gfgf-event-title a { color: var(--gfgf-text); }
.gfgf-event-title a:hover { color: var(--gfgf-blue-link); }

.gfgf-event-meta,
.gfgf-event-type {
    font-size: 0.87rem;
    color: var(--gfgf-text-light);
    margin: 2px 0;
}

.gfgf-events-page {
    margin: 0;
}

.gfgf-events-intro {
    margin-bottom: 1.5rem;
}

.gfgf-events-intro h1 {
    margin-bottom: 0.75rem;
}

.gfgf-events-intro p {
    margin-bottom: 1rem;
}

.gfgf-events-intro a,
.gfgf-legacy-event-content a {
    color: var(--gfgf-blue-link);
}

.gfgf-legacy-event {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gfgf-border);
}

.gfgf-legacy-event-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.gfgf-legacy-event-date {
    flex: 0 0 190px;
    max-width: 190px;
}

.gfgf-legacy-event-date p {
    margin: 0 0 0.25rem;
}

.gfgf-legacy-event-title-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.gfgf-legacy-event-title {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.25;
}

.gfgf-legacy-event-content {
    margin-left: calc(190px + 1.25rem);
}

.gfgf-legacy-event-content > :first-child {
    margin-top: 0;
}

.gfgf-legacy-event-content > :last-child {
    margin-bottom: 0;
}

.gfgf-legacy-event-content img {
    max-width: 100%;
    height: auto;
}

.gfgf-legacy-event-content figure,
.gfgf-legacy-event-content p img {
    margin-bottom: 1rem;
}

.gfgf-legacy-event-image {
    margin: 0 0 1rem;
}

.gfgf-legacy-event-image a,
.gfgf-legacy-event-image img {
    display: block;
}

@media (max-width: 768px) {
    .gfgf-legacy-event-header {
        display: block;
    }

    .gfgf-legacy-event-date {
        max-width: none;
        margin-bottom: 0.75rem;
    }

    .gfgf-legacy-event-content {
        margin-left: 0;
    }

    .gfgf-legacy-event-title {
        font-size: 1.35rem;
    }

    .gfgf-online-page .gfgf-online-row {
        display: block;
    }

    .gfgf-online-page .col-cover {
        max-width: 220px;
        margin-bottom: 1rem;
    }
}

/* ============================================================
   CARD GRID (Museen, Bücher)
   ============================================================ */
.gfgf-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.gfgf-card {
    border: 1px solid var(--gfgf-border);
    background: #fff;
}

.gfgf-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.gfgf-card-body {
    padding: 12px 14px;
}

.gfgf-card-title {
    font-size: 0.95rem;
    margin: 0 0 6px 0;
    font-family: var(--gfgf-font-head);
}

.gfgf-card-title a { color: var(--gfgf-text); }
.gfgf-card-title a:hover { color: var(--gfgf-blue-link); }

.gfgf-card-meta {
    font-size: 0.85rem;
    color: var(--gfgf-text-light);
    margin: 2px 0;
}

.gfgf-card-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gfgf-blue-link);
}

/* ============================================================
   LINK-LISTE
   ============================================================ */
.gfgf-link-list { margin: 0; }

.gfgf-link-item {
    border-bottom: 1px solid var(--gfgf-border);
    padding: 10px 0;
}

.gfgf-link-title {
    font-size: 1rem;
    margin: 0 0 4px 0;
}

.gfgf-link-cat {
    display: inline-block;
    background: var(--gfgf-blue-lighter);
    color: var(--gfgf-blue);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 8px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* ============================================================
   SUCHE IN ARCHIV-SEITEN
   ============================================================ */
.gfgf-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.gfgf-search-form input[type="search"] {
    flex: 1;
    min-width: 200px;
    width: auto;
    padding: 8px 14px;
    border: 1px solid var(--gfgf-border);
    font-size: 0.93rem;
}

.gfgf-search-form button {
    background: var(--gfgf-blue-light);
    border: none;
    padding: 8px 18px;
    font-weight: 700;
    cursor: pointer;
    color: var(--gfgf-blue);
}

.gfgf-search-form button:hover { background: var(--gfgf-blue); color: #fff; }

/* ============================================================
   EINZELANSICHT: DETAIL-TABELLE
   ============================================================ */
.gfgf-detail-table {
    margin: 1rem 0 1.5rem;
    width: auto;
    min-width: 300px;
}

.gfgf-detail-table th {
    background-color: var(--gfgf-bg-page);
    color: var(--gfgf-text-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 6px 14px 6px 0;
    border: none;
    vertical-align: top;
    width: 160px;
}

.gfgf-detail-table td {
    border: none;
    padding: 6px 0;
    vertical-align: top;
    font-size: 0.95rem;
}

/* ============================================================
   EINZELANSICHT: BUCH-LAYOUT (Cover + Info nebeneinander)
   ============================================================ */
.gfgf-buch-layout {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.gfgf-buch-cover img {
    max-width: 160px;
    height: auto;
    border: 1px solid var(--gfgf-border);
}

/* ============================================================
   DOWNLOAD-BOX
   ============================================================ */
.gfgf-download-box {
    background-color: var(--gfgf-blue-lighter);
    border-left: 4px solid var(--gfgf-blue-light);
    padding: 12px 16px;
    margin: 1rem 0;
    font-size: 0.92rem;
}

.gfgf-download-notice {
    color: var(--gfgf-text-light);
    font-style: italic;
    font-size: 0.9rem;
}

/* ============================================================
   BADGES / BUTTONS
   ============================================================ */
.gfgf-badge {
    display: inline-block;
    background: var(--gfgf-blue-lighter);
    color: var(--gfgf-blue);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gfgf-btn {
    display: inline-block;
    background: var(--gfgf-blue-light);
    color: var(--gfgf-blue);
    font-weight: 700;
    font-size: 0.87rem;
    padding: 6px 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-top: 6px;
}

.gfgf-btn:hover { background: var(--gfgf-blue); color: #fff; }

.gfgf-btn-primary {
    background: var(--gfgf-blue);
    color: #fff;
    font-size: 0.95rem;
    padding: 10px 20px;
}

.gfgf-btn-primary:hover { background: #1a2d7a; }

/* ============================================================
   PAGINATION
   ============================================================ */
.gfgf-pagination {
    margin: 2rem 0;
}

.gfgf-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid var(--gfgf-border);
    color: var(--gfgf-blue-link);
    font-size: 0.9rem;
}

.gfgf-pagination .page-numbers.current {
    background: var(--gfgf-blue-light);
    color: var(--gfgf-text);
    border-color: var(--gfgf-blue-light);
}

.gfgf-pagination .page-numbers:hover {
    background: var(--gfgf-blue-lighter);
}

.gfgf-no-posts {
    color: var(--gfgf-text-light);
    font-style: italic;
}

/* ============================================================
   FEATURED IMAGE (Einzelansicht)
   ============================================================ */
.gfgf-featured-img {
    margin-bottom: 1.25rem;
}

.gfgf-featured-img img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--gfgf-border);
}

/* ============================================================
   BESTELLINFO BOX
   ============================================================ */
.gfgf-bestellung {
    background: var(--gfgf-bg-page);
    border: 1px solid var(--gfgf-border);
    padding: 12px 16px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.gfgf-bestellung h3 {
    font-size: 0.95rem;
    margin: 0 0 8px 0;
    color: var(--gfgf-blue);
}

/* ============================================================
   BUCH PREIS
   ============================================================ */
.gfgf-book-price {
    font-size: 1rem;
    color: var(--gfgf-blue);
    margin: 6px 0;
}

/* ============================================================
   TABLE-LISTE (Radiorama, Kataloge, ON.LINE)
   ============================================================ */
.gfgf-table-list { overflow-x: auto; }

.gfgf-radiorama-page h1 {
    margin-bottom: 1rem;
}

.gfgf-radiorama-intro {
    margin-bottom: 1.5rem;
}

.gfgf-radiorama-intro p,
.gfgf-radiorama-login-note {
    margin-bottom: 1rem;
}

.gfgf-radiorama-intro a,
.gfgf-radiorama-member-list a {
    color: var(--gfgf-blue-link);
}

.gfgf-radiorama-member-list h2 {
    margin: 1.75rem 0 0.75rem;
}

.gfgf-rim-logo {
    margin-bottom: 1rem;
}

.gfgf-rim-logo img {
    display: block;
    max-width: 180px;
    height: auto;
}

.gfgf-rim-intro {
    margin-bottom: 1.5rem;
}

.gfgf-rim-intro p {
    margin-bottom: 1rem;
}

.gfgf-rim-intro a,
.gfgf-rim-card-link:hover h3 {
    color: var(--gfgf-blue-link);
}

.gfgf-rim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.gfgf-rim-card {
    border: 1px solid var(--gfgf-border);
    background: #fff;
}

.gfgf-rim-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    padding: 0.9rem;
}

.gfgf-rim-card-image {
    margin-bottom: 0.9rem;
}

.gfgf-rim-card-image img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gfgf-rim-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.1rem;
}

.gfgf-rim-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.gfgf-rim-subpage h1 {
    margin-bottom: 1.25rem;
}

.gfgf-rim-breadcrumb {
    margin: 0 0 0.75rem;
    color: #505050;
    font-size: 0.95rem;
}

.gfgf-rim-breadcrumb a {
    color: #505050;
    text-decoration: none;
}

.gfgf-rim-breadcrumb span {
    margin: 0 0.2rem;
}

.gfgf-rim-device-list {
    display: grid;
    gap: 1.5rem;
}

.gfgf-rim-device-card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 1.25rem;
    align-items: start;
}

.gfgf-rim-device-image img {
    display: block;
    width: 100%;
    height: auto;
}

.gfgf-rim-device-content h2 {
    margin: 0 0 0.75rem;
    color: #1b4576;
    font-size: 1.35rem;
}

.gfgf-rim-device-description p {
    margin: 0 0 0.75rem;
    line-height: 1.55;
}

.gfgf-rim-device-cta {
    margin-top: 0.75rem;
}

.gfgf-rim-device-cta a {
    color: #7a0e0e;
    font-weight: 600;
    text-decoration: none;
}

.gfgf-legacy-static-page .mod_article {
    margin-bottom: 2rem;
}

.gfgf-legacy-static-page .container {
    max-width: none;
}

.gfgf-impressum-page .ce_text p {
    margin-bottom: 0.85rem;
    line-height: 1.6;
}

.gfgf-impressum-page h2,
.gfgf-impressum-page h4 {
    color: #1b4576;
}

.gfgf-impressum-page .immit-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) 56px;
    gap: 0.75rem 1rem;
    align-items: start;
}

.gfgf-impressum-page .immit-row > div {
    width: auto;
    max-width: none;
}

.gfgf-impressum-page .immit-right img {
    width: 34px;
    height: auto;
}

.gfgf-impressum-page .ce_image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.gfgf-members-page .ce_text p {
    line-height: 1.6;
}

.gfgf-member-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.gfgf-member-column h3 {
    margin-bottom: 0.5rem;
    color: #1b4576;
}

.gfgf-member-form p {
    margin-bottom: 0.9rem;
}

.gfgf-member-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.gfgf-member-form input[type="text"],
.gfgf-member-form input[type="email"],
.gfgf-member-form input[type="password"] {
    width: 100%;
}

.gfgf-member-checkbox label {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    font-weight: 400;
}

.gfgf-member-notice {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border-left: 4px solid #1b4576;
    background: #f3f6f9;
}

.gfgf-member-notice-success {
    border-left-color: #3b7f2c;
}

.gfgf-member-notice-error {
    border-left-color: #9a1b1b;
}

.gfgf-membership-page .mod_article.sublinks {
    margin-bottom: 1.5rem;
}

.gfgf-membership-page .ce_text.weiterf p {
    margin-bottom: 0.65rem;
    font-weight: 600;
}

.gfgf-membership-page .ce_hyperlink {
    margin-bottom: 0.4rem;
}

.gfgf-membership-page .hyperlink_txt {
    color: #1b4576;
    text-decoration: none;
}

.gfgf-membership-page .hyperlink_txt:hover {
    text-decoration: underline;
}

.gfgf-membership-page .ce_text p {
    line-height: 1.65;
}

.gfgf-membership-page h2,
.gfgf-membership-page h3 {
    color: #1b4576;
}

.gfgf-links-page .form-control {
    display: block;
    width: 100%;
    max-width: 360px;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    background: #fff;
}

.gfgf-links-page .interlink-table {
    padding: 0;
}

.gfgf-links-page .interlink-table .row,
.gfgf-links-page .interlink-headline {
    display: flex;
    flex-wrap: wrap;
}

.gfgf-links-page .interlink-table .table-row {
    margin-bottom: 15px;
}

.gfgf-links-page .interlink-table .col-cover {
    flex: 0 0 25%;
    max-width: 25%;
}

.gfgf-links-page .interlink-table .col-data {
    flex: 0 0 75%;
    max-width: 75%;
}

.gfgf-links-page .interlink-table .col-10 {
    flex: 0 0 83.333%;
    max-width: 83.333%;
}

.gfgf-links-page .interlink-table .col-2 {
    flex: 0 0 16.666%;
    max-width: 16.666%;
}

.gfgf-links-page .interlink-table .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.gfgf-links-page .interlink-table ul,
.gfgf-links-page .interlink-table li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gfgf-links-page .cover-link {
    display: block;
    padding-right: 15px;
}

.gfgf-links-page .cover-link img,
.gfgf-links-page .interlink-headline img {
    display: block;
    max-width: 100%;
    height: auto;
}

.gfgf-links-page .interlink-headline {
    align-items: center;
    margin-bottom: 5px;
    text-decoration: none;
}

.gfgf-links-page .interlink-link {
    background-color: rgb(155, 205, 254);
    padding: 5px 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    color: #000;
}

.gfgf-links-page .interlink-content {
    background-color: rgb(221, 238, 254);
    padding: 12px 15px;
    font-size: 13px;
    line-height: 1.5;
}

.gfgf-links-page .ce_text ul {
    margin-left: 1.25rem;
}

.gfgf-about-page .ce_text p {
    line-height: 1.65;
}

.gfgf-about-page .ce_headline {
    color: #1b4576;
}

.gfgf-about-page .video_container {
    margin: 1.5rem 0;
}

.gfgf-referenten-page .form-control {
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    background: #fff;
}

.gfgf-referenten-page .firm-table {
    padding: 0;
}

.gfgf-referenten-page .firm-table .row {
    display: flex;
    flex-wrap: wrap;
}

.gfgf-referenten-page .firm-table .table-row {
    margin-bottom: 12px;
}

.gfgf-referenten-page .firm-table .col-4 {
    flex: 0 0 25%;
    max-width: 25%;
}

.gfgf-referenten-page .firm-table .col-8 {
    flex: 0 0 75%;
    max-width: 75%;
}

.gfgf-referenten-page .firm-table ul,
.gfgf-referenten-page .firm-table li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gfgf-referenten-page .firm-table .col-logo {
    display: flex;
    align-items: center;
    padding-right: 15px;
}

.gfgf-referenten-page .firm-table .col-logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.gfgf-referenten-page .firm-headline {
    background-color: rgb(155, 205, 254);
    padding: 5px 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    color: #000;
    margin-bottom: 5px;
}

.gfgf-referenten-page .firm-referenten {
    background-color: rgb(221, 238, 254);
    min-height: 24px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
}

.gfgf-referenten-page .firm-referenten.isempty {
    padding: 0;
    min-height: 0;
    background: transparent;
}

.gfgf-referenten-page .ce_headline {
    color: #1b4576;
}

.gfgf-referenten-page .ce_text p {
    line-height: 1.65;
}

@media (max-width: 768px) {
    .gfgf-member-columns,
    .gfgf-impressum-page .immit-row {
        grid-template-columns: 1fr;
    }

    .gfgf-links-page .interlink-table .col-cover,
    .gfgf-links-page .interlink-table .col-data,
    .gfgf-links-page .interlink-table .col-10,
    .gfgf-links-page .interlink-table .col-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .gfgf-links-page .cover-link {
        padding-right: 0;
        margin-bottom: 10px;
    }

    .gfgf-referenten-page .firm-table .col-4,
    .gfgf-referenten-page .firm-table .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .gfgf-referenten-page .firm-table .col-logo {
        padding-right: 0;
        margin-bottom: 8px;
    }
}

@media (max-width: 768px) {
    .gfgf-rim-device-card {
        grid-template-columns: 1fr;
    }
}

.gfgf-online-page h1 {
    margin-bottom: 1rem;
}

.gfgf-online-intro {
    margin-bottom: 1.5rem;
}

.gfgf-online-intro p {
    margin-bottom: 1rem;
}

.gfgf-online-intro a {
    color: var(--gfgf-blue-link);
}

.gfgf-online-search {
    margin-bottom: 1rem;
}

.gfgf-online-search .form-control {
    width: 100%;
    max-width: 320px;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--gfgf-border);
    background: #fff;
}

.gfgf-online-page .radiorama-table {
    padding: 0;
}

.gfgf-online-page .gfgf-online-row {
    display: flex;
    gap: 1.1rem;
    padding: 0 0 1.25rem;
    margin: 0 0 1.25rem;
    border-bottom: 1px solid var(--gfgf-border);
}

.gfgf-online-page .col-cover {
    width: 30%;
    max-width: 235px;
    flex: 0 0 30%;
}

.gfgf-online-page .col-cover ul.file {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gfgf-online-page .col-cover li {
    margin: 0;
}

.gfgf-online-page .col-cover img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--gfgf-border);
}

.gfgf-online-page .col-data {
    flex: 1 1 auto;
    min-width: 0;
}

.gfgf-online-page .radiorama-headline {
    margin-bottom: 0.55rem;
    font-family: var(--gfgf-font-head);
    font-size: 1.1rem;
    color: var(--gfgf-text);
}

.gfgf-online-page .radiorama-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.gfgf-online-page .radiorama-content .col-2 {
    width: 0;
    display: none;
}

.gfgf-online-page .rad_ausgabe {
    margin-bottom: 0.35rem;
}

.gfgf-online-page .rad_inhalt {
    flex: 1 1 auto;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--gfgf-text);
}

.gfgf-online-page .col-download {
    margin-top: 0.65rem;
    width: 100%;
    text-align: right;
}

.gfgf-online-page .rad_download img {
    width: 23px;
    height: 23px;
    display: inline-block;
}

/* ============================================================
   KATALOGE-ARCHIV (live-nahe)
   ============================================================ */
.gfgf-page-catalogs .inside-article,
.gfgf-page-catalogs .entry-content,
.gfgf-page-catalogs .gfgf-catalog-page > .container:first-child {
    max-width: none;
}

.gfgf-page-catalogs .ce_headline {
    color: var(--gfgf-blue);
    font-family: var(--gfgf-font-head);
    font-size: 1.8rem;
    margin: 0 0 0.9rem;
}

.gfgf-page-catalogs .site-content {
    display: block !important;
}

.gfgf-page-catalogs .content-area {
    float: none !important;
    clear: both !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
}

.gfgf-page-catalogs .gfgf-catalog-layout {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.gfgf-page-catalogs .gfgf-catalog-sidebar {
    flex: 0 0 30%;
    max-width: 30%;
    width: 30%;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

.gfgf-page-catalogs .gfgf-catalog-sidebar-inner {
    margin: 0;
    padding: 0 !important;
}

.gfgf-page-catalogs .gfgf-catalog-main {
    flex: 0 0 70%;
    max-width: 70%;
    width: 70%;
    box-sizing: border-box;
}

.gfgf-page-catalogs .ce_text.block {
    margin-bottom: 1.25rem;
}

.gfgf-page-catalogs .kataloge-filter {
    border: 1px solid #ccc;
    padding: 0.8rem;
    border-radius: 10px;
    background: #fbfbfb;
    margin: 0 0 1rem;
}

.gfgf-page-catalogs .gfgf-catalog-filter-form .formbody {
    display: flex;
    flex-wrap: wrap;
    flex-flow: row;
    gap: 2rem;
    position: relative;
}

.gfgf-page-catalogs .gfgf-catalog-filter-form .formbody > *:last-child {
    margin-left: auto;
}

.gfgf-page-catalogs .mm_select.jahr,
.gfgf-page-catalogs .mm_select.firma {
    min-width: 15%;
    position: initial;
}

.gfgf-page-catalogs .mm_select.jahr > label,
.gfgf-page-catalogs .mm_select.firma > label,
.gfgf-page-catalogs .mm_text.suche label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gfgf-text);
    margin-bottom: 0;
    cursor: pointer;
}

.gfgf-page-catalogs .mm_select.jahr > label,
.gfgf-page-catalogs .mm_select.firma > label {
    position: relative;
    padding-right: 1.1rem;
}

.gfgf-page-catalogs .mm_select.jahr > label::after,
.gfgf-page-catalogs .mm_select.firma > label::after {
    content: "\25BE";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--gfgf-blue-link);
    transition: transform 0.2s ease;
}

.gfgf-page-catalogs .mm_select.jahr.is-open > label::after,
.gfgf-page-catalogs .mm_select.jahr:focus-within > label::after,
.gfgf-page-catalogs .mm_select.firma.is-open > label::after,
.gfgf-page-catalogs .mm_select.firma:focus-within > label::after {
    transform: translateY(-50%) rotate(180deg);
}

.gfgf-page-catalogs .radio_container {
    width: inherit;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    transform: translateY(-4px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    background-color: rgb(230, 237, 243);
    padding: 15px;
    border-radius: 8px;
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    z-index: 10;
    border: 0;
    margin: 0;
}

.gfgf-page-catalogs .radio_container > span {
    display: flex;
    gap: 0.3rem;
    font-size: 0.86rem;
    line-height: 1.25;
}

.gfgf-page-catalogs .radio_container > span label {
    margin-bottom: inherit;
}

.gfgf-page-catalogs .radio_container input[type="radio"] {
    margin: 0;
}

.gfgf-page-catalogs .mm_select.jahr > label:hover ~ fieldset,
.gfgf-page-catalogs .mm_select.jahr fieldset:hover,
.gfgf-page-catalogs .mm_select.jahr:focus-within fieldset,
.gfgf-page-catalogs .mm_select.jahr.is-open fieldset,
.gfgf-page-catalogs .mm_select.firma > label:hover ~ fieldset,
.gfgf-page-catalogs .mm_select.firma fieldset:hover,
.gfgf-page-catalogs .mm_select.firma:focus-within fieldset,
.gfgf-page-catalogs .mm_select.firma.is-open fieldset {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.gfgf-page-catalogs #ctrl_suche {
    width: 210px;
    max-width: 100%;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--gfgf-border);
    font-size: 0.95rem;
    background: #fff;
}

.gfgf-page-catalogs .metamodels_frontendclearall {
    margin-top: 0.75rem;
    text-align: end;
}

.gfgf-page-catalogs .gfgf-catalog-reset {
    color: var(--gfgf-blue-link);
    text-decoration: none;
    opacity: 1;
    pointer-events: auto;
}

.gfgf-page-catalogs .gfgf-catalog-reset:not(.is-visible) { visibility: hidden; }

.gfgf-page-catalogs .radiorama-table {
    padding: 0;
}

.gfgf-page-catalogs .gfgf-katalog-row {
    display: flex;
    gap: 1.1rem;
    padding: 0 0 1.25rem;
    margin: 0 0 1.25rem;
    border-bottom: 1px solid var(--gfgf-border);
}

.gfgf-page-catalogs .gfgf-katalog-row.is-hidden {
    display: none;
}

.gfgf-page-catalogs .col-cover {
    width: 30%;
    max-width: 235px;
    flex: 0 0 30%;
}

.gfgf-page-catalogs .col-cover ul.file {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gfgf-page-catalogs .col-cover li {
    margin: 0;
}

.gfgf-page-catalogs .col-cover img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--gfgf-border);
}

.gfgf-page-catalogs .col-data {
    flex: 1 1 auto;
    min-width: 0;
}

.gfgf-page-catalogs .radiorama-headline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.55rem;
}

.gfgf-page-catalogs .radiorama-headline h3 {
    margin: 0;
    font-family: var(--gfgf-font-head);
    font-size: 1.1rem;
    color: var(--gfgf-text);
}

.gfgf-page-catalogs .radiorama-headline span {
    flex-shrink: 0;
    color: var(--gfgf-blue);
    font-weight: 700;
    font-size: 1rem;
}

.gfgf-page-catalogs .radiorama-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.gfgf-page-catalogs .radiorama-content .col-2 {
    width: 0;
    display: none;
}

.gfgf-page-catalogs .rad_inhalt {
    flex: 1 1 auto;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--gfgf-text);
}

.gfgf-page-catalogs .col-download {
    margin-top: 0.65rem;
    width: 100%;
    text-align: right;
}

.gfgf-page-catalogs .rad_download img {
    width: 23px;
    height: 23px;
    display: inline-block;
}

.gfgf-page-catalogs .gfgf-catalog-empty {
    margin: 1rem 0 0;
}

/* ============================================================
   RESPONSIVE CPT
   ============================================================ */
@media (max-width: 768px) {
    .gfgf-event-item { flex-direction: column; }
    .gfgf-event-date-box { min-width: auto; }
    .gfgf-card-grid { grid-template-columns: 1fr 1fr; }
    .gfgf-buch-layout { flex-direction: column; }
    .gfgf-buch-cover img { max-width: 120px; }
    .gfgf-detail-table th { width: 120px; }
    .gfgf-page-catalogs .gfgf-catalog-filter-form .formbody { gap: 1rem; }
    .gfgf-page-catalogs .gfgf-catalog-filter-form .formbody > *:last-child { margin-left: 0; }
    .gfgf-page-catalogs .mm_select.jahr,
    .gfgf-page-catalogs .mm_select.firma,
    .gfgf-page-catalogs .mm_text.suche { width: 100%; }
    .gfgf-page-catalogs .radio_container { position: static; opacity: 1; transform: none; pointer-events: auto; }
    .gfgf-page-catalogs .gfgf-katalog-row { flex-direction: column; }
    .gfgf-page-catalogs .col-cover { width: 100%; max-width: 260px; flex-basis: auto; }
    .gfgf-page-catalogs .radiorama-headline { flex-direction: column; gap: 0.2rem; }
    .gfgf-page-catalogs .col-download { text-align: left; }
    .gfgf-page-catalogs .site-content { display: block !important; }
    .gfgf-page-catalogs .gfgf-catalog-layout {
        display: block;
    }
    .gfgf-page-catalogs .content-area,
    .gfgf-page-catalogs .gfgf-catalog-sidebar,
    .gfgf-page-catalogs .gfgf-catalog-main {
        float: none !important;
        clear: both !important;
        max-width: 100%;
        width: 100%;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .gfgf-card-grid { grid-template-columns: 1fr; }
}

.gfgf-page-service-intro .gfgf-service-sublinks,
.gfgf-page-service-search .gfgf-service-search-intro {
    margin-bottom: 1.5rem;
}

.gfgf-page-service-intro .weiterf p {
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.gfgf-page-service-intro .gfgf-service-sublinks a {
    color: var(--gfgf-blue-link);
    text-decoration: none;
}

.gfgf-page-service-intro .gfgf-service-sublinks a:hover {
    text-decoration: underline;
}

.gfgf-page-service-search .gfgf-service-search-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
}

.gfgf-page-service-search .gfgf-service-search-label {
    flex: 0 0 90px;
    padding-top: 0.5rem;
    text-align: right;
}

.gfgf-page-service-search .gfgf-service-search-label .ce_headline {
    margin: 0;
    color: var(--gfgf-blue);
}

.gfgf-page-service-search .gfgf-service-search-form {
    flex: 1 1 auto;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.gfgf-page-service-search #fsuche_sql {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--gfgf-border);
    background: #fff;
}

.gfgf-page-service-search .gfgf-service-search-submit {
    border: 0;
    background: var(--gfgf-blue);
    color: #fff;
    padding: 0.72rem 1.1rem;
    cursor: pointer;
    font-weight: 700;
}

.gfgf-page-service-search .gfgf-service-search-submit:hover {
    background: #1a3f73;
}

.gfgf-page-service-search .gfgf-service-search-count {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 0.8rem;
}

.gfgf-page-service-search .gfgf-service-search-table-wrap {
    overflow-x: auto;
}

.gfgf-page-service-search table.serviceunterlagen {
    width: 100% !important;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.gfgf-page-service-search table.serviceunterlagen thead th {
    white-space: nowrap;
}

.gfgf-page-service-search .dataTables_wrapper .dataTables_filter {
    display: none;
}

@media (max-width: 768px) {
    .gfgf-page-service-search .gfgf-service-search-row {
        display: block;
    }

    .gfgf-page-service-search .gfgf-service-search-label {
        text-align: left;
        padding-top: 0;
        margin-bottom: 0.75rem;
    }

    .gfgf-page-service-search .gfgf-service-search-form {
        display: block;
    }

    .gfgf-page-service-search #fsuche_sql {
        width: 100%;
        margin-bottom: 0.75rem;
    }
}

.gfgf-magazine-page .gfgf-magazine-links {
    margin-bottom: 1.5rem;
}

.gfgf-magazine-page .weiterf p {
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.gfgf-magazine-page .hyperlink_txt {
    color: var(--gfgf-blue-link);
    text-decoration: none;
}

.gfgf-magazine-page .hyperlink_txt:hover {
    text-decoration: underline;
}

.gfgf-magazine-page .gfgf-magazine-preview {
    display: block;
    margin-bottom: 1.5rem;
}

.gfgf-magazine-page .gfgf-magazine-preview-cover {
    max-width: 260px;
    margin-bottom: 1rem;
}

.gfgf-magazine-page .gfgf-magazine-preview-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.gfgf-magazine-page .gfgf-magazine-preview-content {
    min-width: 0;
}

.gfgf-magazine-page .gfgf-magazine-download {
    margin: 0 0 1.5rem;
}

.gfgf-magazine-page .gfgf-magazine-specials {
    margin-top: 1rem;
}

.gfgf-magazine-page .gfgf-magazine-special-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-top: 1px solid #d9d9d9;
}

.gfgf-magazine-page .gfgf-magazine-special-year {
    flex: 0 0 70px;
    font-weight: 700;
}

.gfgf-magazine-page .gfgf-magazine-special-cover {
    flex: 0 0 110px;
    max-width: 110px;
}

.gfgf-magazine-page .gfgf-magazine-special-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.gfgf-magazine-page .gfgf-magazine-special-text {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 768px) {
    .gfgf-magazine-page .gfgf-magazine-preview,
    .gfgf-magazine-page .gfgf-magazine-special-row {
        display: block;
    }

    .gfgf-magazine-page .gfgf-magazine-preview-cover,
    .gfgf-magazine-page .gfgf-magazine-special-cover {
        max-width: 220px;
        margin-bottom: 1rem;
    }

    .gfgf-magazine-page .gfgf-magazine-special-year {
        margin-bottom: 0.5rem;
    }
}

.gfgf-archive-page .gfgf-archive-sublinks {
    margin-bottom: 1.5rem;
}

.gfgf-archive-page .weiterf p {
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.gfgf-archive-page .hyperlink_txt {
    color: var(--gfgf-blue-link);
    text-decoration: none;
}

.gfgf-archive-page .hyperlink_txt:hover,
.gfgf-archive-page .gfgf-archive-address a:hover,
.gfgf-archive-page .gfgf-archive-downloads a:hover {
    text-decoration: underline;
}

.gfgf-archive-page .gfgf-archive-tour {
    margin-bottom: 2rem;
}

.gfgf-archive-page .gfgf-archive-tour iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    border: 0;
}

.gfgf-archive-page .gfgf-archive-section {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.gfgf-archive-page .gfgf-archive-section.image-right {
    flex-direction: row;
}

.gfgf-archive-page .gfgf-archive-section.image-left {
    flex-direction: row-reverse;
}

.gfgf-archive-page .gfgf-archive-section-text {
    flex: 1 1 auto;
    min-width: 0;
}

.gfgf-archive-page .gfgf-archive-section-title {
    margin-top: 0;
}

.gfgf-archive-page .gfgf-archive-section-media {
    flex: 0 0 230px;
    max-width: 230px;
}

.gfgf-archive-page .gfgf-archive-section-media a,
.gfgf-archive-page .gfgf-archive-section-media img {
    display: block;
}

.gfgf-archive-page .gfgf-archive-section-media img {
    width: 100%;
    height: auto;
}

.gfgf-archive-page .gfgf-archive-address,
.gfgf-archive-page .gfgf-archive-intro-note {
    margin-bottom: 1.5rem;
}

.gfgf-archive-page .gfgf-archive-address p {
    margin: 0 0 0.45rem;
}

.gfgf-archive-page .gfgf-archive-address a,
.gfgf-archive-page .gfgf-archive-downloads a {
    color: var(--gfgf-blue-link);
    text-decoration: none;
}

.gfgf-archive-page .gfgf-archive-downloads ul {
    margin: 0;
    padding-left: 1.2rem;
}

.gfgf-archive-page .gfgf-archive-downloads li {
    margin-bottom: 0.45rem;
}

.gfgf-archive-page .gfgf-archive-downloads .size {
    color: #666;
}

@media (max-width: 768px) {
    .gfgf-archive-page .gfgf-archive-tour iframe {
        min-height: 420px;
    }

    .gfgf-archive-page .gfgf-archive-section,
    .gfgf-archive-page .gfgf-archive-section.image-right,
    .gfgf-archive-page .gfgf-archive-section.image-left {
        display: block;
    }

    .gfgf-archive-page .gfgf-archive-section-media {
        max-width: 220px;
        margin: 0 0 1rem;
    }
}
