
:root {
    --primary: #00a19a;
    --primary-dark: #008c86;
    --text: #333;
    --card-bg: #ffffff;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    /* Optional: Eine Hintergrundfarbe für den Body, um den Inhalt besser abzugrenzen */
    background-color: #f0f2f5; 
}

.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;   /* <-- DAS zentriert korrekt */
    width: 100%;
}

.image {
    z-index: -1;
    width: 100%;
    height: 300px;
    object-fit: cover; /* Stellt sicher, dass das Bild den Bereich ausfüllt, ohne verzerrt zu werden */
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

.Welcome {
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert den Inhalt des Welcome-Containers horizontal */
    justify-content: center;
    margin-top: 300px; /* Startet unterhalb des Bildes */
    /* Füge hier padding hinzu, falls der Text zu nah am oberen Rand ist */
    padding: 30px 20px 10px; 
    text-align: center;
    position: relative;
}

.Welcome::after {
    content: "";
    position: absolute;
    bottom: -10px;
    width: 400px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Datum kleiner machen */
.date {
    display: block;
    font-size: 0.6em;
    margin-top: 5px;
    color: #777;
}


h1 {
    color: #525252;
    margin-bottom: 10px; /* Abstand zwischen H1 und H3 */
    font-size: 2.2em
}

.imageUSC {
    position: absolute;
    top: 50px; /* Positionierung relativ zum body */
    left: 10px; /* Startpunkt in der Mitte */
    width: 200px;
    height: auto; /* Behält das Seitenverhältnis bei */
    z-index: 0; /* Über dem Hintergrundbild */
}

h3 {
    margin-top: 0;
    /* Diese Flexbox-Eigenschaften sind hier nicht nötig, da der Text inline ist
       und durch 'text-align: center' im body (oder einem Elternelement) zentriert wird.
       Wenn du den h3-Block selbst zentrieren willst, reicht 'margin: 0 auto;'
       oder 'align-items: center;' im Elternelement.
       Ich lasse es hier, da es keinen Schaden anrichtet. */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; /* Sicherstellen, dass der Text innerhalb des h3 zentriert ist */
}

/* --- Hier kommen die wichtigen Änderungen für die Input-Felder --- 
.input-fields-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    

    width: 100%; 
    max-width: 800px; 
    margin: 30px auto; 
    padding: 20px;
    background-color: #ffffff; 
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
*/

.input-fields-container {
    width: 100%;
    max-width: 520px; /* ✅ gleiche Größe wie Kacheln */
    margin: 60px auto;
    padding: 25px;

    background: white;
    border-radius: 18px; /* ✅ gleich wie Karten */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);

    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%; /* Der Container soll die volle Breite des input-fields-container nutzen */
    /* Optional: Max-Breite für die Input-Felder selbst, falls 100% zu breit ist */
    /*max-width: 750px; /* Passt zur Breite deines Inputs */
    /*margin: 0 auto 30px auto;*/
    margin-bottom: 20px;

}

.entryarea {
    position: relative;
    height: 60px; /* Feste Höhe für den Bereich */
    /* line-height: 60px; <--- Nicht mehr direkt auf entryarea anwenden, da input nicht mehr absolut ist */
    display: flex; /* Macht entryarea zu einem Flex-Container */
    align-items: center; /* Zentriert den Inhalt (input und labelline) vertikal */
    justify-content: center; /* Zentriert den Inhalt horizontal, falls input kleiner ist */
}

input {
    /* position: absolute; <--- DIES IST DAS HAUPTPROBLEM GEWESEN. ENTFERNT! */
    width: 100%; /* Nimmt die volle Breite des .container an */
    max-width: 750px; /* Begrenzt die maximale Breite des Inputs */
    outline: none;
    font-size: 2.2em;
    padding: 0 30px;
    height: 60px; /* Statt line-height, direkt die Höhe setzen */
    border-radius: 18px;
    border: 2px solid #a6acac;
    background-color: transparent;
    transition: 0.1s ease;
    z-index: 1; /* Wichtig, damit das Input über dem Label liegt */
    box-sizing: border-box; /* Stellt sicher, dass Padding und Border in die Breite einfließen */
}

input, select {
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

select {
    /* position: absolute; <--- DIES IST DAS HAUPTPROBLEM GEWESEN. ENTFERNT! */
    width: 100%; /* Nimmt die volle Breite des .container an */
    max-width: 750px; /* Begrenzt die maximale Breite des Inputs */
    outline: none;
    font-size: 2.2em;
    padding: 0 30px;
    height: 60px; /* Statt line-height, direkt die Höhe setzen */
    border-radius: 18px;
    border: 2px solid #a6acac;
    background-color: transparent;
    transition: 0.1s ease;
    z-index: 1; /* Wichtig, damit das Input über dem Label liegt */
    box-sizing: border-box; /* Stellt sicher, dass Padding und Border in die Breite einfließen */
}
select:focus,
select:valid {
    color: black;
    border: 4px solid rgb(116, 206, 116);
}

select:focus + .labelline,
select:valid + .labelline {
    color: rgb(116, 206, 116);
    height: 30px;
    line-height: 30px;
    transform: translate(-15px, -45px) scale(0.88); /* <--- Angepasst für neue Positionierung */
    padding: 0 5px; /* Kleines Padding, wenn das Label oben ist */
    background-color: white; /* Hintergrund, damit es den Input-Border nicht überdeckt */
    z-index: 3; /* Über dem Input, wenn es aktiv ist */
}


.labelline {
    position: absolute;
    font-size: 1.7em;
    color: #a6acac;
    /* padding: 0 25px; <--- Entfernt, da es die Positionierung stört */
    /* margin: 0 20px; <--- Entfernt */
    background-color: white;
    transition: 0.2s ease;
    left: 25px; /* Startposition des Labels */
    top: 50%; /* Vertikal zentriert */
    transform: translateY(-50%); /* Exakte vertikale Zentrierung */
    z-index: 2; /* Über dem Input, aber unter dem Fokus-Zustand */
    pointer-events: none; /* Wichtig, damit man das Inputfeld anklicken kann */
}
/*
input:focus{
    color: black;
    border: 4px solid rgb(116, 206, 116);
}
*/
input:focus, select:focus {
    border: 2px solid #00a19a;
}


input:focus + .labelline,
input:required:valid + .labelline {
    color: rgb(116, 206, 116);
    height: 30px;
    line-height: 30px;
    transform: translate(-15px, -45px) scale(0.88); /* <--- Angepasst für neue Positionierung */
    padding: 0 5px; /* Kleines Padding, wenn das Label oben ist */
    background-color: white; /* Hintergrund, damit es den Input-Border nicht überdeckt */
    z-index: 3; /* Über dem Input, wenn es aktiv ist */
}

input:required:valid {
    border-color: rgb(116, 206, 116);
}


.gender-selection {
    margin: 0 auto; /* Zentriert den gender-selection Block innerhalb seines Containers */
    padding: 10px 0; /* Etwas vertikaler Abstand */
    text-align: left; /* Textausrichtung für das Label und die Radio-Buttons */
}

.gender-label {
    font-size: 1.6em; /* Gleiche Größe wie deine labelline */
    color: #a6acac;
    
    display: block; /* Macht es zu einem Block-Element für margin-bottom */
    text-align: center; /* Zentriert den Text "Geschlecht" */
}

.radio-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

/* ✅ Standard Radio wieder aktiv */
.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ✅ Label sauber daneben */
.radio-group label {
    font-size: 1.4em;
    color: #525252;
    margin-right: 20px;
    cursor: pointer;
}

/* ✅ optional: etwas Abstand schöner */
.radio-group input[type="radio"] + label {
    margin-left: 5px;
}
/*
.btn{
    padding:  10px 60px;
    background-color: #f0f2f5;
    border-color: #525252;
    border: 1;
    outline: none;
    cursor: pointer;
    font-size: 22px;
    font-weight: 500;
    border-radius: 30px;
    width: 300px;
    display: block;
    margin: 20 auto;
    color: black;
    
}
.btn:hover {
    background-color: #6fd649; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    transition: all 0.3s ease;
}
*/
.btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border-radius: 18px;
    border: none;
    font-weight: bold;
    letter-spacing: 0.5px;
    background: var(--primary);
    color: white;
}

.btn:hover {
    background: var(--primary-dark);
}
.popup{
    width: 400px;
    background-color: #f0f2f5;
    border-radius: 18px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0.1);
    text-align: center;
    padding:0 30px 30px;
    color: #333;
    visibility: hidden;
    transition: transform 0.4s, top 0.4s;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.1);
    pointer-events:  none;
    opacity: 0;
    z-index: 1000;
}
.open-popup{
    visibility: visible;
    top: 50%;
    transform: translate(-50%,-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.popup img{
    width: 100px;
    margin-top: -50px;
    border-radius: 50%;
    box-shadow:  0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
}
.popup h2{
    font-size: 30px;
    font-weight: 500;
    margin:30px 0 10px;

}
.popup button{
    width: 100%;
    margin-top: 50px;
    padding: 10px 0;
    /*background: #6fd649;
    color:#ffffff;*/
    background-color: #f0f2f5;
    border-color: #525252;
    color: black;
    border: 1;
    outline: none;
    font-size: 18px;
    border-radius: 18px;
    cursor: pointer;
}
.popup button:hover{
    background-color: #6fd649; /* Eine hellere oder andere Farbe für den Hover-Effekt */
    transform: translateY(-2px); /* Optional: Lässt den Button leicht "schweben" */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Fügt einen leichten Schatten hinzu */
    transition: all 0.3s ease; /* Fügt einen sanften Übergang für alle Änderungen hinzu */
}

#body-overlay{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease; /* Sanfter Übergang */
    z-index: 999;
}
#body-overlay.body-overlay { /* Der Klassenname muss mit dem in JS übereinstimmen */
    opacity: 1; /* Vollständig sichtbar */
    pointer-events: auto; /* Interaktionen blockieren */
}
.button-container {
    display: flex; /* Macht diesen Container zu einem Flexbox-Container */
    justify-content: center; /* Zentriert den Inhalt (den Button) horizontal */
    align-items: center; /* Zentriert den Inhalt vertikal, falls der Container Höhe hat */
    width: 100%; /* Stellt sicher, dass er die volle Breite nutzt */
    margin-bottom: 30px; /* Abstand nach unten, wie bei anderen Containern */
}

