/* ===========================================================================
   Stellenangebote Rosenheim - Stylesheet
   ---------------------------------------------------------------------------
   Handgeschrieben, ohne Build-Schritt. Die Farb- und Radiuswerte entsprechen
   eins zu eins den CSS-Variablen der Base44-App (src/index.css), damit das
   Erscheinungsbild unverändert bleibt.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. Design-Tokens
   --------------------------------------------------------------------------- */
:root {
    --background: hsl(220, 20%, 97%);
    --foreground: hsl(220, 30%, 10%);
    --card: hsl(0, 0%, 100%);
    --primary: hsl(215, 80%, 48%);
    --primary-dark: hsl(215, 80%, 42%);
    --primary-fg: hsl(0, 0%, 100%);
    --secondary: hsl(220, 15%, 93%);
    --muted: hsl(220, 15%, 93%);
    --muted-fg: hsl(220, 10%, 45%);
    --accent: hsl(25, 95%, 55%);
    --accent-dark: hsl(25, 95%, 49%);
    --accent-fg: hsl(0, 0%, 100%);
    --destructive: hsl(0, 84%, 60%);
    --destructive-bg: hsl(0, 86%, 97%);
    --border: hsl(220, 15%, 88%);
    --success: hsl(142, 71%, 45%);
    --success-bg: hsl(138, 76%, 97%);
    --warning: hsl(38, 92%, 50%);
    --warning-bg: hsl(48, 100%, 96%);
    --footer-bg: #1a2236;

    /* Transparente Varianten - als eigene Tokens, damit sie überall gleich sind */
    --primary-05: hsla(215, 80%, 48%, .05);
    --primary-10: hsla(215, 80%, 48%, .1);
    --primary-20: hsla(215, 80%, 48%, .2);
    --primary-30: hsla(215, 80%, 48%, .3);
    --accent-10: hsla(25, 95%, 55%, .1);
    --accent-20: hsla(25, 95%, 55%, .2);

    --radius: .75rem;
    --radius-sm: .5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 41, .05);
    --shadow: 0 1px 3px rgba(15, 23, 41, .06), 0 4px 12px rgba(15, 23, 41, .04);
    --shadow-md: 0 4px 12px rgba(15, 23, 41, .08), 0 12px 28px rgba(15, 23, 41, .06);
    --shadow-lg: 0 10px 30px rgba(15, 23, 41, .1), 0 24px 60px rgba(15, 23, 41, .08);

    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --header-height: 4rem;
    --container: 80rem;
}

/* ---------------------------------------------------------------------------
   2. Grundlagen
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* Eigene display-Regeln (etwa display:flex auf Karten) schlagen sonst das
   hidden-Attribut, und ausgeblendete Elemente blieben sichtbar. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--foreground);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Sprungmarke für Tastaturnutzer */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--primary);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 0 0 var(--radius) 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.icon { width: 1rem; height: 1rem; flex: 0 0 auto; }
.icon-sm { width: .875rem; height: .875rem; flex: 0 0 auto; }
.icon-lg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.icon-xl { width: 2rem; height: 2rem; flex: 0 0 auto; }

.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;
}

/* ---------------------------------------------------------------------------
   3. Layout
   --------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: 1rem;
}
.container-narrow { max-width: 64rem; }
.container-form { max-width: 48rem; }

.section { padding-block: 3rem; }
.section-tight { padding-block: 2rem; }

.stack > * + * { margin-top: var(--stack-gap, 1rem); }
.stack-sm { --stack-gap: .5rem; }
.stack-lg { --stack-gap: 1.5rem; }

.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.row-tight { gap: .5rem; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }

.text-muted { color: var(--muted-fg); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-center { text-align: center; }
.font-heading { font-family: var(--font-heading); }
.mt-0 { margin-top: 0; }

/* ---------------------------------------------------------------------------
   4. Kopfbereich
   --------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: hsla(0, 0%, 100%, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

.site-logo { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.site-logo img { height: 2.5rem; width: auto; object-fit: contain; }
.site-logo__text { font-family: var(--font-heading); font-weight: 800; font-size: 1.0625rem; color: var(--foreground); line-height: 1.1; }
.site-logo__text span { display: block; font-size: .625rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }

.main-nav { display: none; align-items: center; gap: .25rem; }
.main-nav a {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem; border-radius: var(--radius-sm);
    font-size: .875rem; font-weight: 500; color: var(--muted-fg);
    transition: background-color .15s, color .15s;
}
.main-nav a:hover { background: var(--secondary); color: var(--foreground); }
.main-nav a.is-active { background: var(--primary-10); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-actions .desktop-only { display: none; }

/* Mobilmenü: <details> mit <summary> als Schalter - funktioniert ohne
   JavaScript und ist über die Tastatur bedienbar. */
.menu-disclosure { position: static; }
.menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; padding: 0;
    background: none; border: 0; border-radius: var(--radius-sm);
    color: var(--foreground); cursor: pointer;
    list-style: none;   /* Dreieck des <summary> ausblenden */
}
.menu-toggle::-webkit-details-marker { display: none; }
.menu-toggle::marker { content: ''; }
.menu-toggle:hover { background: var(--secondary); }
.menu-toggle .icon { width: 1.25rem; height: 1.25rem; }
.menu-toggle__close { display: none; }
.menu-disclosure[open] .menu-toggle__open { display: none; }
.menu-disclosure[open] .menu-toggle__close { display: inline-flex; }

.mobile-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}
.mobile-nav a, .mobile-nav button {
    display: flex; align-items: center; gap: .625rem; width: 100%;
    padding: .625rem .75rem; border-radius: var(--radius-sm);
    font-size: .875rem; font-weight: 500; color: var(--foreground);
    background: none; border: 0; cursor: pointer; text-align: left;
    font-family: inherit;
}
.mobile-nav a:hover, .mobile-nav button:hover { background: var(--secondary); }
.mobile-nav hr { margin: .5rem 0; }

