/**
 * Jobriver - Jobs Search App Styles
 * Modern 3-Column Layout
 */

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    --color-primary: #724FFF;
    --color-primary-hover: #5A3ADA;
    --color-primary-light: #F4F0FF;
    --color-primary-lighter: #FAF8FF;
    --color-primary-dark: #E8E0FF;
    --color-primary-alpha-10: rgba(114, 79, 255, 0.1);
    --color-primary-alpha-15: rgba(114, 79, 255, 0.15);
    --color-primary-alpha-20: rgba(114, 79, 255, 0.2);
    --color-primary-alpha-40: rgba(114, 79, 255, 0.4);
    --color-secondary: #0d1738;
    --color-accent: #22C55E;
    --color-bg: #F8FAFC;
    --color-white: #FFFFFF;
    --color-text: #0F172A;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;
    --color-border-dark: #CBD5E1;

    /* Skill colors */
    --color-tech-bg: #F4F0FF;
    --color-tech-text: #724FFF;
    --color-soft-bg: #E6F8F5;
    --color-soft-text: #01BC9A;

    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --header-height: 56px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);

    --transition: 150ms ease;

    /* ---- Tokens für navigation.css (Mobile-Menü) ----
       jobs-app.css hat ein eigenes, knapperes Variablen-Set. navigation.css
       erwartet aber die globalen Design-Tokens aus styles.css. Ohne diese
       greifen die Mobile-Menü-Styles nicht (Abstände/Schrift fallen weg). */
    --color-border-light: #E2E8F0;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-xs: 0.75rem;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --radius-xs: 2px;
    --radius-full: 9999px;
    --radius-xl: 1rem;
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --z-dropdown: 100;
    --z-modal: 1100;
}


/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* iOS / iPadOS / macOS Safari: automatisch erkannte "Links" (Telefonnummern,
   Daten, Adressen, Gehälter) nicht blau einfärben, sondern die umgebende
   Textfarbe behalten. Safari injiziert dafür eigene UA-Styles, daher !important. */
a[x-apple-data-detectors],
a[x-apple-data-detectors] * {
    color: inherit !important;
    text-decoration: none !important;
    font: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select {
    font: inherit;
    /* iOS: System-/Akzentfarbe für Dropdown-/Eingabe-Text unterbinden,
       stattdessen die tatsächlich gesetzte Textfarbe verwenden */
    -webkit-text-fill-color: currentColor;
}

/* iOS: blauen Tap-Highlight beim Antippen von Links/Buttons entfernen */
a, button, select, input, [role="button"] {
    -webkit-tap-highlight-color: transparent;
}

ul, ol {
    list-style: none;
}


/* ==========================================================================
   App Layout
   ========================================================================== */

.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.app-header {
    height: var(--header-height);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
    flex-shrink: 0;
    z-index: 100;
}

.app-main {
    flex: 1;
    display: grid;
    grid-template-columns: auto 380px 1fr;
    overflow: hidden;
}


/* ==========================================================================
   Header
   ========================================================================== */

.app-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.app-logo svg {
    color: var(--color-primary);
}

.app-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 600px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0 12px;
    height: 38px;
    transition: var(--transition);
    flex: 1;
    min-width: 0;
}

.search-input-wrapper:focus-within {
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.search-input-wrapper svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: var(--color-text);
}

.search-input-wrapper input::placeholder {
    color: var(--color-text-muted);
}

.search-input-wrapper kbd {
    font-size: 11px;
    padding: 2px 6px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-muted);
}

.app-header-nav {
    display: none;
}

@media (min-width: 1200px) {
    .app-header-nav {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .app-header-nav-link {
        font-size: 14px;
        color: var(--color-text-muted);
        transition: color var(--transition);
    }

    .app-header-nav-link:hover,
    .app-header-nav-link:focus {
        color: var(--color-primary);
    }
}

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Sprachschalter-Slots: Header = Desktop, Toolbar = Mobil (Default-Zustand Desktop) */
.lang-slot {
    display: flex;
    align-items: center;
}

.lang-slot--toolbar {
    display: none;
}

/* Hamburger nur Mobil (siehe @media max-width:900px) */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn:hover {
    background: var(--color-bg);
}

/* Mobile-Menü-Header: Sprachschalter + X rechtsbündig (wie im Haupt-Header,
   wo styles.css das überschreibt – auf /jobs fehlt styles.css, daher hier). */
.mobile-menu-header {
    justify-content: flex-end;
    padding: var(--space-4) var(--space-6);
}

.mobile-header-actions {
    width: 100%;
    justify-content: flex-end;
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    color: var(--color-text-muted);
}

.mobile-menu-close:hover {
    background-color: var(--color-bg);
    color: var(--color-secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: white;
}

.btn-primary svg {
    stroke: white;
}

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

.btn-secondary:hover {
    background-color: var(--color-bg);
}

.btn-ghost {
    color: var(--color-text-muted);
}

.btn-ghost:hover {
    color: var(--color-text);
    background: var(--color-bg);
}

.btn-ghost.btn-saved {
    color: var(--color-primary);
}

.btn-ghost.btn-saved:hover {
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-text {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 500;
}

.btn-text:hover {
    text-decoration: underline;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    position: relative;
}

.btn-icon:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

/* Hide filter toggle on desktop */
#filter-mobile-toggle {
    display: none;
}

.filter-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================================================
   Column 1: Filters
   ========================================================================== */

.col-filters {
    background: var(--color-white);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.25s ease, min-width 0.25s ease, opacity 0.2s ease;
    min-width: 280px;
    width: 280px;
}

.col-filters.collapsed {
    min-width: 0;
    width: 0;
    border-right: none;
    opacity: 0;
    pointer-events: none;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 57px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.filters-header h2 {
    font-size: 15px;
    font-weight: 600;
}

.filter-chips {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--color-border);
}

.filter-chips.active {
    display: flex;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-md);
    background: var(--color-tech-bg);
    color: var(--color-tech-text);
    cursor: pointer;
    transition: background-color 0.15s;
    white-space: nowrap;
}

.filter-chip:hover {
    background: #E8E0FF;
}

.filter-chip svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.7;
}

