:root {
    --gruen:      #0F6E56;
    --gruen-hell: #1D9E75;
    --gruen-bg:   #E1F5EE;
    --grau-bg:    #F5F5F2;
    --grau-rand:  #E0E0D8;
    --text:       #2C2C2A;
    --text-mute:  #6B6B66;
    --rot:        #C0392B;
    --gelb:       #E08E0B;
    --weiss:      #FFFFFF;
    --radius:     12px;
    --schatten:   0 2px 8px rgba(0,0,0,.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--grau-bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
}

/* ===== Topbar ===== */
.topbar {
    background: var(--gruen);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; flex: 1; }
.topbar-user { font-size: 14px; opacity: .9; margin-right: 12px; }
.btn-logout { color: #fff; text-decoration: none; font-size: 22px; padding: 4px 8px; border-radius: 6px; }
.btn-logout:hover { background: rgba(255,255,255,.15); }

/* ===== Bottom Nav (Mobile-App-Stil) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--weiss);
    border-top: 1px solid var(--grau-rand);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 env(safe-area-inset-bottom);
    z-index: 100;
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 16px;
    text-decoration: none;
    color: var(--text-mute);
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    min-width: 60px;
    transition: all .15s;
}
.nav-item .ic { font-size: 22px; line-height: 1; }
.nav-item.active { color: var(--gruen); }
.nav-item.active .ic { transform: scale(1.1); }
.nav-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--rot);
    color: #fff;
    border-radius: 10px;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 700;
}
.nav-item { position: relative; }

/* ===== Content ===== */
.content {
    padding: 16px;
    padding-bottom: 80px; /* Platz für Bottom-Nav */
    max-width: 640px;
    margin: 0 auto;
}

/* ===== Karten ===== */
.karte {
    background: var(--weiss);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--schatten);
    margin-bottom: 14px;
}
.karte-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.karte h2 { font-size: 15px; font-weight: 700; }

/* ===== Kind-Chip ===== */
.kind-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--gruen-bg);
    color: var(--gruen);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .15s;
    text-decoration: none;
}
.kind-chip.aktiv { border-color: var(--gruen); background: var(--gruen); color: #fff; }
.kind-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ===== Nachrichten ===== */
.nachricht-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--grau-rand);
    cursor: pointer;
}
.nachricht-item:last-child { border-bottom: none; }
.nachricht-item:hover { background: var(--grau-bg); margin: 0 -16px; padding: 14px 16px; border-radius: 8px; }
.nachricht-ungelesen .nachricht-betreff { font-weight: 700; }
.nachricht-ungelesen::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); margin-right: 6px; }

/* ===== Aushang ===== */
.aushang-item {
    background: var(--weiss);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--schatten);
    margin-bottom: 12px;
    border-left: 4px solid var(--gruen);
}
.aushang-item.wichtig { border-left-color: var(--rot); }
.aushang-datum { font-size: 12px; color: var(--text-mute); }

/* ===== Anwesenheit ===== */
.anw-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--grau-rand);
    font-size: 14px;
}
.anw-tag:last-child { border-bottom: none; }
.anw-badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.anw-anwesend   { background: #E1F5EE; color: #0F6E56; }
.anw-krank      { background: #F0E0DE; color: #C0392B; }
.anw-entschuldigt { background: #FCEFD6; color: #E08E0B; }
.anw-urlaub     { background: #E3EEF6; color: #185FA5; }
.anw-fehlt      { background: #F1EFE8; color: #5F5E5A; }

/* ===== Portfolio-Kacheln ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.portfolio-kachel {
    border-radius: 10px;
    overflow: hidden;
    background: var(--weiss);
    box-shadow: var(--schatten);
    text-decoration: none;
    color: var(--text);
}
.portfolio-kachel img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}
.portfolio-kachel .info {
    padding: 8px 10px;
}
.portfolio-kachel .kat-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.portfolio-kachel .pt { font-size: 13px; font-weight: 600; margin-top: 2px; }
.portfolio-kachel .dat { font-size: 11px; color: var(--text-mute); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-primary  { background: var(--gruen); color: #fff; }
.btn-sekundaer { background: var(--weiss); color: var(--text); border: 1px solid var(--grau-rand); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Formulare ===== */
.feld { margin-bottom: 14px; }
.feld label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.feld input, .feld textarea, .feld select {
    width: 100%; padding: 11px 14px; border: 1px solid var(--grau-rand); border-radius: 10px;
    font-size: 15px; font-family: inherit; background: var(--weiss);
}
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--gruen-hell); box-shadow: 0 0 0 3px var(--gruen-bg); }
.feld textarea { resize: vertical; min-height: 90px; }

/* ===== Flash ===== */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.flash-erfolg { background: var(--gruen-bg); color: var(--gruen); }
.flash-fehler  { background: #F0E0DE; color: var(--rot); }

/* ===== Login ===== */
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--gruen); padding: 20px; }
.login-box { background: #fff; border-radius: 20px; padding: 32px 24px; width: 100%; max-width: 380px; box-shadow: 0 16px 48px rgba(0,0,0,.2); }
.login-box h1 { text-align: center; color: var(--gruen); font-size: 22px; margin-bottom: 6px; }
.login-sub { text-align: center; color: var(--text-mute); font-size: 14px; margin-bottom: 24px; }
