/*! /julia-onboarding Page Styles · 2026-08-08 */

.jof-wrap,
.jof-wrap * {
    box-sizing: border-box;
}

.jof-wrap {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    box-sizing: border-box;

    --surface: #f3f7fc;
    --surface-soft: #e7eef7;
    --surface-inner: #dfe8f3;

    --border: rgba(11, 31, 51, 0.14);
    --border-soft: rgba(11, 31, 51, 0.08);

    --accent: #2d7cff;
    --accent-dark: #155bd6;
    --accent2: #00d3ff;
    --accent-soft: rgba(45, 124, 255, 0.10);
    --accent-dim: rgba(45, 124, 255, 0.14);

    --text: #0b1f33;
    --text-muted: rgba(11, 31, 51, 0.58);
    --text-dim: rgba(11, 31, 51, 0.72);

    --success: #16a34a;
    --danger: #dc2626;
    --radius: 14px;

    min-height: 100vh;
    padding: 72px 20px 96px;

    background:
        radial-gradient(circle at 20% 0%, rgba(45, 124, 255, 0.28), transparent 30%),
        radial-gradient(circle at 85% 8%, rgba(0, 211, 255, 0.16), transparent 28%),
        linear-gradient(180deg, #000 0%, #071727 8%, #0b1f33 52%, #0f2d49 100%);

    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
}

.jof-wrap .header,
.jof-wrap .progress-bar,
.jof-wrap .page,
.jof-wrap .nav {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.jof-wrap .header {
    margin-bottom: 28px;
    text-align: center;
}

.jof-wrap .brand-line {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #dbeafe;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
}

.jof-wrap .headline {
    max-width: 820px;
    margin: 0 auto;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: #ffffff;
}

.jof-wrap .headline span {
    color: #93c5fd;
}

.jof-wrap .header-subtitle {
    max-width: 720px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.65;
}

.jof-wrap .progress-bar {
    position: sticky;
    top: 12px;
    z-index: 20;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(243, 247, 252, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.jof-wrap .progress-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.jof-wrap .step-pill {
    flex: 1;
    height: 7px;
    border-radius: 999px;
    background: #d7e0eb;
}

.jof-wrap .step-pill.active {
    background: var(--accent);
}

.jof-wrap .step-pill.done {
    background: var(--success);
}

.jof-wrap .progress-label {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.jof-wrap .page {
    display: none;
}

.jof-wrap .page.active {
    display: block;
}

.jof-wrap .card {
    padding: clamp(26px, 4vw, 46px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: linear-gradient(180deg, #edf4fb 0%, #dfeaf6 100%);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.jof-wrap .card-title {
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 750;
    color: var(--text);
}

.jof-wrap .card-subtitle {
    max-width: 760px;
    margin-bottom: 30px;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.65;
}

.jof-wrap .intro-card,
.jof-wrap .section-hint,
.jof-wrap .info-badge {
    margin-bottom: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 18px;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.62),
            rgba(255, 255, 255, 0.36));
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.65;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.jof-wrap .intro-card strong,
.jof-wrap .info-badge strong {
    color: var(--text);
}

.jof-wrap .section-label {
    margin: 34px 0 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(11, 31, 51, 0.09);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jof-wrap .section-label:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.jof-wrap .mini-section-title {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
}

.jof-wrap .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.jof-wrap .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.jof-wrap .col-span-2 {
    grid-column: span 2;
}

.jof-wrap .col-span-3 {
    grid-column: span 3;
}

.jof-wrap .field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.jof-wrap label {
    color: rgba(11, 31, 51, 0.78);
    font-size: 13px;
    font-weight: 650;
}

.jof-wrap label .req {
    color: var(--accent);
}

.jof-wrap label .opt {
    margin-left: 4px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.jof-wrap input,
.jof-wrap textarea,
.jof-wrap select {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid rgba(100, 116, 139, 0.36);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.18s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 1px 2px rgba(15, 23, 42, 0.05);
}

.jof-wrap textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.55;
}

.jof-wrap input::placeholder,
.jof-wrap textarea::placeholder {
    color: rgba(100, 116, 139, 0.62);
}

.jof-wrap input:focus,
.jof-wrap textarea:focus,
.jof-wrap select:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 0 0 4px var(--accent-dim),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.jof-wrap input[readonly] {
    background: rgba(226, 232, 240, 0.70);
    color: var(--text-muted);
    cursor: not-allowed;
}

.jof-wrap .system-card,
.jof-wrap .dynamic-block,
.jof-wrap .template-block,
.jof-wrap .module-card,
.jof-wrap .placeholder-item {
    border: 1px solid rgba(11, 31, 51, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, #dbe7f3 0%, #cfdeec 100%);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.jof-wrap .system-card,
.jof-wrap .dynamic-block {
    margin-bottom: 16px;
    padding: 22px;
}

.jof-wrap .dynamic-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.jof-wrap .block-title {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.jof-wrap .toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.jof-wrap .module-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    cursor: pointer;
    transition: 0.18s ease;
}

.jof-wrap .module-card:hover {
    transform: translateY(-1px);
    border-color: rgba(45, 124, 255, 0.34);
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.72),
            rgba(235, 242, 250, 0.88));
}

.jof-wrap .module-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.jof-wrap .module-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
}

.jof-wrap .module-card span {
    display: block;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.45;
}

.jof-wrap .placeholder-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.jof-wrap .placeholder-item {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(11, 31, 51, 0.08);
}

.jof-wrap .placeholder-item strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
    font-size: 11px;
    font-weight: 750;
}

.jof-wrap .placeholder-item code {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 7px;
    background: rgba(45, 124, 255, 0.10);
    color: #155bd6;
    font-size: 10px;
}

.jof-wrap .template-block {
    margin-bottom: 14px;
    overflow: hidden;
}

.jof-wrap .template-header {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.38);
}

.jof-wrap .template-block.open .template-header {
    border-bottom: 1px solid var(--border);
}

.jof-wrap .template-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--success);
}

.jof-wrap .template-name {
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
}

.jof-wrap .template-meta {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 12px;
}

.jof-wrap .status-pill {
    padding: 5px 10px;
    border: 1px solid rgba(11, 31, 51, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.jof-wrap .template-block.active .status-pill {
    border-color: rgba(22, 163, 74, 0.28);
    background: rgba(240, 253, 244, 0.72);
    color: var(--success);
}

.jof-wrap .template-body {
    display: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.26);
}

.jof-wrap .template-block.open .template-body {
    display: block;
}

.jof-wrap .timing-row {
    display: grid;
    grid-template-columns: 90px 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.jof-wrap .btn,
.jof-wrap .btn-add,
.jof-wrap .btn-remove,
.jof-wrap .btn-copy,
.jof-wrap .btn-mini {
    font-family: inherit;
    cursor: pointer;
    transition: 0.18s ease;
}

.jof-wrap .btn {
    min-height: 46px;
    padding: 12px 24px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 750;
}

.jof-wrap .btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.jof-wrap .btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.jof-wrap .btn-success {
    background: var(--success);
    color: #ffffff;
}

.jof-wrap .btn-ghost {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.68);
    color: var(--text-dim);
}

.jof-wrap .btn-ghost:hover {
    border-color: #cbd5e1;
    color: var(--text);
}

.jof-wrap .btn-add {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: 1px dashed rgba(45, 124, 255, 0.36);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.46);
    color: var(--accent);
    font-size: 14px;
    font-weight: 750;
}

.jof-wrap .btn-add:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.68);
}