.filter-chip:hover svg {
    opacity: 1;
}

.filters-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.filter-group {
    border-bottom: 1px solid var(--color-border);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
}

.filter-group-toggle svg {
    color: var(--color-text-muted);
    transition: transform var(--transition);
}

.filter-group-toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

.filter-group-content {
    padding: 0 16px 12px;
}

.filter-group-scrollable {
    max-height: 180px;
    overflow-y: auto;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    cursor: pointer;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s;
}

.filter-checkbox-item:hover {
    background-color: var(--color-bg);
}

.filter-checkbox-item input {
    display: none;
}

.filter-checkbox-item .checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid var(--color-border-dark);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.filter-checkbox-item input:checked + .checkbox {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.filter-checkbox-item input:checked + .checkbox::after {
    content: '';
    width: 11px;
    height: 11px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3L4.5 8.5L2 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
}

.filter-checkbox-item .label {
    flex: 1;
    color: var(--color-text);
    line-height: 1.3;
}

.filter-checkbox-item:hover .label {
    color: var(--color-primary);
}

/* Filter count badges (dynamic) */
.filter-checkbox-item .filter-count {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-left: 4px;
}

/* Filter count badges (static from PHP) */
.filter-checkbox-item .count {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-left: auto;
}

.filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-range input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    width: 100%;
}

.filter-range input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.filter-range .separator {
    color: var(--color-text-muted);
}

/* Salary Slider Filter */
.filter-salary-slider {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-salary-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--color-border);
    outline: none;
    cursor: pointer;
}

.filter-salary-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px var(--color-primary-alpha-40);
    transition: transform 0.15s ease;
}

.filter-salary-slider input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.1);
}

.filter-salary-slider input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px var(--color-primary-alpha-40);
}

.filter-salary-slider input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--color-border);
}

.salary-slider-display {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
}

.filter-show-no-salary {
    margin-top: 4px;
}

.filter-search-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 8px;
}

.filter-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}


/* ==========================================================================
   Column 2: Results List
   ========================================================================== */

.col-results {
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--color-border);
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 57px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
    /* Stacking-Context, damit das Sprachschalter-Dropdown über der Liste liegt */
    position: relative;
    z-index: 30;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: var(--transition);
}

.btn-filter-toggle:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.btn-filter-toggle.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.results-count {
    font-size: 14px;
    color: var(--color-text-muted);
}

