/* ==========================================================================
   Edlinger Gmoa-Fest in Untersteppach — Theme
   Nachbau der bisherigen WordPress-Seite (Theme „Polo“, Farbvariante Blau).
   Raster wie Bootstrap 3: Handy < 768 px · Tablet ≥ 768 px · PC ≥ 992 px / ≥ 1200 px
   Schriften wie bisher: Systemschrift für Text, „Raleway, sans-serif“ für Überschriften
   (Raleway wurde auf der alten Seite nicht geladen → es erscheint die Standard-Sans-Serif).
   ========================================================================== */

:root {
    --gfs-accent: #26b8f3;
    --gfs-text: #000;
    --gfs-heading: #111;
    --gfs-font: -apple-system, system-ui, "segoe ui", Roboto, "helvetica neue", Arial, "noto sans", sans-serif, "apple color emoji", "segoe ui emoji", "segoe ui symbol", "noto color emoji";
    --gfs-font-heading: Raleway, sans-serif;
    --gfs-header-h: 90px;
    --gfs-header-h-sticky: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: #fff;
    color: var(--gfs-text);
    font-family: var(--gfs-font);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--gfs-accent); }
p { margin: 0 0 20px; }
strong, b { font-weight: 700; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--gfs-font-heading);
    color: var(--gfs-heading);
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 10px;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }
ul, ol { margin: 0 0 20px; padding-left: 20px; }
.gfs-center { text-align: center; }
button { font: inherit; }

