/* GKSV Mitgliederverwaltung — bewusst minimal */

:root {
  --tinte: #1c2321;
  --grau: #5c6662;
  --linie: #d8ddda;
  --flaeche: #f6f7f6;
  --akzent: #2e5339;        /* Jägergrün */
  --akzent-hell: #e8efe9;
  --gefahr: #8a2f2f;
  --weiss: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--tinte);
  background: var(--flaeche);
}

a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 1px;
}

/* Kopf */
.kopf { background: var(--weiss); border-bottom: 2px solid var(--akzent); }
.kopf-innen {
  max-width: 1100px; margin: 0 auto; padding: 0.6rem 1rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.marke { font-weight: 700; letter-spacing: 0.02em; color: var(--tinte); }
.marke span { color: var(--akzent); font-weight: 400; }
.kopf nav { display: flex; gap: 0.4rem 1rem; flex-wrap: wrap; min-width: 0; }
.konto { margin-left: auto; color: var(--grau); display: flex; gap: 0.8rem; font-size: 0.9rem; }

@media (max-width: 700px) {
  .kopf-innen { gap: 0.4rem 1rem; padding: 0.6rem 0.8rem; }
  .konto { margin-left: 0; flex-basis: 100%; }
}

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

h1 { font-size: 1.35rem; margin: 0 0 1rem; }
h2 { font-size: 1.05rem; margin: 2rem 0 0.8rem; }
.anzahl { color: var(--grau); font-weight: 400; font-size: 1rem; }

/* Meldungen */
.meldung { padding: 0.6rem 0.9rem; border-radius: 4px; margin-bottom: 1rem; font-size: 0.95rem; }
.meldung-ok { background: var(--akzent-hell); color: var(--akzent); }
.meldung-fehler { background: #f6e7e7; color: var(--gefahr); }

/* Liste */
.listen-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.filter { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.filter input[type="search"] { width: 240px; }

.tabelle-rahmen { background: var(--weiss); border: 1px solid var(--linie); border-radius: 4px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--linie); white-space: nowrap; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grau); font-weight: 600; }
tbody tr:hover { background: var(--akzent-hell); }
tbody tr:last-child td { border-bottom: 0; }
.mitte { text-align: center; }
.aktion { text-align: right; }
.inaktiv td { color: var(--grau); }
.inaktiv td a { color: var(--grau); }
.leer { text-align: center; color: var(--grau); padding: 2rem; white-space: normal; }

/* Formulare */
input, select, textarea, button {
  font: inherit;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--linie);
  border-radius: 4px;
  background: var(--weiss);
  color: var(--tinte);
}
textarea { width: 100%; resize: vertical; }
input:disabled, select:disabled, textarea:disabled { background: var(--flaeche); color: var(--grau); }

button {
  background: var(--akzent);
  color: var(--weiss);
  border-color: var(--akzent);
  cursor: pointer;
  padding: 0.45rem 1rem;
}
button:hover { filter: brightness(1.1); }
button.gefahr { background: var(--weiss); color: var(--gefahr); border-color: var(--gefahr); }
button.klein { padding: 0.2rem 0.6rem; font-size: 0.85rem; }
form.inline { display: inline; }

.formular fieldset {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 4px;
  padding: 1rem 1.2rem 1.2rem;
  margin: 0 0 1.2rem;
}
.formular legend {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--akzent); font-weight: 600; padding: 0 0.4rem;
}
.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.8rem 1.2rem;
}
.formular label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--grau); }
.formular label.check, label.check { flex-direction: row; align-items: center; gap: 0.4rem; color: var(--tinte); font-size: 0.92rem; }
.check-reihe { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }
.aktionen { display: flex; gap: 0.8rem; margin: 1rem 0 2rem; }
.schmal { max-width: 700px; }

.detail-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.zurueck { font-size: 0.9rem; color: var(--grau); }

/* Login */
.login-box {
  max-width: 360px; margin: 8vh auto; background: var(--weiss);
  border: 1px solid var(--linie); border-top: 3px solid var(--akzent);
  border-radius: 4px; padding: 1.5rem;
}
.login-box form { display: flex; flex-direction: column; gap: 0.9rem; }
.login-box label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--grau); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Zusatzseiten */
.hinweis { color: var(--grau); font-size: 0.9rem; margin-top: -0.5rem; }
.schmal-tabelle { max-width: 700px; margin-bottom: 1.5rem; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.88rem; }
.klein-zeilen { line-height: 1.35; font-size: 0.88rem; }
.datum-spalte { width: 8rem; color: var(--grau); }
.kopier-block { max-width: 700px; display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.kopier-block textarea { width: 100%; font-size: 0.9rem; }
.umbruch { white-space: normal; }
