/* =========================================================
   FREIWILLIGE FEUERWEHR GRÄFENDORF
   PREMIUM DESIGN – WARM & ELEGANT
   Modern · Edel · Hochwertig
   ========================================================= */


/* =========================================================
   GRUNDWERTE
   ========================================================= */

:root {

    --red: #a91f2b;
    --red-dark: #861722;
    --red-light: #c94b55;

    --navy: #20282d;
    --navy-2: #293238;
    --navy-3: #343e44;

    --text: #30373b;
    --muted: #6d767c;

    /* wärmere helle Farbtöne */
    --cream: #eeece6;
    --light: #e7e6e1;
    --light-2: #deded9;

    /* kein hartes Weiß mehr */
    --white: #f8f7f3;

    --border: #d1d1cc;

    --gold: #b99a5a;
    --gold-light: #d1b879;

    --max-width: 1180px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background: var(--cream);

    line-height: 1.6;

}

img {

    display: block;

    width: 100%;

    height: auto;

}

a {

    color: inherit;

    text-decoration: none;

}

button {

    font-family: inherit;

}


/* =========================================================
   ALLGEMEINER CONTAINER
   ========================================================= */

.container {

    width:
        min(
            calc(100% - 40px),
            var(--max-width)
        );

    margin-left: auto;
    margin-right: auto;

}


/* =========================================================
   HEADER – PREMIUM
   ========================================================= */

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(242,241,236,0.97);

    border-bottom:
        1px solid #cfcfc9;

    box-shadow:
        0 5px 20px
        rgba(30,39,43,0.08);

}

/* dezente goldene Linie am unteren Header */

.site-header::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -1px;

    width: 100%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(185,154,90,0.55),
            transparent
        );

}

.nav-wrapper {

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


/* =========================================================
   LOGO
   ========================================================= */

.logo {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;

}

.gemeinde-wappen {

    width: 48px;

    height: 58px;

    object-fit: contain;

}

.ffw-wappen {

    width: 48px;

    height: 58px;

    object-fit: contain;

}

.logo span {

    display: flex;

    flex-direction: column;

    line-height: 1;

}

.logo strong {

color: var(--red);

font-size: 21px;

font-weight: 500;

letter-spacing: 3px;

line-height: 1;

text-transform: uppercase;

}

.logo small {

    margin-top: 5px;

    color: var(--navy);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

}


/* =========================================================
   NAVIGATION
   ========================================================= */

nav {

    display: flex;

    align-items: center;

    gap: 25px;

}

nav a {

    position: relative;

    padding: 28px 0;

    color: var(--navy);

    font-size: 14px;

    font-weight: 700;

    transition:
        color 0.2s ease;

}

nav a:hover {

    color: var(--red);

}

nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 20px;

    width: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--red),
            var(--gold)
        );

    transition:
        width 0.25s ease;

}

nav a:hover::after {

    width: 100%;

}


/* =========================================================
   MOBILES MENÜ
   ========================================================= */

.menu-button {

    display: none;

    border: 0;

    background: transparent;

    color: var(--navy);

    font-size: 30px;

    line-height: 1;

    cursor: pointer;

}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    position: relative;

    min-height: 600px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        var(--navy);

}

.hero-image {

    position: absolute;

    inset: 0;

}

.hero-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.hero-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,
            rgba(20,27,31,0.88),
            rgba(28,37,42,0.52),
            rgba(28,37,42,0.18)
        );

}

.hero-content {

    position: relative;

    z-index: 2;

    color: var(--white);

}

.eyebrow {

    display: inline-block;

    margin-bottom: 14px;

    color: var(--red);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2.5px;

    text-transform: uppercase;

}

.hero .eyebrow {

    color: var(--gold-light);

}

.hero h1 {

    max-width: 850px;

    margin-bottom: 20px;

    font-size:
        clamp(
            42px,
            7vw,
            82px
        );

    line-height: 0.98;

    font-weight: 900;

    letter-spacing: -2px;

}

.hero h1 span {

    color: #ffffff;

}

.hero p {

    margin-bottom: 32px;

    color: #e0dfda;

    font-size: 18px;

    font-weight: 500;

}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding:
        0 25px;

    border:
        1px solid transparent;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;

}