.error-popup {
    background: #ff4d4d;
}

/* optional: leicht andere Farbe */
.error-popup h2 {
    color: #fff;
}


.event-info {
    max-width: 1100px;
    margin: 60px auto;
    padding: 10px;
    text-align: center;
}

.event-info h2 {
     font-size: 1.6em;
    margin-bottom: 30px;
}


.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}


.info-block {
    background: white;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 10px; /* ✅ saubere Abstände */
}


.info-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.info-block h3 {
    font-size: 1.15em;
    margin: 0;
    color: var(--primary);

    display: flex;
    align-items: center;
    gap: 8px;
}

.info-block p {
    margin: 3px 0;
    color: #333;
    line-height: 1.4;
}

.info-block strong {
    color: #000;
}

.info-block ul {
    padding-left: 18px;
    margin: 5px 0;
}

.info-block li {
    margin-bottom: 6px;
    line-height: 1.4;
}
.route-section {
    max-width: 1100px;
    margin: 60px auto;
    text-align: center;
}

/* Karte */
.route-card {
    margin: auto;
    max-width: 800px;

    background: white;
    border-radius: 18px;
    overflow: hidden;

    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    transition: transform 0.25s ease;
}

.route-card:hover {
    transform: translateY(-6px);
}

/* Bild Wrapper */
.route-image-wrapper {
    position: relative;
    overflow: hidden;
}

