/* Freiwillige Feuerwehr Bertelsdorf 1976 e.V. – gemeinsames Stylesheet */

:root {

    --red: #d71920;

    --dark: #17191c;

    --light: #f5f4f1;

    --text: #333;

    --muted: #687078;

    --line: #e3e5e7;

    --max: 1100px;

}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {

    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    color: var(--text);

    line-height: 1.6;

    background: #fff;

}

a { color: inherit; text-decoration: none; }

/* Kopfbereich und Navigation */

.site-header {

    width: 100%;

    z-index: 20;

    color: #fff;

    background: var(--dark);

}

.home-header {

    position: absolute;

    top: 0;

    left: 0;

    background: rgba(23, 25, 28, .78);

}

.page-header { position: relative; }

.nav-container {

    max-width: 1200px;

    margin: auto;

    padding: 18px 30px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 24px;

    position: relative;

}

.logo {

    display: flex;

    align-items: center;

    gap: 14px;

    color: #fff;

    text-decoration: none;

    flex: 0 0 auto;

}

.logo-badge {

    width: 50px;

    height: 58px;

    background: var(--red);

    color: #fff;

    display: flex;

    justify-content: center;

    align-items: center;

    border: 2px solid #fff;

    border-radius: 6px 6px 18px 18px;

    font-weight: bold;

}

.logo-text { display: block; }

.logo small {

    display: block;

    font-size: 11px;

    letter-spacing: 2px;

}

.logo strong { display: block; font-size: 18px; }

#mainMenu {

    display: flex;

    gap: 22px;

    align-items: center;

}

#mainMenu a {

    color: #fff;

    font-weight: bold;

    font-size: 14px;

}

#mainMenu a:hover,

#mainMenu a[aria-current="page"] { color: #ff777b; }

#mainMenu .notruf {

    border: 1px solid #fff;

    padding: 9px 14px;

    border-radius: 4px;

}

.menu-toggle {

    display: none;

    background: transparent;

    border: 1px solid rgba(255,255,255,.65);

    border-radius: 6px;

    padding: 8px 9px;

    cursor: pointer;

    min-width: 46px;

    min-height: 42px;

}

.menu-toggle span {

    display: block;

    width: 25px;

    height: 3px;

    background: #fff;

    margin: 5px 0;

    border-radius: 2px;

}

.menu-toggle:focus-visible,

#mainMenu a:focus-visible {

    outline: 3px solid #ff777b;

    outline-offset: 3px;

}

/* Startseite / Hero */

.hero {

    height: 100vh;

    min-height: 700px;

    position: relative;

    display: flex;

    align-items: flex-end;

    background: url("bilder/feuerwehr-banner.png") center / cover no-repeat;

    color: #fff;

}

.hero-small {

    background: linear-gradient(120deg, #202328, #363b42);

    color: #fff;

}

.overlay {

    position: absolute;

    inset: 0;

    background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.35));

}

.hero-content {

    position: relative;

    z-index: 1;

    max-width: 1200px;

    width: 100%;

    margin: auto;

    padding: 80px 30px;

}

.hero-inner {

    max-width: var(--max);

    margin: auto;

    padding: 58px 24px;

}

.eyebrow {

    color: #ffbfc2;

    text-transform: uppercase;

    letter-spacing: 2px;

    font-weight: bold;

    font-size: 12px;

}

h1 {

    font-size: clamp(30px, 7vw, 65px);

    line-height: 1.08;

    margin: 20px 0;

}

.hero-content p { max-width: 600px; font-size: 20px; }

.hero-small h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 12px; }

.hero-small p { max-width: 680px; margin: 0; color: #e0e2e4; font-size: 18px; }

/* Startseite Inhalte */

.facts {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    background: var(--red);

    color: #fff;

    text-align: center;

}

.facts div { padding: 30px; border-right: 1px solid rgba(255,255,255,.35); }

.facts div:last-child { border: none; }

.facts b { display: block; font-size: 32px; }

section:not(.hero):not(.hero-small) {

    max-width: 1200px;

    margin: auto;

    padding: 90px 30px;

}

h2 { font-size: 48px; line-height: 1.1; color: var(--dark); }

.lead { font-size: 22px; }

#aufgaben {

    background: var(--light);

    max-width: none;

    padding-left: max(30px, calc((100% - 1140px)/2));

    padding-right: max(30px, calc((100% - 1140px)/2));

}

#aufgaben li { padding: 15px 0; border-bottom: 1px solid #ddd; }

#mitmachen { background: var(--dark); color: #fff; max-width: none; }

