:root {
  --papier: #f2ece0;
  --papier-tief: #e6dcc9;
  --tinte: #241d16;
  --tinte-weich: #5d5044;
  --dunkel: #221c17;
  --dunkel-tief: #1a1511;
  --dunkel-hoch: #2e2620;
  --sand: #cbbfae;
  --sand-weich: #8f8375;
  --akzent: #c98b3f;
  --rand: rgba(203, 191, 174, .14);
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--dunkel-tief);
  color: var(--sand);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.huelle { display: flex; min-height: 100vh; }

/* Seitenleiste */
.seitenleiste {
  width: 244px;
  flex: 0 0 244px;
  background: var(--dunkel);
  border-right: 1px solid var(--rand);
  display: flex;
  flex-direction: column;
  padding: 20px 0 0;
}

.marke {
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px 22px;
  font-size: 14px; font-weight: 600; color: #e8e0d4;
}
.marke-punkt {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(140deg, var(--akzent), #8a5c28);
  flex: 0 0 22px;
}

nav { flex: 1; overflow-y: auto; padding: 0 12px; }

.nav-gruppe { margin-bottom: 20px; }
.nav-titel {
  font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--sand-weich); padding: 0 8px 8px;
}

.nav-punkt {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--sand);
  transition: background .12s ease, color .12s ease;
}
.nav-punkt:hover { background: var(--dunkel-hoch); color: #efe7db; }
.nav-punkt.ist-aktiv { background: var(--dunkel-hoch); color: #fff; }
.nav-punkt svg {
  width: 17px; height: 17px; flex: 0 0 17px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; opacity: .75;
}
.nav-punkt.ist-aktiv svg { opacity: 1; color: var(--akzent); }

.leiste-fuss { border-top: 1px solid var(--rand); padding: 16px 20px 20px; }
.chef { display: flex; align-items: center; gap: 11px; }
.chef-ring {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: var(--dunkel-hoch); border: 1px solid var(--rand);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--akzent); letter-spacing: .04em;
}
.chef-name { font-size: 13px; color: #e8e0d4; }
.chef-zeile { font-size: 11.5px; color: var(--sand-weich); margin-top: 1px; }

/* Hauptbereich */
main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.kopf {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 32px 0;
}
.kopf h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: 26px; color: #efe7db; margin: 0; letter-spacing: -.01em;
}
.merker {
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--akzent); border: 1px solid rgba(201,139,63,.4);
  padding: 3px 8px; border-radius: 999px;
}
.menu-knopf { display: none; cursor: pointer; }
.menu-knopf svg {
  width: 22px; height: 22px; fill: none; stroke: var(--sand);
  stroke-width: 1.6; stroke-linecap: round;
}

.inhalt { padding: 22px 32px 56px; max-width: 1180px; }

/* Briefe */
.briefe {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.brief {
  background: var(--papier);
  color: var(--tinte);
  border-radius: 3px;
  padding: 22px 22px 18px;
  display: flex; flex-direction: column;
  min-height: 230px;
  box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 26px rgba(0,0,0,.22);
  transition: transform .14s ease, box-shadow .14s ease;
}
.brief:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 16px 34px rgba(0,0,0,.28); }
.brief-marke {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(36,29,22,.28);
  display: grid; place-items: center; margin-bottom: 16px;
}
.brief-marke svg { width: 14px; height: 14px; fill: none; stroke: var(--tinte); stroke-width: 1.4; }
.brief h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 19px; line-height: 1.25; margin: 0 0 10px;
  letter-spacing: -.01em;
}
.brief p {
  font-family: var(--serif); font-size: 14px; line-height: 1.5;
  color: var(--tinte-weich); margin: 0;
}
.brief-fuss {
  margin-top: auto; padding-top: 16px;
  font-family: var(--serif); font-size: 12px; font-style: italic;
  color: var(--tinte-weich); text-align: right;
}

