html, body{
    margin: 0;
    height: 100%;
    overflow: hidden;
}

.title {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.form {
    max-width: 1550px;
    margin: 0 auto;
}

.card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fafafa;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.field input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.full {
    grid-column: 1 / -1;
}

.radio-row {
    display: flex;
    gap: 1.5rem;
    padding-top: 0.3rem;
}

.field-label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.modern-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.radio-card {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    padding: 14px 18px;
    border: 1.5px solid #d6dbe4;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    user-select: none;
}

    .radio-card:hover {
        border-color: #94a3b8;
        background: #f8fafc;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
        transform: translateY(-1px);
    }

    .radio-card input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }


.radio-label {
    font-size: 0.97rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

/* Ausgewählt */
.radio-card:has(input[type="radio"]:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.radio-card input[type="radio"]:checked + .radio-indicator {
    border-color: #2563eb;
    background: #ffffff;
}

    .radio-card input[type="radio"]:checked + .radio-indicator::after {
        transform: translate(-50%, -50%) scale(1);
    }

/* Keyboard Focus */
.radio-card input[type="radio"]:focus-visible + .radio-indicator {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

.validation-message {
    display: block;
    margin-top: 8px;
    font-size: 0.875rem;
    color: #dc2626;
}


.actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}
.actions-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

button {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

    button.secondary {
        background: rgb(0 122 195);
        border: 1px solid rgb(124 202 174);
    }

:root {
    --border: #d8d8d8;
    --bg: #f6f6f6;
    --card: #ffffff;
    --text: #111;
    --muted: #666;
}

.form-wrap {
    max-width: 950px;
    margin: 0 auto 32px;
    padding: 0 16px;
}


.header-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: black;
    font-weight: 750;
}

    .badge.dark {
        background: #111;
        border-color: #111;
        color: #fff;
    }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin: 14px 0;
}

    .card h3 {
        margin: 0 0 10px;
        font-size: 1.1rem;
    }

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.field label {
    display: block;
    font-weight: 650;
    margin-bottom: 6px;
}

input[type="text"], select, textarea {
    width: 100%;
    padding: 10px 1px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: #fff;
    font-size: 1rem;
}

.full {
    grid-column: 1 / -1;
}

.lang-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.lang-title {
    font-weight: 700;
    color: var(--muted);
}

.lang-pill {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fbfbfb;
    font-weight: 650;
}


/* LANGUAGE SKILLS RADIO GRID*/
.niveau-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.niveau-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1.5px solid #dde6f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

    .niveau-card:hover {
        border-color: #0057a8;
        background: #e8f0fb;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,87,168,0.1);
    }

    .niveau-card:has(input:checked) {
        border-color: #0057a8;
        background: #e8f0fb;
        box-shadow: 0 0 0 3px rgba(0,87,168,0.12);
    }

    .niveau-card input[type="radio"] {
        accent-color: #0057a8;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        cursor: pointer;
    }

/* Niveau Badge (A1, A2 etc.) */
.niveau-badge {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    transition: color 0.2s;
}

.niveau-card:has(input:checked) .niveau-badge {
    color: #0057a8;
}

/* Beginner Card — volle Breite */
.niveau-card.full-width {
    grid-column: 1 / -1;
    justify-content: flex-start;
}

.niveau-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.niveau-main {
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    transition: color 0.2s;
}

.niveau-card:has(input:checked) .niveau-main {
    color: #0057a8;
}

.niveau-sub {
    font-size: 0.78rem;
    color: #6b7b8d;
}

/*RESPONSIVE*/
@media (max-width: 599px) {
    .niveau-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .niveau-card {
        padding: 12px 14px;
    }
}

@media (max-width: 380px) {
    .niveau-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .niveau-badge {
        font-size: 0.9rem;
    }
}



.info {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    line-height: 1.35;
}

.sep {
    border: none;
    border-top: 1px solid var(--border);
    margin: 12px 0;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: .92rem;
}

.muted {
    color: var(--muted);
}

.choice {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid transparent;
}

.note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed var(--border);
    background: #fff;
    font-weight: 650;
}

.foot {
    margin-top: 10px;
}

.hint {
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 12px;
    background: #fbfbfb;
    color: var(--muted);
}

