/* =========================================================================
   ASB Rettungswesen & Bevölkerungsschutz — Entry page, shared base
   Tokens, fonts and components derived from the Why Not FSJ landing page.
   Each design variant layers its own style.css on top.
   ========================================================================= */

@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url('fonts/figtree-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;
}
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url('fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/bricolage-grotesque-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;
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --asb-yellow:      #FFCB05;
  --asb-yellow-deep: #F2B705;
  --asb-yellow-soft: #FFF4C9;
  --asb-red:         #E2001A;
  --asb-red-deep:    #B80016;
  --warn-lime:       #D7F205;

  --ink:        #161412;
  --ink-soft:   #3c3a36;
  --ink-muted:  #6f6b63;
  --paper:      #ffffff;
  --cream:      #FFFDF6;
  --cream-deep: #FBF4E2;
  --line:       rgba(22,20,18,0.10);

  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body:    'Figtree', system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --radius:    20px;
  --radius-lg: 32px;
  --radius-sm: 12px;
  --pill:      999px;

  --shadow-sm: 0 2px 8px rgba(22,20,18,0.06), 0 1px 2px rgba(22,20,18,0.05);
  --shadow-md: 0 14px 34px -16px rgba(22,20,18,0.22), 0 4px 12px -6px rgba(22,20,18,0.12);
  --shadow-lg: 0 40px 80px -30px rgba(22,20,18,0.32);
  --shadow-yellow: 0 18px 40px -18px rgba(242,183,5,0.65);
  --shadow-red:    0 14px 30px -12px rgba(226,0,26,0.45);

  --ease:    cubic-bezier(0.32, 0.72, 0.24, 1);
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 700; line-height: 1.04;
  letter-spacing: -0.02em; margin: 0; text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- draft ribbon (remove before go-live) --- */
.draft-flag {
  position: fixed; left: 16px; bottom: 16px; z-index: 90;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--pill); box-shadow: var(--shadow-md);
  text-decoration: none;
}
.draft-flag b { color: var(--asb-yellow); }

/* --- eyebrow + kicker --- */
.eyebrow {
  font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--asb-red); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--asb-yellow-soft); color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 16px; border-radius: var(--pill);
}
.kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--asb-red); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(226,0,26,.45); } 50% { box-shadow: 0 0 0 7px rgba(226,0,26,0); } }

/* --- buttons --- */
.btn {
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--pill); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .14s var(--ease), background .2s var(--ease-ui), box-shadow .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--asb-red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--asb-red-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-yellow { background: var(--asb-yellow); color: var(--ink); box-shadow: var(--shadow-yellow); }
.btn-yellow:hover { background: var(--asb-yellow-deep); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-lg { font-size: 19px; padding: 19px 38px; }
.btn-sm { font-size: 15px; padding: 11px 20px; }

/* --- top bar "Zur Hauptseite" (FSJ element) --- */
.tomain-bar { background: var(--ink); display: flex; justify-content: center; padding: 10px 16px; }
.tomain-bar .btn { font-size: 14px; padding: 9px 20px; }

/* --- nav --- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,253,246,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { width: min(100% - 40px, 1340px); margin-inline: auto; display: flex; align-items: center; gap: 24px; height: 80px; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font-weight: 600; font-size: 15.5px; color: var(--ink-soft); text-decoration: none;
  padding: 9px 14px; border-radius: var(--pill); transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--asb-yellow-soft); color: var(--ink); }
.nav-burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; border-radius: 12px; }
.nav-burger span { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--asb-red); margin: 5px auto; transition: transform .3s var(--ease), opacity .2s; }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 1020px) {
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--ink); padding: 12px 20px 24px; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--ease-ui);
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { color: #fff; font-family: var(--display); font-size: 24px; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
  .nav-links a:hover { background: transparent; color: var(--asb-yellow); }
}

/* --- reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* --- AI image mark (EU AI Act Art. 50) --- */
.aimark {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  background: rgba(22,20,18,.72); color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 5px 10px; border-radius: var(--pill); letter-spacing: .02em;
}

/* --- application form --- */
.apply-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.apply-form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.field label small { font-weight: 500; color: var(--ink-muted); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--asb-yellow-deep); box-shadow: 0 0 0 4px var(--asb-yellow-soft); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 10px 16px; border-radius: var(--pill); font-weight: 600; font-size: 15px;
  border: 2px solid var(--line); background: var(--paper); transition: .18s;
}
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--asb-yellow-soft); }
.dropzone {
  position: relative; display: flex; align-items: center; gap: 14px;
  border: 2px dashed rgba(22,20,18,.25); border-radius: var(--radius); background: var(--paper);
  padding: 18px 20px; transition: border-color .2s, background .2s; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--asb-red); background: #fff7f7; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--asb-yellow); display: grid; place-items: center; }
.dropzone .dz-ico svg { width: 22px; height: 22px; }
.dropzone .dz-text { font-size: 15px; line-height: 1.35; }
.dropzone .dz-text b { display: block; font-size: 16px; }
.dropzone .dz-files { color: var(--asb-red); font-weight: 700; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--asb-red); }
.form-note { font-size: 13.5px; color: var(--ink-muted); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); z-index: 95;
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: var(--pill);
  font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transition: .35s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 720px) { .apply-form { grid-template-columns: 1fr; } }

/* --- footer --- */
.footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 64px 0 28px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.footer a { color: rgba(255,255,255,.78); text-decoration: none; display: block; margin-bottom: 6px; }
.footer a:hover { color: var(--asb-yellow); }
.footer-logo { display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 64px; width: auto; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom nav { display: flex; gap: 18px; }
.footer-bottom a { display: inline; margin: 0; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* --- QR strip: existing area QR codes, shown small, enlarge on click --- */
.qr-strip { padding: 56px 0; background: var(--qr-bg, var(--cream-deep)); color: var(--qr-ink, var(--ink)); border-top: 1px solid var(--line); }
.qr-wrap { display: grid; grid-template-columns: minmax(220px, .8fr) 2fr; gap: 32px; align-items: center; }
.qr-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin: 0 0 8px; }
.qr-head h2 { font-size: 26px; margin-bottom: 8px; }
.qr-head p { font-size: 15.5px; opacity: .75; margin: 0; }
.qr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.qr-tile {
  width: 100%; font: inherit; color: inherit; background: var(--qr-tile, rgba(255,255,255,.7)); cursor: zoom-in;
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.qr-tile:hover, .qr-tile:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); outline: none; }
.qr-tile img { height: 104px; width: auto; }
.qr-tile span { font-size: 12.5px; font-weight: 700; line-height: 1.25; text-align: center; }
.qr-dialog { border: 0; border-radius: var(--radius-lg); padding: 28px; max-width: min(92vw, 420px); text-align: center; box-shadow: var(--shadow-lg); }
.qr-dialog::backdrop { background: rgba(22,20,18,.6); backdrop-filter: blur(4px); }
.qr-dialog img { width: 100%; max-height: 62vh; object-fit: contain; margin: 0 auto 14px; }
.qr-dialog p { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 14px; }
.qr-dialog .qr-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 960px) { .qr-wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .qr-list { grid-template-columns: repeat(3, 1fr); } .qr-tile img { height: 84px; } }
