﻿/* ==============================
   GLOBAL STYLES
   ============================== */

html, body {
    font-family: "Segoe UI", Tahoma, Geneva, sans-serif !important;
    color: #273a4c;
    /*background-image: url('Images/background_LMS.jpg');*/
    background-color: #f6f6f6;
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

/* H-Tags wurden hier entfernt, um das Styling in dedizierten Klassen zu steuern */
*, input, select, textarea, button, label, span, p {
    font-family: inherit !important;
    color: inherit !important;
    box-sizing: border-box;
}

/* ==============================
   CUSTOM HEADINGS
   ============================== */

/* Ersetzt H1 (Kontakt- und Supportformular) */
.page-title {
    /* Standard-H1-Größe und -Stil */
    font-size: 2em;
    font-weight: bold;
    display: block;
    margin: 0.67em 0;
}

/* Ersetzt H4 (Absenderinformation, Anliegen, etc.) */
.section-heading {
    /* Standard-H4-Größe und -Stil */
    font-size: 1.17em;
    font-weight: bold;
    display: block;
    margin: 1.12em 0;
}

/* NEUE KLASSE: Für Klammer-Texte in Überschriften */
.text-hint {
    font-weight: normal; /* Nicht fett */
    font-size: 0.8em; /* Kleiner als der Haupttext der Überschrift */
    color: inherit; /* Behält die Farbe der Überschrift bei */
}

/* Ersetzt H3 (Modal-Titel) */
.modal-title {
    /* Standard-H3-Größe und -Stil */
    font-size: 1.5em;
    font-weight: bold;
    display: block;
    margin: 0.83em 0;
}


/* ==============================
   NAVIGATION
   ============================== */

.custom-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f6f6f6 !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
}

.logo-img {
    width: auto;
    height: 90px;
    display: inline-block;
    vertical-align: top;
    content: url('Images/Logo_EKK.png');
    object-fit: contain;
}

/* ==============================
   CONTENT AREA
   ============================== */

.content {
    margin-top: 80px; /* Platz für festen Header */
    padding: 20px;
}

/* ==============================
   FOOTER
   ============================== */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f6f6f6;
    text-align: center;
    padding: 8px 0;
    border-top: 0px solid #ccc;
    z-index: 1000;
}

.footer-text {
    color: #0a2864;
    font-size: 14px;
    margin: 4px 0;
    padding-left: 15px;
}

    .footer-text a {
        color: #0a2864;
        text-decoration: none;
    }

        .footer-text a.impressum-link {
            color: #9F2821;
        }

/* ==============================
   TREEVIEW – LINKS AUSRICHTUNG
   ============================== */

#tvAuswahlBaum {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    align-items: start;
    justify-items: start;
    text-align: left;
    width: 100%;
    max-width: 600px;
}

    #tvAuswahlBaum table {
        border-collapse: collapse;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    #tvAuswahlBaum tr,
    #tvAuswahlBaum td {
        text-align: left !important;
        vertical-align: middle !important;
        padding: 4px 4px; /* Vertikaler Abstand (oben/unten) von 2px auf 4px erhöht */
    }

    #tvAuswahlBaum input[type="checkbox"] {
        margin: 0 6px 0 0;
        vertical-align: middle;
        width: 24px !important;
        height: 24px !important;
        border: 1px solid #009bc7;
        border-radius: 10px;
    }

    #tvAuswahlBaum span {
        display: inline-block;
        vertical-align: middle;
        text-align: left !important;
    }

/* ==============================
   DATENSCHUTZ-CHECKBOX
   ============================== */

.checkbox-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    margin-top: 10px;
}

    .checkbox-line input[type="checkbox"] {
        margin-right: 8px;
    }

/* ==============================
   BUTTONS
   ============================== */

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.button-send {
    height: 60px;
    color: #ffffff !important;
    background-color: #273a4c;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    .button-send:hover {
        background-color: #b53027;
    }

/* ==============================
   FORM ELEMENTS
   ============================== */

.DateiUpload,
.TextEingaben {
    padding: 10px;
    width: 100%;
    font-size: 17px;
    border: 1px solid #009bc7;
    border-radius: 10px;
    background-color: #F6F6F6;
}

/* Angepasst: Custom Styling für Dropdown-Pfeil */
.AuswahlListen {
    padding: 10px 30px 10px 10px; /* Rechts-Padding erhöht, damit Text nicht über den Pfeil läuft */
    width: 100%;
    font-size: 17px;
    border: 1px solid #009bc7;
    border-radius: 10px;
    background-color: #F6F6F6;
    /* 1. Nativen Pfeil ausblenden */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* 2. Benutzerdefinierten, ausgefüllten SVG-Pfeil als Hintergrund einfügen (Farbe: #d60d46) */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23d60d46'><path d='M5 6l5 5 5-5z'/></svg>");
    /* 3. Pfeil positionieren und Größe festlegen */
    background-repeat: no-repeat;
    background-position: right 10px center; /* Position: 10px vom rechten Rand, vertikal zentriert */
    background-size: 12px; /* Größe des Pfeils */
}

/* ==============================
   FORM CONTAINER
   ============================== */

#regForm {
    background-color: #F6F6F6;
    margin: 100px auto;
    padding: 40px;
    width: 70%;
    min-width: 300px;
    max-width: 900px;
    border-radius: 8px;
}

/* ==============================
   MODAL (HINWEISBOXEN)
   ============================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-close {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #273a4c;
    color: white !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .modal-close:hover {
        background-color: #b53027;
    }

/* ==============================
   MISC
   ============================== */

.hint-section {
    margin-top: 30px;
}

.datenschutz-link {
    color: #0a2864 !important;
    text-decoration: underline;
}

p, label {
    text-align: left;
}

.error-message {
    color: red !important;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.info-message {
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}
/* Wird im ASPX für Pflichtfeldhinweis verwendet */
h1pflicht {
    display: inline;
    font-weight: normal;
}


/* ==============================
   RESPONSIVE OPTIMIERUNG
   ============================== */
/* Tablet */
@media (max-width: 992px) {
    #regForm {
        width: 80%;
        margin: 80px auto;
        padding: 30px;
    }

    #tvAuswahlBaum {
        grid-template-columns: 1fr 1fr;
    }
}

/* Smartphone */
@media (max-width: 600px) {
    /* Schriftgrößen-Anpassung für bessere mobile Lesbarkeit und Platzersparnis */
    .page-title {
        font-size: 1.6em; /* H1 reduziert */
    }

    .section-heading {
        font-size: 1em; /* H4 reduziert */
        margin: 0.8em 0;
    }

    .DateiUpload,
    .TextEingaben {
        font-size: 12px; /* Von 17px auf 15px reduziert */
    }

    .AuswahlListen {
        font-size: 12px; /* Von 17px auf 15px reduziert */
        padding: 8px 30px 8px 8px; /* Padding angepasst */
        background-position: right 8px center; /* Pfeilposition an neues Padding angepasst */
    }


    /* Bestehende mobile Styles */
    #regForm {
        width: 90%;
        padding: 20px;
        margin: 70px auto;
    }

    #tvAuswahlBaum {
        grid-template-columns: 1fr;
    }

    .button-container {
        justify-content: center;
    }

    .button-send {
        width: 100%;
        font-size: 16px;
    }

    .footer-text {
        font-size: 12px;
    }

    .logo-img {
        height: 70px;
    }
}