@media (min-width: 768px) {
    .main-nav { display: flex; }
    .header-actions .desktop-only { display: flex; align-items: center; gap: .25rem; }
    .menu-disclosure { display: none; }
    .container { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
    .container { padding-inline: 2rem; }
}

/* ---------------------------------------------------------------------------
   5. Schaltflächen
   --------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .5625rem 1.125rem;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    font-family: inherit; font-size: .875rem; font-weight: 600; line-height: 1.25rem;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    background: var(--primary); color: var(--primary-fg);
    transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }

.btn-outline { background: var(--card); color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { background: var(--secondary); color: var(--foreground); }

.btn-ghost { background: transparent; color: var(--muted-fg); }
.btn-ghost:hover { background: var(--secondary); color: var(--foreground); }

.btn-danger { background: var(--card); color: var(--destructive); border-color: hsla(0, 84%, 60%, .3); }
.btn-danger:hover { background: var(--destructive-bg); color: var(--destructive); }

.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: hsla(0, 0%, 100%, .9); color: var(--primary); }

.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .375rem .75rem; font-size: .8125rem; }
.btn-icon { padding: .5rem; width: 2.25rem; height: 2.25rem; }
.btn-block { width: 100%; }

.btn-link {
    background: none; border: 0; padding: 0; color: var(--primary);
    font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer;
    display: inline-flex; align-items: center; gap: .375rem;
}
.btn-link:hover { text-decoration: underline; background: none; }

/* ---------------------------------------------------------------------------
   6. Formulare
   --------------------------------------------------------------------------- */
.field { display: block; margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
.field > label, .label {
    display: block; margin-bottom: .375rem;
    font-size: .8125rem; font-weight: 600; color: var(--foreground);
}
.field .hint { margin-top: .375rem; font-size: .75rem; color: var(--muted-fg); }
.field .error { margin-top: .375rem; font-size: .75rem; color: var(--destructive); }

.input, .select, .textarea {
    display: block; width: 100%;
    padding: .5625rem .75rem;
    background: var(--card); color: var(--foreground);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: inherit; font-size: .875rem; line-height: 1.5;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-10);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-fg); }
.textarea { min-height: 7rem; resize: vertical; }

.select {
    appearance: none; padding-right: 2.25rem;
    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='%235f6b80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .625rem center;
}

.input-icon { position: relative; }
.input-icon .icon {
    position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
    color: var(--muted-fg); pointer-events: none;
}
.input-icon .input { padding-left: 2.375rem; }
.input-icon .btn-inline {
    position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
    background: none; border: 0; padding: .25rem; cursor: pointer; color: var(--muted-fg);
    display: inline-flex;
}
.input-icon .btn-inline:hover { color: var(--foreground); }
.input-icon:has(.btn-inline) .input { padding-right: 2.25rem; }

.checkline {
    display: flex; align-items: flex-start; gap: .5rem;
    font-size: .8125rem; color: var(--muted-fg); cursor: pointer;
}
.checkline input[type="checkbox"] { margin: .1875rem 0 0; flex: 0 0 auto; width: 1rem; height: 1rem; accent-color: var(--primary); }
.checkline span { flex: 1; }

