/* === Markenschriften – selbst-gehostet (DSGVO-konform, kein Google-CDN) === */
@font-face{font-family:'Oswald';font-style:normal;font-weight:400;font-display:swap;src:url('/static/fonts/oswald-400.woff2') format('woff2');}
@font-face{font-family:'Oswald';font-style:normal;font-weight:500;font-display:swap;src:url('/static/fonts/oswald-500.woff2') format('woff2');}
@font-face{font-family:'Oswald';font-style:normal;font-weight:600;font-display:swap;src:url('/static/fonts/oswald-600.woff2') format('woff2');}
@font-face{font-family:'Oswald';font-style:normal;font-weight:700;font-display:swap;src:url('/static/fonts/oswald-700.woff2') format('woff2');}
@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:url('/static/fonts/source-sans-pro-400.woff2') format('woff2');}
@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:url('/static/fonts/source-sans-pro-600.woff2') format('woff2');}
@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:url('/static/fonts/source-sans-pro-700.woff2') format('woff2');}

:root{
  --brand:#39b98c;            /* Markengrün (Logo, Akzente) */
  --brand-strong:#1f7d5e;     /* dunkleres Grün – Buttons/Links (AA-Kontrast) */
  --brand-strong-h:#19684e;   /* Hover */
  --brand-tint:#e6f6ef;       /* heller Grünschimmer */
  --font-head:'Oswald', sans-serif;
  --font-body:'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { font-family: var(--font-body);
       margin: 0; color: #1d1d1f; background: #f5f5f7; display: flex; flex-direction: column;
       min-height: 100vh; }

