:root {
            --bs-body-font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
            --bg-card: #f8fafc;

            /* Navy & Blue Color Palette */
            --blue-deep: #0f172a;
            --blue-navy: #1e3a8a;
            --blue-primary: #2563eb;
            --blue-soft: #eff6ff;
            --blue-border: #dbeafe;

            /* Elegant Warm Orange Accent Palette */
            --orange-primary: #f97316;
            --orange-hover: #ea580c;
            --orange-soft: #fff7ed;
            --orange-border: #ffedd5;
            --orange-glow: rgba(249, 115, 22, 0.25);
        }

        body {
            color: #334155;
            background-color: #fff;
            font-family: var(--bs-body-font-family);
        }

        main {min-height: 100vh;}

        /* Hero Dark Navy Background Gradient */
        .bg-hero-navy {
            background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 100%);
        }

        /* Accent Text Colors */
        .text-orange { color: var(--orange-primary) !important; }
        .text-blue-primary { color: var(--blue-primary) !important; }

        /* Custom Buttons */
        .btn-orange {
            background-color: var(--orange-primary);
            color: #ffffff;
            box-shadow: 0 4px 14px var(--orange-glow);
            transition: all 0.25s ease;
        }
        .btn-orange:hover, .btn-orange:focus {
            background-color: var(--orange-hover);
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
        }
        .btn-orange-cta {
            background-color: var(--orange-primary);
            color: #ffffff;
            border: none;
            font-weight: 600;
            padding: 0.8rem 1.75rem;
            border-radius: 0.75rem;
            box-shadow: 0 4px 14px var(--orange-glow);
            transition: all 0.25s ease;
        }
        .btn-orange-cta:hover, .btn-orange-cta:focus {
            background-color: var(--orange-hover);
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
        }

        .btn-blue-outline {
            color: #ffffff;
            border: 2px solid rgba(255, 255, 255, 0.3);
            font-weight: 600;
            padding: 0.75rem 1.75rem;
            border-radius: 0.75rem;
            transition: all 0.25s ease;
        }
        .btn-blue-outline:hover, .btn-blue-outline:focus {
            background-color: rgba(255, 255, 255, 0.1);
            color: #ffffff;
            border-color: #ffffff;
            transform: translateY(-2px);
        }

        .offcanvas {
            background-color: #f8fafc;
        }

        .offcanvas-body .nav-link.active {
        	background-color: var(--orange-soft);
            color: #c2410c;
            border: 1px solid var(--orange-border);
        }

        /* Badges */
        .badge-orange-soft {
            background-color: var(--orange-soft);
            color: #c2410c;
            border: 1px solid var(--orange-border);
        }

        .badge-blue-soft {
            background-color: var(--blue-soft);
            color: #1e40af;
            border: 1px solid var(--blue-border);
        }

        /* Card Styles */        
        .card, .card-custom {
            border: 1px solid #e2e8f0;
            border-radius: 1.25rem;
            transition: all 0.3s ease;
            background-color: var(--bg-card);
        }
        .card-custom:hover {
            transform: translateY(-5px);
            box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08) !important;
            border-color: #cbd5e1;
        }

        /* Mockup Containers */
        .glass-mockup {
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 1.25rem;
        }

        /* Icon Boxes */
        .icon-box-blue {
            width: 3.5rem;
            height: 3.5rem;
            border-radius: 1rem;
            background-color: var(--blue-soft);
            color: var(--blue-primary);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
        }

        .icon-box-orange {
            width: 3.5rem;
            height: 3.5rem;
            border-radius: 1rem;
            background-color: var(--orange-soft);
            color: var(--orange-primary);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
        }

        /* Custom Section Dividers & Highlights */
        .border-orange-top {
            border-top: 4px solid var(--orange-primary) !important;
        }

        .pulse-dot {
            width: 10px;
            height: 10px;
            background-color: var(--orange-primary);
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
            animation: pulse 1.8s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
            }
            70% {
                transform: scale(1);
                box-shadow: 0 0 0 8px rgba(249, 115, 22, 0);
            }
            100% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
            }
        }

