/* ============================================================
   mehmetkay-sudo.org — Stylesheet

   Dritte Seite der Familie, wieder mit eigener Handschrift:
   shiitake-film.eu ist hell mit Antiqua, atopics-film.eu dunkel
   mit Grotesk. Hier führt die Schreibmaschinenschrift — das ist
   eine Programmierseite, und der Monospace-Satz sagt das ohne
   ein einziges Icon. Gemeinsam bleibt allen dreien die Haltung:
   monochrom, keine Farbe, Hierarchie über Helligkeit und Größe.
   ============================================================ */

:root {
  --bg:        #0c0d10;   /* eine Spur kälter als Atopics (#0b0b0c) */
  --bg-raised: #16181d;
  --ink:       #e9eaee;
  --ink-mute:  #9ea1aa;
  --ink-faint: #767a84;   /* nicht dunkler: darunter fällt Fließtext
                             unter das Kontrastminimum (WCAG AA, 4.5:1) */
  /* Ein einziger Farbton, und der ist geliehen: das Grün alter
     Phosphor-Terminals. Er trägt nie Fließtext, sondern nur die
     Zeichen, die auf einen Rechner verweisen — Prompt, Cursor,
     Fokusrahmen, Mailadresse. Damit bleibt die Seite monochrom wie
     ihre beiden Schwestern und sagt trotzdem sofort, worum es geht. */
  --accent:    #6ee7a8;
  --accent-dim:#3f8f66;
  --rule:      rgba(255, 255, 255, 0.12);

  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
           "Liberation Mono", monospace;
  --sans:  system-ui, -apple-system, "Segoe UI", Ubuntu, Cantarell,
           "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 5rem);
  --rhythm: clamp(4rem, 11vh, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  /* Monospace als Grundschrift. Sie ist etwas breiter als eine Grotesk,
     deshalb sind die Zeilenmaße unten in ch gerechnet und nicht in rem —
     so bleibt die Zeilenlänge unabhängig davon, welche Mono der Browser
     tatsächlich findet. */
  font-family: var(--mono);
  font-size: 0.97rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* ---------- Sprachumschaltung ---------- */
.lang-de .en, .lang-en .de { display: none; }

/* ---------- Sprung zum Inhalt ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.6rem 1rem;
  font-weight: 600;
  z-index: 99;
}
.skip:focus { left: 0; }

/* ---------- Kopf ---------- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}

/* Die Wortmarke ist gesetzter Text, keine Bilddatei. Für diese Domain
   gibt es (noch) kein Logo, und eine Prompt-Zeile ist hier ohnehin die
   ehrlichere Marke als ein gezeichnetes Signet. */
.wordmark {
  text-decoration: none;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.wordmark__host  { color: var(--ink-mute); }
.wordmark__sigil { color: var(--accent-dim); }
.wordmark__name  { border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.wordmark:hover .wordmark__name { border-color: var(--accent); }

/* Blinkender Cursor hinter der Wortmarke. Bei prefers-reduced-motion
   steht er still, sonst blinkt er — er ist Zierde, kein Inhalt. */
.wordmark__caret {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.25em;
  vertical-align: -0.14em;
  background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .wordmark__caret { animation: blink 1.2s steps(1) infinite; }
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.2rem);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
/* Die Navigation ist als Pfadliste gesetzt — die Trenner sind Schrägstriche,
   nicht Punkte, und stehen im gedämpften Grün des Prompts. */
.site-nav a { color: var(--ink-mute); text-decoration: none; transition: color 0.2s; }
.site-nav a::before { content: "/"; color: var(--accent-dim); margin-right: 0.15em; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }

.lang-toggle {
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink-mute);
  font: inherit;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.lang-toggle:hover, .lang-toggle:focus-visible { color: var(--ink); border-color: var(--ink-faint); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(5rem, 16vh, 11rem) var(--gutter) var(--rhythm);
  max-width: 78rem;
}

/* Die Kopfzeile über der Überschrift ist eine Kommandozeile. Sie wird
   nicht übersetzt — ein Befehl ist in jeder Sprache derselbe, und genau
   das macht sie hier brauchbar. */
.eyebrow {
  margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

/* Prompt-Zeichen: $ vor Befehlen, ~/ vor Pfaden. Aus dem Vorlesefluss
   genommen — ein Screenreader soll nicht „Dollar“ sagen. */
.prompt { color: var(--accent-dim); margin-right: 0.4em; }

.cmd { color: var(--ink-mute); }

/* Die Überschrift ist die einzige Stelle, an der die Grotesk auftritt.
   In Monospace wird eine Zeile dieser Größe zu breit für kleine
   Bildschirme, und der Satz zerfällt in Einzelbuchstaben. */
.hero__title {
  margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
  max-width: 20ch;
  font-family: var(--sans);
  font-size: clamp(2.2rem, 6.8vw, 4.6rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero__lede {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(0.95rem, 1.5vw, 1.04rem);
  line-height: 1.75;
  color: var(--ink-mute);
}

/* ---------- Abschnitte ---------- */
.section {
  padding: var(--rhythm) var(--gutter);
  border-top: 1px solid var(--rule);
  max-width: 78rem;
}

/* Abschnittsmarke: laufende Nummer wie bei den Schwesterseiten, dahinter
   aber ein Befehl statt eines Wortes. */
.section__label {
  margin: 0 0 clamp(2rem, 5vh, 3.5rem);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}
.section__nr {
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  padding: 0.1rem 0.45rem;
  margin-right: 0.9rem;
}

.prose {
  max-width: 72ch;
  font-size: clamp(0.95rem, 1.5vw, 1.02rem);
  line-height: 1.8;
  color: var(--ink-mute);
}
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); }

/* ---------- Projekte ----------
   Gleiche Bauart wie die Porträtliste bei Atopics: Jahr, Name, Notiz,
   Stand. Vier Spalten ab 52rem, darunter gestapelt. */
.projekte {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.projekt {
  display: grid;
  gap: 0.35rem 2rem;
  grid-template-columns: 1fr;
  padding: clamp(1.4rem, 3.5vh, 2rem) 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 52rem) {
  .projekt { grid-template-columns: 7rem minmax(0, 1fr) 10rem; align-items: baseline; }
}

.projekt__jahr {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.projekt__name {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.projekt__name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.25s;
}
.projekt__name a:hover, .projekt__name a:focus-visible { border-color: var(--accent); }

.projekt__notiz { margin: 0.3rem 0 0; font-size: 0.9rem; line-height: 1.7; color: var(--ink-mute); }

/* Sprachenzeile unter der Notiz — kleine, ruhige Marker statt bunter Badges. */
.projekt__stack {
  margin: 0.5rem 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.projekt__stack::before { content: "# "; color: var(--accent-dim); }

.projekt__stand {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Kontakt ---------- */
.section--contact { padding-bottom: clamp(5rem, 13vh, 9rem); }

.contact__title {
  margin: 0 0 clamp(1.25rem, 3vh, 2rem);
  max-width: 22ch;
  font-family: var(--sans);
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.contact__mail {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 3px;
  transition: border-color 0.25s;
  word-break: break-word;
}
.contact__mail:hover, .contact__mail:focus-visible { border-color: var(--accent); }

.contact__links {
  list-style: none;
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  font-size: 0.88rem;
}
.contact__links a { color: var(--ink-mute); text-decoration: none; transition: color 0.2s; }
.contact__links a::before { content: "→ "; color: var(--accent-dim); }
.contact__links a:hover, .contact__links a:focus-visible { color: var(--ink); }

/* ---------- Fuß ---------- */
.site-foot {
  padding: 2.5rem var(--gutter);
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  max-width: 78rem;
}
.site-foot p { margin: 0; }
.site-foot__nav { display: flex; gap: 1.5rem; }
.site-foot a { color: var(--ink-faint); text-decoration: none; transition: color 0.2s; }
.site-foot a:hover, .site-foot a:focus-visible { color: var(--ink); }

/* ---------- Rechtstexte ---------- */
.legal {
  padding: var(--rhythm) var(--gutter);
  max-width: 52rem;
}
.legal h1 {
  font-family: var(--sans);
  font-size: clamp(1.7rem, 4.2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 2rem;
}
.legal h2 { font-size: 0.98rem; font-weight: 600; margin: 2.5rem 0 0.6rem; }
.legal p, .legal address { margin: 0 0 1em; color: var(--ink-mute); line-height: 1.8; font-style: normal; }
.legal a { color: var(--ink); }

/* ---------- 404 ---------- */
.notfound {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  max-width: 34rem;
}
.notfound li { border-bottom: 1px solid var(--rule); }
.notfound a {
  display: block;
  padding: 0.85rem 0;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.notfound a::before { content: "$ cd "; color: var(--accent-dim); }
.notfound a:hover, .notfound a:focus-visible { color: var(--ink); padding-left: 0.6rem; }

/* Hinweiskasten für den Betreiber. Wird von build.sh vor dem
   Hochladen entfernt und ist deshalb nie öffentlich zu sehen. */
.todo {
  display: block;
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  color: var(--ink) !important;
  font-size: 0.88rem;
  line-height: 1.7;
}
.todo strong { color: var(--accent); }

/* ---------- Fokus ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