.jof-wrap .btn-remove,
.jof-wrap .btn-copy,
.jof-wrap .btn-mini {
    padding: 7px 11px;
    border: 1px solid rgba(11, 31, 51, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.54);
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
}

.jof-wrap .btn-remove {
    border-color: #fecaca;
    color: var(--danger);
}

.jof-wrap .btn-copy:hover,
.jof-wrap .btn-mini:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.jof-wrap .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
}

.jof-wrap .success-screen {
    text-align: center;
    padding: 52px 28px;
}

.jof-wrap .success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--success);
    font-size: 28px;
    font-weight: 800;
}

.jof-wrap .success-screen h2 {
    margin-bottom: 10px;
    font-size: 28px;
}

.jof-wrap .success-screen p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.65;
}

.jof-wrap hr.divider {
    border: none;
    border-top: 1px solid rgba(11, 31, 51, 0.10);
    margin: 28px 0;
}

.jof-wrap .hidden {
    display: none !important;
}

.jof-wrap .summary-section {
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid rgba(11, 31, 51, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.44);
}

.jof-wrap .summary-label {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.jof-wrap .summary-item {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(11, 31, 51, 0.08);
}

.jof-wrap .field.prefilled input,
.jof-wrap .field.prefilled textarea,
.jof-wrap .field.prefilled select {
    background: rgba(226, 232, 240, 0.72);
    border-color: rgba(45, 124, 255, 0.22);
}

.jof-wrap .field.prefilled::after {
    content: "Von vorherigem Standort übernommen";
    margin-top: 4px;
    color: rgba(11, 31, 51, 0.48);
    font-size: 11px;
    font-weight: 600;
}

.jof-wrap .form-error-box {
    display: none;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(220, 38, 38, 0.20);
    border-radius: 16px;
    background: rgba(254, 242, 242, 0.95);
    color: #991b1b;
    font-size: 13px;
    font-weight: 700;
}

.jof-wrap .form-error-box.active {
    display: block;
}

.jof-wrap .setup-context {
    width: 100%;
    max-width: 1120px;
    margin: -8px auto 24px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

.jof-wrap .setup-context-title {
    margin-bottom: 3px;
    color: rgba(11, 31, 51, 0.50);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.jof-wrap .setup-context-main {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.jof-wrap input.field-error,
.jof-wrap textarea.field-error,
.jof-wrap select.field-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.jof-wrap .field.has-error label {
    color: var(--danger);
}

.jof-wrap .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jof-wrap .checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(11, 31, 51, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.jof-wrap .checkbox-group input {
    width: 15px;
    min-height: 15px;
    height: 15px;
    accent-color: var(--accent);
}

.jof-wrap .accordion-toggle {
    width: 100%;
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(45, 124, 255, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--accent);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}

.jof-wrap .accordion-toggle:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.76);
}

.jof-wrap .dynamic-block-header {
    cursor: pointer;
}

.jof-wrap .dynamic-block.collapsed {
    opacity: 0.96;
}

.jof-wrap .dynamic-block.collapsed .dynamic-block-header {
    margin-bottom: 0;
}

.jof-wrap .sidebar-nav {
    position: fixed !important;
    top: 210px !important;
    right: 28px !important;
    z-index: 999 !important;

    width: 178px !important;
    padding: 10px !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;

    border-radius: 18px !important;
    background: rgba(243, 247, 252, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18) !important;
}

.jof-wrap .sidebar-nav button {
    width: 100% !important;
    min-height: 34px !important;
    padding: 8px 10px !important;

    border: 1px solid rgba(11, 31, 51, 0.10) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.72) !important;

    color: var(--text-dim) !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    text-align: left !important;
    cursor: pointer !important;
}

.jof-wrap .sidebar-nav button.active {
    background: var(--accent) !important;
    color: #fff !important;
}

.success-screen {
    max-width: 700px;
    margin: 80px auto;
    text-align: center;
}

.success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 42px;
    font-weight: 700;
    background: rgba(34, 197, 94, .15);
    border: 1px solid rgba(34, 197, 94, .3);
    color: #22c55e;
}

.success-screen h1 {
    margin-bottom: 16px;
}

.success-screen p {
    opacity: .8;
    margin-bottom: 28px;
}

.success-box {
    text-align: left;
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 28px;
}

.success-box ul {
    margin-top: 12px;
    padding-left: 18px;
}

.success-box li {
    margin-bottom: 8px;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    padding: 14px 18px;
    border-radius: 14px;
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, .92);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: .3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-error {
    border-color: rgba(239, 68, 68, .35);
}

.toast-success {
    border-color: rgba(34, 197, 94, .35);
}

/* Füge das zum CSS hinzu */
.jof-wrap .checkin-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.jof-wrap .checkin-section,
.jof-wrap .checkout-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(11, 31, 51, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.32);
}