.form-control, .form-select {
    background-color: #f5f5f5;
    padding: 10px 5px;
}

/* ==========================================================================
    Hifetexte
========================================================================== */
.onboarding-help-trigger {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: transparent;
    color: var(--blue-primary);
    font-size: 1.5rem;
    padding: 4px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, color 0.2s ease;
}

.onboarding-help-trigger:hover { 
	transform: scale(1.1); 
	color: color-mix(in srgb, var(--blue-primary) 80%, black); 
}

.help-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.help-drawer-backdrop.show { opacity: 1; }

.help-drawer {
    position: fixed;
    top: 0;
    right: -430px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: #f8fafc;
    color: var(--bs-body-color);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
    z-index: 10060;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    touch-action: pan-y;
    will-change: transform;
}

.help-drawer.show {
    right: 0 !important;
    transform: none !important;
}

.help-drawer-swipe-handle {
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    width: 14px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 10;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}
.help-drawer-swipe-handle:hover {
    opacity: 1;
}
.help-drawer-swipe-handle .handle-bar {
    width: 4px;
    height: 36px;
    border-radius: 4px;
}
.help-drawer-header {
    padding: 12px 24px;
    border-bottom: 1px solid #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.help-drawer-title { 
    font-size: 1.2rem; 
    font-weight: 700; 
    margin: 0;
    display: flex; 
    align-items: center; 
}
.help-drawer-close {
    border: none;
    background: none;
    font-size: 2.5rem;
    line-height: 1;
    color: #8c8c8c;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}
.help-drawer-close:hover { color: #bbb; }
.help-drawer-body { padding: 24px; overflow-y: auto; flex-grow: 1; font-size: 0.95rem; line-height: 1.6; }
.help-drawer-body h5 { font-size: 1.05rem; font-weight: 700; }

/*** Pulse-Heper-Button ***/
.glow-button {
  border: none;
  border-radius: 6px;
}
/* Erster Ring im Abstand von 2px */
.glow-button::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 50%;
  border: 1px solid #0d6efd;
  opacity: 0;
  animation: flash-ring 2.5s ease-in-out infinite;
}

/* Zweiter Ring im Abstand von ca. 5px, zeitlich versetzt */
.glow-button::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1px solid #0d6efd;
  opacity: 0;
  animation: flash-ring 2.5s ease-in-out infinite;
  animation-delay: 0.25s; /* Kurzer Versatz zum ersten Ring */
}

@keyframes flash-ring {
  0%, 15% {
    opacity: 0;
    transform: scale(0.98);
  }
  25% {
    opacity: 0.5; /* Dezent, nicht zu grell */
    transform: scale(1);
  }
  35%, 100% {
    opacity: 0;
    transform: scale(1);
  }
}

/*--------------------------------
    Donut Startseite
--------------------------------*/
        .donut-container {
            position: relative;
            width: 100%;
            max-width: 260px;
            margin: 0 auto;
        }

        /* Responsive SVG rotated so stroke starts at top center (12 o'clock) */
        .donut-svg {
            width: 100%;
            height: auto;
            transform: rotate(-90deg);
            display: block;
        }

        /* SVG Inner Circle Background (19% rest) */
        .donut-bg {
            fill: none;
            stroke: #e9ecef;
            stroke-width: 8;
        }

        /* SVG Dynamic Fill Layer (81% with #e5a50a)
           r = 40 => Circumference = 2 * PI * 40 ≈ 251.327
           dashoffset for 81% = 251.327 * (1 - 0.81) ≈ 47.75
        */
        .donut-fill {
            fill: none;
            stroke: #e5a50a;
            stroke-width: 8;
            stroke-linecap: round;
            stroke-dasharray: 251.327;
            stroke-dashoffset: 47.75;
        }

        /* Centered text overlay positioning */
        .donut-center-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            pointer-events: none;
        }

        .percent-number {
            font-size: 2.5rem;
            font-weight: 800;
            color: #212529;
            line-height: 1;
            letter-spacing: -0.03em;
        }

        .percent-label {
            font-size: 0.8rem;
            color: #6c757d;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-top: 6px;
        }