/* Umschalter (Ersatz für die Radix-Switch-Komponente) */
.switch { display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
    width: 2.25rem; height: 1.25rem; border-radius: var(--radius-full);
    background: var(--border); position: relative; transition: background-color .15s;
    flex: 0 0 auto;
}
.switch__track::after {
    content: ''; position: absolute; top: .125rem; left: .125rem;
    width: 1rem; height: 1rem; border-radius: 50%; background: #fff;
    box-shadow: var(--shadow-sm); transition: transform .15s;
}
.switch input:checked + .switch__track { background: var(--primary); }
.switch input:checked + .switch__track::after { transform: translateX(1rem); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------------------------------------------------------------------------
   7. Karten und Kennzeichnungen
   --------------------------------------------------------------------------- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.card-lg { border-radius: var(--radius-xl); padding: 2rem; }
.card-flat { padding: 0; overflow: hidden; }
.card + .card { margin-top: 1.5rem; }
.card > h2 { font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.card > h2 + .card-sub { margin: .25rem 0 1.25rem; font-size: .75rem; color: var(--muted-fg); }

.badge {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .1875rem .625rem; border-radius: var(--radius-full);
    font-size: .75rem; font-weight: 600; line-height: 1.25;
    background: var(--primary); color: #fff; border: 1px solid transparent;
}
.badge-secondary { background: var(--secondary); color: var(--foreground); }
.badge-outline { background: transparent; color: var(--muted-fg); border-color: var(--border); }
.badge-success { background: var(--success-bg); color: hsl(142, 71%, 30%); }
.badge-warning { background: var(--warning-bg); color: hsl(32, 81%, 35%); }
.badge-danger { background: var(--destructive-bg); color: hsl(0, 74%, 42%); }

.pill {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .375rem 1rem; border-radius: var(--radius-full);
    font-size: .875rem; font-weight: 500;
    background: var(--primary-10); color: var(--primary);
    border: 1px solid var(--primary-20);
}

.empty-state {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 3rem 1.5rem; text-align: center;
}
.empty-state .icon-xl { margin: 0 auto .75rem; color: var(--border); width: 2.75rem; height: 2.75rem; }
.empty-state h3 { font-size: 1.0625rem; margin-bottom: .25rem; }
.empty-state p { color: var(--muted-fg); font-size: .875rem; }

.logo-tile {
    width: 5rem; height: 5rem; flex: 0 0 auto;
    border-radius: var(--radius); border: 1px solid var(--border);
    background: #fff; padding: .375rem; object-fit: contain;
}
.logo-placeholder {
    width: 5rem; height: 5rem; flex: 0 0 auto;
    border-radius: var(--radius); background: var(--primary-10);
    display: grid; place-items: center; color: var(--primary);
}
.logo-placeholder .icon { width: 1.75rem; height: 1.75rem; }

/* ---------------------------------------------------------------------------
   8. Meldungen
   --------------------------------------------------------------------------- */
.alert {
    display: flex; align-items: flex-start; gap: .625rem;
    padding: .875rem 1rem; border-radius: var(--radius-sm);
    border: 1px solid; font-size: .875rem; margin-bottom: 1rem;
}
.alert .icon { margin-top: .1875rem; }
.alert p { margin: 0; }
.alert-success { background: var(--success-bg); border-color: hsl(141, 79%, 85%); color: hsl(144, 61%, 20%); }
.alert-error   { background: var(--destructive-bg); border-color: hsl(0, 96%, 89%); color: hsl(0, 63%, 31%); }
.alert-warning { background: var(--warning-bg); border-color: hsl(48, 96%, 76%); color: hsl(28, 73%, 26%); }
.alert-info    { background: hsl(214, 100%, 97%); border-color: hsl(213, 97%, 87%); color: hsl(224, 64%, 33%); }
.alert__close { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; padding: 0; font-size: 1rem; line-height: 1; }
.alert__close:hover { opacity: 1; }

/* Kurzmeldungen (Ersatz für sonner) */
.toast-area { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 120; display: flex; flex-direction: column; gap: .5rem; max-width: min(24rem, calc(100vw - 2.5rem)); }
.toast {
    display: flex; align-items: flex-start; gap: .625rem;
    padding: .75rem 1rem; border-radius: var(--radius-sm);
    background: var(--card); border: 1px solid var(--border);
    box-shadow: var(--shadow-md); font-size: .875rem;
    animation: toast-in .2s ease-out;
}
.toast-success { border-color: hsl(141, 79%, 85%); background: var(--success-bg); color: hsl(144, 61%, 20%); }
.toast-error { border-color: hsl(0, 96%, 89%); background: var(--destructive-bg); color: hsl(0, 63%, 31%); }
@keyframes toast-in { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------------
   9. Hero (Startseite)
   --------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-color: hsl(215, 45%, 88%);
}
.hero__bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, hsla(220, 20%, 97%, .95) 0%, hsla(220, 20%, 97%, .88) 55%, hsla(220, 20%, 97%, .55) 100%);
}
@media (min-width: 640px) {
    .hero__bg::after {
        background: linear-gradient(100deg, hsla(220, 20%, 97%, .97) 0%, hsla(220, 20%, 97%, .9) 38%, hsla(220, 20%, 97%, .35) 62%, hsla(220, 20%, 97%, .1) 100%);
    }
}
.hero__inner { position: relative; padding-block: 3rem 3.5rem; }
.hero__content { max-width: 44rem; }

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.75rem);
    font-weight: 800; letter-spacing: -.02em; margin-top: 1.5rem;
}
.hero h1 .accent { color: var(--accent); display: block; }
.hero__lead { margin-top: 1.25rem; font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--muted-fg); max-width: 36rem; }

.hero-search {
    margin-top: 2rem; display: flex; flex-direction: column; gap: .5rem;
    background: #fff; border-radius: var(--radius-xl); padding: .5rem;
    box-shadow: var(--shadow-lg);
}
.hero-search .input-icon { flex: 1; }
.hero-search .input {
    border: 0; background: transparent; padding: .75rem 1rem .75rem 2.5rem;
    font-size: .9375rem;
}
.hero-search .input:focus { box-shadow: none; }
.hero-search .btn { padding: .75rem 1.5rem; border-radius: var(--radius); }

.hero-popular { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.hero-popular > span { font-size: .875rem; color: var(--muted-fg); }
.hero-popular a {
    font-size: .875rem; color: hsla(220, 30%, 10%, .75);
    background: hsla(0, 0%, 100%, .65); border: 1px solid var(--border);
    padding: .25rem .75rem; border-radius: var(--radius-full);
    transition: background-color .15s, color .15s;
}
.hero-popular a:hover { background: hsla(0, 0%, 100%, .95); color: var(--foreground); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 3rem; }
.hero-stat { display: flex; align-items: center; gap: .75rem; }
.hero-stat__icon {
    width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm);
    background: var(--primary-10); color: var(--primary);
    display: grid; place-items: center;
}
.hero-stat__value { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; }
.hero-stat__label { font-size: .75rem; color: var(--muted-fg); }

@media (min-width: 640px) {
    .hero-search { flex-direction: row; align-items: center; }
    .hero__inner { padding-block: 4rem; }
}

/* ---------------------------------------------------------------------------
   10. Abschnittsköpfe
   --------------------------------------------------------------------------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
.section-head p { color: var(--muted-fg); margin-top: .25rem; }
.section-head a { font-size: .875rem; font-weight: 500; display: inline-flex; align-items: center; gap: .25rem; }
.section-head a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
   11. Kategorien
   --------------------------------------------------------------------------- */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.category-card {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    padding: 1rem .75rem; text-align: center;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-20); }
.category-card__icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm); display: grid; place-items: center; }
.category-card__icon .icon { width: 1.25rem; height: 1.25rem; }
.category-card__name { font-size: .75rem; font-weight: 600; line-height: 1.3; color: var(--foreground); }
.category-card__count { font-size: .75rem; color: var(--muted-fg); }

@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(5, 1fr); } }