.button:hover {

    transform:
        translateY(-2px);

}

.button-red {

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--red),
            #8f1823
        );

    box-shadow:
        0 8px 20px
        rgba(130,20,30,0.22);

}

.button-red:hover {

    background:
        linear-gradient(
            135deg,
            #b82935,
            var(--red-dark)
        );

}

.button-white {

    color: var(--navy);

    background:
        #eeeDE8;

    border:
        1px solid
        rgba(255,255,255,0.4);

}

.button-white:hover {

    color: var(--red);

    background:
        #f4f2ec;

}

.button-transparent {

    color: var(--white);

    border-color:
        rgba(255,255,255,0.65);

}

.button-transparent:hover {

    color: var(--navy);

    background:
        #eeece6;

    border-color:
        #eeece6;

}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {

    padding:
        90px 0;

}

.section:nth-child(even) {

    background:
        #e9e8e3;

}

.section-dark {

    color: var(--white);

    background:
        linear-gradient(
            145deg,
            var(--navy),
            #252e33
        ) !important;

}

.section-title {

    max-width: 750px;

    margin-bottom: 55px;

}

.section-title h2 {

    margin-bottom: 15px;

    color: var(--navy);

    font-size:
        clamp(
            34px,
            5vw,
            52px
        );

    line-height: 1.05;

    letter-spacing: -1px;

}

.section-title p {

    color: var(--muted);

    font-size: 17px;

}

.section-title-light h2 {

    color: var(--white);

}

.section-title-light p {

    color: #c4cacc;

}

.section-title-light .eyebrow {

    color: var(--gold-light);

}


/* =========================================================
   CONTENT GRID
   ========================================================= */

.content-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 60px;

    align-items: center;

}

.content-grid-reverse {

    grid-template-columns:
        1fr 1fr;

}

.content-text {

    max-width: 650px;

}

.content-text h2 {

    margin-bottom: 20px;

    color: var(--navy);

    font-size: 44px;

    line-height: 1.1;

}

.content-text p {

    margin-bottom: 18px;

    font-size: 16px;

}

.content-image {

    overflow: hidden;

    border-radius: 2px;

    box-shadow:
        0 18px 40px
        rgba(31,42,47,0.13);

}

.content-image img {

    width: 100%;

    height: 430px;

    object-fit: cover;

    transition:
        transform 0.5s ease;

}

.content-image:hover img {

    transform:
        scale(1.02);

}


/* =========================================================
   UNTERBEREICH
   ========================================================= */

.subsection {

    margin-top: 90px;

}

.subsection h2 {

    margin-bottom: 30px;

    color: var(--navy);

    font-size: 36px;

}


/* =========================================================
   VORSTANDSCHAFT
   ========================================================= */

.people-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 15px;

}

.person {

    min-height: 95px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #eeece6,
            #e5e4df
        );

    border-left:
        4px solid var(--red);

    border-top:
        1px solid #f5f4ef;

    box-shadow:
        0 5px 16px
        rgba(35,45,50,0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}

.person:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 9px 22px
        rgba(35,45,50,0.10);

}

.person strong {

    color: var(--navy);

    font-size: 15px;

}

.person span {

    margin-top: 4px;

    color: var(--muted);

    font-size: 13px;

}

.person-wide {

    grid-column:
        span 3;

}


/* =========================================================
   ORTSTEILWEHREN
   ========================================================= */

.small-cards {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );

    gap: 18px;

}

.small-card {

    padding:
        28px 22px;

    background:
        #e4e3de;

    border-top:
        3px solid var(--gold);

    box-shadow:
        0 7px 20px
        rgba(35,45,50,0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}

.small-card:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 25px
        rgba(35,45,50,0.10);

}

.small-card h3 {

    margin-bottom: 8px;

    color: var(--navy);

    font-size: 20px;

}

.small-card p {

    color: var(--muted);

    font-size: 14px;

}


/* =========================================================
   FAHRZEUG-KARTEN
   ========================================================= */

.cards {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 25px;

}

