/* Mitglieder-App: mobil zuerst, im Look der Homepage */
body.portal { background: var(--bg); padding-bottom: env(safe-area-inset-bottom); }
.portal-head { background: #121212 radial-gradient(circle at 20% 0%, rgba(255,255,255,.08), transparent 50%); padding: 14px 18px; padding-top: calc(14px + env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; }
.portal-head .logo-full { max-width: 150px; }
.portal-main { max-width: 560px; margin: 0 auto; padding: 18px 16px 40px; }
.portal-main h1 { font-size: 1.7rem; margin: .6rem 0 .8rem; }
.portal-main .card + .card, .kid + .kid { margin-top: 1rem; }
.kid + .kid { padding-top: .8rem; border-top: 1px solid var(--border); }
.portal-wide { width: 100%; justify-content: center; padding: .85rem 1rem; }
.trainings li { align-items: center; }
.trainings li.is-excused { opacity: .75; }
.trainings li.is-makeup { background: var(--accent-soft); margin: 0 -.6rem; padding: .55rem .6rem; border-radius: 10px; }
.credit { border: 2px solid var(--accent); }
.portal-foot { text-align: center; margin-top: 1.5rem; }
.status-entschuldigt { background: var(--warn-soft); color: var(--warn); }
.checkin { text-align: center; }
.checkin-people { display: grid; gap: .6rem; }
.checkin-ok { width: 84px; height: 84px; margin: .5rem auto 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 2.6rem; display: grid; place-items: center; }
.portal-head { background: #141414 url("../img/beton.jpg") center top / cover; }
.portal-head { position: relative; }
.portal-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--cd-yellow) 0 25%, var(--cd-green) 25% 50%, var(--cd-cyan) 50% 75%, var(--cd-magenta) 75%); }
.portal .dl { grid-template-columns: 80px 1fr; }
.mandate-text { background: var(--surface-2); border-radius: 10px; padding: .8rem 1rem; line-height: 1.5; color: var(--text); }
.field.check { align-items: flex-start; }
.field.check input { margin-top: .2rem; flex: none; }

/* --- Aufbau wie die Budoo-App, aber mit Leiste unten statt Menü ------------------------------- */
.portal-brand { display: inline-flex; }
.portal-mail { position: relative; color: #e6e6e6; display: inline-flex; padding: 6px; border-radius: 10px; }
.portal-mail svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.portal-mail.active { color: var(--accent); }
.portal-badge { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--bad-fill); color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; }

body.has-tabbar .portal-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
  padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; text-decoration: none;
  color: var(--muted); font-size: .72rem; font-weight: 600; border-radius: 12px; }
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { color: var(--heading); }
.tabbar a.active svg { color: var(--link); }
.tabbar a.active span { position: relative; }
.tabbar a.active span::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 18px; height: 3px; margin-left: -9px;
  border-radius: 3px; background: var(--accent); }
@media (min-width: 640px) { .tabbar { max-width: 560px; margin: 0 auto 12px; border: 1px solid var(--border); border-radius: 18px; } }

/* Seiten */
.page-title { font-size: 1.7rem; margin: .4rem 0 .9rem; }
.kid-name { font-size: 1.25rem; margin: 1.2rem 0 .6rem; color: var(--heading); }
.kid-name:first-of-type { margin-top: .2rem; }
.service-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .7rem; }
.service-buttons .btn { justify-content: center; text-align: center; white-space: normal; line-height: 1.3; padding: .75rem .6rem; }
.card-head .more { font-size: .8rem; text-decoration: none; color: var(--link); font-weight: 600; }
.countdown { display: flex; align-items: center; gap: 1rem; }
.countdown .days { min-width: 74px; text-align: center; background: var(--accent); color: var(--accent-ink); border-radius: 14px; padding: .55rem .4rem; }
.countdown .days strong { display: block; font-size: 1.9rem; line-height: 1; }
.countdown .days span { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.event-list li { align-items: flex-start; }
.event-date { min-width: 52px; text-align: center; border-radius: 10px; background: var(--surface-2); padding: .35rem .2rem; flex: none; }
.event-date strong { display: block; font-size: 1.3rem; line-height: 1.1; color: var(--heading); }
.event-date span { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.event-body { flex: 1; }
.event-body .tag { margin-left: 0; }
.event-pruefung .event-date { background: var(--accent-soft); }
.event-geschlossen .event-date { background: var(--warn-soft); }
.month-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 1.2rem 0 .5rem; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: .35rem 0 .7rem .4rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.1rem - 6px); top: .7rem; width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); }
.timeline li.start::before { background: var(--accent); }
.news-item { padding: .9rem 0; border-top: 1px solid var(--border); }
.news-item:first-child { border-top: 0; padding-top: .2rem; }
.news-item h3 { margin: 0 0 .25rem; font-size: 1rem; }
.news-item.is-new h3::after { content: "neu"; margin-left: .5rem; font-size: .66rem; vertical-align: middle; padding: .1rem .45rem; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a { display: flex; align-items: center; justify-content: space-between; padding: .95rem .2rem; border-top: 1px solid var(--border);
  text-decoration: none; color: var(--heading); font-weight: 600; }
.menu-list li:first-child a { border-top: 0; }
.menu-list a::after { content: "›"; color: var(--muted); font-size: 1.3rem; font-weight: 400; }
.menu-list small { display: block; font-weight: 400; color: var(--muted); }
.consent { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.consent form { flex: none; }
.contract-item + .contract-item { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--border); }

/* Chat mit der Schule */
.portal-head-icons { display: inline-flex; gap: 4px; align-items: center; }
