/* ==========================================================================
   coboljobs.ch – Stylesheet
   Ruhig, seriös, mit dezenten Anleihen an 3270-Terminals.
   ========================================================================== */

:root {
    --ink: #0e1a2b;
    --ink-2: #1c2b42;
    --ink-3: #2c3e5a;
    --paper: #f6f5f1;
    --surface: #ffffff;
    --line: #e2dfd6;
    --line-strong: #cbc7bb;
    --text: #1a2230;
    --muted: #5d6676;
    --accent: #0a7a52;
    --accent-strong: #075d3f;
    --accent-soft: #e3f3ec;
    --terminal: #39d98a;
    --warn: #8a5a00;
    --warn-soft: #fdf3dc;
    --danger: #b42318;
    --danger-soft: #fdeceb;
    --info: #1f4f8f;
    --info-soft: #e8f0fb;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

    --radius: 10px;
    --radius-small: 6px;
    --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 4px 16px rgba(14, 26, 43, .06);
    --container: 1160px;
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; }

a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.25; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); letter-spacing: -.01em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.narrow-center { max-width: 760px; text-align: center; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.strong { font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { font-size: .8rem; letter-spacing: .06em; color: var(--accent); margin-bottom: .5rem; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.hp-field { position: absolute; left: -9999px; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    padding: .65em 1.15em; border-radius: var(--radius-small); border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-3); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-strong); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #e7b4ae; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-small { padding: .4em .8em; font-size: .85rem; }
.btn-large { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-button {
    background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
}
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* --- Header ------------------------------------------------------------- */

.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: #fff; }
.brand-mark {
    font-family: var(--mono); font-size: .85rem; color: var(--terminal);
    background: #06101c; border: 1px solid #2a3b55; border-radius: 6px; padding: 3px 6px; line-height: 1;
}
.brand-name span { color: var(--terminal); }
.brand-small { font-size: 1rem; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a, .site-nav .link-button {
    color: #d5dce7; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: .95rem;
}
.site-nav a:hover, .site-nav .link-button:hover { color: #fff; background: rgba(255,255,255,.07); }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--terminal); border-radius: 0; }
.site-nav .btn-accent { color: #fff; margin-left: 8px; }
.nav-form { margin: 0; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: #fff; content: ""; transition: transform .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ink);
        flex-direction: column; align-items: stretch; padding: 8px 20px 20px; border-top: 1px solid #22324a;
    }
    .site-nav.is-open { display: flex; }
    .site-nav .btn-accent { margin: 8px 0 0; }
    .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--terminal); }
}

/* --- Sub navigation (Arbeitgeber/Admin) --------------------------------- */

.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; gap: 4px; overflow-x: auto; min-height: 52px; }
.subnav a:not(.btn) { padding: 14px 12px; color: var(--muted); text-decoration: none; white-space: nowrap; font-weight: 500; }
.subnav a:not(.btn):hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.subnav-cta { margin-left: auto; }
.subnav-admin { background: #fbfaf7; }

/* --- Flash / notices ---------------------------------------------------- */

.flash-stack { padding-top: 16px; }
.flash, .notice {
    padding: 12px 16px; border-radius: var(--radius-small); border: 1px solid; margin-bottom: 12px; position: relative;
}
.flash { padding-right: 44px; }
.flash-success { background: var(--accent-soft); border-color: #b5dfcb; color: #064a32; }
.flash-error, .notice-error { background: var(--danger-soft); border-color: #f1c0bb; color: #7a1a12; }
.flash-info, .notice-info { background: var(--info-soft); border-color: #c4d6f0; color: #173c6d; }
.notice-warning { background: var(--warn-soft); border-color: #efd9a6; color: #5c3d00; }
.flash-close { position: absolute; right: 8px; top: 6px; background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; padding: 4px 8px; }
.flash-close:hover { opacity: 1; }

/* --- Hero --------------------------------------------------------------- */

.hero { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); color: #e6ebf2; padding: 56px 0 64px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.hero .lead { color: #b9c4d3; max-width: 560px; }
.hero .eyebrow { color: var(--terminal); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

.hero-search {
    display: grid; grid-template-columns: 1fr 180px auto; gap: 8px; background: var(--surface);
    padding: 8px; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.25); margin: 28px 0;
}
.hero-search input[type="search"], .hero-search select { border: 0; box-shadow: none; background: transparent; font-size: 1rem; padding: 10px 12px; }
.hero-search select { border-left: 1px solid var(--line); border-radius: 0; }
.hero-search input:focus, .hero-search select:focus { outline: none; box-shadow: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px var(--terminal), 0 8px 30px rgba(0,0,0,.25); }

.hero-stats { display: flex; gap: 40px; margin: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: .85rem; color: #9aa7b9; }
.hero-stats dd { margin: 0; font-family: var(--mono); font-size: 1.8rem; color: #fff; font-weight: 600; }

.terminal { background: #050c16; border: 1px solid #23344d; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.35); overflow: hidden; }
.terminal-bar { display: flex; gap: 6px; padding: 10px 12px; background: #0b1625; border-bottom: 1px solid #1c2b40; }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a3b55; }
.terminal-body { margin: 0; padding: 18px 16px 22px; font-family: var(--mono); font-size: .8rem; line-height: 1.7; color: var(--terminal); overflow-x: auto; }
.t-dim { color: #2f8f62; }
.cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .terminal { display: none; }
}
@media (max-width: 600px) {
    .hero-search { grid-template-columns: 1fr; }
    .hero-search select { border-left: 0; border-top: 1px solid var(--line); }
    .hero-stats { gap: 24px; }
}

/* --- Sections ----------------------------------------------------------- */

.section { padding: 48px 0; }
.section-alt { background: #efede6; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { margin: 0; }

.page-head { padding: 40px 0 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { margin-bottom: .2em; }
.page-head-dark { background: var(--ink); color: #dbe3ee; border: 0; padding: 64px 0; }
.page-head-dark h1 { color: #fff; }
.page-head-dark .lead { color: #b9c4d3; }
.page-head-dark .eyebrow { color: var(--terminal); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

.empty { color: var(--muted); }
.empty-state { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 40px 24px; text-align: center; }
.empty-state .mono { color: var(--accent); }

/* --- Job cards ---------------------------------------------------------- */

.job-list { display: grid; gap: 12px; }

.job-card {
    display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: start;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
    position: relative; transition: border-color .15s, box-shadow .15s;
}
.job-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.job-card.is-featured { border-left: 4px solid var(--accent); padding-left: 17px; }
.job-card-logo, .job-detail-logo {
    width: 56px; height: 56px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line);
    display: grid; place-items: center; overflow: hidden;
}
.job-card-logo img, .job-detail-logo img { width: 100%; height: 100%; object-fit: contain; }
.job-card-logo span, .job-detail-logo span { font-family: var(--mono); font-weight: 700; color: var(--ink-3); }
.job-card-title { font-size: 1.1rem; margin: 0 0 2px; }
.job-card-title a { color: var(--ink); text-decoration: none; }
.job-card-title a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.job-card-title a:hover { color: var(--accent-strong); }
.job-card-company { margin: 0 0 6px; color: var(--muted); font-weight: 500; }
.job-card-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: .85rem; color: var(--muted); white-space: nowrap; }

.job-meta { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; color: var(--muted); }
.job-meta li:not(:last-child)::after { content: "·"; margin-left: 14px; color: var(--line-strong); }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li, .tags a {
    font-family: var(--mono); font-size: .75rem; padding: 2px 8px; border-radius: 4px;
    background: #eef2f0; color: #24443a; border: 1px solid #d7e3dd; text-decoration: none;
}
.tags-large li { padding: 0; border: 0; background: none; }
.tags-large a { font-size: .85rem; padding: 4px 10px; display: inline-block; }
.tags-large a:hover { background: var(--accent-soft); border-color: var(--accent); }

.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 4px; }
.badge-accent { background: var(--accent-soft); color: var(--accent-strong); }

@media (max-width: 640px) {
    .job-card { grid-template-columns: 44px 1fr; gap: 12px; padding: 16px; }
    .job-card-logo { width: 44px; height: 44px; }
    .job-card-aside { grid-column: 2; flex-direction: row; align-items: center; }
}

/* --- Liste mit Filtern -------------------------------------------------- */

.layout-sidebar { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding-top: 28px; padding-bottom: 56px; align-items: start; }
.filters { position: sticky; top: 84px; display: grid; gap: 20px; }
.filter-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.filter-actions { display: flex; gap: 8px; margin-top: 16px; }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.aside-box h2 { font-size: 1.05rem; }
.aside-box p { color: var(--muted); font-size: .95rem; }
.aside-box-dark { background: var(--ink); border-color: var(--ink); }
.aside-box-dark h2 { color: #fff; }
.aside-box-dark p { color: #b9c4d3; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; color: var(--muted); }

@media (max-width: 900px) {
    .layout-sidebar { grid-template-columns: 1fr; }
    .filters { position: static; }
    .filters .aside-box { display: none; }
}

/* --- Detailseite -------------------------------------------------------- */

.breadcrumb { padding: 20px 0 8px; font-size: .9rem; }
.breadcrumb a { text-decoration: none; }
.layout-detail { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; padding-bottom: 56px; }
.detail-aside { display: grid; gap: 16px; position: sticky; top: 84px; }
@media (max-width: 960px) {
    .layout-detail { grid-template-columns: 1fr; }
    .detail-aside { position: static; }
}

.job-detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.job-detail-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.job-detail-logo { width: 72px; height: 72px; flex: none; }
.job-detail-head h1 { margin: 4px 0 4px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.job-detail-company { margin: 0; font-size: 1.05rem; }
.job-detail-company a { color: var(--muted); font-weight: 600; text-decoration: none; }
.job-detail-company a:hover { color: var(--accent-strong); }

.facts {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0;
    background: #fbfaf7; border: 1px solid var(--line); border-radius: var(--radius-small); overflow: hidden; margin: 0 0 20px;
}
.facts div { padding: 10px 14px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }

.prose { margin-top: 24px; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose li::marker { color: var(--accent); }

.apply-box {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
}
.apply-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.apply-preview {
    margin-top: 32px; padding: 16px 20px; border: 1px dashed var(--line-strong);
    border-radius: var(--radius-small); background: #fbfaf7;
}
.apply-preview h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 10px; border: 0; }
.apply-preview dl { margin: 0; display: grid; gap: 6px; }
.apply-preview dl div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; }
.apply-preview dt { color: var(--muted); font-size: .9rem; }
.apply-preview dd { margin: 0; word-break: break-all; }
@media (max-width: 600px) { .apply-preview dl div { grid-template-columns: 1fr; gap: 0; } }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border: 0; }

.company-head { display: flex; gap: 20px; align-items: center; }
.company-logo { border-radius: 8px; border: 1px solid var(--line); background: #fff; object-fit: contain; }

@media (max-width: 600px) {
    .job-detail { padding: 20px; }
    .job-detail-head { flex-direction: column; gap: 12px; }
}

/* --- Formulare ---------------------------------------------------------- */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; } /* Feld oben ausrichten, auch wenn das Nachbarfeld einen Hinweis hat */
.field label, .fieldset legend { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.field-row-zip { grid-template-columns: 110px 1fr 1fr; }
@media (max-width: 640px) {
    .field-row, .field-row-3, .field-row-zip { grid-template-columns: 1fr; }
}

input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"],
input[type="number"], input[type="tel"], input:not([type]), select, textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
    border: 1px solid var(--line-strong); border-radius: var(--radius-small); padding: 10px 12px;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 122, 82, .18); }
input:disabled { background: var(--paper); color: var(--muted); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .875rem; margin: 0; }
.hint { color: var(--muted); font-size: .85rem; margin: 0; }
.counter { font-size: .78rem; color: var(--muted); text-align: right; font-family: var(--mono); }
.counter.is-over { color: var(--danger); }

.checkbox { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.checkbox input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0; display: grid; gap: 16px; background: var(--surface); }
.fieldset legend { padding: 0 8px; font-size: 1rem; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; }

.skill-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    font-family: var(--mono); font-size: .75rem; padding: 3px 9px; border-radius: 999px; cursor: pointer;
    background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink-3);
}
.chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.chip[disabled] { opacity: .35; cursor: default; }

.logo-current { display: flex; align-items: center; gap: 16px; }
.logo-current img { border: 1px solid var(--line); border-radius: 6px; background: #fff; object-fit: contain; }

.auth-box { max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.auth-box-wide { max-width: 620px; }
.auth-links { margin: 20px 0 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 520px) { .auth-box { padding: 22px; border-radius: 0; border-left: 0; border-right: 0; } }

/* --- Pakete / Preise ---------------------------------------------------- */

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.price-card.is-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-card .btn { margin-top: auto; }
.price { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--ink); margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px dashed var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }

.step-list { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 0; margin: 0; }
.step-list li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 4px; }
.step-list li::before { content: "0" counter(step); font-family: var(--mono); color: var(--accent); font-weight: 700; }
.step-list span { color: var(--muted); font-size: .95rem; }

.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 14px 18px; margin-bottom: 8px; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--ink); }
.faq p { margin: 10px 0 0; color: var(--muted); }

.package-options { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.package-option { position: relative; cursor: pointer; }
.package-option input { position: absolute; opacity: 0; }
.package-option-body {
    display: grid; gap: 2px; height: 100%; background: var(--surface); border: 2px solid var(--line);
    border-radius: var(--radius); padding: 16px; transition: border-color .15s, box-shadow .15s;
}
.package-option input:checked + .package-option-body { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,122,82,.15); }
.package-option input:focus-visible + .package-option-body { outline: 3px solid var(--accent); outline-offset: 2px; }
.package-price { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-top: 8px; }
.billing-summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 16px 20px; }
.billing-summary h2 { font-size: 1rem; }
.billing-summary address { font-style: normal; }

/* --- Tabellen / Admin --------------------------------------------------- */

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 32px; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fbfaf7; font-weight: 600; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfbf8; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { white-space: nowrap; }
.table .actions > * { margin-right: 10px; display: inline-block; }
.table .actions form { margin: 0; }
.is-overdue td { background: #fff8f7; }

.status { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.status-published, .status-order-paid { background: var(--accent-soft); color: var(--accent-strong); border-color: #b5dfcb; }
.status-submitted, .status-order-open { background: var(--warn-soft); color: var(--warn); border-color: #efd9a6; }
.status-rejected, .status-order-cancelled { background: var(--danger-soft); color: var(--danger); border-color: #f1c0bb; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 36px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; display: grid; gap: 2px; color: var(--text); }
.kpi:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--text); }
.kpi-value { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; color: var(--ink); }
.kpi-value-small { font-size: 1.3rem; padding: .3rem 0; }
.kpi-label { color: var(--muted); font-size: .88rem; }
.kpi-alert { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.preview-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px;
}
.preview-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.preview-actions form { margin: 0; }
.preview-frame { border: 2px dashed var(--line-strong); border-radius: calc(var(--radius) + 4px); padding: 6px; margin-bottom: 32px; }
.preview-frame .job-detail { border: 0; }
.reject-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; }
.reject-box summary { cursor: pointer; font-weight: 600; color: var(--danger); }
.reject-box form { margin-top: 12px; }
.reject-modes { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.reject-box .btn { justify-self: start; }

.package-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

/* --- Fehlerseiten ------------------------------------------------------- */

.error-page { padding: 40px 0; margin: 0 auto; }
.error-code { color: var(--accent); font-size: 1rem; letter-spacing: .1em; }
.debug { text-align: left; background: #0b1625; color: #f5c2c0; padding: 16px; border-radius: 8px; overflow: auto; font-size: .8rem; margin-bottom: 24px; }

/* --- Footer ------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #9aa7b9; margin-top: 48px; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand p { margin-top: 12px; max-width: 360px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-nav h2 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.footer-nav a { display: block; color: #c6cfdb; text-decoration: none; padding: 3px 0; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #22324a; padding-top: 16px; padding-bottom: 24px; font-size: .8rem; }
.footer-bottom .mono { color: #4f6a8a; }
@media (max-width: 760px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-nav { grid-template-columns: 1fr 1fr; }
}

/* --- Umgebungsbalken (nur ausserhalb von production) --------------------- */

.env-bar {
    font-family: var(--mono); font-size: .75rem; font-weight: 700; letter-spacing: .08em;
    text-align: center; padding: 3px 8px; color: #fff; background: #b45309;
}
.env-bar.env-local { background: #7c3aed; }
.env-bar.env-development { background: #b45309; }

/* Administration → Protokoll */
.log-pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .82rem; line-height: 1.5; }
.log-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.log-filter { display: flex; gap: 16px; }
.log-filter a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.log-error { color: var(--danger); }
.table td.nowrap { white-space: nowrap; }
