/* Telmiko Onboarding — reduzierter, klarer Stil */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1E5EFF;
    --primary-blue-dark: #1248D4;
    --accent-cyan: #00D4FF;
    --neutral-white: #FFFFFF;
    --neutral-light: #F5F7FA;
    --neutral-border: #D9DEE6;
    --text-dark: #1A1A1A;
    --text-light: #6B7280;
    --error-red: #D93025;
    --success-green: #1E8E3E;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 24px rgba(17, 24, 39, 0.08);
}

html,
body {
    height: 100%;
    background: var(--neutral-light);
    color: var(--text-dark);
    font-family: "adelphi-pe-variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}

.top-bar {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--neutral-border);
    background: var(--neutral-white);
}

.logo {
    height: 28px;
    width: auto;
}

.onboarding-shell {
    flex: 1;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 1.8rem 1.3rem 4rem;
}

.bottom-bar {
    border-top: 1px solid var(--neutral-border);
    background: var(--neutral-white);
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.bottom-bar a {
    color: var(--text-light);
    text-decoration: none;
}

.bottom-bar a:hover {
    text-decoration: underline;
}

/* Screens */
.screen {
    background: var(--neutral-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.18s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.screen-subtitle {
    color: var(--text-light);
    margin-bottom: 1.6rem;
}

.bullet-list {
    list-style: none;
    margin: 1rem 0 1.5rem;
    padding: 0;
}

.bullet-list li {
    padding: 0.4rem 0 0.4rem 1.4rem;
    position: relative;
}

.bullet-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.hint {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Progress */
.progress-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 1.4rem;
}

.progress-step {
    flex: 1;
    height: 4px;
    background: var(--neutral-border);
    border-radius: 4px;
    transition: background 0.2s;
}

.progress-step.active {
    background: var(--primary-blue);
}

/* Forms */
.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.form-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

@media (max-width: 520px) {
    .form-row--split {
        grid-template-columns: 1fr;
    }
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-md);
    padding: 0.7rem 0.8rem;
    font-size: 1rem;
    background: var(--neutral-white);
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 94, 255, 0.15);
}

input[readonly] {
    background: var(--neutral-light);
    color: var(--text-light);
    cursor: not-allowed;
}

.required {
    color: var(--error-red);
    font-weight: bold;
}

.field-hint {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.form-error {
    background: #FDECEA;
    color: var(--error-red);
    border-radius: var(--radius-md);
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
}

/* Modul: fix aktiv, keine Auswahl */
.module-static {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: var(--neutral-light);
}

.module-static strong {
    display: block;
    margin-bottom: 0.2rem;
}

.module-static span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Module Toggle */
.module-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.module-toggle:hover {
    border-color: var(--primary-blue);
}

.module-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--primary-blue);
}

.module-toggle strong {
    display: block;
    margin-bottom: 0.2rem;
}

.module-toggle span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Radio Cards */
.radio-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.15s;
}

.radio-card:has(input:checked) {
    border-color: var(--primary-blue);
    background: rgba(30, 94, 255, 0.04);
}

.radio-card input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary-blue);
}

.radio-card strong {
    display: block;
    margin-bottom: 0.2rem;
}

.radio-card span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Checkboxen für Rechtliches */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.4rem 0;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary-blue);
}

.checkbox-row a {
    color: var(--primary-blue);
}

.legal-block {
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.5rem;
}

.legal-block h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.legal-block p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
}

/* Staff List */
.staff-entry {
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.6rem;
    align-items: end;
}

.staff-entry label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.staff-entry .staff-remove {
    background: none;
    border: none;
    color: var(--error-red);
    cursor: pointer;
    padding: 0.6rem;
    font-size: 1rem;
}

.staff-entry .staff-remove:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .staff-entry {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.btn {
    border: 0;
    padding: 0.8rem 1.3rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s, transform 0.05s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn:active:not([disabled]) {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    flex: 1 0 auto;
}

.btn-primary:hover:not([disabled]) {
    background: var(--primary-blue-dark);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--neutral-border);
}

.btn-secondary:hover:not([disabled]) {
    background: var(--neutral-light);
}

.btn-link {
    background: transparent;
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Spinner */
.loader {
    text-align: center;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(30, 94, 255, 0.2);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Done */
.next-steps {
    list-style: none;
    counter-reset: step;
    margin-top: 1.5rem;
    padding: 0;
}

.next-steps li {
    counter-increment: step;
    border-top: 1px solid var(--neutral-border);
    padding: 1.2rem 0;
}

.next-steps li:first-child {
    border-top: 0;
}

.next-steps li::before {
    content: counter(step) ". ";
    color: var(--primary-blue);
    font-weight: bold;
}

.next-steps strong {
    display: block;
    margin-bottom: 0.6rem;
}

.app-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.app-links a {
    padding: 0.6rem 1rem;
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    text-decoration: none;
}

.app-links a:hover {
    background: var(--neutral-light);
}

.summary {
    background: var(--neutral-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.3rem;
}

.summary ul {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.summary li {
    padding: 0.3rem 0;
    font-size: 0.92rem;
}

.status-added {
    color: var(--success-green);
    font-weight: 500;
}

.status-invited {
    color: var(--primary-blue);
    font-weight: 500;
}

.status-skipped {
    color: var(--text-light);
}
