:root {
  --tinte: #20251f;
  --tinte-weich: #52584e;
  --papier: #f2ead7;
  --papier-hell: #fbf7eb;
  --gruen: #214d3b;
  --gruen-hell: #d8e5d6;
  --rot: #a43c30;
  --linie: rgba(32, 37, 31, .2);
  --schatten: 0 24px 70px rgba(28, 31, 24, .15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--tinte);
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(40, 45, 35, .025) 50%, transparent 50.15%),
    #e9e1ce;
  font-family: "Courier New", Courier, monospace;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.kopf {
  height: 76px;
  padding: 0 clamp(24px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--linie);
  background: rgba(242, 234, 215, .76);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wortmarke {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--tinte);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.stempel-klein {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--rot);
  color: var(--rot);
  font-family: "Courier New", monospace;
  font-size: .85rem;
  transform: rotate(-5deg);
}

.kopf-aktionen { display: flex; align-items: center; gap: 18px; }
.konto-name { color: var(--gruen); font-weight: bold; }

main { width: min(1180px, calc(100% - 40px)); margin: auto; }

.hero {
  min-height: 650px;
  padding: 86px 4vw 90px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 70px;
}

.aktenzeichen {
  margin: 0 0 18px;
  color: var(--rot);
  font-size: .72rem;
  font-weight: bold;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -.045em;
}

h1 em {
  color: var(--gruen);
  font-weight: 500;
}

.intro {
  max-width: 610px;
  margin: 28px 0 34px;
  color: var(--tinte-weich);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-aktionen { display: flex; flex-wrap: wrap; gap: 12px; }

.primaer, .sekundaer, .text-knopf {
  border: 0;
  padding: 14px 19px;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.primaer {
  background: var(--gruen);
  color: #fffdf5;
  box-shadow: 4px 4px 0 rgba(32, 37, 31, .19);
}
.primaer:hover { transform: translate(-1px, -1px); }
.primaer:active { transform: translate(2px, 2px); box-shadow: none; }

.sekundaer {
  color: var(--tinte);
  background: transparent;
  border: 1px solid var(--tinte);
}
.sekundaer:hover { color: var(--papier-hell); background: var(--tinte); }
.text-knopf { padding: 6px; color: var(--rot); background: transparent; }
.breit { width: 100%; }

.akte {
  min-height: 430px;
  padding: 58px 46px;
  position: relative;
  background: #c9b981;
  border-radius: 4px 13px 6px 3px;
  box-shadow: 18px 22px 0 rgba(35, 39, 29, .08), var(--schatten);
  transform: rotate(2.5deg);
}

.akte::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 24px;
  width: 43%;
  height: 30px;
  background: #c9b981;
  border-radius: 4px 8px 0 0;
}

.heftung {
  position: absolute;
  top: 10px;
  right: 35px;
  width: 80px;
  height: 13px;
  border: 3px solid #777264;
  border-radius: 9px;
  transform: rotate(1deg);
}

.akte p { margin: 0 0 52px; font-size: .72rem; letter-spacing: .12em; line-height: 1.5; }
.akte strong { display: block; font: 700 2.5rem Georgia, serif; letter-spacing: .06em; }
.akte-linie { display: block; margin: 12px 0 44px; border-top: 2px solid var(--tinte); }
.akte > span:not(.heftung, .akte-linie) { font-size: .68rem; text-transform: uppercase; }
.akte b { display: block; margin-top: 6px; font-size: 1.2rem; }

.rundstempel {
  position: absolute;
  right: 30px;
  bottom: 28px;
  width: 130px;
  height: 130px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 5px double var(--rot);
  border-radius: 50%;
  color: var(--rot);
  font-weight: bold;
  line-height: 1.2;
  transform: rotate(-14deg);
  opacity: .72;
}
.rundstempel small { font-size: .6rem; }

.blatt {
  background: var(--papier-hell);
  border: 1px solid rgba(45, 48, 39, .18);
  box-shadow: var(--schatten);
}

.auth-bereich, .gast-bereich {
  position: relative;
  width: min(580px, 100%);
  margin: 25px auto 110px;
  padding: clamp(28px, 6vw, 58px);
}

.auth-bereich::before, .gast-bereich::before, .neue-lobby::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(31, 76, 58, .18);
  pointer-events: none;
}

