/* ====================== */
/*  SCHRIFTART            */
/* ====================== */

@font-face {
    font-family: 'Inter_24pt-ExtraLight';
    src: url('fonts/Inter_24pt-ExtraLight.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* ====================== */
/*  GRUNDLAYOUT           */
/* ====================== */

html {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000000;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Inter_24pt-ExtraLight', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 1000ms ease;
    will-change: opacity;
}

body.page-ready {
    opacity: 1;
}

body.page-leave {
    opacity: 0;
}


/* ====================== */
/*  HINTERGRUNDVIDEO      */
/* ====================== */

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}


/* ====================== */
/*  HEADER                */
/* ====================== */

header {
    text-align: center;
    padding: 30px 10px;
    background: rgba(0, 0, 0, 0);
}

.logo {
    max-width: 500px;
    width: 60%;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* ====================== */
/*  HILFSKLASSEN          */
/* ====================== */

.center-text {
    text-align: center;
}


/* ====================== */
/*  SEKTION               */
/* ====================== */

.section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: left;
    margin-bottom: 40px;
    font-size: 2.5em;
    border-bottom: 2px solid #ffffff;
    display: inline-block;
    padding-bottom: 10px;
}


/* ====================== */
/*  INHALTSBEREICH        */
/* ====================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.item {
    background: #ffffff;
    color: #000000;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.item h3 {
    margin-top: 10px;
    font-size: 1.5em;
    color: #000000;
}

.item p {
    font-size: 1em;
    margin-top: 10px;
    color: #000000;
}


/* ====================== */
/*  KONTAKTFORMULAR       */
/* ====================== */

.contact-form {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #000000;
    border: none;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    text-align: left;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 26px;
}

.form-row.form-group {
    margin-top: 32px;
    margin-bottom: 30px;
}


/* ====================== */
/*  FORMULAR-ÜBERSCHRIFTEN */
/* ====================== */

/*
   Wichtig:
   Nur echte Feldüberschriften werden fett.
   Checkbox-Labels mit .check-row bleiben normal.
*/

.form-row > label:not(.check-row),
.form-label {
    display: block;
    color: #000000;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-label {
    font-size: 1.05em;
}


/* ====================== */
/*  TEXTFELDER            */
/* ====================== */

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 2px;
    border: 1px solid #999999;
    border-radius: 5px;
    background: #ffffff;
    color: #000000;
    font: inherit;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #000000;
}


/* ====================== */
/*  MITARBEITER-REGLER    */
/* ====================== */

.range-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

.range-wrap input[type="range"] {
    --range-progress: 10%;

    width: 100%;
    height: 8px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        #000000 0%,
        #000000 var(--range-progress),
        #d6d6d6 var(--range-progress),
        #d6d6d6 100%
    );
    cursor: pointer;
}

/* Chrome / Edge / Safari */
.range-wrap input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
}

.range-wrap input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -7px;
    border-radius: 50%;
    background: #000000;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #000000;
}

/* Firefox */
.range-wrap input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: #d6d6d6;
}

.range-wrap input[type="range"]::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: #000000;
}

.range-wrap input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #000000;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #000000;
}

.range-wrap output {
    min-width: 92px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #000000;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

.range-wrap output::after {
    content: " MA";
    font-weight: 400;
    opacity: 0.85;
}


/* ====================== */
/*  CHECKBOXEN            */
/* ====================== */

.check-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    color: #000000;
    font-weight: 400;
}

.check-row input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #000000;
}


/* ====================== */
/*  SUBMIT-BUTTON         */
/* ====================== */

.contact-submit {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.contact-submit:hover {
    background-color: #ffffff;
    color: #000000;
}


/* ====================== */
/*  STATUSMELDUNGEN       */
/* ====================== */

.form-success {
    color: #087a2f;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

.form-error {
    color: #b00020;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}


/* ====================== */
/*  BOT-SCHUTZ            */
/* ====================== */

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}


/* ====================== */
/*  WEISSE BUTTONS        */
/* ====================== */

.button-ws {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.button-ws:hover {
    background-color: #000000;
    color: #ffffff;
}

/* ====================== */
/* Datenschutz-Checkbox */
/* ====================== */
.privacy-check {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    color: #000000;
    font-weight: 400;
    line-height: 1.5;
}

.privacy-check input[type="checkbox"] {
    width: auto;
    margin: 5px 0 0 0;
    accent-color: #000000;
}

.privacy-check a {
    color: #000000;
    font-weight: 700;
    text-decoration: underline;
}

.privacy-check a:hover {
    text-decoration: none;
}


/* ====================== */
/*  FOOTER                */
/* ====================== */

footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0);
    font-size: 0.9em;
    color: #ffffff;
}


/* ====================== */
/*  REDUZIERTE BEWEGUNG   */
/* ====================== */

@media (prefers-reduced-motion: reduce) {
    body {
        transition: none !important;
    }
}