#mitmachen h2 { color: #fff; }

.button, .contact-button, .facebook-button{

    display: inline-block;

    margin-top: 25px;

    padding: 14px 24px;

    background: var(--red);

    color: #fff;

    font-weight: bold;

    border-radius: 4px;

}

.mitmachen-buttons { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 30px; }

.contact-button { background: var(--red); border: 2px solid var(--red); }

.contact-button:hover { background: #fff; color: var(--red); }

.facebook-button { background: #1877f2; }

.facebook-button:hover { background: #0d5dcc; }

/* Termine und Inhaltsseiten */

main {

    max-width: var(--max);

    margin: auto;

    padding: 52px 24px 72px;

}

main.container { max-width: 1000px; }

main h1 { color: var(--red); font-size: clamp(34px, 5vw, 46px); }

main h2 { font-size: 28px; line-height: 1.2; margin: 34px 0 10px; }

.section-heading { margin-bottom: 24px; }

.section-heading p, .empty p, .note p { color: var(--muted); margin: 0; }

/* Einzelner Veranstaltungseintrag */

.event-card {

    position: relative;

    margin: 0 0 22px;

    padding: 26px 30px 27px 34px;

    overflow: hidden;

    background: #fff;

    border: 1px solid var(--line);

    border-left: 6px solid var(--red);

    border-radius: 12px;

    box-shadow: 0 8px 24px rgba(23, 25, 28, .07);

}

.event-card time {

    display: inline-block;

    margin-bottom: 10px;

    padding: 5px 11px;

    color: #a9141a;

    background: #fff0f0;

    border-radius: 4px;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: .04em;

    text-transform: uppercase;

}

.event-card h3 {

    margin: 0 0 8px;

    color: var(--dark);

    font-size: clamp(21px, 3vw, 26px);

    line-height: 1.25;

}

.event-card p {

    max-width: 760px;

    margin: 0;

    color: #555d64;

    font-size: 16px;

}

.empty {

    border: 1px solid var(--line);

    border-left: 5px solid var(--red);

    border-radius: 10px;

    padding: 26px;

    background: #fafafa;

}

.empty strong { display: block; font-size: 18px; color: var(--dark); margin-bottom: 5px; }

.note {

    margin-top: 36px;

    padding: 24px;

    border-radius: 10px;

    background: var(--light);

    display: flex;

    gap: 18px;

    align-items: flex-start;

}

.icon {

    flex: 0 0 44px;

    height: 44px;

    border-radius: 8px;

    background: var(--red);

    color: #fff;

    display: grid;

    place-items: center;

    font-size: 22px;

}

.note h3 { margin: 0 0 5px; color: var(--dark); font-size: 18px; }

.contact { text-align: center; margin-top: 30px; }

.contact a, main.container a { color: var(--red); }

main.container a { text-decoration: underline; }

/* Fußbereich */

footer {

    background: #0c0d0f;

    color: #aaa;

    padding: 20px 24px;

}

.footer-inner {

    max-width: 1200px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 16px;

    flex-wrap: wrap;

    font-size: 13px;

    color: #d9dcdf;

}

.footer-inner a { color: #fff; text-decoration: none; margin-left: 16px; }

.footer-inner a:hover { color: #ff777b; }

/* Smartphone-Navigation und responsive Layout */

@media (max-width: 850px) {

    .nav-container { padding: 14px 20px; }

    .menu-toggle { display: block; margin-left: auto; }

    #mainMenu {

        display: none;

        position: absolute;

        top: 100%;

        left: 0;

        right: 0;

        padding: 12px 20px 20px;

        background: #111;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        box-shadow: 0 8px 16px rgba(0,0,0,.25);

    }

    #mainMenu.open { display: flex; }

    #mainMenu a { padding: 12px 4px; border-top: 1px solid #393c40; }

    #mainMenu .notruf { border: 1px solid #777; margin-top: 10px; padding: 10px 12px; }

    .hero { min-height: 620px; }

    .hero-content { padding: 40px 20px; }

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

    .facts div { border-right: none; border-bottom: 1px solid rgba(255,255,255,.3); }

    section:not(.hero):not(.hero-small) { padding: 30px 20px; }

    h2 { font-size: 36px; }

    main { padding: 38px 20px 58px; }

}

@media (max-width: 520px) {

    .logo-badge { width: 44px; height: 50px; }

    .logo small { font-size: 9px; letter-spacing: 1.5px; }

    .logo strong { font-size: 16px; }

    .hero-content p { font-size: 17px; }

    .note { padding: 18px; }

    .footer-inner { display: block; }

    .footer-inner div + div { margin-top: 10px; }

    .footer-inner a { margin: 0 14px 0 0; }

}

/* Finale Korrektur: Hamburger-Button und mobiles Menü */

@media (max-width: 850px) {

  .menu-toggle {

    display: block !important;

    position: relative;

    z-index: 1001;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

  }

  #mainMenu { display: none !important; }

  #mainMenu.open { display: flex !important; }

}

/* ==================================================

   VEREINSSEITE – Chronik und Vorstandschaft

   ================================================== */

/* Ergänzende Gestaltung für verein.html */

.verein-hero {

    padding: 64px 0 58px;

    background:

        radial-gradient(circle at 88% 15%, rgba(215,25,32,.25), transparent 30%),

        linear-gradient(120deg, #17191c, #363b42);

}

.verein-hero .hero-inner {

    padding-top: 14px;

    padding-bottom: 12px;

}

.verein-eyebrow,

.verein-section-kicker {

    margin: 0 0 10px;

    color: var(--red);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;

}

.verein-hero .verein-eyebrow {

    color: #ffbfc2;

}

.verein-hero h1 {

    margin: 0 0 16px;

    font-size: clamp(36px, 6vw, 58px);

    line-height: 1.05;

}

.verein-hero p:not(.verein-eyebrow) {

    max-width: 720px;

    margin: 0;

    color: #e1e3e5;

    font-size: 18px;

}

.verein-jump {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 28px;

}

.verein-jump a {

    display: inline-block;

    padding: 10px 16px;

    border: 1px solid rgba(255,255,255,.65);

    border-radius: 5px;

    color: white;

    font-size: 14px;

    font-weight: 700;

    transition: background .2s ease, border-color .2s ease;

}

.verein-jump a:hover {

    background: var(--red);

    border-color: var(--red);

}

.verein-main {

    padding-top: 58px;

    padding-bottom: 76px;

}

.verein-main > section {

    max-width: none;

    margin: 0;

    padding: 0;

}

.verein-intro {

    max-width: 850px !important;

    margin: 0 auto 68px !important;

}

.verein-intro h2,

.verein-section-heading h2 {

    margin: 0 0 12px;

    font-size: clamp(30px, 4vw, 42px);

    line-height: 1.12;

}

.verein-intro p {

    margin: 0;

    color: #555d64;

    font-size: 17px;

    line-height: 1.8;

}

.verein-section {

    margin-top: 62px !important;

    scroll-margin-top: 24px;

}

.verein-section-heading {

    margin-bottom: 30px;

}

.verein-section-heading p {

    margin: 0;

    color: var(--muted);

}

.chronik-timeline {

    position: relative;

    max-width: 850px;

    margin-left: 4px;

    padding-left: 34px;

    border-left: 3px solid #ead0d1;

}

.chronik-entry {

    position: relative;

    display: grid;

    grid-template-columns: 90px 1fr;

    gap: 22px;

    padding: 2px 0 30px;

}

.chronik-entry::before {

    content: "";

    position: absolute;

    top: 7px;

    left: -43px;

    width: 15px;

    height: 15px;

    border: 4px solid white;

    border-radius: 50%;

    background: var(--red);

    box-shadow: 0 0 0 2px var(--red);

}

.chronik-year {

    color: var(--red);

    font-size: 23px;

    font-weight: 800;

}

.chronik-copy h3 {

    margin: 0 0 7px;

    color: var(--dark);

    font-size: 21px;

}

.chronik-copy p {

    margin: 0;

    color: #555d64;

    line-height: 1.7;

}

.chronik-placeholder {

    margin: 0 0 0 112px;

    padding: 20px 22px;

    border: 1px dashed #cfd2d5;

    border-radius: 9px;

    background: #fafafa;

}

.chronik-placeholder strong {

    color: var(--dark);

}

.chronik-placeholder p {

    margin: 5px 0 0;

    color: var(--muted);

}

.vorstand-section {

    padding: 48px 42px !important;

    border-radius: 14px;

    background: var(--light);

}

.vorstand-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px;

}

.vorstand-card {

    padding: 28px 24px;

    border: 1px solid var(--line);

    border-radius: 11px;

    background: white;

    text-align: center;

    box-shadow: 0 8px 24px rgba(23,25,28,.05);

}

.vorstand-avatar {

    display: grid;

    width: 74px;

    height: 74px;

    margin: 0 auto 17px;

    place-items: center;

    border: 2px solid #f0c4c6;

    border-radius: 50%;

    background: #fff0f0;

    color: var(--red);

    font-size: 22px;

    font-weight: 800;

}

.vorstand-role {

    margin-bottom: 5px;

    color: var(--red);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;

}

.vorstand-card h3 {

    margin: 0;

    color: var(--dark);

    font-size: 22px;

}

.vorstand-note {

    margin: 28px 0 7px;

    color: #555d64;

    text-align: center;

}

.verein-contact-link {

    display: block;

    color: var(--red);

    font-weight: 800;

    text-align: center;

}

.verein-contact-link:hover {

    text-decoration: underline;

}

@media (max-width: 760px) {

    .verein-hero {

        padding: 46px 0 40px;

    }

    .verein-hero .hero-inner {

        padding-left: 20px;

        padding-right: 20px;

    }

    .verein-hero p:not(.verein-eyebrow) {

        font-size: 16px;

    }

    .verein-main {

        padding-top: 40px;

        padding-bottom: 54px;

    }

    .verein-intro {

        margin-bottom: 48px !important;

    }

    .verein-section {

        margin-top: 46px !important;

    }

    .chronik-timeline {

        padding-left: 24px;

    }

    .chronik-entry {

        grid-template-columns: 1fr;

        gap: 4px;

    }

    .chronik-entry::before {

        left: -33px;

    }

    .chronik-placeholder {

        margin-left: 0;

    }

    .vorstand-section {

        padding: 30px 20px !important;

    }

    .vorstand-grid {

        grid-template-columns: 1fr;

        gap: 15px;

    }

    .verein-jump {

        gap: 9px;

    }

}

/* ==================================================

   MITMACHEN-SEITE – aktive Wehr und Bildergalerie

   ================================================== */

.mitmachen-hero .hero-inner {

    padding-top: 58px;

    padding-bottom: 54px;

}

.mitmachen-hero h1 {

    margin: 0 0 14px;

}

.mitmachen-hero p {

    margin: 0;

}

.mitmachen-main {

    padding-top: 54px;

    padding-bottom: 70px;

}

.mitmachen-main > section {

    max-width: none;

    margin: 0;

    padding: 0;

}

.mitmachen-main .verein-intro {

    max-width: 850px;

    margin: 0 auto 58px;

}

.mitmachen-main .verein-section {

    margin-top: 58px;

}

.mitmachen-main .vorstand-section {

    padding: 42px;

}

.vehicle-placeholder {

    padding: 24px 26px;

    border: 1px dashed #cfd2d5;

    border-radius: 10px;

    background: #fafafa;

    color: var(--muted);

}

.vehicle-placeholder strong {

    display: block;

    margin-bottom: 4px;

    color: var(--dark);

}

.gallery-intro {

    max-width: 720px;

    margin: -12px 0 26px;

    color: var(--muted);

}

.gallery-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px;

}

.gallery-item {

    position: relative;

    min-width: 0;

    overflow: hidden;

    margin: 0;

    border: 1px solid var(--line);

    border-radius: 12px;

    background: #fff;

    box-shadow: 0 8px 24px rgba(23,25,28,.08);

}

.gallery-open {

    position: relative;

    display: block;

    width: 100%;

    padding: 0;

    overflow: hidden;

    border: 0;

    background: var(--dark);

    cursor: zoom-in;

    text-align: left;

}

.gallery-open img {

    display: block;

    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    transition: transform .35s ease, opacity .25s ease;

}

.gallery-open:hover img,

.gallery-open:focus-visible img {

    transform: scale(1.035);

    opacity: .82;

}

.gallery-open:focus-visible {

    outline: 3px solid var(--red);

    outline-offset: -3px;

}

.gallery-open::after {

    content: "Bild vergrößern";

    position: absolute;

    right: 14px;

    bottom: 14px;

    padding: 7px 11px;

    border: 1px solid rgba(255,255,255,.55);

    border-radius: 4px;

    background: rgba(23,25,28,.82);

    color: #fff;

    font-size: 12px;

    font-weight: 700;

    opacity: 0;

    transform: translateY(5px);

    transition: .2s ease;

}

.gallery-open:hover::after,

.gallery-open:focus-visible::after {

    opacity: 1;

    transform: translateY(0);

}

.gallery-caption {

    padding: 15px 18px 17px;

}

.gallery-caption strong {

    display: block;

    margin-bottom: 2px;

    color: var(--dark);

    font-size: 16px;

}

.gallery-caption span {

    color: var(--muted);

    font-size: 14px;

}

.gallery-dialog {

    width: min(92vw, 1100px);

    max-width: none;

    max-height: 92vh;

    padding: 16px;

    overflow: auto;

    border: 1px solid rgba(255,255,255,.18);

    border-radius: 12px;

    background: #17191c;

    color: #fff;

    box-shadow: 0 24px 80px rgba(0,0,0,.5);

}

.gallery-dialog::backdrop {

    background: rgba(0,0,0,.86);

    backdrop-filter: blur(3px);

}

.gallery-dialog img {

    display: block;

    max-width: 100%;

    max-height: 78vh;

    margin: 0 auto;

    object-fit: contain;

}

.gallery-dialog p {

    margin: 12px 4px 0;

    color: #e1e3e5;

    text-align: center;

}

.gallery-dialog-close {

    display: block;

    margin: 0 0 12px auto;

    padding: 8px 13px;

    border: 1px solid #777;

    border-radius: 5px;

    background: transparent;

    color: #fff;

    font: inherit;

    cursor: pointer;

}

.gallery-dialog-close:hover {

    background: var(--red);

    border-color: var(--red);

}

#mitmachen .container {

    max-width: var(--max);

    margin: 0 auto;

    padding: 0 24px;

}

#mitmachen .section-label {

    color: #ffbfc2;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;

}

#mitmachen h2 {

    margin: 10px 0 16px;

    font-size: clamp(30px, 4vw, 42px);

    line-height: 1.12;

}

