/* =================================================================
   antraege.css — eigene Bausteine der Seite antraege.php (Anträge)
   Akzent Grün der Gruppe Personal: #15803d (Kontrast auf Weiß 5,0:1), Text #166534 (7,1:1).
   Alles unter #container, Präfix an-, nur logische Eigenschaften (RTL-tauglich).
   ================================================================= */
#container { --an: #15803d; --an-t: #166534; --an-l: #f0fdf4; --an-b: #bbf7d0; }
#container .t-an { --c: var(--an); --ct: var(--an-t); --cl: var(--an-l); --cb: var(--an-b); }
#container .an-t { color: var(--an-t); }
#container .an-acc { color: var(--an); }
#container .an-ic { background: var(--an-l) !important; color: var(--an) !important; }
#container .an-h4 { font-family: 'Roboto', sans-serif; font-weight: 500; font-size: 1.02rem; margin-bottom: 3px; line-height: 1.3; }
#container .hero h1 { overflow-wrap: break-word; hyphens: auto; }
#container .an-sub { text-align: center; font-size: clamp(1.3rem, 2vw, 1.8rem); margin: clamp(56px, 7vw, 90px) 0 10px; }
#container .an-sub-text { text-align: center; max-width: 680px; margin: 0 auto 30px; color: #6e6e73; }
#container .an-hinweis { margin-top: 30px; }

/* ---------- Gemeinsame Kleinteile ---------- */
#container .an-chip { display: inline-flex; align-items: center; font-style: normal; font-size: 0.6rem; font-weight: 500; border-radius: 50px; padding: 2px 8px; white-space: nowrap;
    background: #f1f2f5; color: #515154; border: 1px solid #e3e5ea; flex-shrink: 0; }
#container .an-chip.ok { background: var(--an-l); color: var(--an-t); border-color: var(--an-b); }
#container .an-chip.warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
#container .an-chip.rot { background: #fdecec; color: #b42323; border-color: #f6c6c6; }
#container .an-av { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 0.6rem; font-weight: 600; background: var(--an-l); color: var(--an-t); }
#container .an-av.b { background: #eff6ff; color: #1d4ed8; }
#container .an-av.c { background: #f5f3ff; color: #6d28d9; }
#container .vk-win h5 { font-family: 'Roboto', sans-serif; font-weight: 600; font-size: 0.74rem; color: #1d1d1f; margin: 0 0 6px; }
#container .an-foot, #container .an-k-knoepfe { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
#container .an-foot span, #container .an-k-knoepfe span, #container .an-leiste span.pri { display: inline-flex; align-items: center; gap: 5px; font-size: 0.64rem; border-radius: 8px; padding: 5px 10px; white-space: nowrap; }
#container .an-foot .ghost, #container .an-k-knoepfe .ghost { box-shadow: 0 0 0 1px #e3e5ea; color: #515154; background: #fff; }
#container .an-foot .pri, #container .an-k-knoepfe .pri, #container .an-leiste span.pri { background: var(--an); color: #fff; }