/* ==========================================================================
    Design-System Scoped Classes (BW)
========================================================================== */
.bw-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #323232;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.bw-title span { color: #297ffd; }
.bw-lead-text { font-size: 1.125rem; line-height: 1.7; color: #4a4a4a; }

.bw-feature-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.25s ease;
}
.bw-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(168, 204, 255, 0.25);
}
.bw-icon-box {
    border-radius: 12px;
    background-color: rgba(168, 204, 255, 0.1);
    align-items: center;
    margin-bottom: 1.5rem;
}
.bw-feature-card:hover .bw-icon-box { background-color: #297ffd; color: #ffffff; }

.bw-card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #297ffd;
    background-color: rgba(168, 204, 255, 0.1);
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
}
.bw-card-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; }
.bw-card-text { font-size: 0.975rem; line-height: 1.6; margin-bottom: 1rem; }
.bw-card-text:last-child { margin-bottom: 0; }

.bw-mockup-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
}
.bw-mockup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #297ffd;
}
.bw-mockup-header { border-bottom: 1px solid rgba(0, 0, 0, 0.06); padding-bottom: 0.75rem; margin-bottom: 1.25rem; }
.bw-mockup-title { font-size: 0.8rem; font-weight: 700; color: #8c8c8c; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.bw-mockup-match { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; }
.bw-mockup-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: conic-gradient(#297ffd 0% 85%, #e6e8ea 85% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.bw-mockup-ring::after {
    content: '';
    position: absolute;
    width: 58px;
    height: 58px;
    background-color: #ffffff;
    border-radius: 50%;
}
.bw-mockup-score { position: relative; z-index: 2; font-size: 1.3rem; font-weight: 800; color: #323232; line-height: 1; text-align: center; }
.bw-mockup-score small { display: block; font-size: 0.6rem; color: #8c8c8c; font-weight: 600; text-transform: uppercase; }
.bw-mockup-job-title { font-size: 1.05rem; font-weight: 750; color: #323232; margin: 0 0 4px 0; }
.bw-mockup-job-company { font-size: 0.85rem; color: #8c8c8c; margin: 0; }
.bw-mockup-progress-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: #8c8c8c; margin-bottom: 6px; }
.bw-mockup-progress { height: 8px; background-color: #e6e8ea; border-radius: 4px; overflow: hidden; margin-bottom: 1rem; }
.bw-mockup-progress span { display: block; height: 100%; background-color: #297ffd; border-radius: 4px; width: 75%; }
.bw-mockup-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.bw-mockup-tag { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 50px; background-color: rgba(40, 167, 69, 0.1); color: #28a745; }
.bw-mockup-tag.info { background-color: rgba(23, 162, 184, 0.1); color: #17a2b8; }

.bw-cta-card {
    background: linear-gradient(135deg, #297ffd 0%, #ff5722 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.12);
    position: relative;
    overflow: hidden;
    border: none;
}
.bw-cta-card h3 { color: #ffffff; font-size: 1.85rem; font-weight: 800; margin-bottom: 1rem; }
.bw-cta-card p { color: rgba(255, 255, 255, 0.92); font-size: 1.075rem; line-height: 1.6; margin-bottom: 1.75rem; }
.bw-cta-card p strong { color: #ffffff; }
.bw-cta-card p:last-of-type { margin-bottom: 0; }

.bw-btn-primary {
    background-color: #ffffff;
    color: #ff5722;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}
.bw-btn-primary:hover {
    background-color: #fff4ef;
    color: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.bw-btn-primary:active { transform: translateY(0); }

@media (max-width: 991px) {
    .bw-title { font-size: 2rem; }
    .bw-cta-card { padding: 2.25rem 1.75rem; }
}

/* ==========================================================================
   Onboarding & Wizard
   ========================================================================== */
.onboarding-card {
    background-color: var(--dark-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.onboarding-header { text-align: center; margin-bottom: 32px; }
.onboarding-header h1 { font-size: 1.75rem; font-weight: 800; color: #323232; margin-bottom: 8px; }
.onboarding-header p { color: #6c757d; font-size: 0.95rem; }

.onboarding-steps {
    align-items: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto 3.5rem;
}
.onboarding-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 3px;
    background-color: #e6e8ea;
    z-index: 1;
}
.onboarding-steps-progress {
    position: absolute;
    top: 20px;
    left: 30px;
    width: 0%;
    height: 3px;
    background-color: var(--bs-primary);
    z-index: 1;
    transition: width 0.3s ease;
}
.onboarding-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}
.onboarding-step-circle, #dashmenu .navlink-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e6e8ea;
    color: #8c8c8c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
    cursor: pointer;
}
.onboarding-step.active .onboarding-step-circle, #dashmenu .nav-item.active .navlink-step-circle {
    background-color: var(--bs-primary);
    background-image: linear-gradient(135deg, rgba(245,245,245,0.7) 0%,rgba(245,245,245,0) 30%,rgba(255,255,255,0) 100%) !important;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--bs-primary) 30%, transparent);
}
.onboarding-step.completed .onboarding-step-circle {
    background-color: color-mix(in srgb, var(--bs-primary) 12%, #fff);
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}
/* Roter Punkt mittig über der Zahl: dieser Schritt ist noch nicht vollständig */
.onboarding-step-incomplete {
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dc3545;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.35);
    z-index: 3;
    pointer-events: none;
}
.onboarding-step-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8c8c8c;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    position: absolute;
    top: 100%;
}
.onboarding-step.active .onboarding-step-label { color: var(--bs-primary); }

.onboarding-section { display: none; }
.onboarding-section.active { display: block; animation: fadeInStep 0.4s ease; }

/* Schritt-Steuerung liegt am Anfang des Formulars (siehe showStep()):
   Trennlinie zeigt zum Inhalt, kein zusätzlicher Abstand nach oben. */
.onboarding-footer-slot > .onboarding-footer {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    padding-bottom: 1rem;
    border-bottom: var(--bs-border-width, 1px) solid var(--bs-border-color, #dee2e6);
}
@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.onboarding-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 576px) {
    .onboarding-photos-grid { grid-template-columns: 1fr; }
}

.onboarding-photo-upload-card {
    border: 2px dashed rgba(0,0,0,0.1);
    border-radius: 12px;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #f8f9fa;
    transition: border-color 0.2s, background-color 0.2s;
    position: relative;
    overflow: hidden;
    padding: 16px;
    text-align: center;
}
.onboarding-photo-upload-card:hover {
    border-color: var(--bs-primary);
    background-color: color-mix(in srgb, var(--bs-primary) 2%, #fff);
}
.onboarding-photo-upload-card i { font-size: 1.5rem; margin: auto; transition: color 0.2s; }
.onboarding-photo-upload-card:hover i { color: var(--bs-primary); }
.onboarding-photo-upload-card span { font-size: 0.8rem; color: #6c757d; font-weight: 500; }

.onboarding-photo-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.onboarding-photo-remove {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(220, 53, 69, 0.95);
    color: #ffffff !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 0 12px 0 12px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.2s;
    font-size: 0.85rem;
    padding: 0;
    line-height: 1;
}
.onboarding-photo-remove:hover { background-color: #dc3545; }
.onboarding-photo-upload-card.has-preview .onboarding-photo-remove { display: flex; }

.onboarding-card .form-control,
.checkout-card .form-control,
.checkout-section .form-control {
    background-color: var(--bg-form-control);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.onboarding-card .form-control:hover,
.checkout-card .form-control:hover,
.checkout-section .form-control:hover { 
    border-color: rgba(0, 0, 0, 0.25); 
    background-color: var(--bg-form-control); 
}
.onboarding-card .form-control:focus,
.checkout-card .form-control:focus,
.checkout-section .form-control:focus {
    background-color: var(--bg-form-control);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bs-primary) 15%, transparent);
    outline: none;
}
.onboarding-section h4, .onboarding-section > p.text-muted { text-align: left; }

/* ==========================================================================
    Dashboard
========================================================================== */
.dashboard-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 1;
}
.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    z-index: 10;
}
.dropdown-header {color: var(--text-color);}
.dashboard-applications-list { display: flex; flex-direction: column; gap: 16px; }
.dashboard-application-card { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.dashboard-application-card .app-head { display: flex; justify-content: space-between; align-items: flex-start; }
.dashboard-application-card .company { font-size: 1rem; font-weight: 500; }
.dashboard-application-card .role { font-size: 1.1rem; font-weight: 700; margin-top: 2px; }
.dashboard-application-card .status { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 50px; }
.dashboard-application-card .status.interview { background-color: rgba(40, 167, 69, 0.1); color: #28a745; }
.dashboard-application-card .status.sent { background-color: rgba(23, 162, 184, 0.1); color: #17a2b8; }
.dashboard-application-card .status.draft { background-color: rgba(255, 193, 7, 0.1); color: #ffc107; }
.dashboard-application-card .app-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #8c8c8c;
}
.dashboard-application-card .app-action { color: var(--bs-primary); font-weight: 600; }
.dashboard-application-card .app-action:hover { color: color-mix(in srgb, var(--bs-primary) 85%, #000); }

.dashboard-collapsible {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease-out;
    opacity: 0;
}
.dashboard-collapsible.expanded { grid-template-rows: 1fr; opacity: 1; }
.dashboard-collapsible-inner { overflow: hidden; min-height: 0; }
.dashboard-collapsible.expanded .dashboard-collapsible-inner { overflow: visible; }

.dashboard-aside { display: flex; flex-direction: column; gap: 0; }
.dashboard-card.tip { display: flex; gap: 16px; text-align: left; }
.dashboard-card.tip .tip-icon { font-size: 1.5rem; flex-shrink: 0; }
.dashboard-card.tip strong { font-size: 0.95rem; color: #323232; display: block; margin-bottom: 4px; }
.dashboard-card.tip p { font-size: 0.85rem; color: #6c757d; margin: 0; line-height: 1.4; }

.dashboard-cta {
    background: linear-gradient(135deg, var(--bs-primary) 0%, color-mix(in srgb, var(--bs-primary) 70%, #000) 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--bs-primary) 20%, transparent);
    text-align: left;
}
.dashboard-cta h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px 0; color: #ffffff; }
.dashboard-cta p { font-size: 0.875rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 20px; line-height: 1.4; }
.dashboard-cta .primary-btn { background-color: #ffffff; color: var(--bs-primary); font-weight: 700; }
.dashboard-cta .primary-btn:hover { background-color: #f8f9fa; color: color-mix(in srgb, var(--bs-primary) 85%, #000); }

.user-tariff-badge-wrap .primary-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background-color: var(--bs-primary, #0d6efd); color: #ffffff; border-radius: 50rem; font-size: 0.85rem; text-decoration: none; transition: all 0.2s ease; }
.user-tariff-badge-wrap .primary-btn:hover { opacity: 0.92; color: #ffffff; transform: translateY(-1px); }

/* ==========================================================================
    Bewerbungsvorlagen
========================================================================== */
.miniature-mockup { width: 100%; height: 180px; background-color: #ffffff; border-radius: 8px; border: 1px solid #e2e8f0 !important; position: relative; overflow: hidden; margin-bottom: 16px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) }
.mini-card .crown-badge, .miniature-mockup .crown-badge { position: absolute; top: 10px; left: 10px; background: #ffffff; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); z-index: 20; border: 1px solid rgba(245, 158, 11, 0.35); transition: transform 0.2s ease; }
.mini-card:hover .crown-badge { transform: scale(1.1); }
.mini-card { transition: transform 0.2s; cursor: pointer; border: 2px solid transparent; position: relative; }
.mini-card:hover { transform: translateY(-3px); }
.mini-card.active { border-color: var(--bs-primary); }
.mini-card .check-badge { display: none; position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; background-color: #198754; color: white; border-radius: 50%; align-items: center; justify-content: center; font-size: 18px; z-index: 20; }
.mini-card.active .check-badge { display: flex; }

.color-dot-label { cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: inline-block; border: 2px solid transparent; transition: all 0.2s ease; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); position: relative; }
.color-radio:checked + .color-dot-label { border-color: #fff; box-shadow: 0 0 0 2px var(--bs-primary); transform: scale(1.1); }
.color-dot-label.navy { background-color: #1a365d; }
.color-dot-label.charcoal { background-color: #2d3748; }
.color-dot-label.teal { background-color: #0d9488; }
.color-dot-label.orange { background-color: #ea580c; }
.m-acc { background-color: var(--live-primary); }

/* Color Themes */
.theme-navy { --theme-primary: #1a365d; --theme-secondary: #2b6cb0; --theme-text-on-primary: #ffffff; }
.theme-charcoal { --theme-primary: #2d3748; --theme-secondary: #4a5568; --theme-text-on-primary: #ffffff; }
.theme-teal { --theme-primary: #0d9488; --theme-secondary: #14b8a6; --theme-text-on-primary: #ffffff; }
.theme-lightblue { --theme-primary: #8ad0ea; --theme-secondary: #aedffa; --theme-text-on-primary: #000000; }
.theme-lime { --theme-primary: #65a30d; --theme-secondary: #84cc16; --theme-text-on-primary: #ffffff; }
.theme-forest { --theme-primary: #166534; --theme-secondary: #22c55e; --theme-text-on-primary: #ffffff; }
.theme-grey { --theme-primary: #4b5563; --theme-secondary: #6b7280; --theme-text-on-primary: #ffffff; }

.portfolio-progress-bar { height: 8px; border-radius: 4px; background-color: #e2e8f0; overflow: hidden; }
.portfolio-progress-fill { height: 100%; transition: width 0.4s ease-in-out; }
.bg-orange { background-color: #ff9800 !important; }
.border-orange { border-color: #ff9800 !important; }

.document-preview-wrapper { perspective: 1000px; }
.resume-document.preview-sheet,
.cl-sheet {
    position: relative;
    font-family: Helvetica, Arial, sans-serif;
    color: #2d3748;
    background-color: #ffffff;
    line-height: 1.5;
    font-size: 10.5pt;
    transition: all 0.3s ease;
}

.resume-document.preview-sheet h1,
.resume-document.preview-sheet h2,
.resume-document.preview-sheet h3,
.resume-document.preview-sheet h4,
.resume-document.preview-sheet h5,
.resume-document.preview-sheet h6,
.cl-sheet h1,
.cl-sheet h2,
.cl-sheet h3,
.cl-sheet h4,
.cl-sheet h5,
.cl-sheet h6 {
    color: #1a202c;
}

.resume-document.preview-sheet .text-muted,
.cl-sheet .text-muted {
    color: #4a5568 !important;
}

.tab-btn {
    cursor: pointer;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.tab-btn.active { color: var(--bs-primary); border-bottom-color: var(--bs-primary); }

.coverpage-title-box { margin: 100px 0 80px; text-align: center; }
.coverpage-photo-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--theme-primary);
    overflow: hidden;
    margin: 0 auto 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.coverpage-photo-circle img { width: 100%; height: 100%; object-fit: cover; }
.coverpage-divider {
    width: 80px;
    height: 4px;
    background-color: var(--theme-primary);
    margin: 20px auto;
    border-radius: 2px;
}
.coverpage-footer {
    position: absolute;
    bottom: 50px;
    left: 40px;
    right: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    text-align: center;
    font-size: 9.5pt;
    color: #4a5568;
}
.accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background-color: var(--theme-primary);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.cv-accent-text { color: var(--theme-primary) !important; }
.cv-accent-border { border-bottom-color: var(--theme-primary) !important; }

.cl-sheet { padding: 24px 20px; background: #fff; }
@media (min-width: 992px) {
    .cl-sheet {
        max-width: 794px;
        min-height: 1123px;
        margin: 0 auto;
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
        padding: 48px 56px;
    }
}

/* ==========================================================================
   Analyze View (Chart.js Donut + Handlungshinweise)
   ========================================================================== */
.analyze-donut-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    max-width: 100%;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
@media (max-width: 575.98px) {
    .analyze-donut-wrap { width: 180px; height: 180px; }
}
.analyze-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    pointer-events: none;
    line-height: 1;
}
.analyze-donut-value {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: #323232;
}
.analyze-donut-percent {
    font-size: 1.4rem;
    font-weight: 700;
    color: #8c8c8c;
    margin-left: 2px;
    line-height: 1;
}
.analyze-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 50rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}
.analyze-tag-success {
    background-color: rgba(40, 167, 69, 0.12);
    color: #1e7e34;
}
.analyze-tag-warning {
    background-color: rgba(229, 165, 10, 0.15);
    color: #9a6b00;
}
.analyze-actions-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #323232;
}
.analyze-actions-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

/* Tips View Custom Styles */
    .tips-tabs {
        display: flex;
        border-bottom: 2px solid #e2e8f0;
        margin-bottom: 30px;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .tips-tab-btn {
        cursor: pointer;
        padding: 12px 20px;
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--text-color);
        border-bottom: 3px solid transparent;
        transition: all 0.2s ease;
        white-space: nowrap;
        background: transparent;
        border-top: none;
        border-left: none;
        border-right: none;
    }
    .tips-tab-btn:hover {
        color: var(--bs-primary);
    }
    .tips-tab-btn.active {
        color: var(--bs-primary);
        border-bottom-color: var(--bs-primary);
    }
    
    .tip-section {
        animation: fadeIn 0.3s ease-in-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .tip-icon-box {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        background-color: color-mix(in srgb, var(--bs-primary) 10%, #fff);
        color: var(--bs-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    
    .checklist-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
        font-size: 0.95rem;
        color: var(--text-color);
    }
    .checklist-item i {
        color: #28a745;
        margin-top: 4px;
        font-size: 1rem;
    }
    
    .warning-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
        font-size: 0.95rem;
        color: var(--text-color);
    }
    .warning-item i {
        color: #dc3545;
        margin-top: 4px;
        font-size: 1rem;
    }

/* ==========================================================================
   Layout, Sections & Toast
========================================================================== */
.toast-container {
    position: fixed !important;
    bottom: 1.5rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 1060 !important;
    width: 90% !important;
    max-width: 500px !important;
    pointer-events: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}
.toast {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(120%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s;
    pointer-events: auto;    
    background: var(--bg-card);
}
.toast:not(.show) { display: block !important; }
.toast.show { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; }

@media (max-width: 767px) {
    .toast-container {
        bottom: 1rem !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 95% !important;
        max-width: 95% !important;
        padding: 0 !important;
    }
    .toast {
        transform: translateY(120%);
        margin-bottom: 0;
        width: 100% !important;
        max-width: 100% !important;
    }
    .toast.show { transform: translateY(0) !important; }
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--text-dark);
    
}
.toast-title { margin-right: auto; }
.btn-close {
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    float: right;
}
.btn-close:hover { color: var(--text-color); }
.toast-body { 
    padding: 1rem; 
}
.toast-divider { border: 0; border-top: 1px solid var(--border-color); margin: 1rem 0; }
.toast-wallet-info { display: flex; align-items: center; margin-bottom: 1rem; }
.toast-auction-heading {
    text-transform: uppercase;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}
.toast-auction-list { background-color: rgba(0, 0, 0, 0.1); border-radius: 8px; padding: 0.5rem; }
.toast-auction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.toast-auction-item:last-child { border-bottom: none; }

/* ==========================================================================
   Neue Nachrichten: roter Punkt am Nachrichten-Button
   Der Punkt wird von js/user.js (showToast) ein-/ausgeblendet, sobald der
   Toast (#infoToast) mindestens eine Nachricht enthält.
========================================================================== */
#infoToastBtn { position: relative; }

#infoToastBtn .toast-badge {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background-color: #dc3545;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}