/* Allgemein */
html{
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
    overflow-x: clip;
    max-width: 100%;
}


body{
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    margin:0;
    padding:0;
    font-family: Arial, Helvetica, sans-serif;
    color: rgb(49, 49, 49);
    line-height: 1.5;
    overflow-x: clip;
    max-width: 100%;
} 
.header {
    position:sticky;
    top:0;
    background-color: rgb(0, 0, 0);
    display: grid;
    grid-template-columns: auto auto auto;
    transition: background-color 0.75s ease;
    z-index: 1000;
    padding:1%;
    width: 100%;
}
.header.scrolled {
    background-color: rgba(0, 0, 0, 0.897);
} 
.navlogo {
    height: 80px;
    width: 80px;
    padding: 5px;
}
.header .logo {
    justify-self: center;
}
.header .link {
    width: 100%;
    height: min-content;
    align-self: center;
    justify-self: right;
}
.header .link a {
    margin-left: 3%;
    margin-right: 3%;
    padding-bottom: 2px;
}
.header .link a:link {
    color: antiquewhite;
    background-color: transparent;
    text-decoration: none;
}
.header .link a:visited {
    color: antiquewhite;
    text-decoration: none;
}
.header .link a:hover{
    color: rgb(165, 164, 164);
    border-bottom: 1px rgb(165, 164, 164);
    border-radius: 0%;
    border-bottom-style: solid;
}
.grid {
    display: grid;
}
.überschrift {
    background-color: rgb(255,255,255);
    color: rgb(0, 0, 0);
    padding: 5px;
    margin: 30px;
    padding-left: 20px;
    place-self: center;
}
.highlight {
    border-bottom: 1.5px antiquewhite;
    border-bottom-style: solid;
    border-radius: 0%;
}
.footer a:link {
    color: rgb(156, 156, 156);
    background-color: transparent;
    text-decoration: none;
}
.footer a:visited {
    color: rgb(156, 156, 156);
    text-decoration: none;
}
.footer a:hover{
    color: rgb(245, 245, 245);
}
.imp {
    float: right;
    padding-right: 5px;
}
.footer {
    background-color: black;
    color: antiquewhite;
    bottom: 0;
    position: relative;
    min-height: 30px;
    align-content: center;
    padding: 0.5%;
    color: rgb(156, 156, 156);
}
.Vorstand {
    width: 300px;
    margin: 2px;
    justify-self: center;
}
.foooben {
    padding-top: 15px;
    padding-left: 3px;
    padding-right: 3px;
    padding-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.or {
    width: fit-content;
    justify-self: center;
    display: grid;
}
.Vorfoo {
    border-bottom: 1px rgb(156, 156, 156) solid;
    border-radius: 0;
    margin-left: 3px;
    margin-right: 3px;
    margin-top: 3px;
    padding-bottom: 3px;
}
.re {
    float: right;
    padding-right: 5px;
    padding-left: 15px;
    width: fit-content;
    
    
}
.fooU {
    padding-top: 15px;
    padding-left: 3px;
    padding-right: 3px;
    font-size: small;
}
.or, .kogri, .Vorstand {
    padding-left: 5px;
    padding-right: 5px;
}




.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 200px;
    overflow: hidden;
    background-color: rgb(245, 245, 245);
    border: 1px solid rgb(245, 245, 245);
    border-radius: 10px;
    }
.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
/* Platzhalter-Overlay */
.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
    /* Optional: Lokales Vorschaubild hinterlegen */
    background: rgb(0, 0, 0);
    z-index: 10;
}
.load-map-btn {
    background-color: rgb(0, 0, 0);
    color: rgb(156, 156, 156);
    border: none;
    font-weight: 600;
    border-bottom: 1px rgb(245, 245, 245) solid;
    transition: background-color 0.2s;
}
.load-map-btn:hover {
    color: rgb(255, 255, 255);
}



