/* =========================================
   GLOBAL
========================================= */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background: #f4f4f4;
    font-family: Arial, sans-serif;
}

.hidden {
    display: none !important;
}

a {
    color: #2a3060;
    text-decoration: underline;
}

a:hover {
    color: #2a3060;
}

/* =========================================
   PROGRESS BAR (from Bild 2)
========================================= */

#progressbar-wrapper {
    width: 100%;
    background: #ffffff;
    padding: 18px 0 12px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#progressbar-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    overflow-x: auto;
}

#progressbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
}

.progress-step {
    width: 34px;
    height: 34px;
    background: #eee;
    color: #aaa;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

.progress-step.active {
    background: #2a3060;
    color: white;
}

.progress-line {
    flex: 1;
    height: 4px;
    background: #eee;
    border-radius: 3px;
}

.progress-line.active {
    background: #2a3060;
}

#progress-labels {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 6px auto 0 auto;
    padding: 0 20px;
    color: #888;
    font-size: 0.85em;
}

#progress-labels span {
    text-align: center;
    flex: 1;
}

/* =========================================
   BOX DESIGN (from Bild 1)
========================================= */

.box {
    background: white;
    width: calc(100% - 32px);
    max-width: 600px;
    margin: 20px auto;
    padding: 28px 22px;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}

/* =========================================
   TEXT
========================================= */

h1 {
    color: #2a3060;
    font-size: 1.9em;
    text-align: center;
    margin-bottom: 0.7em;
}

p {
    text-align: center;
    color: #333;
    font-size: 1.2em;
}

small {
    display: block;     /* jede Zeile untereinander */
    margin-top: 4px;    /* Abstand nach oben, zu "Fotos/Videos hochladen" */
    margin-bottom: -2px; /* enger Abstand zur nächsten small-Zeile */
    color: #555;
    font-size: 0.85em;
}

/* =========================================
   BACK LINK
========================================= */

.back {
    display: block;
    color: #444;
    font-size: 1em;
    text-decoration: underline;
    margin-bottom: 15px;
}

/* =========================================
   FORM FIELDS (from Bild 2)
========================================= */

label {
    color: #222;
    font-size: 1.05em;
    font-weight: 500;
    margin-top: 18px;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="Bestellnummer"],
select,
textarea {
    width: 100%;
    padding: 12px;
    font-size: 1.05em;
    border: 1.4px solid #ccc;
    border-radius: 8px;
    background: #fafafa;
    margin-bottom: 18px;
    box-sizing: border-box;
}

textarea {
    height: 110px;
}

/* =========================================
   FILE LIST
========================================= */

#datei-liste {
    padding: 0;
    margin-top: 10px;
    list-style: none;
}

#datei-liste li {
    background: #f6f6f6;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.95em;
    word-break: break-word;
}

/* =========================================
   BUTTONS
========================================= */

.cta {
    width: 100%;
    padding: 16px;
    background: #2a3060;
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    margin-top: 18px;
}

.cta:hover {
    background: #232a63;
}

/* Nur im Kontaktdaten-Formular: Upload-Buttons ausblenden */
#daten-box input[type="file"] {
    display: none !important;
}

/* =========================================
   FOOTER LINKS – CLEAN CENTERED
========================================= */

.button-row {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-row a {
    text-align: center;
    font-size: 0.95em;
}

/* =========================================
   MOBILE FIX (from Bild 1)
========================================= */

@media (max-width: 480px) {

    .box {
        padding: 24px 18px;
        margin: 16px auto;
    }

    h1 {
        font-size: 1.55em;
    }

    #progress-labels {
        font-size: 0.75em;
    }
}

/* =========================================
   LOADING SCREEN – FIXED, CENTERED, CLEAN
========================================= */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.loader-wrapper {
    width: 160px;
    height: auto;
    position: relative;
}

.loader-logo {
    width: 100%;
    display: block;
}

.loader-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    animation: revealLogo 1.7s infinite;
    border-radius: 4px;
    /* optional clean edges */
}

@keyframes revealLogo {
    0% {
        transform: translateX(0%);
    }

    50% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(100%);
    }
}

#impressum-page p,
#datenschutz-page p {
    text-align: left !important;
}