#mitmachen .lead {

    max-width: 850px;

    font-size: 19px;

}

#mitmachen p:not(.lead) {

    max-width: 850px;

    color: #e0e2e4;

}

@media (max-width: 760px) {

    .mitmachen-hero .hero-inner {

        padding: 42px 20px;

    }

    .mitmachen-main {

        padding-top: 38px;

        padding-bottom: 52px;

    }

    .mitmachen-main .verein-intro {

        margin-bottom: 42px;

    }

    .mitmachen-main .verein-section {

        margin-top: 44px;

    }

    .mitmachen-main .vorstand-section {

        padding: 28px 20px;

    }

    .gallery-grid {

        grid-template-columns: 1fr;

        gap: 17px;

    }

    .gallery-open img {

        aspect-ratio: 16 / 11;

    }

    #mitmachen .container {

        padding: 0 20px;

    }

}

/* Gruppenfoto im Bereich „Über uns“ */

.about-group-photo {

    width: min(100%, 1050px);

    margin: 2rem auto 0;

    text-align: center;

}

.about-group-photo img {

    display: block;

    width: 100%;

    height: auto;

    max-height: 620px;

    object-fit: cover;

    object-position: center;

    border-radius: 12px;

    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);

}

.about-group-photo figcaption {

    margin-top: 0.75rem;

    color: #666;

    font-size: 0.95rem;

}