/* Index */
.indheader {
    position:fixed;
    top:0;
    background-color: transparent;
    display: grid;
    grid-template-columns: auto auto auto;
    transition: background-color 0.75s ease;
    z-index: 1000;
    padding:1%;
    width: 100%;
}
.indheader.scrolled {
    background-color: rgba(0, 0, 0, 0.897);
}
.indheader .logo {
    justify-self: center;
}
.indheader .link {
    width: 100%;
    height: min-content;
    align-self: center;
    justify-self: right;
}
.indheader .link a {
    margin-left: 3%;
    margin-right: 3%;
    padding-bottom: 2px;
}
.indheader .link a:link {
    color: antiquewhite;
    background-color: transparent;
    text-decoration: none;
}
.indheader .link a:visited {
    color: antiquewhite;
    text-decoration: none;
}
.indheader .link a:hover{
    color: rgb(165, 164, 164);
    border-bottom: 1px rgb(165, 164, 164);
    border-radius: 0%;
    border-bottom-style: solid;
}
.Einleitung {
    background-image: url(P1080031.JPG);
    color: antiquewhite;
    padding: 5px;
    margin: 0;
    padding-left: 20px;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.eintit {
    align-self: left;

}
#sc {
    scroll-margin-top: 150px;
}
.weind{
    position: absolute;
    bottom: 24px;
    color: inherit;
    text-decoration: none;
    align-self: center;
    margin-top: auto;
    margin-bottom: 40px;
    padding: 10px;
}
.weind:hover {
    color: rgb(156, 156, 156);
}
.index {
    padding: 0;
}
.zero {
    padding: 0;
    margin: 0;
}
.index a{
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.index a:hover {
    color: rgb(165, 164, 164);
}
.indbut {
    border: rgb(0, 0, 0) 1px solid;
    border-radius: 10px;
    padding: 10px;
    margin: 5px;
    color: inherit;
    text-decoration: none;
    background-color: rgb(0, 0, 0);
}
.indbut:hover {
    color: rgb(156, 156, 156);
}
.indvor {
    border: rgb(0, 0, 0) 1px solid;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: fit-content;
    background-color: rgb(77, 77, 77);
    color: antiquewhite;
}
.indvor:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}
.indvor li {
    font-weight: 700;
}
.indneb {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 50px;
    padding: 2.5%
}
.spalli {
    grid-column: 1;
}
.spalre {
    grid-column: 2;
}
#FaQ {
    scroll-margin-top: 150px;
}
.impressionen {
    color: inherit;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: start;
    padding: 5px;
    margin-bottom: 10px;
    
}
.impcent {
    place-self: center;
}
.imgr {
    display: grid;
    background-color: rgb(77, 77, 77);
    color: antiquewhite;
    margin-bottom: 50px;
}
.impimg {
    max-width: 95%;
    height: auto;
    padding: 2%;
    border-radius: 15px;
}
.indart {
    padding: 10px;
}



/* Gruppenstunde von Tibor macht bei PC 2 Spalten */
.imggru {
    width: 125px;
    height: 125px;
}

.grustu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 5%;
    align-items: start; /* Beide Spalten starten oben auf gleicher Höhe */
}

.stufe {
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert Bild und Blöcke horizontal */
    text-align: center;  /* Zentriert auch umbrochene Texte sauber */
}

.stufe h2 {
    margin-bottom: 5px;
}

.stufe h3 {
    margin-top: 20px;
    margin-bottom: 0;
}

.stufe p {
    margin-top: 5px;
}

.dat {
    text-align: center;
    margin-top: 0;
    padding-top: 2px;
}

.grudick {
    font-weight: 600;
}

.wökopf {
    margin-top: 40px;
    width: fit-content;
}

/* Auf kleinen Bildschirmen wieder 1 Spalte */
@media (max-width: 768px) {
    .grustu {
        grid-template-columns: 1fr;
    }
}


/* Blog */
.reset {
    box-sizing: border-box;
    margin: 0;
    display: grid;
    padding: 0;
}
.reset a {
    color: inherit;
    text-decoration: none;
}
.reset a:hover {
    color: rgb(155, 155, 155);
}
.WTinhalt {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 Teile Artikel, 1 Teil Sidebar */
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
    margin-left: 2.5%; 
    margin-right: 2.5%;
    color: antiquewhite;
}
.WTinhalt2 {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 Teile Artikel, 1 Teil Sidebar */
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
    margin-left: 2.5%; 
    margin-right: 2.5%;
    color: inherit;
}
.linkespalte {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.beit {
    place-self: center;
    font-weight: 700;
    color: rgb(0, 0, 0);
}
.art {
    background-color: rgb(71, 71, 71);
    border: 1px solid rgb(0, 0, 0);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}
.art:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}
.artimg {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    background-color: burlywood;
}
.artimg2 {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    background-color: burlywood;
}
.artinh {
    padding: 25px;
}
.artmeta {
    font-size: small;
    margin-bottom: 10px;
}
.artmeta .artcat {
    line-height: 1.3;
}
.arttitel {
    font-size: larger;
    margin-bottom: 12px;
    line-height: 1.3;
}
.artaus {
    margin-bottom: 20px;
}
.artlink {
    font-weight: 600;
    display: inline-block;
}
.sidebar {
    display: flex;
    flex-direction: column;
    background-color: rgb(71, 71, 71);
    border: 1px solid rgb(0, 0, 0);
    border-radius: 10px;
    gap: 30px;
    color: antiquewhite;
}
.sidewid {
    padding: 25px;
}
.widtit {
    margin-bottom: 15px;
    padding-bottom: 10 px;
    border-bottom: 2px solid rgb(0, 0, 0);
}
.altlist {
    list-style: none;
}
.altlist a {
    border-bottom: 1px solid rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}
.altlist a:last-child {
    border-bottom: none;
}
.archlis {
    display: flex;
    flex-direction: column;
    background-color: rgb(71, 71, 71);
    border: 1px solid rgb(0, 0, 0);
    border-radius: 10px;
    gap: 10px;
    padding: 2.5%;
}



/* Vorstellung */
.überuns a:link,.überuns a:visited {
    color: rgb(0, 0, 0);
    text-decoration:underline;
}
.überuns a:hover {
    color: rgb(117, 117, 117);
    text-decoration: none;
}
.überuns {
    font-size: large;
    margin: 2.5%;
}

