/* ═══════════════════════════════════════════════
   Volksfest Zeiterfassung – Stylesheet
   Warmer, einladender Look – Paprikarot & Creme
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Hauptfarbe: Lang-Marineblau (aus dem Logo) */
  --rot:          #083167;   /* Lang-Blau – Hauptfarbe (Variablenname historisch) */
  --rot-dunkel:   #051f44;
  --rot-hell:     #dde4ef;
  --creme:        #f4f6fa;   /* Heller, leicht bläulicher Hintergrund */
  --creme-dunkel: #e2e8f1;
  --kohle:        #1c2430;   /* Textfarbe – dunkles Blaugrau */
  --grau:         #5f6b7a;
  --gruen:        #2f7d4f;   /* Aktiv / Erfolg */
  --gruen-hell:   #e0efe6;
  --gelb:         #d99423;   /* Warnung / Hervorhebung */
  --gelb-hell:    #fbf0d8;
  --weiss:        #ffffff;
  --schatten:     0 2px 12px rgba(8, 49, 103, 0.08);
  --schatten-tief:0 8px 28px rgba(8, 49, 103, 0.18);
  --radius:       14px;
  --radius-klein: 9px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;   /* Seite darf nie seitlich verschoben werden */
}

/* Scrollbarer Container für breite Tabellen */
.tabelle-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--creme);
  color: var(--kohle);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typografie ─────────────────────────────── */

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--kohle);
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

a { color: var(--rot); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout-Grundgerüst ─────────────────────── */

.topbar {
  background: var(--rot);
  color: var(--weiss);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--schatten);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar .marke {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--weiss);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar .marke img { height: 46px; width: auto; border-radius: 5px; background: var(--weiss); padding: 3px 7px; }

.topbar nav {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.topbar nav a {
  color: var(--weiss);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-klein);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s;
}

.topbar nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.topbar nav a.aktiv {
  background: rgba(255, 255, 255, 0.22);
}

/* ─── Burger-Knopf (nur auf dem Handy sichtbar) ─── */

.burger-knopf {
  display: none;
  background: transparent;
  border: none;
  color: var(--weiss);
  padding: 0.4rem;
  cursor: pointer;
  border-radius: var(--radius-klein);
}
.burger-knopf:hover { background: rgba(255, 255, 255, 0.16); }
.burger-knopf svg { display: block; }

.inhalt {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem;
}

/* ─── Fußzeile ─── */
.fusszeile {
  text-align: center;
  padding: 1.6rem 1rem 2rem;
  color: var(--grau);
  font-size: 0.82rem;
}
.fusszeile .herz { color: #d6336c; }
.fusszeile .version { opacity: 0.7; }

/* ─── Karten ─────────────────────────────────── */

.karte {
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.5rem;
  margin-bottom: 1.4rem;
}

.karte-titel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ─── Buttons ────────────────────────────────── */

.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.3rem;
  border: none;
  border-radius: var(--radius-klein);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-rot {
  background: var(--rot);
  color: var(--weiss);
}
.btn-rot:hover { background: var(--rot-dunkel); text-decoration: none; }

.btn-gruen {
  background: var(--gruen);
  color: var(--weiss);
}
.btn-gruen:hover { background: #3c6638; text-decoration: none; }

.btn-hell {
  background: var(--creme-dunkel);
  color: var(--kohle);
}
.btn-hell:hover { background: #e6d9be; text-decoration: none; }

.btn-gross {
  font-size: 1.25rem;
  padding: 1.1rem 2rem;
  width: 100%;
  justify-content: center;
}

.btn-klein {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}

.btn-gross {
  padding: 1.2rem 2rem;
  font-size: 1.2rem;
  width: 100%;
  max-width: 360px;
}

.punkt {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.punkt-gruen { background: var(--gruen); animation: punkt-pulse 2s infinite; }
@keyframes punkt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ─── Formulare ──────────────────────────────── */

.feld {
  margin-bottom: 1.1rem;
}

.feld label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--grau);
}

.feld input[type="text"],
.feld input[type="password"],
.feld input[type="date"],
.feld input[type="time"],
.feld input[type="number"],
.feld input[type="tel"],
.feld select,
.feld textarea {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--creme-dunkel);
  border-radius: var(--radius-klein);
  background: var(--weiss);
  color: var(--kohle);
  transition: border-color 0.15s;
}

.feld input:focus,
.feld select:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--rot);
}

.feld-zeile {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.feld-zeile .feld { flex: 1; min-width: 140px; }

.checkbox-feld {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.checkbox-feld input { width: 20px; height: 20px; accent-color: var(--rot); }
.checkbox-feld label { margin: 0; font-size: 1rem; color: var(--kohle); }

/* ─── Login-Seite ────────────────────────────── */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(224, 168, 46, 0.12), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(200, 68, 42, 0.10), transparent 45%),
    var(--creme);
}

.login-box {
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten-tief);
  padding: 2.5rem 2.2rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-logo {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-logo img { width: 100%; height: auto; object-fit: contain; }

.login-box h1 {
  font-size: 1.5rem;
  margin-bottom: 1.8rem;
}
.login-box .unterzeile {
  color: var(--grau);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

.login-box .feld { text-align: left; }

/* ─── Meldungen ──────────────────────────────── */

.meldung {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-klein);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.meldung-fehler {
  background: var(--rot-hell);
  color: var(--rot-dunkel);
  border: 1px solid #eebfb6;
}
.meldung-info {
  background: var(--gelb-hell);
  color: #8a6516;
  border: 1px solid #ecd9a3;
}

/* ─── Tabellen ───────────────────────────────── */

.tabelle {
  width: 100%;
  border-collapse: collapse;
}
.tabelle th {
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grau);
  padding: 0.6rem 0.7rem;
  border-bottom: 2px solid var(--creme-dunkel);
}
.tabelle td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--creme-dunkel);
}
.tabelle tr:last-child td { border-bottom: none; }

/* ─── Status-Punkte ──────────────────────────── */

.punkt {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
}
.punkt-gruen  { background: var(--gruen); }
.punkt-grau   { background: #bdb4a6; }

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
}
.badge-gruen { background: var(--gruen-hell); color: var(--gruen); }
.badge-grau  { background: var(--creme-dunkel); color: var(--grau); }
.badge-gelb  { background: var(--gelb-hell); color: #8a6516; }
.badge-rot   { background: #f9e0db; color: var(--rot-dunkel); }

/* ─── Hilfsklassen ───────────────────────────── */

.leer-hinweis {
  text-align: center;
  color: var(--grau);
  padding: 2rem 1rem;
  font-style: italic;
}

.aktion-zeile {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* ─── Mobil ──────────────────────────────────── */

@media (max-width: 720px) {
  .inhalt { padding: 1.2rem 0.9rem; }
  .karte { padding: 1.1rem; }
  h1 { font-size: 1.6rem; }
  .topbar { padding: 0.7rem 1rem; }
  .topbar .marke { font-size: 1.05rem; }
  .tabelle th, .tabelle td { padding: 0.5rem 0.4rem; font-size: 0.9rem; }

  /* Burger-Knopf sichtbar, Navigation versteckt */
  .burger-knopf { display: block; }

  .topbar nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--rot);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0.6rem 0.8rem;
    box-shadow: var(--schatten);
  }

  .topbar nav.offen { display: flex; }

  .topbar nav a {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-klein);
    font-size: 1rem;
  }
}