.formular-kopf h2, .gast-bereich h2, .bereich-kopf h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.1rem);
}
.formular-kopf > p:last-child, .gast-bereich > p { color: var(--tinte-weich); line-height: 1.6; }
.schliessen { position: absolute; top: 18px; right: 22px; border: 0; background: transparent; font-size: 1.7rem; }

.reiter {
  margin: 30px 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--linie);
}
.reiter button {
  padding: 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--tinte-weich);
  background: transparent;
}
.reiter button.aktiv { border-color: var(--gruen); color: var(--gruen); font-weight: bold; }

form { display: grid; gap: 20px; }
label { display: grid; gap: 7px; font-size: .72rem; font-weight: bold; letter-spacing: .06em; text-transform: uppercase; }
input, select {
  width: 100%;
  padding: 13px 11px;
  border: 0;
  border-bottom: 2px solid #6d7167;
  border-radius: 0;
  outline: none;
  color: var(--tinte);
  background: rgba(233, 225, 206, .55);
  text-transform: none;
}
input:focus, select:focus { border-color: var(--gruen); box-shadow: inset 4px 0 0 var(--gruen-hell); }

.lobby-bereich { padding: 85px 0 120px; }
.bereich-kopf { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 36px; }
.bereich-kopf p:last-child { max-width: 630px; color: var(--tinte-weich); }
.lobby-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.lobby-liste { display: grid; gap: 13px; }

.lobby {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--linie);
  background: rgba(251, 247, 235, .7);
}
.lobby:hover { border-color: var(--gruen); }
.lobby h3 { margin: 0 0 9px; font-size: 1.35rem; }
.lobby-meta { display: flex; flex-wrap: wrap; gap: 15px; color: var(--tinte-weich); font-size: .73rem; }
.lobby .primaer { min-width: 125px; }
.lobby-leer { padding: 50px; text-align: center; border: 1px dashed var(--linie); color: var(--tinte-weich); }
.neue-lobby { position: relative; padding: 32px; }
.neue-lobby h3 { margin: 0 0 28px; font-size: 1.6rem; }

.merkmale {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}
.merkmale article { padding: 48px 34px; border-right: 1px solid var(--linie); }
.merkmale article:last-child { border: 0; }
.merkmale span { color: var(--rot); font-size: .75rem; }
.merkmale h3 { margin: 17px 0 12px; font-size: 1.25rem; }
.merkmale p { color: var(--tinte-weich); font-size: .8rem; line-height: 1.7; }

.meldung {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 30;
  max-width: min(430px, calc(100% - 50px));
  padding: 17px 20px;
  border-left: 5px solid var(--gruen);
  background: var(--papier-hell);
  box-shadow: var(--schatten);
}
.meldung.fehler { border-color: var(--rot); }
.ladeanzeige {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
  background: rgba(233, 225, 206, .84);
  backdrop-filter: blur(4px);
}
.ladeanzeige span {
  width: 46px;
  height: 46px;
  margin: auto;
  border: 4px solid var(--linie);
  border-top-color: var(--gruen);
  border-radius: 50%;
  animation: drehen .8s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }

footer {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  color: var(--tinte-weich);
  font-size: .7rem;
}

.versteckt { display: none !important; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .akte { width: min(430px, 90%); margin: 0 auto; }
  .lobby-layout { grid-template-columns: 1fr; }
  .merkmale { grid-template-columns: 1fr; }
  .merkmale article { border-right: 0; border-bottom: 1px solid var(--linie); }
}

@media (max-width: 560px) {
  main { width: min(100% - 26px, 1180px); }
  .kopf { padding: 0 16px; }
  .konto-name { display: none; }
  .hero { min-height: 0; padding: 54px 5px 70px; gap: 55px; }
  h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .akte { min-height: 365px; padding: 48px 30px; }
  .rundstempel { width: 105px; height: 105px; }
  .bereich-kopf { align-items: start; flex-direction: column; }
  .lobby { grid-template-columns: 1fr; }
  .lobby .primaer { width: 100%; }
  footer { flex-direction: column; gap: 10px; }
}
