/* hanke.digital – terminal placeholder page */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
img { max-width: 100%; }
[hidden] { display: none !important; }
code { font: inherit; }

/* Layout: one terminal window centered on a quiet page. */
:root {
  --bg: #d6dae1;          /* paper grey, slight blue bias */
  --win: #fafbfc;
  --bar: #e4e7eb;
  --line: #cfd4db;
  --fg: #1d2530;
  --muted: #6b7684;
  --accent: #295a7c;      /* the old site's blue, kept */
  --accent-2: #2e7d5b;    /* prompt user@host */
  --sel: #d6e4ee;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141a; --win: #161c24; --bar: #1d2530; --line: #2a3441;
    --fg: #d7dde5; --muted: #7f8b99; --accent: #7fb3d5; --accent-2: #7fd1a8; --sel: #24354a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141a; --win: #161c24; --bar: #1d2530; --line: #2a3441;
  --fg: #d7dde5; --muted: #7f8b99; --accent: #7fb3d5; --accent-2: #7fd1a8; --sel: #24354a;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #d6dae1; --win: #fafbfc; --bar: #e4e7eb; --line: #cfd4db;
  --fg: #1d2530; --muted: #6b7684; --accent: #295a7c; --accent-2: #2e7d5b; --sel: #d6e4ee;
  color-scheme: light;
}

body {
  background: var(--bg); color: var(--fg);
  font: 15px/1.6 var(--font-mono);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 40px 56px;
  min-height: 100%;
}
::selection { background: var(--sel); }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.stack { max-width: 720px; margin-inline: auto; display: grid; gap: 28px; }

.win {
  background: var(--win); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(10, 20, 30, .08);
  overflow: hidden; min-width: 0;
}
.bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--bar); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); filter: grayscale(1); }
.bar .title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .title b { color: var(--fg); font-weight: 600; }

.term { padding: 18px 20px 16px; }
.cmd { margin: 0 0 14px; }
.cmd:last-of-type { margin-bottom: 0; }
.ps1 { color: var(--accent-2); font-weight: 600; }
.ps1 .path { color: var(--accent); }
.ps1 .sym { color: var(--muted); font-weight: 400; }
.line { white-space: pre-wrap; word-break: break-word; }
.out { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; }
.out p { margin: 0 0 10px; max-width: 62ch; }
.out p:last-child { margin-bottom: 0; }
.out h3 { margin: 0 0 8px; font-size: 1em; font-weight: 600; color: var(--muted); }
.kv { display: grid; grid-template-columns: fit-content(55%) minmax(0, 1fr); gap: 2px 18px; }
.kv > span { min-width: 0; overflow-wrap: anywhere; }
.kv .k { color: var(--muted); }
.yes { color: var(--accent-2); }
.no  { color: var(--muted); }
.c { color: var(--muted); }
.err { color: var(--muted); }
.out pre { margin: 0; font: inherit; line-height: 1.25; white-space: pre; overflow-x: auto; }

/* matrix overlay, removed on any key or tap */
.matrix { position: fixed; inset: 0; z-index: 10; background: #000; }
.matrix canvas { display: block; width: 100%; height: 100%; }
.matrix span { position: absolute; right: 16px; bottom: 12px; color: #4f4; font-size: 13px; }

.cli { display: flex; gap: 0; align-items: baseline; margin-top: 14px; }
.cli label { position: absolute; left: -9999px; }
.cli input {
  flex: 1; min-width: 0; background: transparent; border: 0; padding: 0; margin: 0;
  color: var(--fg); font: inherit; caret-color: var(--accent);
}
.cli input:focus { outline: none; }
.cursor { display: inline-block; width: .6em; height: 1.15em; background: var(--fg); vertical-align: text-bottom; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
.cli:focus-within .cursor { display: none; }
@keyframes blink { 50% { opacity: 0; } }

.hint { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hint a, .hint button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.legal-label { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 -18px 4px; }

/* language switch: default DE without JS */
:root:not([data-lang="en"]) [lang="en"] { display: none !important; }
:root[data-lang="en"] [lang="de"] { display: none !important; }

@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
@media (max-width: 480px) {
  body { padding-block: 16px 40px; font-size: 16px; }
  .term { padding: 14px 14px 12px; }
  .bar .title { font-size: 12px; }
  .cli .host { display: none; }
  .stack { gap: 22px; }
}
@media (max-height: 520px) { body { padding-block: 12px 24px; } }
@media (min-width: 1200px) { .stack { max-width: 760px; } body { font-size: 16px; } }

/* touch devices: the hint links become tappable chips (≈36px high) */
@media (pointer: coarse) {
  .hint { gap: 6px; font-size: 14px; align-items: center; }
  .hint a, .hint button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; line-height: 1.2; }
  .hint a:active, .hint button:active { background: var(--sel); }
}