/* Bild */
.route-image {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

/* Zoom Effekt */
.route-card:hover .route-image {
    transform: scale(1.05);
}

/* Overlay */
.route-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0, 161, 154, 0.7);
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 1.4em;
    font-weight: bold;

    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Overlay sichtbar beim Hover */
.route-card:hover .route-overlay {
    opacity: 1;
}

/* Text unter Bild */
.route-info {
    padding: 20px;
}

.route-info h3 {
    margin: 0;
    color: #00a19a;
}

.route-info p {
    margin: 8px 0 0;
    color: #555;
}
/* Tabs */
.route-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.route-tab {
    padding: 10px 20px;
    border: none;
    border-radius: 18px;
    background: #ddd;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
    margin-bottom: 25px;
}

.route-tab.active {
    background: #00a19a;
    color: white;
}

.route-tab:hover {
    background: #008c86;
    color: white;
}

/* Inhalte */
.route-content {
    display: none;
    max-width: 800px;
    margin: auto;
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 0;
}

.route-section h2 {
    margin-bottom: 10px;
}

.route-content.active {
    display: block;
}

/* gleich wie vorher */
.route-image-wrapper {
    position: relative;
}

.route-image {
    width: 100%;
}

.route-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,161,154,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    opacity: 0;
    transition: 0.3s;
}

.route-content:hover .route-overlay {
    opacity: 1;
}

.route-info {
    padding: 20px;
}

button, .route-tab {
    transition: all 0.2s ease;
}


.gpx-download {
    margin-top: 25px;
    text-align: center;
}

.gpx-btn {
    display: inline-block;
    margin: 8px;
    padding: 10px 18px;

    background: #00a19a;
    color: white;
    text-decoration: none;

    border-radius: 18px;
    transition: 0.2s;
}

.gpx-btn:hover {
    background: #008c86;
}
.map-section {
    max-width: 1100px;
    margin: 60px auto;
    text-align: center;
}

