/* ============================================================
   WEG Schwarzes Brett – Stylesheet
   ============================================================ */

:root {
  --farbe-hg:               #f5f5f5;
  --farbe-hg-karte:         #ffffff;
  --farbe-akzent:           #2c5f7c;
  --farbe-akzent-hell:      #3a7ca5;
  --farbe-text:             #2e2e2e;
  --farbe-text-leicht:      #5a5a5a;
  --farbe-rahmen:           #dcdcdc;
  --farbe-hinweis:          #fff3cd;
  --farbe-hinweis-rand:     #e6c547;
  --farbe-sicherheit:       #fdf0ef;
  --farbe-sicherheit-rand:  #b42318;
  --farbe-sicherheit-text:  #7a271a;
  --schatten:               0 1px 3px rgba(0, 0, 0, 0.08);
  --radius:                 6px;
  --max-breite:             960px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--farbe-text);
  background: var(--farbe-hg);
  line-height: 1.6;
}

/* --- Kopfzeile ---------------------------------------------- */
header {
  background: var(--farbe-akzent);
  color: #fff;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
}

.header-inner {
  max-width: var(--max-breite);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  flex-wrap: wrap;
}

.header-inner h1 {
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
}

/* --- Navigation --------------------------------------------- */
nav ul {
  list-style: none;
  display: flex;
  gap: .2rem;
}

nav a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-size: .9rem;
  padding: .4rem .75rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}

nav a:hover,
nav a:focus-visible {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.nav-abmelden {
  opacity: .6;
  font-size: .8rem;
}

.nav-abmelden:hover {
  opacity: 1;
}

/* CSS-only Hamburger */
.menu-checkbox {
  display: none;
}

.menu-toggle-label {
  display: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: .25rem;
  line-height: 1;
  user-select: none;
}

/* --- Hauptbereich ------------------------------------------- */
main {
  max-width: var(--max-breite);
  margin: 1.5rem auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 2rem;
}

section h2 {
  font-size: 1.2rem;
  color: var(--farbe-akzent);
  border-bottom: 2px solid var(--farbe-akzent);
  padding-bottom: .3rem;
  margin-bottom: 1rem;
}

/* --- Karten ------------------------------------------------- */
.karte {
  background: var(--farbe-hg-karte);
  border: 1px solid var(--farbe-rahmen);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}

.karte h3 {
  font-size: 1rem;
  margin-bottom: .3rem;
}

.karte .datum {
  font-size: .8rem;
  color: var(--farbe-text-leicht);
  margin-bottom: .6rem;
}

.karte p {
  font-size: .95rem;
}

.karte.hinweis {
  border-left: 4px solid var(--farbe-hinweis-rand);
  background: var(--farbe-hinweis);
}

.karte.info {
  border-left: 4px solid var(--farbe-akzent);
  background: #eaf1f5;
}

/* Sicherheitsrelevante Informationen */
.karte.sicherheit {
  border-color: #efc7c2;
  border-left: 4px solid var(--farbe-sicherheit-rand);
  background: var(--farbe-sicherheit);
}

.sicherheit-kopf {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .45rem;
}

.sicherheit-kopf h3 {
  color: var(--farbe-sicherheit-text);
  margin-bottom: 0;
}

.sicherheit-symbol {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 1.7rem;
  border-radius: 50%;
  background: var(--farbe-sicherheit-rand);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.karte.sicherheit strong {
  color: var(--farbe-sicherheit-text);
}

/* --- Putzplan-Dienste --------------------------------------- */
.putzplan-aktuell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.putzplan-aktuell .karte {
  margin-bottom: 0;
  border-left: 4px solid var(--farbe-akzent);
}

.dienst-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--farbe-text-leicht);
  margin-bottom: .3rem;
}

.vertreter-hinweis {
  font-style: italic;
  color: var(--farbe-text-leicht);
}

/* --- Müllabfuhr --------------------------------------------- */
.muell-karte {
  margin-bottom: 1.5rem;
}

.muell-liste {
  list-style: none;
  margin-top: .5rem;
}

.muell-liste li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--farbe-rahmen);
  font-size: .95rem;
}

.muell-liste li:last-child {
  border-bottom: none;
}

.muell-punkt {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.muell-typ {
  flex: 1;
  font-weight: 500;
}

.muell-datum {
  color: var(--farbe-text-leicht);
  font-size: .85rem;
  white-space: nowrap;
}

/* --- Dokumentenliste ---------------------------------------- */
.dokument-liste {
  list-style: none;
}

.dokument-liste li {
  padding: .6rem 0;
  border-bottom: 1px solid var(--farbe-rahmen);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
}

.dokument-liste li:last-child {
  border-bottom: none;
}

.dokument-liste a {
  color: var(--farbe-akzent);
  text-decoration: none;
}

.dokument-liste a:hover {
  text-decoration: underline;
}

.dokument-liste .typ {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--farbe-rahmen);
  padding: .15rem .4rem;
  border-radius: 3px;
  flex-shrink: 0;
}

/* --- Kontakt ------------------------------------------------ */
.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.kontakt-grid .karte {
  margin-bottom: 0;
}

.kontakt-grid .rolle {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--farbe-text-leicht);
  margin-bottom: .3rem;
}

/* --- Login-Seite -------------------------------------------- */
.login-zentrum {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.login-karte {
  text-align: center;
  width: 100%;
  max-width: 380px;
  padding: 2.5rem 2rem;
}

.login-karte h2 {
  font-size: 1.2rem;
  margin-bottom: .4rem;
}

.login-karte > p {
  font-size: .9rem;
  color: var(--farbe-text-leicht);
  margin-bottom: 1.5rem;
}

.login-karte input[type="password"] {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid var(--farbe-rahmen);
  border-radius: var(--radius);
  font-size: 1rem;
  margin-bottom: .5rem;
  outline: none;
  transition: border-color .2s;
}

.login-karte input[type="password"]:focus {
  border-color: var(--farbe-akzent);
}

.login-fehler {
  color: #c0392b;
  font-size: .85rem;
  margin-bottom: .5rem;
}

.login-karte button {
  width: 100%;
  padding: .6rem;
  border: none;
  border-radius: var(--radius);
  background: var(--farbe-akzent);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
}

.login-karte button:hover {
  background: var(--farbe-akzent-hell);
}

/* --- Fußzeile ----------------------------------------------- */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .8rem;
  color: var(--farbe-text-leicht);
  border-top: 1px solid var(--farbe-rahmen);
  margin-top: 2rem;
}

/* --- Responsive --------------------------------------------- */
@media (max-width: 680px) {
  .menu-toggle-label {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    order: 3;
    background: var(--farbe-akzent);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .15);
  }

  .menu-checkbox:checked ~ nav {
    display: block;
  }

  nav ul {
    flex-direction: column;
    padding: .5rem 0;
  }

  nav a {
    display: block;
    padding: .7rem 1.2rem;
    border-radius: 0;
  }

  nav a:hover {
    background: rgba(255, 255, 255, .1);
  }
}
