body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}


header {
    height: 45vh;
    position: relative;
}


ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

li {
    margin: 5px 5px 5px 15px;
    padding: 0;
}





main {
    --red: #a22c29;
    --red-dark: #7f1f1d;
    --ink: #1a1a1a;
    --muted: #5f6368;
    --line: #e4e4e4;

    background-color: #fff;
    color: var(--ink);
    padding: clamp(20px, 4vw, 56px) clamp(16px, 4vw, 48px) clamp(48px, 7vw, 96px);
}

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 6vw, 72px);
}

/* ---------- Überschriften ---------- */

.intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.intro::before {
    content: "";
    width: 56px;
    height: 6px;
    background: var(--red);
}

main h1 {
    margin: 0;
    font-weight: 800;
    font-size: clamp(24px, 7vw, 38px);
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-wrap: balance;
}

.intro p {
    margin: 0;
    max-width: 52ch;
    font-size: 19px;
    line-height: 1.5;
    color: var(--muted);
}

main h2 {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0 0 0;
    border: 0;
    font-weight: 700;
    font-size: clamp(26px, 3.4vw, 36px);
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

main h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 28px;
    align-items: start;
}

.Portraits {
    width: 150px;
    height: 150px;

    object-fit: cover;

    border-radius: 12px;

    flex-shrink: 0;

    border: 3px solid rgba(162, 44, 41, 0.15);
}

.fahrzeug-image {
    width: 40vw;
    height: auto;
}

.fahrzeug-item {
    margin: 16px 0;
}

.fahrzeug-item img,
.fahrzeug-item p {
    cursor: pointer;
}

.fahrzeug-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.2s ease;
    padding: 0 10px;
    background: #f7f7f7;
    border-left: 3px solid #a22c29;
    margin-top: 8px;
}

.fahrzeug-details.open {
    max-height: 400px;
    padding: 8px 10px;
}

.content_box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%
}

.select {
    background-color: brown;
    display: flex;
    flex-direction: row;
    margin: 0px;
    padding: 2px;
}

.select:hover {
    background-color: rgb(185, 48, 48);

}

.select img {
    width: 5%;
    align-self: flex-start;
}

.dropdown1 {
    display: block;
    background-color: whitesmoke;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    z-index: 1;
    margin-top: 0px;
    text-align: center;
}

.header-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}


.navbar {
    background-color: #333;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    float: left;
}

.navbar a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.navbar a:hover {
    background-color: #a22c29;
    color: black;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 100%;
    gap: 20px;
    margin: 10px 0;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: #a22c29;
}

h2 {
    border-bottom: 2px solid #a22c29;
    padding-bottom: 4px;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.2;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 8px;
}

.social-links img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.social-links a:hover img {
    transform: scale(1.05);
}

.galleryContainer {
    background: transparent;
    text-align: left;
    height: fit-content;
    margin: 0;

}

.gallery {
    display: block;
    color: #333;
    text-align: center;
    position: relative;
    margin: auto;
    width: 80vw;
    margin-top: 0;
}


.slide {
    overflow: hidden;
    display: none;
}

.slide img {
    width: auto;
    height: 40vh;
    vertical-align: middle;
    margin: 20px;
}

.back,
.forward {
    cursor: pointer;
    position: absolute;
    top: 40%;
    width: auto;
    padding: 16px;
    margin-top: 22px;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
}

