:root {
  --papier: #EFE6D2;
  --papier-hell: #F7F2E6;
  --tinte: #1A1A1A;
  --tinte-blass: #5C5751;
  --stempel: #D62828;
  --akte: #8A8377;
  --blau: #6B7F99;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
}

/* Aktendeckel-Rahmen */
.blatt {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* Formularkopf */
.kopf {
  border-bottom: 3px double var(--tinte);
  padding: 2.5rem 0 1.25rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.behoerde {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--tinte-blass);
  margin: 0 0 0.6rem;
}

.kopf h1 {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1.5rem, 5.5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.8rem;
  letter-spacing: -0.01em;
}

.claim {
  margin: 0;
  color: var(--tinte-blass);
  font-style: italic;
}

/* Stempel oben rechts */
.stempel {
  position: absolute;
  top: 1.8rem;
  right: -0.5rem;
  width: 96px;
  height: 96px;
  border: 3px solid var(--stempel);
  border-radius: 50%;
  transform: rotate(-12deg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--stempel);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.stempel span { display: block; padding: 0 6px; }

@media (max-width: 600px) {
  .stempel { width: 74px; height: 74px; font-size: 0.5rem; right: 0; top: 2rem; }
  .kopf h1 { padding-right: 5.5rem; }
}

/* Inhalt */
h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin: 2.8rem 0 0.9rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--akte);
}

h2:first-of-type { margin-top: 0; }

p { margin: 0 0 1.1rem; }

a { color: var(--blau); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--stempel); }
a:focus-visible { outline: 2px solid var(--stempel); outline-offset: 3px; }

/* Datenzeilen im Formularstil */
.feld {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0 1rem;
  border-bottom: 1px dotted var(--akte);
  padding: 0.55rem 0;
}

.feld dt {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  color: var(--tinte-blass);
  padding-top: 0.2rem;
}

.feld dd { margin: 0; }

@media (max-width: 560px) {
  .feld { grid-template-columns: 1fr; gap: 0; }
  .feld dd { padding-bottom: 0.2rem; }
}

/* Kanal-Links */
.kanaele { list-style: none; padding: 0; margin: 0; }

.kanaele li { border-bottom: 1px solid var(--akte); }

.kanaele a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  text-decoration: none;
  color: var(--tinte);
  font-family: "Courier New", Courier, monospace;
}

.kanaele a:hover { color: var(--stempel); }

.kanaele .handle { color: var(--tinte-blass); font-size: 0.85rem; }

/* Fußzeile */
.fuss {
  margin-top: 4rem;
  padding-top: 1.2rem;
  border-top: 3px double var(--tinte);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  color: var(--tinte-blass);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.hinweis {
  background: var(--papier-hell);
  border-left: 4px solid var(--stempel);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.platzhalter {
  background: #FFE9A8;
  padding: 0 0.2em;
  border-bottom: 1px dashed #B58900;
}