#map {
    height: 500px;
    border-radius: 18px;
    margin-top: 20px;
}

/* Tabs */
.map-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.map-tab {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background: #ddd;
    cursor: pointer;
    font-weight: bold;
}

.map-tab.active {
    background: #00a19a;
    color: white;
}


.laufcup-title {
    margin-top: 15px;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.laufcup-title span {
    margin-right: 8px;
}
.wein {
    color: #d4d200 !important;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.5),   
}
.raif { color: #000000 !important; }
.lauf { color: #00a19a !important; }


.footer {
    background: #222;
    color: #eee;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 4px solid var(--primary);
    padding: 30px 0;
}


.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 50px; /* ✅ etwas mehr Innenabstand */

    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 20px;
}

/* linke Seite */

.footer-left {
    margin-left: 5px; /* kleiner Feinschliff */
}

.footer-left h3 {
    margin: 0;
    color: var(--primary);
}

.footer-left p {
    margin: 5px 0;
    color: #ccc;
}


.footer-center {
    text-align: center;
}

/* RECHTS */

.footer-right {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    padding-right: 5px; /* ✅ Abstand vom Rand */
}


.footer-right a {
    font-size: 1.5em;
    padding: 6px;
    border-radius: 50%;
    transition: 0.2s;
}

.footer-right a:hover {
    background: rgba(255,255,255,0.1);
}


.footer-mail a {
     margin-bottom: 8px;
     color:#eee;
}

.footer-mail a:hover {
    color: var(--primary);
}

/* Navigation */
.footer-links {  
 display: flex;
    justify-content: center;
    gap: 15px;

}

.footer-links a {
    color: #eee;
    text-decoration: none;
    font-size: 0.9em;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    font-size: 1.4em;
    text-decoration: none;
    transition: transform 0.2s, color 0.2s;
}

.footer-social a:hover {
    transform: scale(1.2);
    color: var(--primary);
}

/* unterer Bereich */
.footer-bottom {
    text-align: center;
    padding: 15px 10px;
    margin-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.8em;
    color: #aaa;
}
.footer i {
    margin-right: 6px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-social a {
    color: #eee;
    font-size: 1.4em;
}

.footer-social a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {

}


@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr; /* ✅ alles untereinander */
        gap: 15px;
    }
}


@media (max-width: 768px) {
    .info-block {
        padding: 18px;
    }
}
@media (max-width: 768px) {
    .input-fields-container {
        padding: 15px;
        margin: 30px 15px;
        max-width: 100%;
    }

    input, select {
        font-size: 1em; /* kleiner */
        padding: 10px;
    }
}
@media (max-width: 768px) {
    h1 {
        font-size: 1.5em;
        text-align: center;
    }

    h2 {
        font-size: 1.3em;
    }
}
@media (max-width: 768px) {
    .route-content {
        border-radius: 12px;
    }

    .route-image {
        height: auto;
    }
}
@media (max-width: 768px) {
    .route-tabs {
        flex-wrap: wrap; /* ✅ umbrechen */
        gap: 8px;
    }

    .route-tab {
        flex: 1;
        padding: 8px;
        font-size: 0.9em;
    }
}
@media (max-width: 768px) {
    .image {
        height: 200px; /* kleiner */
    }

    .Welcome {
        margin-top: 200px;
    }

    .imageUSC {
        width: 120px;
    }
}
@media (max-width: 768px) {
    .event-info,
    .route-section {
        padding: 0 15px;
    }
}
body {
    line-height: 1.5;
}
@media (max-width: 768px) {
    .btn {
        padding: 14px;
        font-size: 1.1em;
    }
}


 
@media (max-width: 768px) {
    .footer-content {
        padding: 0 20px;
    }

    .footer-right {
        justify-content: center;
        
    }

    .footer-links {
        flex-wrap: wrap;
    }
}


/*Datenschutzseite*/
/* Nur für Datenschutz-Seite */

.page-wrapper-kontakt h1 {
    text-align: center;
    margin-top: 40px;
}

.page-wrapper-kontakt h2 {
    color: var(--primary);
    margin-top: 30px;
}

.page-wrapper-kontakt p,
.page-wrapper-kontakt li {
    line-height: 1.6;
}

/* Legal Pages */
.legal-page .page-wrapper-kontakt {
    max-width: 800px;
    margin: 0 auto;
}

/* Kontaktbox */
.contact-box {
    background: white;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin: 30px auto;
    max-width: 600px;
    text-align: center;
}

.contact-box a {
    color: var(--primary);
    text-decoration: none;
}

/* Formular */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #ddd;
    font-size: 1em;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