/* ---------------------------------------------------------------------------
   12. Stellenkarten
   --------------------------------------------------------------------------- */
.job-list { display: flex; flex-direction: column; gap: .75rem; }

.job-card {
    display: block; background: var(--card);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.job-card:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-md);
    border-color: var(--primary-20);
}
.job-card__inner { display: flex; gap: 1rem; }
.job-card__body { flex: 1; min-width: 0; }
.job-card__title {
    font-family: var(--font-heading); font-weight: 600;
    font-size: 1rem; color: var(--foreground); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.job-card:hover .job-card__title { color: var(--primary); }
.job-card__company { font-size: .875rem; color: var(--muted-fg); margin-top: .125rem; }
.job-card__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .875rem;
    margin-top: .75rem; font-size: .75rem; color: var(--muted-fg);
}
.job-card__meta span { display: inline-flex; align-items: center; gap: .25rem; }
.job-card__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

@media (min-width: 640px) {
    .job-card { padding: 1.5rem; }
    .job-card__title { font-size: 1.125rem; }
}

/* ---------------------------------------------------------------------------
   13. Suchfilter
   --------------------------------------------------------------------------- */
.filters {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem;
}
.filters__row { display: flex; flex-direction: column; gap: .75rem; }
.filters__row + .filters__row { margin-top: .75rem; }
.filters .select { min-width: 0; }

.filter-bar-sticky {
    position: fixed; top: var(--header-height); left: 0; right: 0; z-index: 30;
    background: hsla(220, 20%, 97%, .95);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding-block: .5rem;
    opacity: 0; transform: translateY(-.5rem); pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.filter-bar-sticky.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.filter-bar-sticky form { display: flex; gap: .5rem; align-items: center; }
.filter-bar-sticky .input-icon { flex: 1; min-width: 0; }
.filter-bar-sticky .select { width: auto; min-width: 0; flex: 0 1 9rem; }

@media (min-width: 640px) {
    .filters { padding: 1.5rem; }
    .filters__row-inline { flex-direction: row; }
    .filters__row-inline > * { flex: 1; }
    .filters__row-inline > .btn { flex: 0 0 auto; }
}
@media (max-width: 639px) {
    .filter-bar-sticky .select { display: none; }
}

/* ---------------------------------------------------------------------------
   14. Arbeitgeber
   --------------------------------------------------------------------------- */
.employer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .employer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .employer-grid { grid-template-columns: repeat(4, 1fr); } }

.employer-tile {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.employer-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-20); }
.employer-tile img, .employer-tile .logo-placeholder { width: 4rem; height: 4rem; margin-bottom: .75rem; border-radius: var(--radius); }
.employer-tile img { border: 1px solid var(--border); background: #fff; padding: .375rem; object-fit: contain; }
.employer-tile h3 { font-size: .875rem; font-weight: 600; line-height: 1.35; color: var(--foreground); }
.employer-tile:hover h3 { color: var(--primary); }
.employer-tile p { font-size: .75rem; color: var(--muted-fg); margin-top: .25rem; }

.employer-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .employer-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .employer-cards { grid-template-columns: repeat(3, 1fr); } }

.employer-card {
    display: flex; flex-direction: column; height: 100%;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
    transition: box-shadow .2s, border-color .2s;
}
.employer-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-30); }
.employer-card__logo {
    width: 100%; height: 8rem; margin-bottom: 1rem;
    border-radius: var(--radius-sm); background: hsla(220, 15%, 93%, .5);
    object-fit: contain; padding: .5rem;
}
.employer-card__logo-placeholder {
    width: 100%; height: 8rem; margin-bottom: 1rem;
    border-radius: var(--radius-sm); background: var(--primary-10);
    display: grid; place-items: center; color: var(--primary);
}
.employer-card__logo-placeholder .icon { width: 3rem; height: 3rem; opacity: .5; }
.employer-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.employer-card:hover h3 { color: var(--primary); }
.employer-card__links {
    display: flex; gap: .25rem; margin-top: auto; padding-top: .75rem;
    border-top: 1px solid var(--border);
}
.employer-card__links a {
    display: inline-flex; padding: .5rem; border-radius: var(--radius-sm);
    color: var(--muted-fg);
}
.employer-card__links a:hover { background: var(--secondary); color: var(--foreground); }

.line-clamp-2 {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------------------------------------------------------------------------
   15. Detailseiten
   --------------------------------------------------------------------------- */
.back-link {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .875rem; color: var(--muted-fg); margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--foreground); }

.detail-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); overflow: hidden;
}
.detail-card__head {
    padding: 1.5rem; border-bottom: 1px solid var(--border);
    background: linear-gradient(100deg, var(--primary-05), transparent);
}
.detail-card__head-inner { display: flex; flex-direction: column; gap: 1rem; text-align: center; align-items: center; }
.detail-card__logo, .detail-card__logo-placeholder {
    width: 6rem; height: 6rem; flex: 0 0 auto; border-radius: var(--radius);
}
.detail-card__logo { border: 1px solid var(--border); background: #fff; padding: .5rem; object-fit: contain; }
.detail-card__logo-placeholder { background: var(--primary-10); display: grid; place-items: center; color: var(--primary); }
.detail-card__logo-placeholder .icon { width: 2.5rem; height: 2.5rem; }
.detail-card__head h1 { font-size: clamp(1.25rem, 4vw, 1.875rem); }
.detail-card__meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
    margin-top: .75rem; font-size: .875rem; color: var(--muted-fg);
}
.detail-card__meta span, .detail-card__meta a { display: inline-flex; align-items: center; gap: .375rem; }
.detail-card__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .75rem; }
.detail-card__body { padding: 1.5rem; }
.detail-card__body > section + section { margin-top: 2rem; }
.detail-card__body h2 { font-size: 1.0625rem; font-weight: 600; margin-bottom: .75rem; }
.detail-card__foot {
    padding: 1.5rem; border-top: 1px solid var(--border);
    background: hsla(220, 15%, 93%, .35);
    display: flex; flex-direction: column; gap: .75rem;
}
.detail-card__foot .btn { height: 2.75rem; font-size: 1rem; }
.detail-card__foot .btn-accent { flex: 1; }