/* ---------- Hero: Posteingang ---------- */
#container .an-hv { position: relative; padding-block: 24px 34px; }
#container .an-app { max-width: 600px; margin-inline: auto; }
#container .an-tabs { display: flex; gap: 4px 14px; padding: 9px 16px 0; border-bottom: 1px solid #ececf0; font-size: 0.66rem; color: #6e6e73; overflow: hidden; }
#container .an-tabs > * { padding-bottom: 8px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
#container .an-tabs b { font-weight: 600; color: #1d1d1f; box-shadow: inset 0 -2px 0 var(--an); }
#container .an-tabs em { font-style: normal; font-size: 0.56rem; background: var(--an); color: #fff; border-radius: 50px; min-width: 15px; height: 15px; padding-inline: 4px; display: inline-flex; align-items: center; justify-content: center; }
#container .an-app-in { padding: 14px 16px 16px; background: #fafafb; display: grid; gap: 9px; }
#container .an-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 2px; }
#container .an-kopf > div { min-width: 0; }
#container .an-kopf b { display: block; font-family: 'Roboto Serif', serif; font-weight: 600; font-size: 1.08rem; color: #0b1324; }
#container .an-kopf small { display: block; font-size: 0.62rem; color: #6e6e73; }
#container .an-seg { display: inline-flex; background: #eef0f3; border-radius: 8px; padding: 2px; font-size: 0.6rem; color: #515154; flex-shrink: 0; }
#container .an-seg > * { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
#container .an-kopf .an-seg b { display: inline-flex; font-family: 'Roboto', sans-serif; font-size: inherit; background: #fff; color: #1d1d1f; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
#container .an-karte { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 0 0 1px #ececf0; display: grid; gap: 9px; }
#container .an-karte.on { box-shadow: 0 0 0 1px var(--an-b), 0 6px 18px rgba(21,128,61,0.08); border-inline-start: 3px solid var(--an); }
#container .an-k-top { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
#container .an-k-top > div { min-width: 0; }
#container .an-k-top b { display: block; font-size: 0.74rem; font-weight: 600; color: #1d1d1f; }
#container .an-k-top small { display: block; font-size: 0.62rem; color: #86868b; overflow-wrap: anywhere; }
#container .an-k-tage { font-style: normal; font-size: 0.64rem; color: #515154; white-space: nowrap; }
#container .an-k-mitte { display: flex; align-items: center; gap: 8px; font-size: 0.62rem; color: #6e6e73; padding-inline-start: 40px; }
#container .an-k-mitte em { font-style: normal; margin-inline-start: auto; font-weight: 600; color: #1d1d1f; white-space: nowrap; }
#container .an-stufen { display: inline-flex; gap: 3px; }
#container .an-stufen i { width: 18px; height: 5px; border-radius: 3px; background: #e3e5ea; display: block; }
#container .an-stufen i.ok { background: var(--an); }
#container .an-stufen i.jetzt { background: #fbbf24; }
#container .an-toast-a { inset-inline-start: -3%; bottom: 0; }
#container .an-toast-b { inset-inline-end: -2%; top: 0; animation-delay: -3s; }

/* ---------- Neuer Antrag ---------- */
#container .an-neu { max-width: 560px; margin-inline: auto; }
#container .an-neu-in { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
#container .an-kacheln { background: #fafafb; border-inline-end: 1px solid #ececf0; padding: 10px 8px; display: grid; gap: 10px; align-content: start; }
#container .an-gr { display: grid; gap: 3px; }
#container .an-gr small { font-size: 0.56rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #86868b; padding-inline: 8px; }
#container .an-gr span { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; font-size: 0.66rem; color: #515154; }
#container .an-gr span .rs-ico { color: #86868b; flex-shrink: 0; }
#container .an-gr span.on { background: #fff; color: #1d1d1f; font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px var(--an-b); }
#container .an-gr span.on .rs-ico { color: var(--an); }
#container .an-form { padding: 12px 14px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; align-content: start; min-width: 0; }
#container .an-form .wide { grid-column: 1 / -1; }
#container .an-f { min-width: 0; }
#container .an-f label { display: block; font-size: 0.58rem; color: #86868b; margin-bottom: 3px; }
#container .an-f .in { display: block; border: 1px solid #e3e5ea; border-radius: 8px; padding: 6px 9px; font-size: 0.68rem; color: #1d1d1f; background: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#container .an-cb { display: flex; align-items: center; gap: 7px; font-size: 0.66rem; color: #1d1d1f; }
#container .an-cb .box { width: 15px; height: 15px; border-radius: 4px; background: var(--an); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
#container .an-vor { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--an-l); color: var(--an-t); font-size: 0.64rem; line-height: 1.4; }
#container .an-vor .rs-ico { flex-shrink: 0; margin-top: 1px; }
#container .an-vor b { font-weight: 600; }