/* Social-Media-Kacheln auf der Seite Aktuelles */
.social-updates {
    max-width: 760px;
    margin: 0 0 42px;
}

.social-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.social-copy h2 {
    margin: 0 0 10px;
    color: var(--dark);
    font-size: clamp(26px, 3.5vw, 34px);
    line-height: 1.2;
}

.social-copy p {
    max-width: 760px;
    margin: 0;
    color: #555d64;
    font-size: 16px;
}

.social-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
}

.social-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(100%, 290px);
    min-height: 88px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(23, 25, 28, .07);
    color: var(--dark);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.social-tile:hover {
    transform: translateY(-3px);
    border-color: #c9cdd1;
    box-shadow: 0 12px 28px rgba(23, 25, 28, .12);
}

.social-tile:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.social-logo {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    overflow: hidden;
    border-radius: 13px;
}

.social-logo svg {
    display: block;
    width: 34px;
    height: 34px;
}

.facebook-logo {
    background: #1877f2;
}

.facebook-logo svg {
    fill: #fff;
}

.instagram-logo {
    background: linear-gradient(45deg, #feda75 0%, #fa7e1e 28%, #d62976 58%, #962fbf 78%, #4f5bd5 100%);
}

.instagram-logo svg {
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
}

.instagram-logo .instagram-dot {
    fill: #fff;
    stroke: none;
}

.social-tile-text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    line-height: 1.35;
}

.social-tile-text strong {
    color: var(--dark);
    font-size: 17px;
}

.social-tile-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.social-arrow {
    align-self: flex-start;
    color: var(--muted);
    font-size: 18px;
}

@media (max-width: 520px) {
    .social-updates {
        margin-bottom: 32px;
    }

    .social-tile {
        width: 100%;
    }
}

/* Inhaltsbereich der Terminseite */
main > section:not(.hero):not(.hero-small) {
    max-width: none;
    margin: 42px 0 0;
    padding: 0;
}