@media (min-width: 640px) {
    .detail-card__head, .detail-card__body, .detail-card__foot { padding: 2rem; }
    .detail-card__head-inner { flex-direction: row; text-align: left; align-items: flex-start; }
    .detail-card__head-inner > div:last-child { flex: 1; min-width: 0; }
    .detail-card__meta, .detail-card__tags { justify-content: flex-start; }
    .detail-card__logo, .detail-card__logo-placeholder { width: 8rem; height: 8rem; }
    .detail-card__foot { flex-direction: row; }
}

/* Fließtext aus Markdown */
.prose { color: hsla(220, 30%, 10%, .82); font-size: .9375rem; }
.prose p { margin-bottom: .75rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h3, .prose h4, .prose h5, .prose h6 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.prose a { text-decoration: underline; }
.prose strong { font-weight: 600; color: var(--foreground); }
.prose .md-list { list-style: none; margin: .75rem 0; display: flex; flex-direction: column; gap: .5rem; }
.prose .md-list li { display: flex; align-items: flex-start; gap: .5rem; }
.prose .md-list li::before {
    content: ''; flex: 0 0 auto; width: 1rem; height: 1rem; margin-top: .25rem;
    background: var(--primary); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.801 10A10 10 0 1 1 17 3.335'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.801 10A10 10 0 1 1 17 3.335'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.prose .md-list-ordered { list-style: decimal; padding-left: 1.25rem; }
.prose .md-list-ordered li { display: list-item; }
.prose .md-list-ordered li::before { content: none; }

/* Bildergalerie mit Vollbildansicht */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery button {
    padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; cursor: pointer; background: none; display: block;
}
.gallery img { width: 100%; height: 10rem; object-fit: cover; transition: transform .2s; }
.gallery button:hover img { transform: scale(1.05); }

.lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0, 0, 0, .85);
    display: none; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 100%; border-radius: var(--radius); object-fit: contain; }
.lightbox button {
    position: absolute; background: hsla(0, 0%, 100%, .12); border: 0; color: #fff;
    width: 2.75rem; height: 2.75rem; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
}
.lightbox button:hover { background: hsla(0, 0%, 100%, .22); }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__close { top: 1rem; right: 1rem; width: 2.25rem; height: 2.25rem; font-size: 1.125rem; }
.lightbox__count { position: absolute; bottom: 1rem; color: hsla(0, 0%, 100%, .6); font-size: .875rem; }