/* ---------- Antragsarten ---------- */
#container .an-module { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#container .an-mod, #container .an-klein, #container .an-recht { background: #fff; border: 1px solid #ececf0; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#container .an-mod.gross { border-color: var(--an-b); box-shadow: 0 0 0 1px var(--an-b); }
#container .an-mod .fi, #container .an-klein .fi, #container .an-recht .fi { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
#container .an-mod b, #container .an-klein b, #container .an-recht b { font-weight: 500; font-size: 0.98rem; color: #1d1d1f; }
#container .an-mod small, #container .an-klein small, #container .an-recht small { font-size: 0.82rem; color: #6e6e73; line-height: 1.45; }
#container .an-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
#container .an-tags span { font-size: 0.7rem; background: var(--an-l); color: var(--an-t); border-radius: 50px; padding: 2px 9px; }
#container .an-tags span.mehr { background: #f5f5f7; color: #6e6e73; }
#container .an-regeln { align-items: start; }
#container .an-vier { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
#container .an-set { max-width: 620px; margin-inline: auto; }
#container .an-set .vk-set { grid-template-columns: 150px minmax(0, 1fr); }
#container .an-set .vk-set-main h5 { color: var(--an-t); }
#container .an-set .an-h5-2 { margin-top: 14px; }
#container .an-zahl { min-width: 44px; text-align: center; }
#container .an-set .vk-set-row .ctl { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Genehmigungsweg (dunkel) ---------- */
#container .an-dark { background: #052e16; }
#container .an-dark h2 { color: #fff; }
#container .an-dark .lead { color: rgba(255,255,255,0.7); }
#container .an-t2 { color: #86efac; }
#container .an-feat-dark .fi { background: rgba(134,239,172,0.12); color: #86efac; }
#container .an-feat-dark .an-h4 { color: #fff; }
#container .an-feat-dark p { color: rgba(255,255,255,0.66); }
#container .an-kette { max-width: 460px; margin-inline: auto; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 16px; box-shadow: 0 40px 80px rgba(0,0,0,0.35); }
#container .an-kette-top { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; font-size: 0.9rem; margin-bottom: 12px; }
#container .an-kette-top .rs-ico { color: #86efac; }
#container .an-glied { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; position: relative; }
#container .an-glied + .an-glied::before { content: ""; position: absolute; inset-inline-start: 20px; top: -10px; height: 20px; width: 2px; background: rgba(255,255,255,0.16); }
#container .an-glied .ic { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); position: relative; z-index: 1; }
#container .an-glied.ok .ic, #container .an-glied.ende .ic { background: rgba(134,239,172,0.18); color: #86efac; }
#container .an-glied.jetzt .ic { background: rgba(251,191,36,0.18); color: #fde68a; box-shadow: 0 0 0 2px rgba(251,191,36,0.5); }
#container .an-glied.info .ic { border: 1px dashed rgba(255,255,255,0.35); background: transparent; }
#container .an-glied div { min-width: 0; }
#container .an-glied b { display: block; color: #fff; font-weight: 500; font-size: 0.88rem; overflow-wrap: anywhere; }
#container .an-glied small { display: block; color: rgba(255,255,255,0.55); font-size: 0.74rem; overflow-wrap: anywhere; }
#container .an-glied em { font-style: normal; font-size: 0.72rem; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); border-radius: 50px; padding: 3px 9px; white-space: nowrap; }
#container .an-glied em.ok { color: #bbf7d0; background: rgba(134,239,172,0.14); }
#container .an-glied em.warn { color: #fde68a; background: rgba(251,191,36,0.14); }
#container .an-kette-cap { margin-top: 18px; text-align: center; font-size: 0.84rem !important; color: rgba(255,255,255,0.55) !important; }