.gfs-skip { position: absolute; left: -9999px; top: 0; z-index: 9999; background: #fff; padding: 10px 16px; }
.gfs-skip:focus { left: 10px; top: 10px; }

/* ── Container (Bootstrap-3-Breiten) ─────────────────────────────────────── */
.gfs-container { margin: 0 auto; padding: 0 20px; width: 100%; }
@media (min-width: 768px)  { .gfs-container { width: 750px;  padding: 0 15px; } }
@media (min-width: 992px)  { .gfs-container { width: 970px; } }
@media (min-width: 1200px) { .gfs-container { width: 1170px; } }

/* ── Kopfzeile ───────────────────────────────────────────────────────────── */
.gfs-header { position: relative; height: var(--gfs-header-h); z-index: 200; background: #fff; }
.gfs-header__wrap { position: relative; height: var(--gfs-header-h); background: #fff; width: 100%; transition: height .3s ease, box-shadow .3s ease; }
.gfs-header__container {
    position: relative; height: 100%;
    display: flex; align-items: stretch;
    margin: 0 auto; padding: 0 20px; width: 100%;
}
@media (min-width: 768px)  { .gfs-header__container { width: 750px; padding: 0 15px; } }
@media (min-width: 992px)  { .gfs-header__container { width: 970px; } }
@media (min-width: 1200px) { .gfs-header__container { width: 1170px; } }

.gfs-logo { display: flex; align-items: center; height: 100%; margin-right: auto; flex-shrink: 0; }
.gfs-logo img { display: block; height: var(--gfs-header-h); max-height: var(--gfs-header-h); width: auto; transition: height .3s ease, max-height .3s ease; }

.gfs-nav { order: 2; height: 100%; }
.gfs-nav__list { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
.gfs-nav__list li { height: 100%; }
.gfs-nav__list a {
    display: block; height: 100%;
    padding: 10px;
    line-height: calc(var(--gfs-header-h) - 20px);
    font-size: 12px; font-weight: 800; text-transform: uppercase;
    color: #111;
    transition: color .2s, line-height .3s ease;
}
.gfs-nav__list a:hover, .gfs-nav__list a:focus { color: var(--gfs-accent); }

.gfs-top-search { order: 3; position: static; display: flex; align-items: center; }
.gfs-top-search__trigger {
    width: 30px; height: 100%; padding: 0 0 0 8px; border: 0; background: none; cursor: pointer;
    color: #111; display: flex; align-items: center; justify-content: flex-end;
}
.gfs-top-search__trigger:hover { color: var(--gfs-accent); }
.gfs-top-search__trigger .i-close { display: none; }
.gfs-top-search form {
    position: absolute; left: 15px; right: 45px; top: 0; bottom: 0;
    display: flex; align-items: center; background: #fff;
    opacity: 0; visibility: hidden; transition: opacity .3s ease;
}
.gfs-top-search input {
    width: 100%; border: 0; outline: 0; background: transparent;
    font-family: var(--gfs-font); font-size: 26px; font-weight: 700; color: #333; padding: 0;
}
.gfs-top-search.is-open form { opacity: 1; visibility: visible; z-index: 3; }
.gfs-top-search.is-open .i-search { display: none; }
.gfs-top-search.is-open .i-close { display: block; }

/* Beim Scrollen: Kopfzeile bleibt oben und wird flacher */
.gfs-header.is-sticky .gfs-header__wrap {
    position: fixed; top: 0; left: 0;
    height: var(--gfs-header-h-sticky);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .1);
}
.has-admin-bar .gfs-header.is-sticky .gfs-header__wrap { top: 36px; }
.gfs-header.is-sticky .gfs-logo img { height: var(--gfs-header-h-sticky); max-height: var(--gfs-header-h-sticky); }
.gfs-header.is-sticky .gfs-nav__list a { line-height: calc(var(--gfs-header-h-sticky) - 20px); }

/* Menü-Knopf (Handy/Tablet) */
.gfs-burger {
    display: none; order: 4;
    width: 28px; height: 100%; margin-left: 6px; padding: 1px 3px;
    border: 0; background: none; cursor: pointer; align-items: center; justify-content: center;
}
.gfs-burger__lines, .gfs-burger__lines::before, .gfs-burger__lines::after {
    display: block; width: 22px; height: 2px; background: #111; border-radius: 1px;
    transition: transform .3s, background .3s, top .3s;
    position: relative;
}
.gfs-burger__lines::before, .gfs-burger__lines::after { content: ""; position: absolute; left: 0; }
.gfs-burger__lines::before { top: 7px; }
.gfs-burger__lines::after { top: -7px; }
.gfs-menu-open .gfs-burger__lines { background: transparent; }
.gfs-menu-open .gfs-burger__lines::before { top: 0; transform: rotate(45deg); }
.gfs-menu-open .gfs-burger__lines::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 991px) {
    .gfs-burger { display: flex; height: var(--gfs-header-h); }
    .gfs-header { height: auto; min-height: var(--gfs-header-h); }
    .gfs-header__wrap { height: auto; }
    .gfs-header__container { flex-wrap: wrap; height: auto; }
    .gfs-logo { height: var(--gfs-header-h); }
    .gfs-top-search { height: var(--gfs-header-h); }
    .gfs-header.is-sticky .gfs-header__wrap { height: auto; max-height: 100vh; overflow-y: auto; }
    .gfs-header.is-sticky .gfs-logo,
    .gfs-header.is-sticky .gfs-burger,
    .gfs-header.is-sticky .gfs-top-search { height: var(--gfs-header-h-sticky); }
    .gfs-nav {
        position: static; order: 5; width: 100%; height: auto;
        background: #fff; display: none;
    }
    .gfs-menu-open .gfs-nav { display: block; }
    .gfs-nav__list { display: block; height: auto; padding: 0 0 15px; margin: 0 -20px; }
    .gfs-nav__list li { height: auto; }
    .gfs-nav__list a,
    .gfs-header.is-sticky .gfs-nav__list a { height: auto; line-height: 30px; padding: 10px 20px; }
    .gfs-top-search form { right: 70px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .gfs-nav__list { margin: 0 -15px; }
    .gfs-nav__list a, .gfs-header.is-sticky .gfs-nav__list a { padding-left: 15px; padding-right: 15px; }
}
@media (max-width: 767px) {
    .gfs-top-search { display: none; }
    .gfs-logo img { padding: 10px 10px 10px 0; }
    .gfs-header.is-sticky .gfs-logo img { padding: 5px 10px 5px 0; }
}

/* ── Titelbild mit Seitentitel ───────────────────────────────────────────── */
.gfs-page-title {
    position: relative;
    padding: 40px 0;
    background-color: #f8f8f8;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-bottom: 5px solid #eee;
    color: #fff;
}
/* Parallax wie bisher: Bild steht fest, Inhalt scrollt darüber (nur PC; Handys können das nicht sauber) */
@media (min-width: 992px) and (hover: hover) { .gfs-page-title { background-attachment: fixed; } }
/* Handy/Tablet: gleicher Bildausschnitt wie das feststehende Bild der alten Seite */
@media (max-width: 991px) and (orientation: portrait), (hover: none) and (orientation: portrait) { .gfs-page-title { background-size: auto 100vh; } }
@media (max-width: 991px) and (orientation: landscape), (hover: none) and (orientation: landscape) { .gfs-page-title { background-size: 100vw auto; } }
.gfs-page-title::before {
    content: " "; position: absolute; inset: 0;
    background: rgba(0, 0, 0, .3);
}
.gfs-page-title .gfs-container { position: relative; z-index: 1; }
.gfs-page-title h1 {
    color: #fff;
    font-family: var(--gfs-font-heading);
    font-size: 42px; line-height: 1.2; font-weight: 800;
    text-transform: uppercase;
    margin: -4px 0 10px -2px;
    overflow-wrap: break-word;
}
@media (min-width: 992px) { .gfs-page-title__inner { width: calc((100% + 30px) * .66666667 - 30px); } }
@media (max-width: 767px) { .gfs-page-title h1 { font-size: 30px; line-height: 36px; } }
.gfs-post-info { font-size: 14px; color: #fff; margin: 0 0 20px; }
.gfs-post-info a { color: #fff; }
.gfs-post-info a:hover { color: #fff; text-decoration: underline; }

/* ── Inhalt + Seitenleiste ───────────────────────────────────────────────── */
.gfs-content { padding: 80px 0; }
.gfs-row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.gfs-main { width: 100%; padding: 0 15px; min-width: 0; }
.gfs-sidebar { width: 100%; padding: 0 15px; min-width: 0; }
@media (min-width: 768px) {
    .gfs-content .gfs-container { padding: 0; }
    .gfs-row.has-sidebar .gfs-main { width: 75%; padding: 0 25px 0 15px; }
    .gfs-row.has-sidebar .gfs-sidebar { width: 25%; padding: 0 15px 0 25px; }
    .gfs-row:not(.has-sidebar) .gfs-main { padding: 0 15px; }
}
@media (max-width: 767px) {
    body { font-size: 13px; }
    .gfs-content { padding: 40px 0; }
}

.gfs-post-content::after { content: ""; display: table; clear: both; }
.gfs-post-content img { max-width: 100%; height: auto; }
.gfs-post-content table { border-collapse: collapse; width: 100%; margin: 0 0 20px; }
.gfs-post-content th, .gfs-post-content td { border: 1px solid #eee; padding: 8px 10px; text-align: left; vertical-align: top; }
.gfs-post-content blockquote { margin: 0 0 20px; padding: 10px 20px; border-left: 4px solid var(--gfs-accent); background: #f8f8f8; }
.gfs-post-content a:not(.gallery-item) { color: inherit; }
.gfs-post-content a:not(.gallery-item):hover { color: var(--gfs-accent); }

/* Bausteine wie im WordPress-Seitenbaukasten (Abstand 35 px) */
.gfs-el { margin-bottom: 35px; }
.gfs-el > :last-child { margin-bottom: 0; }

/* Startseite */
.gfs-home h2 { text-align: center; }
.gfs-home__schriftzug { width: 300px; max-width: 100%; height: auto; vertical-align: middle; }
.gfs-home__hinweis { margin-top: 52px; text-align: center; }
.gfs-home__hinweis p {
    font-family: var(--gfs-font-heading); color: var(--gfs-heading);
    font-size: 36px; font-weight: 500; line-height: 1.3; margin: 0 0 10px;
}
.gfs-home__text { margin-top: 30px; }
@media (max-width: 767px) { .gfs-home__hinweis p { font-size: 30px; } }

/* Programm: Tag | Uhrzeit | Veranstaltung */
.gfs-programm__row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.gfs-programm__row > div { padding: 0 15px; width: 100%; }
@media (min-width: 768px) {
    .gfs-programm__tag  { width: 25% !important; }
    .gfs-programm__zeit { width: 16.66666667% !important; }
    .gfs-programm__was  { width: 58.33333333% !important; }
}

/* Vereine: zwei Logos nebeneinander */
.gfs-vereine__grid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.gfs-vereine__item { width: 100%; padding: 0 15px; }
@media (min-width: 768px) { .gfs-vereine__item { width: 50%; } }
.gfs-vereine__item img { height: auto; }

/* Karte (Anfahrt) */
.gfs-map { width: 95%; max-width: 100%; height: 450px; display: block; overflow: hidden; border: thin solid; margin: 0 0 20px; z-index: 1; }
.gfs-map .leaflet-control-attribution { font-size: 10px; }

/* Beitrag */
.gfs-post-item { margin-bottom: 40px; }
.gfs-post-image { margin-bottom: 20px; }
.gfs-post-image img { width: 100%; height: auto; display: block; }
.gfs-post-tags { margin: 0 0 20px; }
.gfs-post-meta { display: flex; flex-wrap: wrap; margin: 0 0 18px; }
.gfs-post-meta > div { padding: 8px 18px 8px 0; margin-right: 18px; }
.gfs-post-meta__date span + span { margin-left: 4px; }
.gfs-post-meta__share a { display: inline-flex; align-items: center; color: #3b5998; }
.gfs-post-meta__share a:hover { color: var(--gfs-accent); }

/* Beitragsübersicht */
.gfs-post-list__item { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.gfs-post-list__thumb img { display: block; margin-bottom: 15px; }
.gfs-post-list__title { font-size: 24px; margin-bottom: 5px; }
.gfs-post-list__date { font-size: 12px; color: #777; margin-bottom: 10px; }
.gfs-more { color: var(--gfs-accent); }
.gfs-pagination { display: flex; gap: 6px; }
.gfs-pagination a, .gfs-pagination span { display: inline-block; min-width: 34px; padding: 6px 10px; text-align: center; border: 1px solid #eee; }
.gfs-pagination .is-current { background: var(--gfs-accent); border-color: var(--gfs-accent); color: #fff; }

/* Suche */
.gfs-search__results { list-style: none; padding: 0; }
.gfs-search__results li { padding: 15px 0; border-bottom: 1px solid #eee; }
.gfs-search__results h4 { margin-bottom: 5px; }
.gfs-search__results p { margin: 0; }
.gfs-search-form--big { margin-bottom: 30px; max-width: 500px; }

/* Bildergalerie in Beiträgen ([gallery]) + Lightbox */
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 10px; margin: 0 0 20px; }
.gallery[data-columns="2"] { --cols: 2; }
.gallery[data-columns="3"] { --cols: 3; }
.gallery[data-columns="5"] { --cols: 5; }
.gallery-item { display: block; overflow: hidden; aspect-ratio: 1 / 1; background: #f4f4f4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 767px) { .gallery { --cols: 2 !important; } }
.gfs-video { margin: 0 0 20px; }
.gfs-video video { width: 100%; height: auto; display: block; background: #000; max-height: 85vh; }

#gfs-lightbox {
    position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, .9);
    display: none; align-items: center; justify-content: center;
}
#gfs-lightbox.is-open { display: flex; }
#gfs-lightbox figure { margin: 0; text-align: center; }
#gfs-lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; }
#gfs-lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 40px; line-height: 1; padding: 14px; opacity: .85; }
#gfs-lightbox button:hover { opacity: 1; }
#gfs-lightbox .lb-close { top: 6px; right: 10px; font-size: 34px; }
#gfs-lightbox .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
#gfs-lightbox .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
#gfs-lightbox .lb-count { position: absolute; top: 18px; left: 18px; color: #ddd; font-size: 14px; }

/* ── Seitenleiste ────────────────────────────────────────────────────────── */
.gfs-widget { margin: 0 0 30px; padding: 0 0 30px; }
.gfs-widget__title { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.gfs-sidebar .gfs-widget__title::after {
    content: ""; display: block; width: 60px; height: 4px;
    border-top: 4px solid #444; margin-top: 14px;
}
.gfs-sidebar ul { list-style: none; padding: 0; margin: 0; }
.gfs-sidebar li { padding: 10px 0 10px 2px; border-bottom: 1px solid rgba(255, 255, 255, .5); }
.gfs-textwidget img { max-width: 100%; height: auto; }

.gfs-search-form { display: flex; width: 100%; }
.gfs-search-form input {
    flex: 1; min-width: 0; height: 40px; padding: 12px 18px;
    font-family: var(--gfs-font); font-size: 14px; color: #555;
    border: 1px solid #eee; border-right: 0; border-radius: 0; background: #fff;
    outline: 0; -webkit-appearance: none; appearance: none;
}
.gfs-search-form input:focus { border-color: #ddd; }
.gfs-search-form button {
    width: 40px; height: 40px; flex-shrink: 0; border: 0; cursor: pointer;
    background: var(--gfs-accent); color: #fff; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.gfs-search-form button:hover { filter: brightness(.92); }

/* ── Fußzeile ────────────────────────────────────────────────────────────── */
.gfs-footer { background: #f6f6f6; }
.gfs-footer__content { padding: 60px 0 40px; }
.gfs-footer__row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.gfs-footer__col { width: 100%; padding: 0 15px; }
@media (min-width: 992px) { .gfs-footer__col { width: 33.33333333%; } }
.gfs-footer__logo { margin-bottom: 20px; }
.gfs-footer__logo img { display: block; width: 100%; max-width: 360px; height: auto; }
@media (min-width: 992px) {
    .gfs-footer__logo { display: inline-block; border-right: 1px solid #ccc; padding-right: 16px; }
    .gfs-footer__logo img { width: 258px; }
}
.gfs-footer .gfs-widget { margin: 0 0 20px; padding: 0; }
.gfs-footer .gfs-widget__title { font-size: 16px; font-weight: 600; margin: 0 0 21px; }
.gfs-footer h5 { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.gfs-footer ul { padding-left: 20px; margin: 0 0 20px; }
.gfs-copyright { padding: 30px 0; }
.gfs-copyright__text { font-size: 12px; line-height: 1.6; text-transform: uppercase; padding-top: 10px; }

/* ── „Nach oben“-Knopf ───────────────────────────────────────────────────── */
.gfs-gototop {
    position: fixed; right: 10px; bottom: 30px; z-index: 300;
    padding: 8px 14px 9px; line-height: 24px; border-radius: 4px;
    background: var(--gfs-accent); color: #fff;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.gfs-gototop svg { display: block; margin: 5px 0 5px; }
.gfs-gototop.is-visible { opacity: 1; visibility: visible; }
.gfs-gototop:hover, .gfs-gototop:focus { color: #fff; filter: brightness(.92); }

/* ── Admin-Leiste (nur für angemeldete Redakteure) ───────────────────────── */
#gfs-admin-bar { position: sticky; top: 0; z-index: 1000; background: #1f2937; color: #e5e7eb; font: 13px/1 var(--gfs-font); }
.gfs-admin-bar__inner { display: flex; align-items: center; gap: 16px; height: 36px; padding: 0 16px; overflow-x: auto; white-space: nowrap; }
#gfs-admin-bar a { color: #e5e7eb; }
#gfs-admin-bar a:hover { color: #fff; text-decoration: underline; }
.gfs-admin-bar__edit { background: var(--gfs-accent); color: #fff !important; padding: 6px 10px; border-radius: 4px; }
.gfs-admin-bar__warn { background: #b45309; color: #fff; padding: 4px 8px; border-radius: 4px; }
.gfs-admin-bar__spacer { flex: 1; }