@media (max-width: 860px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.step:link,
.step:visited {
    color: #0a2a4a;
}

.step:hover,
.step:active {
    color: #061a2f;
}

/*ACCOMMODATION CARDS */
.accom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.accom-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 18px;
    border: 1.5px solid #dde6f0;
    border-radius: 14px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

    .accom-card:hover {
        border-color: #0057a8;
        background: #e8f0fb;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,87,168,0.1);
    }

    .accom-card:has(input:checked) {
        border-color: #0057a8;
        background: #e8f0fb;
        box-shadow: 0 0 0 3px rgba(0,87,168,0.12);
    }

    .accom-card input[type="radio"] {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 18px;
        height: 18px;
        accent-color: #0057a8;
        cursor: pointer;
        flex-shrink: 0;
    }

.accom-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.accom-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 28px;
}

.accom-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f1f3d;
    transition: color 0.2s;
}

.accom-card:has(input:checked) .accom-title {
    color: #0057a8;
}

.accom-sub {
    font-size: 0.75rem;
    color: #6b7b8d;
    font-style: italic;
}

.accom-price {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0057a8;
    background: rgba(0,87,168,0.08);
    padding: 2px 10px;
    border-radius: 999px;
    width: fit-content;
}

.accom-card-none .accom-price {
    display: none;
}

.accom-desc {
    font-size: 0.8rem;
    color: #6b7b8d;
    line-height: 1.5;
    margin-top: 4px;
}

/*RESPONSIVE*/
@media (max-width: 599px) {
    .accom-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .accom-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .accom-icon {
        font-size: 1.4rem;
        flex-shrink: 0;
        margin-top: 2px;
    }
}

/*CHECKBOX*/
.container {
    display: block;
    position: relative;
    cursor: pointer;
    font-size: 25px;
    user-select: none;
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
    margin-top: 2px;
}

    .container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

    .container .checkmark {
        position: absolute;
        top: 0;
        left: 0;
        height: 1.5em;
        width: 1.5em;
        background-color: #fdfcf0;
        border: 4px solid #1a1a1a;
        border-radius: 8% 92% 12% 88% / 87% 11% 89% 13%;
        box-shadow: 5px 5px 0px #1a1a1a;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    }

    .container:hover .checkmark {
        transform: scale(1.05) rotate(2deg);
    }

    .container input:checked ~ .checkmark {
        background-color: #0e43e4;
        border-radius: 92% 8% 88% 12% / 11% 87% 13% 89%;
        transform: scale(1.1) rotate(-2deg);
    }

    .container .checkmark:after {
        content: "";
        position: absolute;
        display: none;
        left: 0.36em;
        top: 0.09em;
        width: 0.3em;
        transform: translate(-50%, -50%) rotate(40deg);
        height: 0.7em;
        border: solid #1a1a1a;
        border-width: 0 0.25em 0.25em 0;
        border-radius: 2px;
    }

    /* cheked */
    .container input:checked ~ .checkmark:after {
        display: block;
        animation: splash 0.3s forwards;
    }

    .container:active .checkmark {
        transform: scale(0.9) translateY(4px);
        box-shadow: 0px 0px 0px #1a1a1a;
    }

@keyframes splash {
    0% {
        transform: scale(0) rotate(40deg);
        opacity: 0;
    }

    70% {
        transform: scale(1.2) rotate(40deg);
    }

    100% {
        transform: scale(1) rotate(40deg);
        opacity: 1;
    }
}

/*LOADER*/
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loading-content {
    background: white;
    padding: 40px 60px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

    .loading-content p {
        font-size: 16px;
        color: #333;
        margin: 0;
    }

.uiverse-loader {
    width: 3.25em;
    transform-origin: center;
    animation: rotate4 2s linear infinite;
}

    .uiverse-loader circle {
        fill: none;
        stroke: #0057a8;
        stroke-width: 2;
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
        stroke-linecap: round;
        animation: dash4 1.5s ease-in-out infinite;
    }

@keyframes rotate4 {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash4 {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dashoffset: -125px;
    }
}

/*RETURN BUTTON*/
.lp-btn-return {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0057a8;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    width: fit-content;
    box-shadow: 0 4px 14px rgba(0,87,168,0.3);
}

    .lp-btn-return:hover {
        background: #004a8f;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,87,168,0.4);
    }

.lp-btn-return svg{
    transition: transform 0.2s;
}

.lp-btn-return:hover svg{
    transform: scaleX(-1) translateX(4px);
}

.arrow-left{
    transform: scale(-1);
}

/*CONTINUE BUTTON*/
.lp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0057a8;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    width: fit-content;
    box-shadow: 0 4px 14px rgba(0,87,168,0.3);
}

.lp-btn-primary:hover {
    background: #004a8f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,87,168,0.4);
}

    .lp-btn-primary svg {
        transition: transform 0.2s;
    }

    .lp-btn-primary:hover svg {
        transform: translateX(4px);
    }


/*FORMULAR FIELDS*/
.inputGroup {
    font-family: 'Segoe UI', sans-serif;
    margin: 1em 0 1em 0;
    width: 100%;
    position: relative;
}

    .inputGroup input {
        font-size: 100%;
        padding: 0.8em;
        outline: none;
        border: 2px solid rgb(200, 200, 200);
        background-color: transparent;
        border-radius: 20px;
        width: 100%;
    }

    .inputGroup label {
        font-size: 100%;
        position: absolute;
        left: 0;
        padding: 0.8em;
        margin-left: 0.5em;
        pointer-events: none;
        transition: all 0.3s ease;
        color: rgb(100, 100, 100);
    }

    .inputGroup :is(input:focus, input:valid) ~ label {
        transform: translateY(-50%) scale(.9);
        margin: 0em;
        margin-left: 1.3em;
        padding: 0.4em;
        background-color: white;
    }

    .inputGroup :is(input:focus, input:valid) {
        border-color: rgb(150, 150, 200);
    }

/*RESET BUTTON*/
.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1.5px solid #dde6f0;
    background: white;
    color: #6b7b8d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: inherit;
}

    .btn-reset svg {
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        flex-shrink: 0;
    }

    .btn-reset:hover {
        border-color: #dc2626;
        color: #dc2626;
        background: #fef2f2;
    }

        .btn-reset:hover svg {
            transform: rotate(-180deg);
        }

    .btn-reset:active {
        transform: scale(0.96);
    }