.back {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.forward {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.back:hover,
.forward:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.basic-div-container {
    width: 100%;
}

.calender-container {
    width: 100%;
    justify-content: center;
    align-self: center;
    margin: 20px 0;
}

.calender {
    border: 0;
    width: 90vw;
    height: 600px;
}


.mitglied-grid-item {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 18px;
    background: linear-gradient(180deg,
            #ffffff 0%,
            #fafafa 100%);

    border-radius: 16px;
    border: 1px solid #e8e8e8;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.05),
        0 8px 24px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    overflow: hidden;
    position: relative;
    align-items: flex-start;

}

.mitglied-grid-item::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 5px;

    background: #a22c29;
}

.mitglied-grid-item:hover {
    transform: translateY(-4px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 14px 38px rgba(0, 0, 0, 0.1);
}

.mitglied-grid-item p {
    margin: 4px 0;
}

.mitglied-grid-item b {
    display: block;
    font-size: 1.05rem;
    color: #111;
}

.mitglied-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.skills {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.skills span {
    display: inline-flex;
    align-items: center;

    flex: 0 0 auto;
    width: auto;

    padding: 5px 10px;

    border-radius: 999px;

    background: rgba(162, 44, 41, 0.08);
    border: 1px solid var(--red-dark);

    color: var(--muted);

    font-size: 0.8rem;
    font-weight: 600;

    white-space: nowrap;
}

.mitglied-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mitglied-header h3 {
    margin: 0;

    font-size: 1.2rem;
    font-weight: 700;

    color: #111;
    line-height: 1.2;
}

.rolle {
    margin: 0;

    color: var(--red);

    font-size: 0.85rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile & Tablet Responsiveness */


.impressum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;

    margin: 32px 0 48px;
}

.impressum-card {
    background: linear-gradient(180deg,
            #ffffff 0%,
            #fafafa 100%);

    border-radius: 16px;

    border-left: 5px solid var(--red);

    padding: 24px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, .05),
        0 8px 24px rgba(0, 0, 0, .04);
}

.impressum-card h2 {
    margin-top: 0;
    margin-bottom: 20px;

    color: var(--red);

    border: none;
    text-transform: none;
    font-size: 1.25rem;
}

.impressum-card p {
    margin: 6px 0;
}

.impressum-card strong {
    color: var(--muted);
    font-size: 0.9rem;
}

.impressum-card:last-child {
    margin-bottom: 0;
}

.impressum-h2 {
    margin-top: 15px;
    font-size: 18px;
}

.notruf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.notruf-card {
    text-align: center;

    padding: 24px;

    border-radius: 16px;

    background: white;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, .05),
        0 8px 24px rgba(0, 0, 0, .04);

    border-left: 5px solid var(--red);
}

.nummer {
    display: block;

    font-size: 2.5rem;
    font-weight: 800;

    color: var(--red);
}

.dienst {
    color: var(--muted);
}

.alarmierung {
    display: grid;
    gap: 16px;

    margin: 24px 0;
}

.alarmierung-item {
    padding: 20px;

    background: #fafafa;

    border-radius: 12px;

    border-left: 4px solid var(--red);
}

.alarmierung-item h3 {
    margin-top: 0;
    color: var(--red);
}

.info-box {
    margin: 24px 0;

    padding: 20px;

    border-radius: 12px;

    background: rgba(162, 44, 41, .06);

    border-left: 4px solid var(--red);
}

.download-list {
    display: grid;
    gap: 12px;
}

.download-card {
    display: block;

    padding: 18px 20px;

    text-decoration: none;

    background: white;

    border-radius: 12px;

    border: 1px solid #e4e4e4;

    color: var(--ink);

    transition: .2s;
}

.download-card:hover {
    transform: translateX(4px);

    border-color: var(--red);

    color: var(--red);
}

.credits {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-top: 20px;
}

.credit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 16px;

    background: #fafafa;

    border: 1px solid var(--line);
    border-radius: 12px;
}

.credit-item span {
    font-weight: 600;
}

.credit-item a {
    text-decoration: none;

    color: var(--red);

    font-weight: 600;

    padding: 6px 12px;

    border-radius: 999px;

    background: rgba(162, 44, 41, .08);

    border: 1px solid rgba(162, 44, 41, .15);
}
.impressum-heading {
    padding-top: 5px;
}

/* Small phones (max 480px) */
@media only screen and (max-width: 480px) {
    header {
        height: 15vh;
        width: 100%;
    }

    .navbar {
        width: 100%;
    }

    .navbar li {
        float: none;
        width: 100%;
    }

    .navbar a {
        padding: 10px 12px;
        font-size: 14px;
    }

    .select {
        flex-direction: column;
    }

    .select img {
        width: 10%;
        margin-bottom: 8px;
    }

    .content_box {
        padding: 10px;
    }

    main {
        padding: 5px;
    }

    .gallery {
        width: 80vw;
    }

    .slide img {
        height: 25vh;
        margin: 10px;
    }

    .back,
    .forward {
        padding: 10px;
        font-size: 14px;
        top: 35%;
    }

    .grid-container {
        display: grid;

        grid-template-columns:
            repeat(auto-fit, minmax(380px, 1fr));

        gap: 24px;
    }

    .grid-item {
        width: 80%;
    }

    .komando-image {
        width: 80%;
    }

    h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .social-links img {
        width: 24px;
        height: 24px;
    }

    .Portraits {
        width: 96px;
        height: 96px;
    }

    .mitglied-grid-item {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
}

/* Tablets and larger phones (481px - 768px) */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    header {
        height: 25vh;
    }

    .navbar a {
        padding: 12px 14px;
    }

    .gallery {
        width: 90vw;
    }

    .slide img {
        height: 35vh;
        margin: 15px;
    }

    .grid-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 18px;
        padding: 20px;
    }

    .grid-item {
        padding: 18px;
    }

    main {
        padding: 15px;
    }

}

/* Medium screens (769px - 1024px) */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    header {
        height: 45vh;
    }

    .gallery {
        width: 85vw;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    main {
        padding: 15px;
    }

}

/* Large screens (1025px+) */
@media only screen and (min-width: 1025px) {
    header {
        height: 45vh;
    }

    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .gallery {
        width: 80vw;
    }

    main {
        padding: 15px;
    }

}