/* ---------- Posteingang als Liste ---------- */
#container .an-liste { max-width: 560px; margin-inline: auto; }
#container .an-liste-in { padding: 12px 14px 14px; display: grid; gap: 0; }
#container .an-leiste { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
#container .an-filter { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 1px #e3e5ea; display: inline-flex; align-items: center; justify-content: center; color: #515154; flex-shrink: 0; }
#container .an-row { display: grid; grid-template-columns: 18px minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) 40px; gap: 8px; align-items: center; padding: 7px 4px; border-bottom: 1px solid #f2f2f5; font-size: 0.66rem; color: #515154; }
#container .an-row.head { font-size: 0.56rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #86868b; padding-block: 4px; }
#container .an-row.on { background: var(--an-l); border-radius: 8px; border-bottom-color: transparent; margin-bottom: 1px; }
#container .an-row.sum { font-weight: 600; color: #1d1d1f; border-bottom: 0; border-top: 1px solid #e3e5ea; }
#container .an-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#container .an-row b { font-weight: 500; color: #1d1d1f; }
#container .an-row .c-t { text-align: end; font-variant-numeric: tabular-nums; }
#container .an-row .cb { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px #d2d2d7; display: inline-flex; align-items: center; justify-content: center; }
#container .an-row .cb.an { background: var(--an); color: #fff; box-shadow: none; }
#container .an-row.head .cb, #container .an-row.sum .cb { box-shadow: none; }
#container .an-punkt { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #dc2626; margin-inline-start: 6px; vertical-align: middle; }
#container .an-notiz { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; align-items: start; margin-top: 10px; padding: 9px 10px; border-radius: 10px; background: #fffdf5; box-shadow: 0 0 0 1px #fde68a; }
#container .an-notiz .ic { width: 26px; height: 26px; border-radius: 8px; background: #fffbeb; color: #b45309; display: flex; align-items: center; justify-content: center; }
#container .an-notiz div { min-width: 0; }
#container .an-notiz small { display: block; font-size: 0.56rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #b45309; }
#container .an-notiz span { display: block; font-size: 0.66rem; color: #1d1d1f; line-height: 1.4; overflow-wrap: anywhere; }

/* ---------- Vertretung ---------- */
#container .an-vt { max-width: 620px; margin: 16px auto 0; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(0,20,60,0.08), 0 0 0 1px #ececf0; }
#container .an-vt > div > b { display: block; font-size: 0.82rem; font-weight: 600; color: #1d1d1f; }
#container .an-vt > div > small { display: block; font-size: 0.68rem; color: #86868b; margin-bottom: 10px; }
#container .an-vt-z { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #fafafb; box-shadow: 0 0 0 1px #ececf0; }
#container .an-vt-z div { min-width: 0; }
#container .an-vt-z b { display: block; font-size: 0.74rem; font-weight: 500; color: #1d1d1f; }
#container .an-vt-z small { display: block; font-size: 0.64rem; color: #86868b; }

/* ---------- Verlauf (Telefon) ---------- */
#container .vk-ph-top .meta .an-chip { font-size: 0.56rem; }
#container .an-ph-h { display: block; font-size: 0.58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #86868b; margin-bottom: 6px; }
#container .an-ph-l { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; padding: 5px 0; position: relative; }
#container .an-ph-l + .an-ph-l::before { content: ""; position: absolute; inset-inline-start: 10px; top: -6px; height: 10px; width: 2px; background: #ececf0; }
#container .an-ph-l .ic { width: 22px; height: 22px; border-radius: 50%; background: #f1f2f5; color: #6e6e73; display: flex; align-items: center; justify-content: center; }
#container .an-ph-l.ok .ic { background: var(--an-l); color: var(--an); }
#container .an-ph-l.warn .ic { background: #fffbeb; color: #b45309; }
#container .an-ph-l div { min-width: 0; }
#container .an-ph-l b { display: block; font-size: 0.68rem; font-weight: 600; color: #1d1d1f; }
#container .an-ph-l small { display: block; font-size: 0.6rem; color: #86868b; line-height: 1.35; overflow-wrap: anywhere; }
#container .an-ph-kn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#container .an-wirk .card h3 { font-size: 1.15rem; }