@media (max-width: 479px) {
    .btn-reset {
        padding: 45px;
        border-radius: 10%;
        width: 60px;
        height: 90px;
        justify-content: center;
    }
}

/*MEDIA*/
/* Tablets (max 1023px) */
@media (max-width: 1023px) {
    html, body{
        overflow: auto;
        height: auto;
    }
    .trash-svg {
        width: 5em;
        height: 3.5em;
    }
}

/* Tablets Portrait (max 767px) */
@media (max-width: 767px) {
    html, body {
        overflow: auto;
        height: auto;
    }

    .layout {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .content {
        height: auto;
        overflow: visible;
    }

    .sidebar {
        height: auto;
        overflow: visible;
        position: relative;
    }

    .actions {
        gap: 8px;
    }

    .actions-right {
        gap: 8px;
    }

    .lp-btn-primary,
    .lp-btn-return {
        padding: 11px 16px;
        font-size: 0.875rem;
    }
}

/* Große Handys (max 599px) */
@media (max-width: 599px) {
    .lp-btn-primary,
    .lp-btn-return {
        padding: 10px 14px;
        font-size: 0.82rem;
    }
}

/* Kleine Handys (max 479px) */
@media (max-width: 479px) {
    .actions {
        flex-direction: row; 
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .actions-right {
        flex-direction: column;
        flex: 1;
        gap: 8px;
    }

    .lp-btn-primary,
    .lp-btn-return {
        width: 100%;
        justify-content: center;
        padding: 12px 14px;
        font-size: 0.875rem;
    }
    .delete-button {
        align-self: center;
    }
}

/*LOGOUT BUTTON*/
.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: black;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

    .logout-btn svg {
        transition: transform 0.2s ease;
        opacity: 0.85;
    }

    .logout-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.6);
        color: black;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

        .logout-btn:hover svg {
            transform: translateX(3px);
            opacity: 1;
        }

    .logout-btn:active {
        transform: translateY(0);
        box-shadow: none;
    }

/*RESPONSIVE*/
@media (max-width: 479px) {
    .logout-btn span {
        display: none;
    }

    .logout-btn {
        padding: 8px 10px;
        border-radius: 50%;
    }
}