/* Storefront-Default-Theme (v1). Akzentfarbe kommt als --sf-accent inline aus den
   Agentur-Settings; Phase 2 hängt hier Custom-CSS pro Agentur an. */

:root {
    --sf-accent: #111827;
    --sf-text: #1f2937;
    --sf-muted: #6b7280;
    --sf-border: #e5e7eb;
    --sf-bg: #ffffff;
    --sf-bg-soft: #f9fafb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--sf-text);
    background: var(--sf-bg);
    -webkit-font-smoothing: antialiased;
}

.sf-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

a { color: inherit; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 .5rem; }
h2 { font-size: 1.15rem; margin: 0; }

/* Header / Footer */
.sf-header { border-bottom: 1px solid var(--sf-border); background: var(--sf-bg); }
.sf-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding-top: .9rem; padding-bottom: .9rem;
}
.sf-brand { text-decoration: none; display: flex; align-items: center; }
.sf-logo { max-height: 44px; max-width: 180px; display: block; }
.sf-brand-name { font-weight: 700; font-size: 1.2rem; }
.sf-nav { display: flex; align-items: center; gap: 1rem; }
.sf-nav a { text-decoration: none; font-size: .95rem; }
.sf-nav a:not(.sf-btn):hover { text-decoration: underline; }

.sf-main { padding: 2rem 1.25rem 4rem; }

.sf-footer { border-top: 1px solid var(--sf-border); background: var(--sf-bg-soft); }
.sf-footer-inner {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: .5rem 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem;
    font-size: .85rem; color: var(--sf-muted);
}
.sf-footer-links { display: flex; gap: 1.25rem; }
.sf-footer-links a { color: var(--sf-muted); text-decoration: none; }
.sf-footer-links a:hover { text-decoration: underline; }

/* Buttons */
.sf-btn {
    display: inline-block; padding: .5rem 1rem; border: 1px solid var(--sf-accent);
    background: var(--sf-accent); color: #fff; text-decoration: none; font-size: .95rem;
    font-weight: 600; cursor: pointer; border-radius: 4px; line-height: 1.4;
}
.sf-btn:hover { filter: brightness(1.12); }
.sf-btn-outline { background: transparent; color: var(--sf-text); border-color: var(--sf-border); font-weight: 500; }
.sf-btn-outline:hover { filter: none; background: var(--sf-bg-soft); }
.sf-btn-accent { background: var(--sf-accent); border-color: var(--sf-accent); }
.sf-btn-lg { padding: .7rem 1.5rem; font-size: 1.05rem; }
.sf-disabled { opacity: .45; pointer-events: none; }

/* Hero / Suche */
.sf-hero { margin-bottom: 1.5rem; }
.sf-intro { color: var(--sf-muted); margin: 0; max-width: 60ch; }
.sf-search { display: flex; gap: .5rem; margin-bottom: 2rem; }
.sf-search input {
    flex: 1; padding: .55rem .8rem; border: 1px solid var(--sf-border);
    border-radius: 4px; font-size: 1rem;
}
.sf-search input:focus { outline: 2px solid var(--sf-accent); outline-offset: 1px; border-color: transparent; }

/* Jobliste */
.sf-job-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.sf-job-card { border: 1px solid var(--sf-border); border-radius: 6px; transition: border-color .15s; }
.sf-job-card:hover { border-color: var(--sf-accent); }
.sf-job-link { display: block; padding: 1rem 1.25rem; text-decoration: none; }
.sf-job-meta {
    display: flex; flex-wrap: wrap; gap: .35rem 1rem;
    color: var(--sf-muted); font-size: .9rem; margin: .35rem 0 0;
}
.sf-job-shortfacts { flex-basis: 100%; }
.sf-empty { color: var(--sf-muted); padding: 2rem 0; }

/* Pagination */
.sf-pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 2rem; }
.sf-page-info { color: var(--sf-muted); font-size: .9rem; }

/* Jobdetail */
.sf-job-header { margin-bottom: 1.5rem; }
.sf-job-header .sf-btn { margin-top: 1rem; }
.sf-shortfacts {
    background: var(--sf-bg-soft); border-left: 3px solid var(--sf-accent);
    padding: .75rem 1rem; margin: 0 0 1.5rem; font-size: .95rem;
}
.sf-description { max-width: 68ch; }
.sf-description h2, .sf-description h3, .sf-description h4 { margin: 1.5em 0 .4em; line-height: 1.3; }
.sf-description p { margin: 0 0 1em; }
.sf-description ul, .sf-description ol { margin: 0 0 1em; padding-left: 1.4rem; }
.sf-description li { margin-bottom: .25em; }
.sf-job-footer { display: flex; gap: .75rem; margin-top: 2.5rem; }

/* Formulare */
.sf-form-page h1 { margin-bottom: .25rem; }
.sf-form-subtitle { color: var(--sf-muted); margin: 0 0 1.75rem; }
.sf-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 560px; }
.sf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .sf-form-row { grid-template-columns: 1fr; } }
.sf-field { display: flex; flex-direction: column; gap: .3rem; }
.sf-field label { font-size: .9rem; font-weight: 600; }
.sf-field input, .sf-field select, .sf-field textarea {
    padding: .55rem .7rem; border: 1px solid var(--sf-border); border-radius: 4px;
    font-size: 1rem; font-family: inherit; background: var(--sf-bg);
}
.sf-field input:focus, .sf-field select:focus, .sf-field textarea:focus {
    outline: 2px solid var(--sf-accent); outline-offset: 1px; border-color: transparent;
}
.sf-consent label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.sf-consent input { margin-top: .25rem; }
.sf-alert {
    border: 1px solid #fca5a5; background: #fef2f2; color: #991b1b;
    border-radius: 6px; padding: .9rem 1.1rem; font-size: .95rem;
}
.sf-alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* Honeypot: raus aus dem Viewport, aber für Bots ein normales Feld. */
.sf-hp { position: absolute; left: -9999px; top: -9999px; }

/* Danke-Seite */
.sf-thanks { text-align: center; padding: 3rem 0; }
.sf-thanks p { color: var(--sf-muted); max-width: 48ch; margin: 0 auto 1.5rem; }