.card {

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #2c363c,
            #232c31
        );

    border:
        1px solid
        rgba(255,255,255,0.05);

    box-shadow:
        0 14px 35px
        rgba(0,0,0,0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}

.card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 20px 42px
        rgba(0,0,0,0.25);

}

.card-image {

    overflow: hidden;

}

.card-image img {

    height: 260px;

    object-fit: cover;

    transition:
        transform 0.4s ease;

}

.card:hover .card-image img {

    transform:
        scale(1.04);

}

.card-content {

    padding: 30px;

}

.card-number {

    display: block;

    margin-bottom: 8px;

    color: var(--gold-light);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 2px;

}

.card h3 {

    margin-bottom: 12px;

    color: var(--white);

    font-size: 30px;

}

.card p {

    color: #d0d5d7;

    font-size: 15px;

}

.card-detail {

    margin-top: 14px;

    color: #9fa7ab !important;

    font-size: 13px !important;

}


/* =========================================================
   MITMACHEN
   ========================================================= */

.join-section {

    position: relative;

    padding:
        100px 0;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            #9d1c28,
            #7f1721
        );

    overflow: hidden;

}

.join-section::after {

    content: "";

    position: absolute;

    width: 420px;

    height: 420px;

    right: -160px;

    top: -180px;

    border:
        1px solid
        rgba(255,255,255,0.12);

    border-radius: 50%;

    box-shadow:
        0 0 0 35px
        rgba(255,255,255,0.025),

        0 0 0 70px
        rgba(255,255,255,0.02);

}

.join-content {

    position: relative;

    z-index: 2;

    max-width: 800px;

}

.join-content .eyebrow {

    color: var(--gold-light);

}

.join-content h2 {

    margin-bottom: 18px;

    font-size:
        clamp(
            40px,
            6vw,
            64px
        );

    line-height: 1;

}

.join-content p {

    max-width: 650px;

    margin-bottom: 30px;

    color: #ffffff;

    font-size: 18px;

}

.join-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

}


/* =========================================================
   DOWNLOADS
   ========================================================= */

.download-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 20px;

}

.download-card {

    display: flex;

    align-items: center;

    gap: 20px;

    min-height: 150px;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            #eeece6,
            #e3e2dd
        );

    border:
        1px solid var(--border);

    border-left:
        4px solid var(--gold);

    box-shadow:
        0 6px 18px
        rgba(35,45,50,0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}

.download-card:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 28px
        rgba(35,45,50,0.11);

}

.download-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 55px;

    height: 65px;

    color: var(--white);

    background:
        linear-gradient(
            145deg,
            var(--red),
            var(--red-dark)
        );

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1px;

}

.download-card h3 {

    margin-bottom: 4px;

    color: var(--navy);

    font-size: 19px;

}

.download-card p {

    margin-bottom: 6px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.4;

}

.download-link {

    color: var(--red);

    font-size: 13px;

    font-weight: 800;

}


/* =========================================================
   KONTAKT
   ========================================================= */

.contact-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 20px;

}

.contact-box {

    padding: 35px;

    background:
        linear-gradient(
            135deg,
            #eeece6,
            #e3e2dd
        );

    border:
        1px solid var(--border);

    box-shadow:
        0 7px 20px
        rgba(35,45,50,0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}

.contact-box:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 27px
        rgba(35,45,50,0.10);

}

.contact-icon {

    display: block;

    margin-bottom: 18px;

    color: var(--red);

    font-size: 25px;

}

.contact-box h3 {

    margin-bottom: 10px;

    color: var(--navy);

    font-size: 20px;

}

.contact-box p,
.contact-box a {

    color: var(--muted);

    font-size: 15px;

}

.contact-box a:hover {

    color: var(--red);

}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {

    color: #b9c0c3;

    background:
        linear-gradient(
            145deg,
            #20282d,
            #1a2125
        );

}

.footer-top {

    display: grid;

    grid-template-columns:
        1fr 2fr;

    gap: 50px;

    padding:
        60px 0 45px;

}

.footer-logo {

    margin-bottom: 10px;

    color: var(--white);

    font-size: 20px;

    font-weight: 800;

}

.footer-top p {

    font-size: 14px;

}