.video-embed { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------------------------
   16. Werbebanner und Aufrufe zum Handeln
   --------------------------------------------------------------------------- */
.cta-band { background: linear-gradient(90deg, var(--primary-05), var(--accent-10)); border-block: 1px solid var(--border); }
.cta-band__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .cta-band__grid { grid-template-columns: 1fr 1fr; } }
.cta-band h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
.cta-band ul { list-style: none; margin-top: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.cta-band li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: hsla(220, 30%, 10%, .8); }
.cta-band li .icon { color: var(--success); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.stat-box__value { font-family: var(--font-heading); font-weight: 800; font-size: 1.875rem; color: var(--primary); }
.stat-box__label { font-size: .875rem; color: var(--muted-fg); margin-top: .25rem; }

.cta-dark { background: var(--primary); color: #fff; }
.cta-dark .container { padding-block: 3.5rem; text-align: center; }
.cta-dark h2 { color: #fff; font-size: clamp(1.375rem, 3vw, 1.875rem); }
.cta-dark p { color: hsla(0, 0%, 100%, .72); margin: .75rem auto 0; max-width: 36rem; }
.cta-dark .icon-xl { margin: 0 auto 1rem; color: var(--accent); }

/* ---------------------------------------------------------------------------
   17. Fußbereich
   --------------------------------------------------------------------------- */
.site-footer { background: var(--footer-bg); color: #fff; margin-top: 4rem; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer h4 {
    font-family: var(--font-heading); font-size: .8125rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    color: hsla(0, 0%, 100%, .4); margin-bottom: 1rem;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.site-footer a, .site-footer li { font-size: .875rem; color: hsla(0, 0%, 100%, .6); }
.site-footer a:hover { color: #fff; }
/* Das Logo hat einen deckenden hellen Hintergrund; ein Invert-Filter würde
   daraus eine weiße Fläche machen. Stattdessen bekommt es im dunklen
   Fußbereich eine eigene helle Grundfläche. */
.site-footer__brand img {
    height: 2.5rem; width: auto; margin-bottom: 1rem;
    background: #fff; padding: .375rem .625rem;
    border-radius: var(--radius-sm); box-sizing: content-box;
}
.site-footer__brand p { font-size: .875rem; color: hsla(0, 0%, 100%, .6); line-height: 1.7; }
.site-footer__bottom { border-top: 1px solid hsla(0, 0%, 100%, .1); }
.site-footer__bottom .container {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
    padding-block: 1.25rem; text-align: center;
}
.site-footer__bottom p, .site-footer__bottom a { font-size: .75rem; color: hsla(0, 0%, 100%, .4); }
@media (min-width: 640px) {
    .site-footer__bottom .container { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Cookie-Hinweis */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--footer-bg); color: #fff;
    border-top: 1px solid hsla(0, 0%, 100%, .1);
    padding: 1rem;
}
.cookie-banner .container { display: flex; flex-direction: column; gap: 1rem; padding-inline: 0; }
.cookie-banner p { font-size: .875rem; color: hsla(0, 0%, 100%, .8); flex: 1; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .5rem; flex: 0 0 auto; }
.cookie-banner .btn-ghost { color: hsla(0, 0%, 100%, .6); }
.cookie-banner .btn-ghost:hover { color: #fff; background: hsla(0, 0%, 100%, .1); }
@media (min-width: 640px) {
    .cookie-banner .container { flex-direction: row; align-items: center; }
}

/* ---------------------------------------------------------------------------
   18. Anmeldeseiten
   --------------------------------------------------------------------------- */
.auth-page {
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 1rem; min-height: calc(100vh - var(--header-height));
    background: linear-gradient(135deg, var(--primary-05), var(--accent-10));
}
.auth-box { width: 100%; max-width: 27rem; }
.auth-box--wide { max-width: 40rem; }
.auth-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow);
}
.auth-card__head { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: 2rem; }
.auth-card__icon { padding: .75rem; border-radius: var(--radius-sm); background: var(--primary-10); color: var(--primary); display: grid; place-items: center; }
.auth-card__icon--accent { background: var(--accent-10); color: var(--accent); }
.auth-card__head h1 { font-size: 1.25rem; }
.auth-card__head p { font-size: .75rem; color: var(--muted-fg); }
.auth-foot { margin-top: 1.5rem; text-align: center; font-size: .75rem; color: var(--muted-fg); }
.auth-foot a { font-weight: 500; }
.code-input { text-align: center; font-size: 1.25rem; letter-spacing: .35em; font-weight: 600; text-transform: uppercase; }

/* ---------------------------------------------------------------------------
   19. Arbeitgeberbereich
   --------------------------------------------------------------------------- */
.page-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.page-head h1 { font-size: clamp(1.5rem, 4vw, 1.875rem); }
.page-head p { color: var(--muted-fg); margin-top: .25rem; }
.page-head__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (min-width: 640px) {
    .page-head { flex-direction: row; align-items: center; justify-content: space-between; }
}

.stat-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .stat-cards { grid-template-columns: repeat(3, 1fr); } }

.stat-card {
    display: block; width: 100%; text-align: left;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
    font-family: inherit; cursor: pointer;
    transition: box-shadow .15s, border-color .15s;
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card__row { display: flex; align-items: center; gap: .75rem; }
.stat-card__icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm); display: grid; place-items: center; flex: 0 0 auto; }
/* Als <span> ausgezeichnet, weil die Kachel selbst ein <a> ist - deshalb
   hier ausdrücklich als Block darstellen. */
.stat-card__value { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.stat-card__label { display: block; font-size: .75rem; color: var(--muted-fg); }
.stat-card__row > span:last-child { display: block; }
.stat-card__note { display: block; font-size: .75rem; font-weight: 500; margin-top: .5rem; }
.stat-card--active { border-color: var(--success); box-shadow: 0 0 0 3px var(--success-bg); }
.stat-card--active .stat-card__note { color: hsl(142, 71%, 32%); }
.stat-card--draft.stat-card--active { border-color: var(--warning); box-shadow: 0 0 0 3px var(--warning-bg); }
.stat-card--draft.stat-card--active .stat-card__note { color: hsl(32, 81%, 35%); }
.stat-icon-green { background: var(--success-bg); color: hsl(142, 71%, 35%); }
.stat-icon-amber { background: var(--warning-bg); color: hsl(32, 81%, 40%); }
.stat-icon-blue { background: var(--primary-10); color: var(--primary); }

.progress { height: .375rem; border-radius: var(--radius-full); background: var(--secondary); overflow: hidden; margin-top: .75rem; }
.progress__bar { height: 100%; border-radius: var(--radius-full); background: var(--primary); transition: width .3s; }

/* Werbeeinblendung im Dashboard */
.promo { position: relative; margin-bottom: 2rem; }
.promo__card {
    border: 1px solid var(--primary-20); border-radius: var(--radius);
    background: linear-gradient(90deg, var(--primary-05), var(--primary-10) 55%, var(--accent-10));
    padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem;
}
.promo__label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.promo__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .25rem; }
.promo__dots { display: flex; gap: .25rem; }
.promo__dots button { width: .375rem; height: .375rem; border-radius: 50%; border: 0; padding: 0; background: var(--primary-30); cursor: pointer; }
.promo__dots button[aria-current="true"] { background: var(--primary); }
.promo h3 { font-size: 1.0625rem; }
.promo p { font-size: .875rem; color: var(--muted-fg); margin-top: .25rem; }
.promo ul { list-style: none; margin-top: .5rem; display: flex; flex-direction: column; gap: .25rem; }
.promo li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: hsla(220, 30%, 10%, .8); }
.promo li .icon { color: var(--success); }
.promo__nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    display: none; place-items: center; cursor: pointer; color: var(--foreground);
}
.promo__nav:hover { background: var(--secondary); }
.promo__nav--prev { left: -1rem; }
.promo__nav--next { right: -1rem; }
@media (min-width: 640px) { .promo__card { flex-direction: row; align-items: center; } }
@media (min-width: 1200px) { .promo__nav { display: grid; } }

/* Verwaltungszeilen für Stellen */
.job-row {
    display: flex; flex-direction: column; gap: 1rem;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
}
.job-row.is-selected { border-color: var(--primary-30); background: var(--primary-05); }
.job-row__main { flex: 1; min-width: 0; }
.job-row__title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.job-row__title h3 { font-size: 1rem; }
.job-row__meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-top: .375rem; font-size: .75rem; color: var(--muted-fg); }
.job-row__actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.job-row__refresh {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .3125rem .625rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: .75rem; color: var(--muted-fg);
}
@media (min-width: 640px) { .job-row { flex-direction: row; align-items: center; } }

