/* ============================================================================
   Mitarbeiter-App · Baum Gartenbau
   Gestaltung im Stil der Firmenfarben (Grün/Beige), angelehnt an gängige
   Mitarbeiter-Apps: Startseite mit Meldung + Kacheln, untere Navigation.
   ========================================================================== */
:root {
  --bg: #f5f2ee;
  --card: #ffffff;
  --border: #e4dfd9;
  --text: #1a1714;
  --muted: #857d74;
  --gruen: #2e5e3a;
  --gruen-hell: #eaf1ea;
  --blau: #2471a3;
  --blau-hell: #e8f0f6;
  --rot: #c0392b;
  --rot-hell: #fdecea;
  --schatten: 0 2px 14px rgba(0,0,0,0.07);
  --radius: 16px;
  --nav-hoehe: 62px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: calc(var(--nav-hoehe) + env(safe-area-inset-bottom, 0px));
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
}

.versteckt { display: none !important; }

/* ── Kopfzeile ───────────────────────────────────────────────────────── */
#kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-top, 0px));
  background: rgba(245,242,238,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
#kopf .logo { height: 42px; width: auto; }
.zurueck {
  background: none; border: none; font-size: 1.9rem; line-height: 1;
  color: var(--gruen); cursor: pointer; padding: 0 6px 4px; font-family: inherit;
}
.sprache {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px; font-size: 0.8rem;
  font-family: inherit; cursor: pointer; color: var(--text); white-space: nowrap;
}
.sprache-liste {
  position: sticky; top: 62px; z-index: 19;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 16px; background: var(--card);
  border-bottom: 1px solid var(--border); box-shadow: var(--schatten);
}
.sprache-liste button {
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  border-radius: 999px; padding: 7px 13px; font-size: 0.82rem;
  font-family: inherit; cursor: pointer;
}
.sprache-liste button.aktiv { background: var(--gruen); color: #fff; border-color: var(--gruen); }

/* ── Seiten ──────────────────────────────────────────────────────────── */
main { padding: 16px 16px 24px; }
.seite { animation: rein 0.22s ease; }
@keyframes rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.gruss { margin-bottom: 18px; }
.gruss-klein { color: var(--muted); font-size: 0.92rem; }
.gruss-gross {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.9rem; font-weight: 400; color: var(--gruen); line-height: 1.15;
}

.abschnitt {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600; margin: 22px 0 10px;
}

.seiten-titel {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.6rem; font-weight: 400; line-height: 1.2; margin-bottom: 4px;
}

/* ── Meldung auf der Startseite ──────────────────────────────────────── */
.news-karte {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px 16px; margin-bottom: 10px;
  box-shadow: var(--schatten); cursor: pointer; display: block; width: 100%;
  text-align: left; font-family: inherit;
}
.news-karte.wichtig { border-left: 5px solid var(--rot); background: var(--rot-hell); }
.news-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.news-marke {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px;
  background: var(--rot); color: #fff;
}
.news-datum { font-size: 0.75rem; color: var(--muted); }
.news-titel { font-weight: 600; font-size: 1.02rem; margin-bottom: 3px; }
.news-anriss {
  color: var(--muted); font-size: 0.88rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Kacheln ─────────────────────────────────────────────────────────── */
.kachel-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kachel-gross {
  border: none; border-radius: var(--radius); padding: 18px 14px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  font-family: inherit; cursor: pointer; box-shadow: var(--schatten);
  transition: transform 0.08s ease;
}
.kachel-gross:active { transform: scale(0.97); }
.kachel-gross.gruen { background: var(--gruen); color: #fff; }
.kachel-gross.blau  { background: var(--blau);  color: #fff; }
.kachel-gross .k-icon { font-size: 1.9rem; }
.kachel-gross .k-titel { font-weight: 600; font-size: 0.98rem; text-align: left; }

.kachel-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kachel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px 13px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  font-family: inherit; cursor: pointer; box-shadow: var(--schatten);
  text-align: left; transition: transform 0.08s ease;
}
.kachel:active { transform: scale(0.97); }
.kachel .k-icon { font-size: 1.6rem; }
.kachel .k-titel { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.kachel .k-unter { font-size: 0.76rem; color: var(--muted); }

/* ── Artikel ─────────────────────────────────────────────────────────── */
.artikel-kopf { margin-bottom: 14px; }
.artikel-icon { font-size: 2.2rem; display: block; margin-bottom: 6px; }
.artikel-datum { color: var(--muted); font-size: 0.82rem; }
.artikel-text { font-size: 1rem; }
.artikel-text p { margin-bottom: 12px; }
.artikel-text strong { font-weight: 700; }
.artikel-text ul { margin: 0 0 12px 4px; list-style: none; }
.artikel-text li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.artikel-text li::before {
  content: ''; position: absolute; left: 3px; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gruen);
}
.artikel-text em { color: var(--muted); font-style: italic; }

.aktion-knopf {
  display: block; width: 100%; margin-top: 18px;
  background: var(--gruen); color: #fff; border: none; border-radius: 13px;
  padding: 15px; font-size: 1.03rem; font-weight: 600;
  font-family: inherit; cursor: pointer; text-align: center; text-decoration: none;
}
.aktion-hinweis {
  margin-top: 10px; font-size: 0.85rem; color: var(--muted); text-align: center;
}

.fuss-hinweis {
  margin-top: 26px; font-size: 0.78rem; color: var(--muted); text-align: center;
}

/* ── Untere Navigation ───────────────────────────────────────────────── */
#nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-knopf {
  position: relative;
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 9px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); height: var(--nav-hoehe);
}
.nav-knopf .n-icon { font-size: 1.25rem; line-height: 1; }
.nav-knopf .n-text { font-size: 0.68rem; font-weight: 500; }
.nav-knopf.aktiv { color: var(--gruen); }
.nav-knopf.aktiv .n-text { font-weight: 700; }
.punkt {
  position: absolute; top: 7px; right: calc(50% - 18px);
  width: 8px; height: 8px; border-radius: 50%; background: var(--rot);
}