h1, h2, h3, .hero h1, .apply h2, .eyebrow, .brand {
  font-family: var(--font-head); letter-spacing: .01em; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Header / Footer ----------------------------------------------------- */
header { background: #fff; border-bottom: 1px solid #e3e3e6; padding: 14px 20px;
         display: flex; justify-content: space-between; align-items: center;
         position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 44px; width: auto; display: block; }
@media (max-width: 760px) { .brand-logo { height: 36px; } }
.topnav a { font-size: 14px; margin-left: 18px; }

main { flex: 1; }

footer { background: #fff; border-top: 1px solid #e3e3e6; margin-top: 48px; }
.footer-inner { max-width: 920px; margin: 0 auto; padding: 18px 20px; font-size: 13px; color: #888;
                display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-inner nav a { margin-left: 16px; color: #888; }

/* --- Hero ---------------------------------------------------------------- */
.hero { background: linear-gradient(135deg, #2aa57c 0%, #1f7d5e 100%); color: #fff; }
.hero-inner { max-width: 760px; margin: 0 auto; padding: 72px 20px 80px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700;
           opacity: .85; margin: 0 0 12px; }
.hero h1 { font-size: 38px; line-height: 1.15; margin: 0 0 18px; }
.hero .lead { font-size: 18px; line-height: 1.6; opacity: .95; margin: 0 auto 28px; max-width: 620px; }
.btn-hero { display: inline-block; background: #fff; color: var(--brand-strong); font-weight: 600;
            padding: 14px 28px; border-radius: 10px; font-size: 16px; }
.btn-hero:hover { background: var(--brand-tint); text-decoration: none; }
.hero-social { font-size: 14px; opacity: .95; margin: 22px auto 0; max-width: 520px; line-height: 1.6; }
.hero-social a { color: #fff; font-weight: 600; text-decoration: underline; }
.hero-social a:hover { opacity: .85; }
.ig-icon { vertical-align: -3px; margin-right: 5px; }

/* --- Perks --------------------------------------------------------------- */
.perks { max-width: 920px; margin: -40px auto 0; padding: 0 20px; position: relative;
         display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.perk { background: #fff; border-radius: 14px; padding: 0; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.perk img { width: 100%; height: 180px; object-fit: cover; display: block; }
.perk h3 { margin: 16px 20px 8px; font-size: 17px; }
.perk p { margin: 0 20px 20px; color: #555; font-size: 14px; line-height: 1.55; }

/* --- Apply / Formular ---------------------------------------------------- */
.apply { max-width: 640px; margin: 56px auto 0; padding: 0 20px; }
.apply h2 { font-size: 26px; margin: 0 0 6px; }
.apply-intro { color: #555; margin: 0 0 8px; }

.narrow { max-width: 720px; margin: 36px auto 0; padding: 0 20px; }
.narrow.center { text-align: center; }

.card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.07);
        margin-top: 20px; }
h1 { font-size: 26px; margin: 6px 0 16px; }
h3 { margin: 22px 0 8px; font-size: 16px; }

.form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px;
        background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.form label { display: flex; flex-direction: column; font-size: 13px; color: #555; gap: 6px; font-weight: 600; }
.form input, .form select, .form textarea { padding: 11px 12px; border: 1px solid #c7c7cc;
        border-radius: 9px; font-size: 15px; font-family: inherit; font-weight: 400; color: #1d1d1f; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--brand-strong); border-color: var(--brand-strong); }
.form .row { display: flex; gap: 12px; flex-wrap: wrap; }
.form .row label { flex: 1; min-width: 160px; }
.form textarea { resize: vertical; }

.choice { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.choice legend { font-size: 13px; color: #555; font-weight: 600; padding: 0; }
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { position: relative; margin: 0; }
.chip-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-radio span { display: inline-block; background: #fff; border: 1px solid #c7c7cc; border-radius: 20px;
        padding: 9px 16px; font-size: 14px; font-weight: 500; color: #444; cursor: pointer;
        transition: background .12s, border-color .12s, color .12s; }
.chip-radio span:hover { background: var(--brand-tint); border-color: var(--brand); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
.chip-radio input:checked + span { background: var(--brand-strong); border-color: var(--brand-strong);
        color: #fff; font-weight: 600; }

label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: #444;
              font-size: 14px; line-height: 1.5; }
label.check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button { background: var(--brand-strong); color: #fff; border: 0; border-radius: 9px; padding: 13px 22px;
         font-family: var(--font-body); font-size: 16px; font-weight: 600; cursor: pointer; align-self: flex-start; }
button:hover { background: var(--brand-strong-h); }
.btn { display: inline-block; background: var(--brand-strong); color: #fff; padding: 12px 22px;
       border-radius: 9px; margin-top: 14px; font-weight: 600; }
.btn:hover { background: var(--brand-strong-h); text-decoration: none; }
.hint { color: #999; font-size: 12px; font-weight: 400; }

.alert { border-radius: 10px; padding: 14px 16px; margin: 18px 0 0; font-size: 14px; }
.alert.error { background: #fdeaea; color: #b3261e; }
.alert ul { margin: 0; padding-left: 18px; }
.error { color: #cc0000; font-size: 14px; }

/* --- Danke --------------------------------------------------------------- */
.thanks { background: #fff; border-radius: 16px; padding: 48px 28px; box-shadow: 0 1px 3px rgba(0,0,0,.07);
          margin-top: 40px; }
.check-circle { width: 64px; height: 64px; border-radius: 50%; background: #e6f6ea; color: #1a7f37;
                font-size: 34px; line-height: 64px; margin: 0 auto 18px; }
.thanks .lead { color: #555; font-size: 16px; }

/* --- Auth ---------------------------------------------------------------- */
.auth { max-width: 360px; margin: 40px auto; background: #fff; padding: 28px;
        border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.auth h1 { margin-top: 0; }

/* --- Admin --------------------------------------------------------------- */
.crumbs { font-size: 13px; margin-bottom: 4px; }
.meta { color: #888; font-size: 13px; }
.empty { color: #999; }
.message { white-space: pre-wrap; line-height: 1.6; color: #333; background: #fafafa;
           border-radius: 8px; padding: 12px 14px; }

.filterlabel { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #999;
               font-weight: 700; margin: 18px 0 0; }
.appmap { height: 520px; border-radius: 12px; margin-top: 16px;
          box-shadow: 0 1px 3px rgba(0,0,0,.1); z-index: 0; }
.mappopup { font-size: 13px; line-height: 1.5; min-width: 160px; }
.mappopup > div { margin-top: 2px; }
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.chip { background: #fff; border: 1px solid #d8d8dc; border-radius: 20px; padding: 6px 14px;
        font-size: 14px; color: #444; }
.chip:hover { background: #f0f7ff; text-decoration: none; }
.chip.active { background: var(--brand-strong); color: #fff; border-color: var(--brand-strong); }
.chip b { font-weight: 700; }

table.list { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px;
             overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
table.list th, table.list td { padding: 11px 13px; text-align: left;
             border-bottom: 1px solid #eee; font-size: 14px; vertical-align: top; }
table.list th { background: #fafafa; font-weight: 600; }
table.list tbody tr:last-child td { border-bottom: none; }
tr.clickable:hover { background: #f0f7ff; cursor: pointer; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

table.kv { border-collapse: collapse; }
table.kv th { text-align: left; color: #888; font-weight: 600; padding: 6px 16px 6px 0;
              font-size: 13px; vertical-align: top; white-space: nowrap; }
table.kv td { padding: 6px 0; font-size: 14px; }

ul.files { margin: 6px 0 0; padding-left: 18px; }
ul.files li { margin: 4px 0; }

.pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 12px; font-weight: 600; }
.status-neu { background: var(--brand-tint); color: var(--brand-strong); }
.status-gesehen { background: #eee; color: #555; }
.status-eingeladen { background: #e6f6ea; color: #1a7f37; }
.status-abgelehnt { background: #fdeaea; color: #b3261e; }

.statusform { display: flex; gap: 8px; flex-wrap: wrap; }
.statusbtn { background: #fff; color: #333; border: 1px solid #c7c7cc; font-weight: 500; font-size: 14px;
             padding: 9px 16px; }
.statusbtn:hover { background: #f0f7ff; }
.statusbtn.current { background: var(--brand-strong); color: #fff; border-color: var(--brand-strong); }

.noteinput { width: 100%; padding: 10px 12px; border: 1px solid #c7c7cc; border-radius: 9px;
             font-size: 14px; font-family: inherit; margin-bottom: 12px; color: #1d1d1f; }
.noteform { display: flex; flex-direction: column; gap: 8px; margin-top: 18px;
            border-top: 1px solid #eee; padding-top: 16px; }
.noteform textarea { padding: 10px 12px; border: 1px solid #c7c7cc; border-radius: 9px;
                     font-size: 14px; font-family: inherit; resize: vertical; color: #1d1d1f; }
.noteform .statusbtn { align-self: flex-start; }

.terminform { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.terminform input { padding: 10px 12px; border: 1px solid #c7c7cc; border-radius: 9px;
                    font-size: 14px; font-family: inherit; color: #1d1d1f; }

.timeline { list-style: none; margin: 4px 0 0; padding: 0; }
.timeline li { padding: 12px 0 12px 16px; border-left: 2px solid #e3e3e6; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px;
                       border-radius: 50%; background: var(--brand-strong); }
.timeline li:last-child::before { background: #c7c7cc; }
.timeline .meta { margin-right: 8px; }
.timeline-note { margin-top: 6px; color: #333; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.status-note { background: #eef1f4; color: #555; }
.status-probearbeit { background: #fff4e0; color: #8a5a00; }
.status-kontaktiert { background: #e8f0fe; color: #1a56c4; }
.status-zusage { background: #e6f6ea; color: #1a7f37; }

.danger { margin-top: 32px; }
.danger button { background: #fff; color: #cc0000; border: 1px solid #f0b0b0; font-weight: 500; }
.danger button:hover { background: #fdeaea; }

/* --- Legal --------------------------------------------------------------- */
.legal { line-height: 1.65; }
.legal p { color: #333; }
.legal h3 { margin-top: 26px; }
.todo { background: #fff4e0; color: #8a5a00; border-radius: 8px; padding: 10px 14px; font-size: 14px; }

/* --- Mobile -------------------------------------------------------------- */
@media (max-width: 760px) {
  .hero-inner { padding: 52px 18px 60px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 16px; }
  .perks { grid-template-columns: 1fr; margin-top: 24px; }
  .apply { margin-top: 40px; }
  input, select, textarea { font-size: 16px !important; }
  .form { padding: 18px; }
  button { min-height: 48px; width: 100%; }
  .statusform button, .danger button { width: auto; }
  table.list { font-size: 13px; }
}