.bulk-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    padding: .75rem; border-radius: var(--radius);
    background: var(--primary-05); border: 1px solid var(--primary-20);
}
.bulk-bar__count { font-size: .875rem; font-weight: 500; color: var(--primary); }
.bulk-bar__actions { display: flex; gap: .5rem; margin-left: auto; flex-wrap: wrap; }

.select-toggle {
    display: inline-flex; align-items: center; gap: .375rem;
    background: none; border: 0; padding: .25rem; cursor: pointer;
    font: inherit; font-size: .75rem; color: var(--muted-fg);
}
.select-toggle:hover { color: var(--foreground); }
.select-toggle .icon { color: var(--muted-fg); }
.select-toggle.is-checked .icon { color: var(--primary); }

/* Import-Assistent */
.import-list { display: flex; flex-direction: column; gap: .5rem; max-height: 22rem; overflow-y: auto; padding-right: .25rem; }
.import-item {
    display: flex; align-items: flex-start; gap: .75rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: .75rem; background: hsla(220, 15%, 93%, .3);
}
.import-item.is-selected { border-color: var(--primary-30); background: var(--primary-05); }
.import-item__title { font-size: .875rem; font-weight: 500; }
.import-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin-top: .25rem; font-size: .75rem; color: var(--muted-fg); }
.import-item__ok { color: hsl(142, 71%, 32%); font-weight: 500; }
.import-item__warn { color: hsl(32, 81%, 40%); display: inline-flex; align-items: center; gap: .25rem; }

.upload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1rem; }
@media (min-width: 640px) { .upload-grid { grid-template-columns: repeat(3, 1fr); } }
.upload-thumb { position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--muted); }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb button {
    position: absolute; top: .375rem; right: .375rem;
    background: rgba(0, 0, 0, .55); border: 0; border-radius: var(--radius-sm);
    color: #fff; padding: .25rem; cursor: pointer; display: grid; place-items: center;
}
.upload-thumb button:hover { background: var(--destructive); }

/* Bild zum Entfernen vormerken.
   Das Kästchen selbst ist unsichtbar, deshalb muss die Kachel den Zustand
   zeigen - sonst wirkt ein Klick folgenlos. */
.upload-thumb--markable { display: block; cursor: pointer; }
.upload-thumb--markable img { transition: opacity .15s, filter .15s; }

.upload-thumb__action {
    position: absolute; top: .375rem; right: .375rem;
    display: grid; place-items: center;
    width: 1.75rem; height: 1.75rem;
    background: rgba(0, 0, 0, .55); border-radius: var(--radius-sm);
    color: #fff; transition: background-color .15s;
}
.upload-thumb--markable:hover .upload-thumb__action { background: var(--destructive); }

.upload-thumb__state {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: .25rem .5rem;
    font-size: .6875rem; font-weight: 600; line-height: 1.3; text-align: center;
    color: #fff; background: var(--destructive);
    opacity: 0; transform: translateY(100%); transition: opacity .15s, transform .15s;
}

/* Zustand: einmal über :has() für reines CSS, einmal über eine Klasse, die
   app.js setzt - so funktioniert es auch in älteren Browsern. */
.upload-thumb--markable:has(.upload-thumb__flag:checked) img,
.upload-thumb--markable.is-marked img { opacity: .3; filter: grayscale(1); }

.upload-thumb--markable:has(.upload-thumb__flag:checked) .upload-thumb__state,
.upload-thumb--markable.is-marked .upload-thumb__state { opacity: 1; transform: none; }

.upload-thumb--markable:has(.upload-thumb__flag:checked) .upload-thumb__action,
.upload-thumb--markable.is-marked .upload-thumb__action { background: var(--destructive); }