/* ---------- Rechte und Auswertung ---------- */
#container .an-rechte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: clamp(40px, 5vw, 64px); }
#container .an-export { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
#container .an-export span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: #bbf7d0; background: rgba(134,239,172,0.12); border: 1px solid rgba(134,239,172,0.22); border-radius: 50px; padding: 5px 12px; }
#container .an-bento .card { height: 100%; }
#container .an-aw { margin-top: 20px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 10px 14px; }
#container .an-aw-f { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; color: #bbf7d0; padding-bottom: 8px; }
#container .an-aw-f span { min-width: 0; overflow-wrap: anywhere; }
#container .an-aw-r { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 56px; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem; color: rgba(255,255,255,0.82); }
#container .an-aw-r > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#container .an-aw-r > span:last-child { text-align: end; font-variant-numeric: tabular-nums; }
#container .an-aw-r.head { font-size: 0.66rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,0.5); }
#container .an-aw-r.sum { font-weight: 600; color: #fff; border-top-color: rgba(255,255,255,0.22); }
#container .an-stack { display: grid; gap: 20px; align-content: start; }
#container .an-stack .card { height: auto; padding: clamp(20px, 2.2vw, 28px); }
#container .an-stack-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
#container .an-stack-kopf .card-icon { margin: 0; flex-shrink: 0; }
#container .an-stack-kopf h3 { font-size: 1.15rem; margin: 0; }
#container .an-stack p { font-size: 0.92rem; }
#container .an-top { border-top: 3px solid var(--an); }
#container .an-rel a.t-an::before { background: var(--an); }

/* ---------- Abschluss ---------- */
#container .an-cta { background: linear-gradient(135deg, #052e16 0%, #15803d 55%, #16a34a 100%); }
#container .an-cta h2 span { color: #bbf7d0; }

/* ---------- Breiten ---------- */
@media (max-width: 1100px) {
    #container .an-module { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #container .an-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #container .an-rechte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) and (min-width: 681px) {
    #container .an-stack { grid-column: span 2; }
    #container .an-bento .card-dark { grid-column: span 2; }
}
@media (max-width: 680px) {
    #container .an-rel { grid-template-columns: minmax(0, 1fr); }
    #container .an-toast-a { inset-inline-start: 0; }
    #container .an-toast-b { inset-inline-end: 0; }
    #container .an-neu-in { grid-template-columns: minmax(0, 1fr); }
    #container .an-kacheln { border-inline-end: 0; border-bottom: 1px solid #ececf0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    #container .an-gr span:not(.on) { display: none; }
}
@media (max-width: 520px) {
    #container .an-module, #container .an-rechte, #container .an-vier { grid-template-columns: minmax(0, 1fr); }
    #container .an-tabs .w1, #container .an-tabs .w2 { display: none; }
    #container .an-karte.w3 { display: none; }
    #container .an-k-mitte { padding-inline-start: 0; flex-wrap: wrap; }
    #container .an-kopf { flex-wrap: wrap; }
    #container .an-row { grid-template-columns: 18px minmax(0, 1fr) minmax(0, 1fr) 34px; }
    #container .an-row .c-von { display: none; }
    #container .an-set .vk-set { grid-template-columns: minmax(0, 1fr); }
    #container .an-set .vk-set-nav { display: none; }
    #container .an-set .vk-set-row .ctl { max-width: 96px; }
    #container .an-kacheln { grid-template-columns: minmax(0, 1fr); }
    #container .an-gr small { display: none; }
    #container .an-gr { display: none; }
    #container .an-gr:first-child { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
    #container .vk-toast { animation: none; }
}
