/* ============================================================================
   KONTAKT FORMULAR STYLESHEET (Jost Font, Light & Modern Gray Design)
   ============================================================================ */

/* jost-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/jost-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* jost-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Jost';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/jost-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* jost-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Jost';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/jost-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}





/* Base Layout & Container */
body {
    font-family: "Jost", sans-serif;
    font-weight: 300; /* Jost Light als Standard */
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding: 40px 20px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 36px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
}

h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 24px;
    font-family: "Jost", sans-serif;
    font-weight: 600; /* Hervorgehoben in Semibold */
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
    letter-spacing: -0.02em;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-indicator {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 16px;
    font-weight: 600; /* Hervorgehoben */
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-section-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 22px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.form-section-box.lang-box {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.form-section-box h3 {
    margin-top: 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    font-size: 16px;
    font-family: "Jost", sans-serif;
    font-weight: 600; /* Hervorgehoben */
    color: #334155;
}

/* Form Fields & Controls */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600; /* Hervorgehoben */
    font-size: 13px;
    color: #475569;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: "Jost", sans-serif;
    font-weight: 300;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    color: #1e293b;
    transition: all 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15);
    outline: none;
}

.field-hint {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

/* Progressbar Container */
.progress-bar-container {
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 8px;
    height: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

/* Dynamischer Fortschrittsbalken im Absenden-Grün */
.progress-bar-fill {
    height: 100%;
    background-color: #10b981;
    width: 25%; /* Startzustand für Schritt 1 */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}


/* Radio Group (Anfragegrund) */
.radio-group label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    background: #ffffff;
    font-weight: 300;
    color: #334155;
    transition: all 0.2s ease;
}

.radio-group label:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.radio-group input[type="radio"] {
    margin-right: 12px;
    accent-color: #475569;
}

/* 1. Originale Checkbox unsichtbar machen, aber funktional lassen */
.privacy-container input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: auto !important;
}

/* 2. Eine eigene, moderne Checkbox als Box daneben zeichnen */
.privacy-container input[type="checkbox"] + label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: -3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 3. Zustand, wenn die Checkbox aktiv/gehäkelt ist */
.privacy-container input[type="checkbox"]:checked + label::before {
    background-color: #475569;
    border-color: #475569;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* 4. Hover-Effekt */
.privacy-container input[type="checkbox"] + label:hover::before {
    border-color: #94a3b8;
}

/* Flex-Anpassung für den Container */
.privacy-container {
    display: flex;
    align-items: flex-start;
    gap: 0px; /* Da der Abstand jetzt über margin-right geregelt wird */
    margin-top: 8px;
}

.privacy-container label {
    font-weight: 300;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #475569;
    cursor: pointer;
    margin: 0;
}

/* Buttons & Navigation */
.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 14px;
    font-family: "Jost", sans-serif;
    font-weight: 600; /* Hervorgehoben in Semibold */
    color: #ffffff;
    background-color: #475569;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn:hover {
    background-color: #334155;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.btn-success {
    background-color: #10b981;
}

.btn-success:hover {
    background-color: #059669;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Utility */
.hidden-honeypot {
    display: none;
    visibility: hidden;
}

/* Transparente Overlays mit Blur (Glassmorphism) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.35); /* Teiltransparentes dunkles/graues Overlay */
    backdrop-filter: blur(8px); /* Verschwommener Hintergrund */
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85); /* Teiltransparente weiße Karte */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 32px;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.modal-content p {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 480px) {
    .modal-buttons {
        flex-direction: row;
        justify-content: center;
    }
}