:root{
  color-scheme: light only;
  --green:#17713a;--green-dark:#0f5c2e;--lime:#a7cf00;
  --blue:#0067a8;--orange:#e76f00;--yellow:#c58a00;--purple:#7352b8;
  --ink:#12201a;--muted:#6f7a72;--line:#e6ece6;--bg:#f4f7f4;--card:#fff;
  --navy1:#071d3d;--navy2:#0b2b55;--navy3:#123967;
  --shadow:0 18px 44px rgba(15,35,22,.14);
  --font:'Inter',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:400 900;
  font-display:swap;
  src:url('assets/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font);background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
button,input{font-family:inherit}
a{color:inherit}
.icon svg,[data-icon] svg{display:block}

/* ===== App shell ===== */
.app{max-width:480px;margin:0 auto;min-height:100vh;background:var(--card);position:relative;padding-bottom:calc(78px + env(safe-area-inset-bottom));overflow:hidden}
@media(min-width:560px){
  body{padding:28px 0}
  .app{min-height:calc(100vh - 56px);border-radius:36px;box-shadow:var(--shadow);border:1px solid #e2e8e2}
}
@media(min-width:700px){.app{max-width:700px}}
@media(min-width:1000px){.app{max-width:1080px}}
.screen{display:none}
.screen.active{display:block;animation:fadeIn .18s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.screenScroll{padding:22px 18px 30px}
@media(min-width:700px){
  .screenScroll{max-width:640px;margin:0 auto;padding:32px 24px 40px}
  #screen-berufe .screenScroll,#screen-lehrstellen .screenScroll{max-width:none}
}

/* ===== Bottom tab bar ===== */
.tabbarDock{position:sticky;bottom:0;left:0;right:0;padding:10px 14px calc(10px + env(safe-area-inset-bottom));max-width:480px;margin:0 auto;z-index:30;pointer-events:none}
@media(min-width:560px){.tabbarDock{position:absolute}}
@media(min-width:700px){.tabbarDock{max-width:700px}}
@media(min-width:1000px){.tabbarDock{max-width:1080px}}
.tabbar{position:relative;display:flex;background:#fff;border-radius:999px;padding:6px;box-shadow:0 14px 34px rgba(15,35,22,.16),0 2px 8px rgba(15,35,22,.06);border:1px solid var(--line);pointer-events:auto}
.tabIndicator{position:absolute;top:0;left:0;background:var(--green);border-radius:999px;transition:transform .4s cubic-bezier(.34,1.3,.4,1),width .3s ease;z-index:0;box-shadow:0 6px 16px rgba(23,113,58,.35)}
.tabBtn{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:0;color:#9aa49c;padding:8px 2px;cursor:pointer;border-radius:999px;transition:color .3s ease}
.tabBtn .tabIcon{width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:999px;transition:background .3s ease}
.tabBtn svg{width:22px;height:22px;stroke:currentColor;transition:stroke .3s ease}
.tabBtn small{font-size:10.5px;font-weight:800;letter-spacing:.01em}
.tabBtn.active{color:#fff}
.tabBtn.active .tabIcon{background:rgba(255,255,255,.22)}

/* ===== Home ===== */
.homeScroll{padding-top:18px}
.homeBrand{text-align:center}
.officialMissionLogo{width:min(300px,72vw);height:auto;display:block;margin:0 auto}
.welcomeAvatars{margin:-22px 0 16px}
.welcomeAvatars img{width:100%;height:auto;display:block}
.homeTitle{font-size:25px;font-weight:900;text-align:center;line-height:1.18;letter-spacing:-.01em;margin:0 0 10px}
.homeLead{text-align:center;color:var(--muted);font-size:14.5px;line-height:1.5;margin:0 0 22px}
.quickGrid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:18px}
.quickCard{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 10px;text-align:left;display:flex;flex-direction:column;gap:7px;box-shadow:0 6px 18px rgba(20,40,25,.06);cursor:pointer}
.quickCard b{font-size:12.5px;font-weight:800;color:#15201a;line-height:1.22}
.quickCard>span:last-child{font-size:10.5px;color:var(--muted);line-height:1.3}
.quickCardWarm{background:#fff8ef}
.quickCardPurple{background:#f6f3fc}
.quickIcon{width:34px;height:34px;border-radius:11px;display:flex;align-items:center;justify-content:center}
.quickIcon svg{width:18px;height:18px}
.quickIconGreen{background:#e9f5ec;color:var(--green)}
.quickIconOrange{background:#fdece0;color:#e76f00}
.quickIconPurple{background:#eae4f7;color:var(--purple)}

.eventCard{background:#fff;border:1px solid var(--line);border-radius:26px;overflow:hidden;box-shadow:0 18px 40px rgba(15,35,22,.12);margin-bottom:14px}
.eventImage{display:block;width:100%;height:auto}
.eventBody{padding:18px 20px 20px}
.eventBody h2{margin:0 0 10px;font-size:20px;line-height:1.2;font-weight:900}
.eventMeta{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-weight:700;font-size:13.5px;color:var(--muted);line-height:1.4}
.eventMeta span{flex:0 0 auto;width:16px;height:16px;color:var(--green)}
.eventMeta svg{width:16px;height:16px}
.eventBody .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.eventBody .btn{flex:1;min-width:150px;gap:6px}
.eventBody .btn span{width:14px;height:14px;flex:0 0 auto}
.eventBody .btn svg{width:14px;height:14px}

.legalLink{display:block;width:100%;background:none;border:0;text-align:center;color:var(--muted);font-size:12px;font-weight:700;padding:18px 0 4px;cursor:pointer}

/* ===== Buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:999px;padding:14px 18px;font-weight:900;font-size:14px;text-decoration:none;border:1px solid var(--green);cursor:pointer}
.primary{background:var(--green);color:#fff}
.ghost{background:#fff;color:var(--green)}
.small{padding:9px 13px;font-size:12.5px}

/* ===== Screen headers ===== */
.screenHead{margin-bottom:16px}
@media(min-width:700px){.screenHead p{max-width:640px}}
.screenHead h1{font-size:23px;font-weight:900;margin:0 0 6px;letter-spacing:-.01em}
.screenHead p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.screenHeadRow{display:flex;justify-content:space-between;align-items:center;gap:10px}
.progressPill{background:#eef6ef;color:var(--green);font-weight:900;font-size:12.5px;padding:6px 12px;border-radius:999px;white-space:nowrap}

/* ===== Berufe list ===== */
.jobList{display:grid;gap:10px}
@media(min-width:700px){.jobList{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}}
.jobRow{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:10px 14px;cursor:pointer;box-shadow:0 4px 14px rgba(20,40,25,.05);text-align:left;width:100%}
.jobRow img{width:52px;height:52px;border-radius:14px;object-fit:cover;flex:0 0 auto;background:#f2f2f2}
.jobRow .jobInfo{flex:1;min-width:0}
.jobRow h3{margin:0 0 3px;font-size:15.5px;font-weight:800;color:var(--c);line-height:1.25}
.jobRow p{margin:0;font-size:12px;color:var(--muted)}
.jobRow .doneMark{color:var(--green);font-size:17px;flex:0 0 auto}
.jobRow .rowChev{color:#c7cfc9;font-size:20px;flex:0 0 auto}

/* ===== Quiz ===== */
.quizBox{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:0 8px 22px rgba(20,40,25,.06)}
.question h3{font-size:18px;margin:0 0 14px;font-weight:800}
.options{display:grid;gap:10px}
.option{padding:15px;border:1px solid var(--line);border-radius:16px;background:#fbfdfb;text-align:left;font-size:14.5px;font-weight:700;cursor:pointer}
.option:active{background:#eef6ef}
.resultGrid{display:grid;gap:10px;margin-top:4px}

/* ===== Impressum & Datenschutz ===== */
.backBtn{width:38px;height:38px;border-radius:12px;background:#fff;border:1px solid var(--line);font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;margin-bottom:14px;cursor:pointer;color:var(--ink)}
.termsBox{background:#f8faf8;border:1px solid var(--line);border-radius:20px;padding:18px 18px 6px;margin-bottom:24px}
.termsBox strong{display:block;margin-bottom:10px;font-size:14.5px;color:#1c2620}
.termsBox p{margin:0 0 12px;font-size:11.5px;line-height:1.55;color:#5c675f}
.termsBox p b{color:#2b3b30}
.termsBox p a{color:var(--green);font-weight:700}

/* ===== Lehrstellen ===== */
.lehrstellenUpdated{font-size:11.5px;font-weight:700;color:var(--muted);margin:-4px 0 14px}
.lehrstelleList{display:grid;gap:10px;margin-bottom:16px}
@media(min-width:700px){.lehrstelleList{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}}
.lehrstelleCard{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px}
.lehrstelleTop{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.lehrstelleIcon{flex:0 0 22px;width:22px;height:22px;color:var(--green);display:flex;align-items:center;justify-content:center}
.lehrstelleIcon svg{width:15px;height:15px}
.lehrstelleDuration{font-size:11.5px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:var(--green);background:#eef6ef;border-radius:999px;padding:4px 10px}
.lehrstelleCard h3{margin:0;font-size:15px;font-weight:800;line-height:1.3}
.lehrstelleMeta{display:flex;align-items:flex-start;gap:8px;margin:6px 0 0;font-size:12.5px;color:var(--muted);line-height:1.45}
.lehrstelleMeta span{flex:0 0 auto;width:14px;height:14px;color:var(--green);margin-top:2px}
.lehrstelleMeta svg{width:14px;height:14px}
.lehrstelleActions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.lsBtn{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:800;text-decoration:none;color:var(--green);border:1px solid var(--line);border-radius:999px;padding:8px 13px;background:#fff}
.lsBtn svg{width:12px;height:12px}
.lsBtn.primaryMini{background:var(--green);color:#fff;border-color:var(--green)}
.noLehrstellen{padding:26px;text-align:center;background:#fff;border:1px dashed var(--line);border-radius:20px;color:var(--muted);font-size:13.5px}
.applyBtn{width:100%;display:flex;align-items:center;justify-content:center;gap:8px}

/* ===== Job detail modal ===== */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:50;display:none;padding:0;overflow:auto}
.modal.show{display:block}
.modalCard{max-width:480px;margin:0 auto;min-height:100vh;background:#fff;position:relative;overflow:hidden}
@media(min-width:560px){.modalCard{margin:24px auto;min-height:0;border-radius:30px}}
.close{position:sticky;float:right;top:12px;right:12px;margin:12px;z-index:2;border:0;background:#111;color:#fff;border-radius:999px;width:38px;height:38px;font-size:24px;cursor:pointer}
.detailHero{padding:20px}
.detailHero img{width:100%;border-radius:22px;max-height:280px;object-fit:cover;background:#f8f8f8}
.detailHero h2{font-size:26px;margin:16px 0 8px}
.detailHero h2 small{display:block;font-size:14px;color:var(--muted);font-weight:700;margin-top:4px}
.super{display:inline-flex;background:var(--c);color:#fff;border-radius:999px;padding:8px 13px;font-weight:900;font-size:13px}
.detailHero p{font-size:14.5px;line-height:1.55;color:#37423a}
.detailGrid{display:grid;grid-template-columns:1fr;gap:12px;padding:0 20px 20px}
.infoBox{background:#f8fbf8;border:1px solid var(--line);border-radius:20px;padding:16px}
.infoBox h3{margin:0 0 10px;font-size:15px}
.infoBox li{margin:6px 0;font-size:13.5px;line-height:1.45}
.infoBox p{font-size:13.5px;line-height:1.5;margin:4px 0}
.footerCta{padding:0 20px 24px}
.footerCta p{margin:0 0 12px;font-weight:700;font-size:14px}
.pillRow{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.pill{background:#eef5ef;border-radius:999px;padding:7px 11px;font-weight:800;color:#3e5945;font-size:12.5px}