.upload-thumb--markable:has(.upload-thumb__flag:focus-visible),
.upload-thumb--markable.is-focused { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Umgekehrte Bedeutung: angehakt heißt "wird übernommen". */
.upload-thumb--pickable:has(.upload-thumb__flag:not(:checked)) img,
.upload-thumb--pickable.is-unpicked img { opacity: .35; filter: grayscale(1); }
.upload-thumb--pickable .upload-thumb__action { background: var(--success); }
.upload-thumb--pickable:has(.upload-thumb__flag:not(:checked)) .upload-thumb__action,
.upload-thumb--pickable.is-unpicked .upload-thumb__action { background: rgba(0, 0, 0, .45); }

.dropzone {
    width: 100%; border: 1px dashed var(--border); border-radius: var(--radius-sm);
    background: var(--card); color: var(--foreground);
    padding: .875rem; font: inherit; font-size: .875rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.dropzone:hover { background: var(--secondary); border-color: var(--primary-30); }

/* ---------------------------------------------------------------------------
   20. Tabellen (Adminbereich)
   --------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th, .table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-fg); font-weight: 600; background: hsla(220, 15%, 93%, .4); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: hsla(220, 15%, 93%, .3); }
.table__actions { display: flex; gap: .375rem; justify-content: flex-end; }

/* ---------------------------------------------------------------------------
   21. Seitenzahlen
   --------------------------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .375rem; margin-top: 2rem; }
.pagination a, .pagination span {
    min-width: 2.25rem; height: 2.25rem; padding-inline: .625rem;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--card); color: var(--foreground); font-size: .875rem; font-weight: 500;
}
.pagination a:hover { background: var(--secondary); }
.pagination .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .is-gap { border: 0; background: none; color: var(--muted-fg); }

/* ---------------------------------------------------------------------------
   22. Dialoge
   --------------------------------------------------------------------------- */
dialog.modal {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 0; width: min(28rem, calc(100vw - 2rem)); background: var(--card);
    color: var(--foreground); box-shadow: var(--shadow-lg);
}
dialog.modal::backdrop { background: rgba(15, 23, 41, .5); }
.modal__head { padding: 1.5rem 1.5rem .5rem; }
.modal__head h2 { font-size: 1.0625rem; }
.modal__head p { font-size: .875rem; color: var(--muted-fg); margin-top: .375rem; }
.modal__body { padding: .75rem 1.5rem; font-size: .875rem; color: var(--muted-fg); }
.modal__foot { padding: 1rem 1.5rem 1.5rem; display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; }

/* ---------------------------------------------------------------------------
   23. Marketingseite "Kostenlos schalten"
   --------------------------------------------------------------------------- */
.marketing-hero { text-align: center; margin-bottom: 3.5rem; }
.marketing-hero h1 { font-size: clamp(1.75rem, 5vw, 3rem); margin-block: 1rem; }
.marketing-hero p { color: var(--muted-fg); font-size: 1.125rem; max-width: 42rem; margin: 0 auto 2rem; }
.marketing-hero__actions { display: flex; flex-direction: column; gap: .75rem; justify-content: center; }
@media (min-width: 640px) { .marketing-hero__actions { flex-direction: row; } }

.tag-pill {
    display: inline-block; padding: .25rem .75rem; border-radius: var(--radius-full);
    font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.tag-pill--accent { background: var(--accent-10); color: var(--accent); }
.tag-pill--green { background: var(--success-bg); color: hsl(142, 71%, 30%); }

.checklist { list-style: none; display: grid; gap: .75rem; }
@media (min-width: 640px) { .checklist { grid-template-columns: repeat(2, 1fr); } }
.checklist li { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: hsla(220, 30%, 10%, .8); }
.checklist li .icon-lg { color: var(--success); }

.feature-split {
    display: flex; flex-direction: column; gap: 2rem;
    border-radius: var(--radius-xl); padding: 1.5rem;
}
.feature-split--primary { background: linear-gradient(135deg, var(--primary-05), var(--accent-10)); border: 1px solid var(--primary-20); }
.feature-split--accent { background: linear-gradient(135deg, var(--accent-10), var(--primary-05)); border: 1px solid var(--accent-20); }
.feature-split__text { flex: 1; }
.feature-split__text h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-block: .75rem; }
.feature-split__text > p { color: var(--muted-fg); font-size: .875rem; line-height: 1.7; margin-bottom: 1.25rem; }
.feature-split__text ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.feature-split__text li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: hsla(220, 30%, 10%, .8); }
.feature-split__text li .icon { color: var(--success); }
.feature-split__visual { flex: 0 0 auto; width: 100%; }
@media (min-width: 1024px) {
    .feature-split { flex-direction: row; align-items: center; gap: 2rem; padding: 2.5rem; }
    .feature-split__visual { width: 24rem; }
}

.mock-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.mock-card__label { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-fg); margin-bottom: .75rem; }
.mock-input { display: flex; gap: .5rem; margin-bottom: 1rem; }
.mock-input__field { flex: 1; height: 2.25rem; padding-inline: .75rem; display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: hsla(220, 15%, 93%, .5); font-size: .75rem; color: var(--muted-fg); }
.mock-input__btn { height: 2.25rem; padding-inline: .75rem; display: inline-flex; align-items: center; gap: .375rem; border-radius: var(--radius-sm); background: var(--primary); color: #fff; font-size: .75rem; font-weight: 500; }
.mock-row { display: flex; align-items: center; gap: .75rem; padding: .625rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: hsla(220, 15%, 93%, .5); font-size: .75rem; }
.mock-row + .mock-row { margin-top: .5rem; }
.mock-row__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--success); flex: 0 0 auto; }
.mock-row span:nth-child(2) { flex: 1; font-weight: 500; }
.mock-note { font-size: .75rem; text-align: center; color: var(--muted-fg); margin-top: .75rem; }

.feature-cards { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .feature-cards { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.feature-card__icon { width: 3rem; height: 3rem; border-radius: var(--radius); background: var(--primary-10); color: var(--primary); display: grid; place-items: center; margin: 0 auto 1rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.feature-card p { font-size: .875rem; color: var(--muted-fg); line-height: 1.7; }

.cta-panel {
    background: linear-gradient(90deg, var(--primary), hsl(215, 80%, 55%));
    border-radius: var(--radius-xl); padding: 2rem 1.5rem; text-align: center; color: #fff;
}
.cta-panel h2 { color: #fff; font-size: clamp(1.375rem, 4vw, 1.875rem); margin-bottom: .75rem; }
.cta-panel p { color: hsla(0, 0%, 100%, .8); max-width: 36rem; margin: 0 auto 1.5rem; }
@media (min-width: 640px) { .cta-panel { padding: 3rem; } }

/* ---------------------------------------------------------------------------
   24. Ladeanzeige
   --------------------------------------------------------------------------- */
.spinner {
    width: 2rem; height: 2rem; border-radius: 50%;
    border: 3px solid var(--primary-20); border-top-color: var(--primary);
    animation: spin .7s linear infinite;
}
.spinner-sm { width: 1rem; height: 1rem; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-busy .spinner-inline { display: inline-block; }
.spinner-inline { display: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------------------------------------------------------------------------
   25. Druckansicht
   --------------------------------------------------------------------------- */
@media print {
    .site-header, .site-footer, .cookie-banner, .filter-bar-sticky,
    .detail-card__foot, .toast-area, .back-link { display: none !important; }
    body { background: #fff; }
    .detail-card { border: 0; }
}

/* Umbruch in Überschriften erst ab Tablet-Breite */
.desktop-break { display: none; }
@media (min-width: 640px) { .desktop-break { display: inline; } }