.jof-wrap .checkin-section.disabled,
.jof-wrap .checkout-section.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.jof-wrap .checkin-section h4,
.jof-wrap .checkout-section h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 760px) {
    .jof-wrap {
        padding: 32px 14px 70px;
        background:
            linear-gradient(180deg, #0b1f33 0%, #102a43 280px, #0f2d49 100%);
    }

    .jof-wrap .checkin-checkout-grid {
        grid-template-columns: 1fr;
    }

    .jof-wrap .grid-2,
    .jof-wrap .grid-3,
    .jof-wrap .toggle-grid,
    .jof-wrap .placeholder-grid,
    .jof-wrap .timing-row {
        grid-template-columns: 1fr;
    }

    .jof-wrap .col-span-2,
    .jof-wrap .col-span-3 {
        grid-column: span 1;
    }

    .jof-wrap .template-header {
        grid-template-columns: auto 1fr auto;
    }

    .jof-wrap .status-pill {
        display: none;
    }

    .jof-wrap .placeholder-grid {
        grid-template-columns: 1fr 1fr;
    }

    .jof-wrap .sidebar-nav {
        display: none;
    }

    .jof-wrap .sidebar-nav {
        display: none !important;
    }
}

/* Platz schaffen, damit die Sidebar nicht über dem Formular liegt */
@media (min-width: 1350px) {

    .jof-wrap .header,
    .jof-wrap .progress-bar,
    .jof-wrap .setup-context,
    .jof-wrap .page,
    .jof-wrap .nav {
        max-width: 980px !important;
        margin-left: auto !important; margin-right: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 1349px) {
    .jof-wrap .sidebar-nav {
        position: static !important;
        width: 100% !important;
        max-width: 1120px !important;
        margin: -10px auto 22px !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .jof-wrap .sidebar-nav button {
        width: auto !important;
        flex: 1 1 120px !important;
        text-align: center !important;
    }
}