.footer-links {

    display: flex;

    flex-wrap: wrap;

    align-content: flex-start;

    justify-content: flex-end;

    gap:
        10px 25px;

}

.footer-links a {

    color: #c5cbcd;

    font-size: 13px;

    transition:
        color 0.2s ease;

}

.footer-links a:hover {

    color: var(--gold-light);

}

.footer-bottom {

    padding:
        20px 0;

    border-top:
        1px solid
        rgba(255,255,255,0.08);

    color: #899297;

    font-size: 12px;

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    nav {

        gap: 16px;

    }

    nav a {

        font-size: 13px;

    }

    .content-grid {

        gap: 35px;

    }

    .people-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );

    }

    .person-wide {

        grid-column:
            span 2;

    }

    .small-cards {

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );

    }

    .cards {

        grid-template-columns:
            1fr 1fr;

    }

    .card:last-child {

        grid-column:
            span 2;

        max-width: 50%;

        margin: 0 auto;

    }

    .download-grid {

        grid-template-columns:
            1fr 1fr;

    }

    .contact-grid {

        grid-template-columns:
            1fr 1fr;

    }

    .contact-box:last-child {

        grid-column:
            span 2;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .container {

        width:
            min(
                calc(100% - 30px),
                var(--max-width)
            );

    }

    .nav-wrapper {

        min-height: 68px;

    }

    .gemeinde-wappen {

        width: 40px;

        height: 48px;

    }

    .ffw-wappen {

        width: 40px;

        height: 48px;

    }

    .logo strong {

    font-size: 18px;

    font-weight: 500;

    letter-spacing: 2.5px;

}

    .menu-button {

        display: block;

    }

    nav {

        position: absolute;

        top: 68px;

        left: 0;

        right: 0;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding:
            10px 20px 20px;

        background:
            #eeece6;

        border-bottom:
            1px solid var(--border);

        box-shadow:
            0 8px 25px
            rgba(30,40,45,0.12);

    }

    nav.active {

        display: flex;

    }

    nav a {

        padding:
            14px 0;

        border-bottom:
            1px solid #d8d7d2;

    }

    nav a:last-child {

        border-bottom: 0;

    }

    nav a::after {

        display: none;

    }

    .hero {

        min-height: 560px;

    }

    .hero h1 {

        font-size:
            clamp(
                38px,
                12vw,
                58px
            );

    }

    .hero p {

        font-size: 16px;

    }

    .section {

        padding:
            65px 0;

    }

    .section-title {

        margin-bottom: 40px;

    }

    .section-title h2 {

        font-size: 36px;

    }

    .content-grid {

        grid-template-columns:
            1fr;

        gap: 35px;

    }

    .content-image {

        order: -1;

    }

    .content-image img {

        height: 300px;

    }

    .content-text h2 {

        font-size: 34px;

    }

    .subsection {

        margin-top: 65px;

    }

    .people-grid {

        grid-template-columns:
            1fr;

    }

    .person-wide {

        grid-column:
            auto;

    }

    .small-cards {

        grid-template-columns:
            1fr;

    }

    .cards {

        grid-template-columns:
            1fr;

    }

    .card:last-child {

        grid-column:
            auto;

        max-width: none;

    }

    .download-grid {

        grid-template-columns:
            1fr;

    }

    .contact-grid {

        grid-template-columns:
            1fr;

    }

    .contact-box:last-child {

        grid-column:
            auto;

    }

    .join-section {

        padding:
            75px 0;

    }

    .join-content h2 {

        font-size: 44px;

    }

    .footer-top {

        grid-template-columns:
            1fr;

        gap: 30px;

        padding:
            45px 0 35px;

    }

    .footer-links {

        justify-content:
            flex-start;

    }

}


/* =========================================================
   KLEINE SMARTPHONES
   ========================================================= */

@media (max-width: 420px) {

    .hero {

        min-height: 500px;

    }

    .hero h1 {

        font-size: 36px;

        letter-spacing: -1px;

    }

    .hero p {

        font-size: 14px;

    }

    .button {

        width: 100%;

    }

    .join-buttons {

        flex-direction: column;

    }

    .download-card {

        align-items:
            flex-start;

    }

}