/* Tabellen und Karten */
.karte {
  background: var(--dunkel); border: 1px solid var(--rand);
  border-radius: 10px; overflow: hidden; margin-bottom: 18px;
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; font-weight: 500; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--sand-weich);
  padding: 13px 18px; border-bottom: 1px solid var(--rand);
}
td { padding: 14px 18px; border-bottom: 1px solid var(--rand); color: #ded4c6; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.stark { color: #f0e8dc; font-weight: 500; }

.pille {
  display: inline-block; font-size: 11px; padding: 3px 9px;
  border-radius: 999px; border: 1px solid var(--rand); color: var(--sand);
  white-space: nowrap;
}
.pille.gut { color: #9fc08a; border-color: rgba(159,192,138,.34); }
.pille.warm { color: var(--akzent); border-color: rgba(201,139,63,.38); }
.pille.ruhig { color: var(--sand-weich); }

.kacheln { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 22px; }
.kachel { background: var(--dunkel); border: 1px solid var(--rand); border-radius: 10px; padding: 18px; }
.kachel-titel { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sand-weich); }
.kachel-wert { font-family: var(--serif); font-size: 30px; color: #f0e8dc; margin-top: 8px; letter-spacing: -.02em; }
.kachel-zeile { font-size: 12px; color: var(--sand-weich); margin-top: 4px; }

/* Wissensseiten */
.blatt {
  background: var(--papier); color: var(--tinte);
  border-radius: 4px; padding: 44px 52px; max-width: 760px;
  box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 12px 30px rgba(0,0,0,.24);
  font-family: var(--serif); font-size: 16px; line-height: 1.68;
}
.blatt h1, .blatt h2, .blatt h3 { letter-spacing: -.01em; line-height: 1.25; }
.blatt h1 { font-size: 30px; margin: 0 0 20px; }
.blatt h2 { font-size: 21px; margin: 32px 0 10px; }
.blatt h3 { font-size: 17px; margin: 24px 0 8px; }
.blatt p, .blatt li { color: #3a3128; }
.blatt code { background: var(--papier-tief); padding: 1px 5px; border-radius: 3px; font-size: 14px; }
.blatt hr { border: 0; border-top: 1px solid rgba(36,29,22,.16); margin: 28px 0; }

.leer { color: var(--sand-weich); font-size: 14px; padding: 30px 0; }
.leer-gross {
  border: 1px dashed var(--rand); border-radius: 10px;
  padding: 44px; text-align: center; color: var(--sand-weich);
}

@media (max-width: 860px) {
  .seitenleiste {
    position: fixed; inset: 0 auto 0 0; z-index: 20;
    transform: translateX(-100%); transition: transform .2s ease;
  }
  #menu:checked ~ .huelle .seitenleiste { transform: none; }
  .menu-knopf { display: block; }
  .kopf { padding: 18px 16px 0; }
  .kopf h1 { font-size: 21px; }
  .inhalt { padding: 18px 16px 48px; }
  .blatt { padding: 26px 22px; }
  table { font-size: 13px; }
  th, td { padding: 11px 14px; }
}

/* Formulare */
.formular {
  background: var(--dunkel); border: 1px solid var(--rand);
  border-radius: 10px; padding: 18px; margin-bottom: 22px;
}
.formular.hell { background: var(--papier); border-color: rgba(36,29,22,.16); }
.formular h3 {
  margin: 0 0 12px; font-size: 11px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--sand-weich); font-weight: 500;
}
.formular.hell h3 { color: var(--tinte-weich); }
.formular textarea, .formular select, .anmelde-karte input {
  width: 100%; font: inherit; font-size: 14px;
  background: var(--dunkel-tief); color: #ede5d9;
  border: 1px solid var(--rand); border-radius: 7px;
  padding: 11px 13px; resize: vertical;
}
.formular.hell textarea {
  background: #fbf7ef; color: var(--tinte);
  border-color: rgba(36,29,22,.18); font-family: var(--serif); font-size: 15px;
}
.formular textarea:focus, .formular select:focus, .anmelde-karte input:focus {
  outline: none; border-color: var(--akzent);
}
.formular-zeile { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.formular-zeile select { width: auto; min-width: 170px; }
button {
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer;
  background: var(--akzent); color: #1a1208; border: 0;
  border-radius: 7px; padding: 10px 20px;
}
button:hover { background: #d99a4f; }
button.still { background: transparent; color: var(--sand-weich); border: 1px solid var(--rand); }
.formular.hell button.still { color: var(--tinte-weich); border-color: rgba(36,29,22,.2); }
button.still:hover { background: rgba(203,191,174,.08); color: var(--sand); }
.kaestchen { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--sand-weich); cursor: pointer; }
.kaestchen input { width: auto; accent-color: var(--akzent); }
.formular.hell .kaestchen { color: var(--tinte-weich); }

/* Anmeldung */
.anmelde-seite { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.anmelde-karte {
  background: var(--dunkel); border: 1px solid var(--rand);
  border-radius: 14px; padding: 34px 30px; width: 100%; max-width: 340px;
}
.anmelde-karte .marke { padding: 0 0 20px; }
.anmelde-karte h1 { font-family: var(--serif); font-weight: 500; font-size: 26px; color: #efe7db; margin: 0 0 20px; }
.anmelde-karte input[type=password] { margin-bottom: 14px; }
.anmelde-karte button { width: 100%; margin-top: 16px; padding: 12px; }
.anmelde-karte .kaestchen { margin-top: 2px; }
.fehler { color: #d98080; font-size: 13px; margin: 0 0 14px; }

/* Meldungen */
.meldung {
  background: var(--dunkel); border: 1px solid rgba(201,139,63,.34);
  border-left: 3px solid var(--akzent);
  border-radius: 8px; padding: 14px 18px; margin-bottom: 20px;
  font-size: 13.5px; color: #e4dacb; line-height: 1.55;
}
.abmelden { margin-left: auto; font-size: 12.5px; color: var(--sand-weich); }
.abmelden:hover { color: var(--sand); }
.abmelden-form { margin-left: auto; }
@media (max-width: 860px) { .abmelden-form button { padding: 5px 10px !important; } }
