.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: #fff;
    color: #999;
}

    .step.active {
        border-color: #0d6efd;
        background: #0d6efd;
        color: white;
    }

.line {
    width: 10px;
    height: 2px;
    background: #ccc;
}

.step.active + .line {
    background: #0d6efd;
}


.wizard-container {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding-bottom:60px;
    background-color:white;
}

    .wizard-container h5 {
        margin-top: 40px;
    }


    /* Card Layout */
    .wizard-card {
        max-width: 700px;
        margin: auto;
        background: white;
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    }
    /* Buttons */
    .wizard-buttons {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
    }

    button {
        padding: 10px 18px;
        border-radius: 8px;
        border: none;
        cursor: pointer;
    }

    .pfeil {
        zoom: 0.4;
    }


    button[type="submit"] {
        background: #0d6efd;
        color: white;
    }

    button.secondary {
        background: #e9ecef;
    }
    /* Grid Layout */
    .option-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
        margin-top: 2px;
    }
    /* Card Style */
    .option-card {
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        padding: 15px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: block;
        background: #fff;
    }
        /* Radio verstecken */
        .option-card input {
            display: none;
        }
        /* Hover Effekt */
        .option-card:hover {
            border-color: #0d6efd;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }
        /* Text */
        .option-card span {
            font-size: 16px;
            font-weight: 500;
        }
        /* Selected State */
        .option-card input:checked + span {
            color: #0d6efd;
            font-weight: 600;
        }

            .option-card input:checked + span::before {
                content: "✓ ";
                color: #0d6efd;
            }
        /* Optional: stärkerer Rahmen wenn aktiv */
        .option-card input:checked {
            display: none;
        }

        .option-card:has(input:checked) {
            border-color: #0d6efd;
            background: #f0f6ff;
        }

    .form-section {
        margin-bottom: 30px;
    }

        .form-section h4 {
            margin-bottom: 15px;
            font-size: 18px;
        }

    .form-control {
        padding: 15px;
    }
    /* Grid */
    .grid-3 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    /* Choice Cards */
    .choice-group {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .choice-card {
        border: 2px solid #ddd;
        padding: 10px 16px;
        border-radius: 10px;
        cursor: pointer;
        transition: 0.2s;
    }

        .choice-card input {
            display: none;
        }

        .choice-card:hover {
            border-color: #0d6efd;
        }

        .choice-card:has(input:checked) {
            border-color: #0d6efd;
            background: #fff;
            content: "✓ ";
        }
    /* Checkbox Grid */
    .checkbox-group {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        margin-top: 10px;
    }


    .checkbox-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

    .checkbox-row {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
        border: 2px solid #e5e7eb;
        border-radius: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
        background: white;
    }

        .checkbox-row:hover {
            border-color: #0d6efd;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        }

        .checkbox-row input {
            margin-top: 4px;
            width: 18px;
            height: 18px;
            accent-color: #0d6efd;
        }

    .checkbox-content {
        flex: 1;
    }

    .checkbox-title {
        font-weight: 600;
        margin-bottom: 4px;
    }

    .checkbox-description {
        font-size: 14px;
        color: #6b7280;
    }
    /* Selected */
    .checkbox-row:has(input:checked) {
        border-color: #0d6efd;
        background: #eef5ff;
    }


    .upload-zone {
        border: 2px dashed #cbd5e1;
        border-radius: 18px;
        background: #f8fafc;
        padding: 40px 20px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease;
        display: block;
    }

        .upload-zone:hover {
            border-color: #0d6efd;
            background: #eef5ff;
        }

        .upload-zone input {
            display: none;
        }

    .upload-content {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .upload-icon {
        font-size: 42px;
    }

    .upload-title {
        font-size: 18px;
        font-weight: 600;
    }

    .upload-subtitle {
        color: #6b7280;
    }
    /* Preview */

    .preview-grid {
        margin-top: 20px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .preview-image {
        width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 12px;
        border: 1px solid #ddd;
    }


    .wizard-step {
        display: none;
    }

        .wizard-step.active {
            display: block;
        }

    .wizard-progress {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 30px;
    }

        .wizard-progress .step {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #ddd;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

            .wizard-progress .step.active {
                background: #0d6efd;
                color: white;
            }

        .wizard-progress .line {
            width: 10px;
            height: 1px;
            background: #ddd;
        }


    .step {
        background: #ddd;
    }

        .step.active {
            background: #0d6efd;
            color: white;
        }

        .step.completed {
            background: #198754;
            color: white;
        }

    .line {
        background: #ddd;
    }

        .line.completed {
            background: #198754;
        }


    .recording-indicator {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 600;
    }

    .pulse-dot {
        width: 14px;
        height: 14px;
        background: red;
        border-radius: 50%;
        animation: pulse 1s infinite;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.4);
            opacity: .5;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    .fade-in {
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .pop-in {
        animation: popIn 0.3s ease;
    }

    @keyframes popIn {
        0% {
            opacity: 0;
            transform: scale(0.95);
        }

        70% {
            transform: scale(1.02);
        }

        100% {
            opacity: 1;
            transform: scale(1);
        }
    }

    .pulse {
        animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.08);
        }

        100% {
            transform: scale(1);
        }
    }

    .wave {
        display: flex;
        gap: 4px;
        margin-top: 15px;
        height: 40px;
        align-items: end;
    }

        .wave span {
            width: 6px;
            height: 15px;
            background: #0d6efd;
            border-radius: 3px;
            animation: wave 1s infinite ease-in-out;
        }

            .wave span:nth-child(2) {
                animation-delay: .1s;
            }

            .wave span:nth-child(3) {
                animation-delay: .2s;
            }

            .wave span:nth-child(4) {
                animation-delay: .3s;
            }

            .wave span:nth-child(5) {
                animation-delay: .4s;
            }

    @keyframes wave {
        0%,100% {
            height: 10px;
        }

        50% {
            height: 35px;
        }
    }

    #recordingTime {
        font-size: 2rem;
        font-weight: bold;
        margin-top: 10px;
    }


    .preview-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
        gap: 15px;
        margin-top: 20px;
    }

    .preview-image {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 12px;
        border: 1px solid #ddd;
    }

    .input-error {
        border: 1px solid red;
    }

    .error-message {
        color: red !important;
        font-size: 12px !important;
    }

    .pictogramdiv img {
        width: 120px;
        height: 120px;
        margin-top:16px;
    }




    @media all and (min-width: 1024px) {

        .pictogramdiv img {
            width: 180px;
            height: 180px;
        }
        .wizard-container h5 {
            margin-top: 40px;
        }

        .wizard-progress {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .step {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            border: 2px solid #ccc;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            background: #fff;
            color: #999;
        }

            .step.active {
                border-color: #0d6efd;
                background: #0d6efd;
                color: white;
            }

        .wizard-progress .line {
            width: 30px;
            height: 1px;
            background: #ddd;
        }

        .step.active + .line {
            background: #0d6efd;
        }
    }



    #waitingOverlay {
        position: fixed;
        inset: 0;
        background: rgba(255,255,255,.7);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .spinner {
        width: 50px;
        height: 50px;
        border: 6px solid #ddd;
        border-top: 6px solid #0d6efd;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 15px;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