/* Förderverein */
.förderverein {
    font-size: large;
    margin: 2.5%;
}
.spacer {
    padding:2%
}
.spacerklein {
    padding:0.5%
}
.dick {
    font-weight: bold;
    width: fit-content;
    margin-right: 4px;
}

/* Kontakt */
.formbord {
    margin: 2.5%;
    border: 1px black solid;
    border-radius: 10px;
    background-color: rgb(71, 71, 71);
    padding: 2%;
    color: antiquewhite;
}
.Formular .Konein > div:first-child {
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}
.Formular .pflicht {
    color: rgb(255, 0, 92);
    font-size: large;
    font-weight: 400;
}
.Formular input[type="text"],
.Formular input[type="email"],
.Formular select,
.Formular textarea {
    width: 100%;
    padding: 15px;
    border: 1.5px solid rgb(245, 245, 245);
    border-radius: 6px;
    font-family: inherit;
    background-color: rgb(245, 245, 245);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.Formular input[type="text"]:focus,
.Formular input[type="email"]:focus,
.Formular select:focus,
.Formular textarea:focus {
    outline: none;
    border-color: rgb(10, 10, 10);
    background-color: rgb(245, 245, 245);
    box-shadow: 0 0 0 3px rgba(43, 103, 73, 0.15);
}
.Formular textarea#KonNachricht {
    min-height: 140px;
    resize: vertical;
}
.Formular input[type="submit"] {
    background-color: rgb(0, 0, 0);
    color: rgb(255,255,255);
    border: none;
    padding: 20px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    width: 100%;
    letter-spacing: 0.5px;
    margin-top: 10px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.Formular input[type="submit"]:hover {
    background-color: rgb(122, 122, 122);
}

.Formular input[type="submit"]:active {
    transform: scale(0.99);
}
@media (max-width: 700px) {
    .Formular {
        margin: 0 1rem 3rem 1rem;
        padding: 1.5rem;
    }
}


/* Impressum */
.padimp {
    padding: 2.5%;
}
.impressum {
    display: grid;
}






/* Ergänzung Responsive Design Tibor

/* =========================================
   RESPONSIVE OPTIMIERUNG & FIXES
   ========================================= */

/* Verhindert, dass Padding die 100%-Breite sprengt */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Bilder und Karten passen sich immer an den Bildschirm an */
img {
    max-width: 100%;
    height: auto;
}

.Vorstand {
    width: 100%;
    max-width: 300px;
}

/* Kleiner Typo-Fix */
.widtit {
    padding-bottom: 10px;
}

/* -----------------------------------------
   TABLET & KLEINE LAPTOPS (bis 1024px)
   ----------------------------------------- */
@media (max-width: 1024px) {
    /* Impressionen von 4 auf 2 Spalten reduzieren */
    .impressionen {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    /* Blog-Bilder etwas flacher auf mittleren Screens */
    .artimg2 {
        height: 400px;
    }
}

/* -----------------------------------------
   SMARTPHONES & HOCHKANT-TABLETS (bis 768px)
   ----------------------------------------- */
@media (max-width: 768px) {
    
    /* 1. Header & Navigation stapeln */
    .header, .indheader {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 10px;
        gap: 10px;
    }

    .navlogo {
        height: 60px;
        width: 60px;
    }

    .header .link, .indheader .link {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .header .link a, .indheader .link a {
        margin: 0 5px;
        font-size: 0.95rem;
    }

    /* 2. Startseite (Hero & 2-Spalten-Texte) */
    .Einleitung {
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
    }

    .eintit {
        align-self: center;
    }

    .indneb {
        grid-template-columns: 1fr; /* Alles untereinander */
        gap: 20px;
        padding: 15px;
    }

    .spalli, .spalre {
        grid-column: 1; /* Hebt die feste Spaltenzuweisung auf */
    }

    /* 3. Blog & Artikel (Sidebar wandert nach unten) */
    .WTinhalt, .WTinhalt2 {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .artimg {
        height: 200px;
    }

    .artimg2 {
        height: 260px;
    }

    /* 4. Footer (3 Spalten untereinander) */
    .foooben {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
        padding: 20px 15px;
    }

    .re, .imp {
        float: none;
        display: block;
        margin: 10px auto;
        padding: 0;
        text-align: center;
    }

    .fooU {
        text-align: center;
        padding-bottom: 15px;
    }

    /* 5. Überschriften & Formulare */
    .überschrift {
        margin: 15px;
        padding-left: 10px;
        font-size: 1.4rem;
        text-align: center;
    }

    .formbord {
        margin: 15px;
        padding: 15px;
    }
}

/* -----------------------------------------
   SEHR KLEINE SMARTPHONES (bis 480px)
   ----------------------------------------- */
@media (max-width: 480px) {
    /* Impressionen auf 1 Spalte */
    .impressionen {
        grid-template-columns: 1fr;
    }

    .überuns, .förderverein {
        font-size: medium;
        margin: 15px;
    }
}