body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #f8fafc;
    background:
        radial-gradient(
            circle at top,
            #1e293b 0%,
            #0f172a 42%,
            #090e18 100%
        );
}


/*Allgemein*/
section.setup-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

div.setup-card {
    width: 100%;
    max-width: 560px;
    padding: 40px;
    background: #111827;
    border: 1px solid #263244;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

div.setup-field {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #1e293b;
    padding: 8px;
    border-radius: 15px;
}

div.setup-field + div.setup-field {
    margin-top: 28px;
}


/*Inputs / Dropdown*/
.setup-field input,
.setup-field select {
    padding: 8px;
    margin-top: 6px;
    background: #0b1220;
    color: #f8fafc;
    border: 1px solid black;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.setup-field input::placeholder {
    color: #64748b;
}

.setup-field input:hover,
.setup-field select:hover {
    border-color: #8b5cf6;
}

.setup-field input:focus,
.setup-field select:focus {
    border-color: #8b5cf6;
    background: #0d1525;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.setup-field input:-webkit-autofill,
.setup-field input:-webkit-autofill:hover,
.setup-field input:-webkit-autofill:focus,
.setup-field input:-webkit-autofill:active {
    -webkit-text-fill-color: #f8fafc;
    -webkit-box-shadow: 0 0 0 1000px #0b1220 inset;
    caret-color: #f8fafc;
    transition: background-color 9999s ease-in-out 0s;
}

.setup-field select {
    cursor: pointer;
}

.setup-field select option {
    background: #111827;
    color: #f8fafc;
}


/*Texte*/
.font-template {
    text-align: center;
    margin: 0;
}

h1 {
    margin-bottom: 12px;
    font-size: 32px;
    color: #a78bfa;
}

h2 {
    margin: 0;
    font-size: 20px;
    border-radius: 10px;
    padding: 8px;
    background-color: #080b12;
}

p.sub-title {
    margin: 10px 0 60px;
    font-size: 18px;
    color: #94a3b8;
}

p.field-description {
    margin: 14px 0 0;
    padding: 0 5px;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.5;
}


/*Buttons*/
.setup-actions {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 48px;
}

.setup-actions .setup-button:only-child {
    margin-left: auto;
}

.setup-button {
    padding: 12px 24px;
    background: #7c3aed;
    color: #ffffff;
    border: 1px solid #7c3aed;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.setup-button:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    transform: translateY(-1px);
}

.setup-button:active {
    transform: translateY(0);
}

.setup-button.secondary {
    margin-right: auto;
    background: #1e293b;
    color: #cbd5e1;
    border-color: #475569;
}

.setup-button.secondary:hover {
    background: #293548;
    border-color: #64748b;
    color: #ffffff;
}


/*Setup Startseite*/
div.language-options {
    display: flex;
    margin-top: 15px;
    justify-content: space-around;
}

button.language-button {
    position: relative;
    width: 40%;
    height: 120px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    border-radius: 15px;
    border: 3px solid black;
    background: #1e293b;
}

button.language-button:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

button.language-button.selected {
    border-color: #80ff80;
}

span.language-flag {
    position: absolute;
    inset: 0;
    display: block;
}

span.flag-de {
    background:
        linear-gradient(
            to bottom,
            #000000 0%,
            #000000 33.33%,
            #dd0000 33.33%,
            #dd0000 66.66%,
            #ffce00 66.66%,
            #ffce00 100%
        );
}

span.flag-en {
    background:
        linear-gradient(
            27deg,
            transparent 44%,
            #ffffff 44%,
            #ffffff 48%,
            #c8102e 48%,
            #c8102e 52%,
            #ffffff 52%,
            #ffffff 56%,
            transparent 56%
        ),
        linear-gradient(
            -27deg,
            transparent 44%,
            #ffffff 44%,
            #ffffff 48%,
            #c8102e 48%,
            #c8102e 52%,
            #ffffff 52%,
            #ffffff 56%,
            transparent 56%
        ),
        linear-gradient(
            to right,
            transparent 40%,
            #ffffff 40%,
            #ffffff 45%,
            #c8102e 45%,
            #c8102e 55%,
            #ffffff 55%,
            #ffffff 60%,
            transparent 60%
        ),
        linear-gradient(
            to bottom,
            transparent 35%,
            #ffffff 35%,
            #ffffff 42%,
            #c8102e 42%,
            #c8102e 58%,
            #ffffff 58%,
            #ffffff 65%,
            transparent 65%
        ),
        #012169;
}


/*Setup Finished*/
div.setup-finished-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.14);
    border: 2px solid #22c55e;
    color: #22c55e;
    font-size: 34px;
    font-weight: 700;
}

.setup-finished-content {
    margin-top: 32px;
    padding: 28px;
    background: #1e293b;
    border-radius: 14px;
}

.setup-finished-content h2 {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 20px;
    font-weight: 600;
}

div.setup-loading {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

div.setup-loading p {
    margin: 0;
    color: #94a3b8;
    font-size: 16px;
}

div.setup-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #334155;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: organia-spin 0.8s linear infinite;
}

@keyframes organia-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/*Mobile*/
@media (max-width: 600px) {
    .setup-page {
        padding: 18px;
    }

    .setup-card {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .setup-card h1 {
        font-size: 27px;
    }

    .language-options {
        flex-direction: column;
        gap: 16px;
    }

    .language-button {
        width: 100%;
        height: 120px;
    }

    .setup-actions {
        gap: 12px;
    }
}
