/* lanistra.de – eine Datei, keine Abhängigkeiten. */
:root {
  color-scheme: dark light;
  --bg: #0a1218;
  --card: #0e1820;
  --ink: #e9ece6;
  --text: #c6cccb;
  --muted: #8d9aa0;
  --line: #22323a;
  --grid: rgb(154 220 204 / .035);
  --accent: #9adccc;
  --accent-text: #9adccc;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eceee8;
    --card: #f7f8f4;
    --ink: #0f1c1f;
    --text: #29363a;
    --muted: #55646a;
    --line: #ccd2c9;
    --grid: rgb(15 28 31 / .045);
    --accent: #3b846d;
    --accent-text: #2b6a56;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(1rem, 4vw, 3rem) clamp(.875rem, 4vw, 2rem);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% 40%, transparent 0, var(--bg) 75%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  font: 1.0625rem/1.65 var(--sans);
}

a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent-text); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Karte */
.card {
  position: relative;
  width: 100%;
  max-width: 46rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: solid var(--accent);
  pointer-events: none;
}
.card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 3px; }
.card::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 3px; }

.strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .7rem clamp(1.125rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: .75rem/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.strip a { color: inherit; text-decoration: none; }
.strip a:hover { color: var(--accent-text); }
.strip .home { display: inline-flex; align-items: center; gap: .6em; color: var(--ink); }
.strip .path { text-transform: none; }
.strip .logo { width: auto; height: 2.25rem; }

.body { padding: clamp(1.5rem, 5vw, 2.75rem) clamp(1.125rem, 4vw, 2rem); }

.logo { display: block; height: auto; }
.nb { white-space: nowrap; }

/* Startseite */
.id { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.id > .logo { width: clamp(6.5rem, 28vw, 10rem); }
@media (min-width: 40rem) {
  .id { grid-template-columns: auto 1fr; }
}
.prompt { margin: 0 0 .35rem; color: var(--muted); font: .8125rem/1.4 var(--mono); }
.prompt b { color: var(--accent-text); font-weight: 400; }
h1 { margin: 0; color: var(--ink); font-family: var(--mono); font-weight: 600; }
.name {
  font-size: clamp(2rem, 9.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.name::after {
  content: "";
  display: inline-block;
  width: .5em;
  height: .82em;
  margin-left: .12em;
  background: var(--accent);
  vertical-align: -.04em;
  animation: blink 1.2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .name::after { animation: none; } }
.sub { margin: .5rem 0 1.5rem; color: var(--muted); font: .875rem/1.4 var(--mono); letter-spacing: .04em; }
.text { max-width: 34em; }

.contact { margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.contact dt, .label { color: var(--muted); font: .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.contact dd { margin: .25rem 0 0; font-family: var(--mono); font-size: 1rem; overflow-wrap: anywhere; }

/* Rechtstexte */
.doc { max-width: 38rem; }
.doc h1 { margin-bottom: 1.25rem; font-size: clamp(1.5rem, 6vw, 1.875rem); line-height: 1.2; letter-spacing: .02em; overflow-wrap: anywhere; hyphens: auto; }
.doc h2 { margin: 2rem 0 .5rem; color: var(--ink); font: 600 1rem/1.4 var(--mono); letter-spacing: .02em; }
.doc h2::before { content: "# "; color: var(--accent-text); font-weight: 400; }
.doc address { margin: 0 0 1em; font-style: normal; }
.doc ul { margin: 0 0 1em; padding-left: 1.2em; }
.doc li { margin-bottom: .25em; }
.doc li::marker { color: var(--accent-text); }
.lead { color: var(--ink); }
.stand { margin-top: 2rem; color: var(--muted); font: .8125rem/1.4 var(--mono); }

/* Fuß */
.foot {
  width: 100%;
  max-width: 46rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding: 0 .25rem;
  color: var(--muted);
  font: .8125rem/1.6 var(--mono);
}
@media (max-width: 26rem) { .foot { font-size: .75rem; } }
.foot nav { display: flex; gap: 1.25rem; }
.foot a { display: inline-block; padding: .35rem 0; color: var(--muted); }
.foot a:hover, .foot a[aria-current] { color: var(--ink); }
.foot p { margin: 0; padding: .35rem 0; }

@media print {
  body { background: #fff; color: #000; display: block; }
  .card { border: 0; }
  .card::before, .card::after, .name::after { display: none; }
}