.results-count strong {
    color: var(--color-text);
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-actions select {
    padding: 6px 28px 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    font-size: 13px;
    /* WICHTIG: explizite Textfarbe + font, sonst rendert iOS/Safari den
       Select-Text in der blauen System-Tint-Farbe (wie ein Link). */
    color: var(--color-text);
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

/* Auch die Optionen in der ausgeklappten Liste neutral einfärben (Android/Safari). */
.results-actions select option {
    color: var(--color-text);
}

/* Saved Jobs Toggle Button */
.btn-saved-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.btn-saved-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-saved-toggle.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-saved-toggle svg {
    width: 16px;
    height: 16px;
}

.saved-toggle-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saved-toggle-count:empty {
    display: none;
}

.btn-saved-toggle.active .saved-toggle-count {
    background: white;
    color: var(--color-primary);
}

.results-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.result-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.result-item:hover {
    border-color: var(--color-border-dark);
}

.result-item.active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.result-item-logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.result-item-logo {
    width: 44px;
    height: 44px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.result-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-item-logo svg {
    color: var(--color-text-muted);
}

.result-item-match {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    line-height: 1;
    white-space: nowrap;
}

.result-item-match.match-mid {
    color: var(--color-warning, #e09100);
}

.result-item-match.match-high {
    color: var(--color-success, #16a34a);
}

.result-item-content {
    flex: 1;
    min-width: 0;
}

.result-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-item-company {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.result-item-company .company-verified-badge {
    width: 0.875rem;
    height: 0.875rem;
}

.result-item-company-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tooltip am linken Rand des Listen-Items ausrichten (nicht über die Kante). */
.result-item-company .company-verified-badge::after {
    left: 0;
    transform: translateY(-0.25rem);
}

.result-item-company .company-verified-badge:hover::after,
.result-item-company .company-verified-badge:focus-visible::after {
    transform: translateY(0);
}

.result-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.result-item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-item-meta .meta-dot {
    color: var(--color-border-dark);
    font-size: 14px;
    line-height: 1;
}

.result-item-meta svg {
    width: 14px;
    height: 14px;
}

/* Premium Job Highlighting - Purple Theme */
.result-item--premium {
    position: relative;
    background: linear-gradient(135deg, #FAF8FF 0%, #F4F0FF 100%);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary), 0 4px 12px rgba(114, 79, 255, 0.15);
}

.result-item--premium:hover {
    border-color: var(--color-primary-hover);
    box-shadow: 0 0 0 1px var(--color-primary-hover), 0 6px 16px rgba(114, 79, 255, 0.2);
}

.result-item--premium.active {
    border-color: var(--color-primary-hover);
    background: linear-gradient(135deg, #F4F0FF 0%, #E8E0FF 100%);
}

.result-item-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    background: linear-gradient(135deg, #724FFF 0%, #5A3ADA 100%);
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(114, 79, 255, 0.3);
}

.results-loader {
    padding: 24px;
    display: flex;
    justify-content: center;
}


/* ==========================================================================
   Column 3: Detail View
   ========================================================================== */

.col-detail {
    background: var(--color-white);
    overflow-y: auto;
}

/* Prev/Next Job Navigation */
.detail-job-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.detail-job-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
}

.detail-job-nav-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.detail-job-nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.detail-job-nav-counter {
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Back-to-list button inside the nav: mobile/tablet only */
.detail-job-nav-back {
    display: none;
}

@media (max-width: 1200px) {
    .detail-job-nav-back {
        display: inline-flex;
        color: var(--color-primary);
    }

    .detail-job-nav-counter {
        display: none;
    }

    /* Nav has its own back button → hide the sticky bar */
    .col-detail.has-job-nav .detail-back-btn {
        display: none;
    }
}

.detail-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-muted);
    padding: 40px;
}

.detail-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.detail-empty-icon svg {
    opacity: 0.4;
}

.detail-empty h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.detail-empty p {
    font-size: 14px;
}

.no-results-reset {
    margin-top: 12px;
    font-size: 13px;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 6px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.no-results-reset:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.detail-content {
    padding: 10px 24px 24px;
}

.detail-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.detail-logo {
    width: 64px;
    height: 64px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

.detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== Titelbild (Cover) für Premium-Anzeigen =====
   Eingerückt mit runden Ecken (kein Full-Bleed). Der Skeleton-Shimmer liegt
   als Hintergrund unter dem lazy geladenen Bild und ist sichtbar, bis das
   Cover ihn überdeckt — Skeleton-Loading ohne JS. */
.detail-cover {
    aspect-ratio: 4 / 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--color-border) 25%, var(--color-bg) 50%, var(--color-border) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s infinite;
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* LinkedIn-Look: Logo hängt über die Unterkante des Covers */
.detail-header.has-cover .detail-logo {
    position: relative;
    margin-top: -32px;
    margin-left: 20px;
    margin-bottom: 12px;
    background: var(--color-white);
    border: 3px solid var(--color-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

/* Badge-Zeile sitzt mit Cover ZWISCHEN Logo und Titel */
.detail-header.has-cover .detail-badge-row {
    margin-top: 4px;
    margin-bottom: 12px;
}

/* Ohne Logo rückt die Badge-Zeile direkt unters Cover */
.detail-header.has-cover .detail-cover + .detail-badge-row {
    margin-top: 16px;
}

.detail-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.detail-company {
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* ===== Verified Badge (Company in Job-Detail) ===== */
.company-verified-badge {
    --verified-color: var(--color-primary);
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    color: var(--verified-color);
    cursor: help;
}

.company-verified-badge svg {
    display: block;
    width: 100%;
    height: 100%;
}

.company-verified-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    /* Nach unten öffnen: das Badge sitzt oben im scrollenden .col-detail,
       ein nach oben öffnender Tooltip würde an der Panel-Kante abgeschnitten. */
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-0.25rem);
    background: #1a1a2e;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
    z-index: 20;
}

.company-verified-badge:hover::after,
.company-verified-badge:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip horizontal mittig auf das Badge zentriert; bei wenig Platz am
   linken Rand der Detailspalte nicht über die Kante ragen lassen. */
.detail-company .company-verified-badge::after {
    left: 0;
    transform: translateY(-0.25rem);
}

.detail-company .company-verified-badge:hover::after,
.detail-company .company-verified-badge:focus-visible::after {
    transform: translateY(0);
}

.detail-company-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

.detail-company-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.detail-company-jobs {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 400;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.detail-meta-item svg {
    width: 18px;
    height: 18px;
}

.detail-salary {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
}

.detail-salary.salary-note {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    font-style: italic;
}

.detail-salary-estimate {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: -14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-salary-estimate svg {
    width: 14px;
    height: 14px;
    color: var(--color-success, #22C55E);
    flex-shrink: 0;
}

.salary-estimate-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.salary-estimate-link:hover {
    text-decoration: underline;
}

.detail-updated {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.detail-updated svg {
    width: 18px;
    height: 18px;
}

.detail-actions {
    display: flex;
    gap: 12px;
}

.detail-actions .btn {
    padding: 12px 24px;
}

.detail-actions .btn-external-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.detail-actions .btn-external-apply svg {
    flex-shrink: 0;
}

/* Share Bar */
.detail-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.detail-share-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-right: 4px;
    white-space: nowrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}

.share-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(114, 79, 255, 0.06);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-btn--linkedin:hover {
    border-color: #0A66C2;
    color: #0A66C2;
    background: rgba(10, 102, 194, 0.06);
}

.share-btn--x:hover {
    border-color: #0d1738;
    color: #0d1738;
    background: rgba(13, 23, 56, 0.06);
}

.share-btn--facebook:hover {
    border-color: #1877F2;
    color: #1877F2;
    background: rgba(24, 119, 242, 0.06);
}

.share-btn--reddit:hover {
    border-color: #FF4500;
    color: #FF4500;
    background: rgba(255, 69, 0, 0.06);
}

.share-btn--whatsapp:hover {
    border-color: #25D366;
    color: #25D366;
    background: rgba(37, 211, 102, 0.06);
}

.share-btn--email:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(114, 79, 255, 0.06);
}

.share-btn--copy {
    position: relative;
}

.share-btn--copy.copied {
    border-color: #10B981;
    color: #10B981;
    background: rgba(16, 185, 129, 0.06);
}

.share-btn--native {
    display: none;
}

.detail-section {
    margin-bottom: 28px;
}

.detail-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.detail-company-cta {
    padding: 4px 0;
}

.btn-company-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--color-primary);
    transition: var(--transition);
}

.btn-company-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.detail-section-content {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.detail-section-content p {
    margin-bottom: 12px;
}

.detail-section-content ul {
    padding-left: 20px;
    list-style: disc;
}

.detail-section-content li {
    margin-bottom: 6px;
}

.detail-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-skill {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.detail-skill.tech {
    background: var(--color-tech-bg);
    color: var(--color-tech-text);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.detail-skill.soft {
    background: var(--color-soft-bg);
    color: var(--color-soft-text);
}

.detail-skill.lang {
    background: var(--color-border);
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.detail-skill.lang svg {
    width: 14px;
    height: 14px;
}

/* Badge Row - aligns Premium + Hot badges on same line */
.detail-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Premium Badge in Detail - Purple Theme */
.detail-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #724FFF 0%, #5A3ADA 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(114, 79, 255, 0.3);
}

.detail-premium-badge svg {
    fill: currentColor;
    stroke: none;
}

/* Hot Job Highlighting - Orange Theme */
.result-item--hot {
    border-color: #F97316;
}

.result-item--hot:hover {
    border-color: #EA580C;
    box-shadow: 0 0 0 1px #EA580C, 0 4px 12px rgba(249, 115, 22, 0.15);
}

.result-item--hot.active {
    border-color: #EA580C;
    background: #FFF7ED;
}

/* "Dringend gesucht" (bezahltes Add-on) - Rot/Orange, kräftiger als Hot.
   Der Doppelselektor schlägt .result-item--premium per Spezifität: bei
   Premium+Urgent bleiben lila Hintergrund und Eck-Badge erhalten, nur
   Umrandung und Glow werden rot. */
.result-item--urgent,
.result-item--premium.result-item--urgent {
    border-color: #EF4444;
    box-shadow: 0 0 0 1px #F97316, 0 4px 14px rgba(239, 68, 68, 0.20);
}

.result-item--urgent:hover,
.result-item--premium.result-item--urgent:hover {
    border-color: #DC2626;
    box-shadow: 0 0 0 1px #EA580C, 0 6px 16px rgba(239, 68, 68, 0.28);
}

.result-item--urgent.active,
.result-item--premium.result-item--urgent.active {
    border-color: #DC2626;
}

/* Hot Icon in Title - make title a flex row so icon aligns vertically */
.result-item-title:has(.result-item-hot-icon) {
    display: flex;
    align-items: center;
}

.result-item-hot-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 4px;
    line-height: 0;
}

.result-item-hot-icon svg {
    display: block;
}

.result-item-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Detail View - Hot Badge */
.detail-hot-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Detail View - "Dringend gesucht" Badge (Add-on) */
.detail-urgent-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #EF4444 0%, #F97316 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Worktype Badge (Remote / Hybrid) */
.detail-worktype-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-worktype-badge svg {
    stroke: currentColor;
}

.detail-worktype-badge.remote {
    background: rgba(34, 197, 94, 0.12);
    color: #15803D;
}

.detail-worktype-badge.hybrid {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* Skill-Test Badge (klickbar, scrollt zum Test) – grün getönt */
.detail-skilltest-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803D;
    cursor: pointer;
    transition: background var(--transition);
}

.detail-skilltest-badge:hover {
    background: rgba(34, 197, 94, 0.2);
}

/* Social Proof (Bewerbungszahl ab Schwelle) */
.detail-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.detail-social-proof svg {
    stroke: currentColor;
}

.detail-social-proof.hot {
    color: #DC2626;
    background: #FEE2E2;
}

/* Detail Title Fire Icon */
.detail-title:has(.detail-title-hot) {
    display: flex;
    align-items: center;
}

.detail-title-hot {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 6px;
    line-height: 0;
}

.detail-title-hot svg {
    display: block;
}


/* ==========================================================================
   Benefits Section (Was wir bieten)
   ========================================================================== */

.detail-section.detail-benefits {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 28px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: white;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.benefit-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.benefit-icon {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    color: white;
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .detail-benefits {
        padding: 16px;
        margin: 20px 0;
    }
}


/* ==========================================================================
   Application Form
   ========================================================================== */

.application-section {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 28px 0;
    border: 1px solid var(--color-border);
}

/* Ähnliche Jobs */
.similar-jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.similar-job-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), box-shadow var(--transition);
    min-width: 0;
}

.similar-job-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.similar-job-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    color: var(--color-text-muted);
}

.similar-job-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.similar-job-info {
    min-width: 0;
    flex: 1;
}

.similar-job-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.similar-job-company {
    font-size: 12px;
    color: var(--color-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.similar-job-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .similar-jobs-grid {
        grid-template-columns: 1fr;
    }
}

.detail-legal-footer {
    padding: 20px 0 8px;
    margin-top: 24px;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.detail-legal-footer a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.detail-legal-footer a:hover {
    color: var(--color-text);
    text-decoration: underline;
}

.application-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-hint {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--color-text);
    background: white;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

textarea.form-input {
    font-family: var(--font-family);
    font-size: 14px;
    resize: vertical;
}

/* Field validation errors */
.form-input.input-error,
.form-select.input-error {
    border-color: var(--color-error, #EF4444);
}

.form-input.input-error:focus {
    border-color: var(--color-error, #EF4444);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.field-error {
    font-size: 12px;
    color: var(--color-error, #EF4444);
    margin-top: 4px;
}

/* Form Select (CV Dropdown) */
.form-select {
    width: 100%;
    height: 42px;
    padding: 10px 40px 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--color-text);
    background: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: var(--transition);
}

.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-select:hover {
    border-color: var(--color-primary);
}

/* CV Selection Card */
.cv-select-card {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: var(--radius-lg);
    padding: 20px 20px 12px 20px;
    margin-bottom: 24px;
    border: 1px solid #C7D2FE;
}

.cv-select-card .cv-select-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cv-select-card .cv-select-icon {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cv-select-card .cv-select-title {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 14px;
}

.cv-select-card .form-select {
    background-color: white;
    border-color: #A5B4FC;
}

.cv-select-card .form-hint {
    margin-top: 10px;
    margin-bottom: 0;
    color: #6366F1;
    font-size: 12px;
}

/* Skills Selection */
.skills-select-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-select-item {
    cursor: pointer;
}

.skill-select-item input {
    display: none;
}

.skill-checkmark {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 2px solid var(--color-border-dark);
    background: var(--color-white);
    color: var(--color-text-muted);
    transition: var(--transition);
}

.skill-select-item:hover .skill-checkmark {
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

/* Selected state - Green for confirmed */
.skill-select-item input:checked + .skill-checkmark {
    background: #10B981;
    color: white;
    border-color: #10B981;
}

.skill-select-item input:checked + .skill-checkmark::before {
    content: '\2713 ';
}

/* Salary Slider */
.salary-slider-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.salary-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--color-border);
    outline: none;
}

.salary-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px var(--color-primary-alpha-40);
}

.salary-slider:hover::-webkit-slider-thumb {
    transform: scale(1.1);
}

.salary-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px var(--color-primary-alpha-40);
}

.salary-value {
    min-width: 100px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: right;
}

/* File Upload */
.upload-area {
    border: 2px dashed var(--color-border-dark);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    background: white;
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.upload-content svg {
    color: var(--color-primary);
}

.file-list {
    margin-top: 12px;
    position: relative;
    z-index: 2;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    margin-top: 8px;
    font-size: 13px;
}

.file-item svg {
    color: var(--color-primary);
}

.file-name {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: var(--color-text-muted);
    font-size: 12px;
}

.file-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    margin-left: auto;
    position: relative;
    z-index: 3;
}

.file-delete-btn:hover {
    background: var(--color-error-bg, #fee2e2);
    color: var(--color-error, #dc2626);
}

.file-delete-btn svg {
    width: 14px;
    height: 14px;
}

/* Checkbox - Login Style */
.form-group-checkbox {
    margin-top: 24px;
}

.checkbox-group,
.form-group .checkbox-group,
.form-group-checkbox .checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
}

.checkbox-group input {
    display: none;
}

.checkbox-group .checkbox-box {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border: 2px solid var(--color-border-dark);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.checkbox-group input:checked + .checkbox-box {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-group input:checked + .checkbox-box::after {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3L4.5 8.5L2 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
}

.checkbox-group .checkbox-label {
    color: var(--color-text-muted);
    flex: 1;
}

/* Form Actions */
.form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 15px;
}

/* Success State */
.application-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon svg {
    color: white;
    width: 48px;
    height: 48px;
}

.application-success h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.application-success p {
    color: var(--color-text-muted);
    font-size: 14px;
}

@media (max-width: 600px) {
    .application-section {
        padding: 20px;
        margin: 20px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .salary-slider-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .salary-value {
        text-align: center;
    }
}


/* ==========================================================================
   Skeleton Loader
   ========================================================================== */

.skeleton {
    background: linear-gradient(90deg, var(--color-border) 25%, var(--color-bg) 50%, var(--color-border) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-item {
    pointer-events: none;
}

.skeleton-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
}

.skeleton-title {
    height: 16px;
    width: 70%;
    margin-bottom: 8px;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 6px;
}

.skeleton-text.short {
    width: 50%;
}

.skeleton-logo-lg {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.skeleton-cover {
    aspect-ratio: 4 / 1;
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.skeleton-title-lg {
    height: 24px;
    width: 60%;
    margin-bottom: 8px;
}

.skeleton-subtitle {
    height: 18px;
    width: 40%;
    margin-bottom: 12px;
}

.skeleton-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.skeleton-chip {
    height: 28px;
    width: 80px;
    border-radius: 14px;
}

.detail-skeleton {
    padding: 24px;
}

.detail-skeleton .detail-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.detail-skeleton .detail-body {
    padding-top: 8px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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


/* ==========================================================================
   Mobile Filter Overlay
   ========================================================================== */

.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    backdrop-filter: blur(2px);
}

.filter-overlay.active {
    display: block;
}


/* ==========================================================================
   Mobile Back Button (for detail view)
   ========================================================================== */

.detail-back-btn {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-back-btn svg {
    width: 20px;
    height: 20px;
}

.detail-back-btn:active {
    background: var(--color-bg);
}


/* ==========================================================================
   Mobile Filter Header (close button)
   ========================================================================== */

.filters-close-btn {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
}

.filters-close-btn:hover {
    background: var(--color-bg);
    color: var(--color-text);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet: Hide detail, show as overlay */
@media (max-width: 1200px) {
    .app-main {
        grid-template-columns: 280px 1fr;
    }

    .col-detail {
        display: none;
        position: fixed;
        inset: var(--header-height) 0 0 0;
        z-index: 150;
    }

    .col-detail.active {
        display: block;
    }

    .detail-back-btn {
        display: flex;
    }
}

/* Small Tablet: Single column, filters as drawer */
@media (max-width: 900px) {
    .app-main {
        grid-template-columns: 1fr;
    }

    .col-filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 320px;
        max-width: 85vw;
        z-index: 250;
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    }

    .col-filters.active {
        display: flex;
    }

    .col-filters.collapsed {
        width: 0;
        min-width: 0;
    }

    .btn-filter-toggle {
        display: none;
    }

    .filters-close-btn {
        display: flex;
    }

    .filter-salary-slider input[type="range"]::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    .filter-salary-slider input[type="range"]::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    .filters-header {
        padding: 12px 16px;
    }

    .app-header-actions .btn-ghost,
    .app-header-actions .btn-primary {
        display: none;
    }

    .btn-icon#filter-mobile-toggle {
        display: flex;
    }

    /* Sprachschalter wandert vom Header in den Subheader */
    .lang-slot--header {
        display: none;
    }

    .lang-slot--toolbar {
        display: flex;
    }

    /* Hamburger statt Header-Actions */
    .mobile-menu-btn {
        display: flex;
    }

    .search-input-wrapper kbd {
        display: none;
    }

    /* Header: Mobile-Layout ab Tablet */
    .app-header {
        padding: 0 12px;
        gap: 0;
        justify-content: space-between;
    }

    .app-logo {
        flex: 0 0 auto;
        margin-right: 10px;
    }

    .app-logo span {
        display: none;
    }

    .app-search {
        flex: 1;
        max-width: none;
        justify-content: center;
        padding: 0 8px;
    }

    .app-header .location-search-wrapper,
    .app-header .radius-select {
        display: none;
    }

    .search-input-wrapper {
        padding: 0 10px;
        height: 40px;
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .search-input-wrapper input {
        font-size: 16px;
    }

    .search-input-wrapper svg {
        width: 16px;
        height: 16px;
    }

    .app-header-actions {
        flex: 0 0 auto;
    }

    /* Results header adjustments */
    .results-header {
        padding: 10px 12px;
    }

    .results-count {
        font-size: 13px;
    }

    /* Result items - more compact */
    .result-item {
        padding: 12px;
        gap: 10px;
    }

    .result-item:not(.result-item--premium) {
        border-color: var(--color-border);
    }

    .result-item-logo {
        width: 40px;
        height: 40px;
    }

    .result-item-match {
        font-size: 13px;
    }

    .result-item-title {
        font-size: 13px;
    }

    .result-item-company {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .result-item-meta {
        font-size: 11px;
        gap: 6px;
    }

    .result-item-meta svg {
        width: 12px;
        height: 12px;
    }

    /* Detail view adjustments */
    .detail-content {
        padding: 16px;
    }

    .detail-cover {
        aspect-ratio: auto;
        height: 120px;
        border-radius: var(--radius-md);
    }

    .detail-header.has-cover .detail-logo {
        margin-top: -24px;
        margin-left: 12px;
        margin-bottom: 10px;
    }

    .detail-logo {
        width: 56px;
        height: 56px;
    }

    .detail-title {
        font-size: 18px;
    }

    .detail-company {
        font-size: 14px;
    }

    .detail-meta {
        gap: 10px;
        font-size: 13px;
    }

    .detail-salary {
        font-size: 18px;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .detail-section-title {
        font-size: 15px;
    }

    .detail-section-content {
        font-size: 13px;
    }

    .btn-company-link {
        display: inline;
        white-space: normal;
        word-break: break-word;
    }

    /* Share - show native share on touch devices, hide individual buttons */
    .detail-share {
        gap: 6px;
    }

    .share-btn--native {
        display: inline-flex;
    }

    .share-btn--linkedin,
    .share-btn--x,
    .share-btn--facebook,
    .share-btn--reddit {
        display: none;
    }
}

/* Mobile Phone */
@media (max-width: 600px) {
    /* Results */
    .results-list {
        padding: 6px;
    }

    .result-item {
        padding: 10px;
        margin-bottom: 6px;
        border-radius: var(--radius-sm);
    }

    .result-item-logo {
        width: 36px;
        height: 36px;
    }

    .result-item-badge {
        font-size: 9px;
        padding: 2px 6px;
        top: 6px;
        right: 6px;
    }

    /* Filter panel full width on very small screens */
    .col-filters {
        width: 100%;
        max-width: 100%;
    }

    /* Detail view */
    .detail-header {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .detail-logo {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .detail-meta {
        gap: 8px 16px;
    }

    .detail-meta-item {
        font-size: 13px;
    }

    .detail-actions .btn {
        padding: 14px 20px;
    }

    /* Benefits grid single column */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .detail-benefits {
        padding: 16px;
        margin: 16px 0;
    }

    .benefit-item {
        padding: 10px 12px;
    }

    .benefit-icon {
        width: 32px;
        height: 32px;
    }

    .benefit-icon svg {
        width: 16px;
        height: 16px;
    }

    /* Application form */
    .application-section {
        padding: 16px;
        margin: 16px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .salary-slider-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .salary-value {
        text-align: center;
        font-size: 18px;
    }

    .upload-area {
        padding: 16px;
    }

    .detail-skills {
        gap: 6px;
    }

    .detail-skill {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Very small phones */
@media (max-width: 374px) {
    .app-header {
        padding: 0 8px;
        gap: 8px;
    }

    .search-input-wrapper {
        padding: 0 8px;
    }

    .result-item {
        padding: 8px;
    }

    .result-item-logo {
        width: 32px;
        height: 32px;
    }

    .result-item-title {
        font-size: 12px;
    }

    .result-item-meta {
        font-size: 10px;
    }
}


/* ==========================================================================
   Scrollbar – hidden but still scrollable
   ========================================================================== */

.filters-body,
.results-list,
.col-detail,
.filter-group-scrollable {
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE / Edge */
}

.filters-body::-webkit-scrollbar,
.results-list::-webkit-scrollbar,
.col-detail::-webkit-scrollbar,
.filter-group-scrollable::-webkit-scrollbar {
    display: none;                  /* Chrome / Safari / Opera */
}


/* ==========================================================================
   Job Alert CTA (in results list)
   ========================================================================== */

.job-alert-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin: 8px 0;
    background: linear-gradient(135deg, var(--color-primary-lighter) 0%, var(--color-primary-light) 100%);
    border: 1px solid var(--color-primary-dark);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
}

.job-alert-cta:hover {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-dark) 100%);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.job-alert-cta-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-alert-cta-icon svg {
    color: white;
    width: 20px;
    height: 20px;
}

.job-alert-cta-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
}

.job-alert-cta-arrow {
    color: var(--color-primary);
    flex-shrink: 0;
}


/* ==========================================================================
   Modal Styles
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-sm {
    max-width: 400px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--color-text-muted);
    transition: all 0.15s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.modal-header {
    padding: 32px 24px 20px;
    text-align: center;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.modal-icon svg {
    color: var(--color-primary);
    width: 32px;
    height: 32px;
}

.modal-icon-success {
    background: #D1FAE5;
}

.modal-icon-success svg {
    color: #059669;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.modal-body {
    padding: 0 24px 24px;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.modal-body .form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.15s;
}

.modal-body .form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-alpha-10);
}

.modal-footer {
    padding: 16px 24px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 14px;
    color: var(--color-text-muted);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-footer a {
    color: var(--color-primary);
    font-weight: 500;
}

.modal-footer a:hover {
    text-decoration: underline;
}


/* Alert Filters in Modal */
.alert-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    min-height: 48px;
}

.alert-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--color-text);
}

.alert-filter-tag button {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-text-muted);
    transition: all 0.15s;
}

.alert-filter-tag button:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.alert-filter-tag button svg {
    width: 12px;
    height: 12px;
}

.alert-filter-empty {
    font-size: 13px;
    color: var(--color-text-muted);
    font-style: italic;
}


/* Frequency Options */
.frequency-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.frequency-option {
    cursor: pointer;
}

.frequency-option input {
    display: none;
}

.frequency-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.15s;
}

.frequency-option input:checked + .frequency-box {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

.frequency-box svg {
    color: var(--color-text-muted);
}

.frequency-option input:checked + .frequency-box svg {
    color: var(--color-primary);
}

.frequency-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.frequency-desc {
    font-size: 11px;
    color: var(--color-text-muted);
}

.frequency-option input:checked + .frequency-box .frequency-label {
    color: var(--color-primary);
}

/* Button with icon */
.btn svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================================================
   Location Autocomplete & Geo Search
   ========================================================================== */

/* Location search wrapper in header */
.location-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0 12px;
    height: 38px;
    width: 160px;
    flex-shrink: 0;
    transition: var(--transition);
}

.location-search-wrapper:focus-within {
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.location-search-wrapper svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.location-search-wrapper input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: var(--color-text);
    min-width: 0;
}

.location-search-wrapper input::placeholder {
    color: var(--color-text-muted);
}

/* Location autocomplete dropdown */
.location-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 200px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: none;
}

.location-autocomplete-dropdown::-webkit-scrollbar {
    display: none;
}

.location-autocomplete-dropdown.open {
    display: block;
}

.location-autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--transition);
    font-size: 14px;
    color: var(--color-text);
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
}

.location-autocomplete-item:hover,
.location-autocomplete-item.selected {
    background: var(--color-bg);
}

/* Radius select */
.radius-select {
    height: 38px;
    padding: 0 12px;
    padding-right: 32px;
    font-size: 14px;
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: var(--transition);
    flex-shrink: 0;
    box-sizing: border-box;
}

.radius-select:hover {
    border-color: var(--color-text-muted);
}

.radius-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Quick location links in filter panel */
.quick-location-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.quick-location-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
}

.quick-location-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.quick-location-link.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.quick-location-link svg {
    width: 14px;
    height: 14px;
}

/* Geo search header layout */
.app-search-geo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .location-search-wrapper {
        width: 140px;
    }

    .radius-select {
        padding: 0 8px;
        padding-right: 28px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .location-search-wrapper {
        width: 120px;
    }

    .radius-select {
        display: none;
    }
}

/* Mobile location search in filter panel */
.filter-group-mobile-location {
    display: none;
}

@media (max-width: 600px) {
    .filter-group-mobile-location {
        display: block;
        padding: 0 16px 16px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--color-border);
    }
}

.filter-group-mobile-location .filter-group-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    padding: 12px 0;
}

.mobile-location-search {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-location-search .location-search-wrapper {
    width: 100%;
    height: 42px;
    padding: 0 12px;
}

.mobile-location-search .radius-select {
    width: 100%;
    height: 42px;
    display: block;
}

/* Location autocomplete in job forms (employer) */
.location-autocomplete-wrapper {
    position: relative;
}

.location-autocomplete-wrapper .location-autocomplete-dropdown {
    width: 100%;
}


/* ==========================================================================
   Skill Test Section
   ========================================================================== */

.skill-test-section {
    padding: 28px 0;
    border-top: 1px solid var(--color-border, #e5e7eb);
}

.skill-test-hint-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbf5 100%);
    border: 1px solid #fed7aa;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.skill-test-hint-banner svg {
    flex-shrink: 0;
    color: #d97706;
    margin-top: 1px;
}

.skill-test-confirmed-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.skill-test-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.skill-test-tag.confirmed {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Progress bar */
.skill-test-progress-bar {
    margin-bottom: 20px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 12px 16px;
}

.skill-test-progress-fill {
    height: 6px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.skill-test-progress-text {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 8px;
    font-weight: 500;
}

/* Question card */
.skill-test-question-wrap {
    animation: fadeIn 0.3s ease;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.skill-test-tech-label {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    color: #1d4ed8;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.skill-test-question {
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #1f2937;
}

.skill-test-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-test-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9375rem;
    text-align: left;
    transition: all 0.2s ease;
    color: #374151;
    line-height: 1.4;
}

.skill-test-option:hover:not(:disabled) {
    border-color: #818cf8;
    background: #f8f7ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.skill-test-option.selected {
    border-color: var(--color-primary, #4f46e5);
    background: #eef2ff;
    color: #3730a3;
}

.skill-test-option:disabled {
    cursor: default;
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}

.skill-test-option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.skill-test-option.selected .skill-test-option-label {
    background: var(--color-primary, #4f46e5);
    color: #fff;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

/* Loading spinner */
.skill-test-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--color-primary, #4f46e5);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Results card (after quiz) */
.skill-test-results-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    animation: fadeIn 0.4s ease;
}

.skill-test-results-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdf4 100%);
    border-bottom: 1px solid #bbf7d0;
}

.skill-test-results-header svg {
    flex-shrink: 0;
    color: #f59e0b;
}

.skill-test-results-header strong {
    display: block;
    font-size: 1.125rem;
    color: #166534;
}

.skill-test-results-score {
    font-size: 0.9375rem;
    color: #15803d;
    margin-top: 2px;
    font-weight: 500;
}

/* Score bar */
.skill-test-score-bar {
    height: 8px;
    background: #f3f4f6;
    position: relative;
}

.skill-test-score-fill {
    height: 100%;
    border-radius: 0;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-test-score-fill.score-high {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.skill-test-score-fill.score-mid {
    background: linear-gradient(90deg, #f59e0b, #eab308);
}

.skill-test-score-fill.score-low {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Per-technology results */
.skill-test-tech-results {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.skill-test-tech-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.skill-test-tech-result:last-child {
    border-bottom: none;
}

.skill-test-tech-result-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1f2937;
    min-width: 0;
    flex: 1;
}

.skill-test-tech-result-dots {
    display: flex;
    gap: 6px;
    margin: 0 16px;
}

.skill-test-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.skill-test-dot.dot-correct {
    background: #dcfce7;
    color: #16a34a;
    border: 1.5px solid #86efac;
}

.skill-test-dot.dot-wrong {
    background: #fef2f2;
    color: #dc2626;
    border: 1.5px solid #fecaca;
}

.skill-test-tech-result-count {
    font-weight: 700;
    font-size: 0.875rem;
    color: #6b7280;
    min-width: 36px;
    text-align: right;
}

.skill-test-tech-result-count.count-perfect {
    color: #16a34a;
}

/* Results footer */
.skill-test-results-footer {
    padding: 14px 24px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: center;
}

/* Lock hint for form submit */
.skill-test-lock-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 10px 16px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #92400e;
    line-height: 1.4;
}

.skill-test-lock-hint svg {
    flex-shrink: 0;
    color: #d97706;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Shake animation for blocked submit */
@keyframes skillTestShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.skill-test-shake {
    animation: skillTestShake 0.5s ease;
}

.skill-test-shake .skill-test-hint-banner {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
    transition: all 0.2s ease;
}

/* Done message (all confirmed) */
.skill-test-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    text-align: center;
    color: #166534;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    margin: 16px 0;
    animation: fadeIn 0.4s ease;
}

.skill-test-done svg {
    color: #22c55e;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    width: 48px;
    height: 48px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.skill-test-done strong {
    font-size: 1.125rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .skill-test-question-wrap {
        padding: 16px;
    }

    .skill-test-results-header {
        padding: 16px;
    }

    .skill-test-tech-results {
        padding: 12px 16px;
    }

    .skill-test-tech-result-name {
        font-size: 0.8125rem;
    }

    .skill-test-dot {
        width: 22px;
        height: 22px;
        font-size: 0.6875rem;
    }
}

/* ==========================================================================
   Sprachschalter (Dropdown) – self-contained für die /jobs-App
   ========================================================================== */
.lang-switcher { display: flex; align-items: center; position: relative; }

.lang-switcher-btn {
    display: flex; align-items: center; gap: 4px;
    padding: 8px 10px; font-size: 14px; font-weight: 600;
    color: var(--color-text); background: transparent; border: none;
    border-radius: 999px; cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-switcher-btn:hover,
.lang-switcher-btn:focus,
.lang-switcher.is-open .lang-switcher-btn {
    background-color: var(--color-primary-light); color: var(--color-primary);
}
.lang-switcher-btn .lang-switcher-code { letter-spacing: 0.04em; }
.lang-switcher-btn svg:first-child { width: 16px; height: 16px; opacity: 0.7; }
.lang-switcher-btn svg:last-child { width: 14px; height: 14px; transition: transform 0.15s ease; }
.lang-switcher.is-open .lang-switcher-btn svg:last-child { transform: rotate(180deg); }

.lang-switcher-dropdown {
    position: absolute; top: 100%; right: 0; z-index: 1000;
    min-width: 180px; margin-top: 8px; padding: 4px;
    background-color: var(--color-white); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 12px); box-shadow: var(--shadow-lg, 0 10px 30px rgba(15,23,42,0.14));
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.lang-switcher.is-open .lang-switcher-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-option {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 8px 12px; font-size: 14px; color: var(--color-text);
    text-decoration: none; background: transparent; border: none;
    border-radius: var(--radius-md, 8px); cursor: pointer; text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-option:hover, .lang-option:focus { background-color: var(--color-primary-light); color: var(--color-primary); }

.lang-option-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; padding: 2px 6px; font-size: 11px; font-weight: 700;
    letter-spacing: 0.04em; color: var(--color-text-muted);
    background-color: var(--color-border); border-radius: var(--radius-sm, 6px);
}
.lang-option-label { flex: 1 1 auto; }
.lang-option.active { color: var(--color-primary); font-weight: 600; }
.lang-option.active .lang-option-badge { color: var(--color-primary); background-color: var(--color-primary-light); }
.lang-option-check { display: inline-flex; margin-left: auto; color: var(--color-primary); }
.lang-option-check svg { width: 16px; height: 16px; }
