/* ==========================================================================
   Alexander Altmann – Website
   Grundstil für alle Seiten und den Tools-Bereich.
   Keine externen Schriften, keine externen Dienste – die Sicherheitsrichtlinie
   des Servers lässt nur eigene Dateien zu.
   ========================================================================== */

/* --- Farben und Maße ------------------------------------------------------ */

:root {
  --wand:         #f4f6f9;   /* Seitenhintergrund */
  --wand-tief:    #e8ecf1;   /* Vertiefte Flächen, Trennlinien in Listen */
  --karton:       #ffffff;   /* Flächen: Kopf, Karten, Formulare */
  --tusche:       #171c24;   /* Text */
  --tusche-hell:  #5d6675;   /* Nebentext */
  --linie:        #dde2e9;   /* Rahmen */
  --stempel:      #2456c4;   /* Links, Knöpfe, aktive Zustände */
  --stempel-tief: #1b418f;   /* Links beim Überfahren */
  --stempel-hell: #e7edfb;   /* Zarte Hervorhebung */
  --gut:          #2e7d4f;
  --fehler:       #b23b3b;

  --schrift:      "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-mono: ui-monospace, "Cascadia Mono", "Consolas", "Liberation Mono", monospace;

  --breite:       70rem;     /* Größte Inhaltsbreite */
  --lesebreite:   44rem;     /* Breite für Fließtext */
  --rundung:      14px;
  --rundung-klein: 8px;
  --schatten:     0 1px 2px rgba(23, 28, 36, 0.05), 0 8px 24px -12px rgba(23, 28, 36, 0.18);
}

/* --- Grundlagen ------------------------------------------------------------ */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--wand);
  color: var(--tusche);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--stempel); text-decoration: none; }
a:hover { color: var(--stempel-tief); text-decoration: underline; text-underline-offset: 0.2em; }
small { color: var(--tusche-hell); }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 2rem 0; }
code, kbd, pre { font-family: var(--schrift-mono); font-size: 0.92em; }
pre { background: var(--wand-tief); padding: 0.8rem 1rem; border-radius: var(--rundung-klein); overflow-x: auto; }
table { border-collapse: collapse; }

:focus-visible { outline: 2px solid var(--stempel); outline-offset: 3px; border-radius: 4px; }

.bahn { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }

.zum-inhalt {
  position: absolute; left: 1rem; top: -4rem;
  padding: 0.5rem 0.9rem; background: var(--tusche); color: var(--karton);
  border-radius: var(--rundung-klein); z-index: 10;
}
.zum-inhalt:focus { top: 1rem; }

.nur-fuer-screenreader {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Kopf ------------------------------------------------------------------ */

.kopf {
  position: sticky; top: 0; z-index: 5;
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
}
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.kopf__name { font-weight: 650; color: var(--tusche); letter-spacing: -0.01em; white-space: nowrap; }
.kopf__name:hover { text-decoration: none; color: var(--tusche); }
.kopf__name span { color: var(--tusche-hell); font-weight: 450; }

.kopf__wege { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.kopf__weg {
  display: inline-block; padding: 0.4rem 0.8rem; border-radius: 999px;
  color: var(--tusche-hell); font-weight: 500; font-size: 0.95rem;
}
.kopf__weg:hover { background: var(--wand-tief); color: var(--tusche); text-decoration: none; }
.kopf__weg[aria-current="page"] { background: var(--stempel-hell); color: var(--stempel); }
.kopf__weg--betont { background: var(--tusche); color: var(--karton); }
.kopf__weg--betont:hover { background: var(--stempel); color: var(--karton); }

/* --- Startseite ------------------------------------------------------------ */

main { flex: 1; }

.held { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.held__ueber {
  display: inline-block; margin-bottom: 1.2rem;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  background: var(--stempel-hell); color: var(--stempel);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em;
}
.held__titel { max-width: 22ch; }
.held__satz { max-width: var(--lesebreite); margin-top: 1.2rem; font-size: 1.2rem; color: var(--tusche-hell); }
.held__knoepfe { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }

.karten {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.karte {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 1.6rem 1.7rem 1.5rem;
  background: var(--karton); border: 1px solid var(--linie); border-radius: var(--rundung);
  box-shadow: var(--schatten); color: var(--tusche);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
a.karte:hover { transform: translateY(-3px); border-color: #c9d3e6; text-decoration: none; color: var(--tusche); }
.karte__zeichen {
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  border-radius: 10px; background: var(--stempel-hell); color: var(--stempel); margin-bottom: 0.4rem;
}
.karte__zeichen svg { width: 1.4rem; height: 1.4rem; }
.karte__titel { font-size: 1.2rem; }
.karte__text { color: var(--tusche-hell); margin: 0; }
.karte__weiter { margin-top: auto; padding-top: 0.6rem; font-weight: 600; color: var(--stempel); }

/* --- Knöpfe ---------------------------------------------------------------- */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.6rem 1.15rem; border-radius: var(--rundung-klein);
  background: var(--stempel); color: var(--karton); border: 1px solid var(--stempel);
  font: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.2; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.knopf:hover { background: var(--stempel-tief); border-color: var(--stempel-tief); color: var(--karton); text-decoration: none; }
.knopf--leise { background: var(--karton); color: var(--tusche); border-color: var(--linie); font-weight: 500; }
.knopf--leise:hover { background: var(--wand-tief); border-color: #c9d3e6; color: var(--tusche); }
.knopf:disabled { opacity: 0.5; cursor: default; }

/* --- Inhaltsseiten (Lebenslauf, Impressum, Datenschutz) ------------------- */

.text { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; max-width: var(--lesebreite); }
.text h1 { margin-bottom: 1.2rem; }
.text h2 { margin: 2.2rem 0 0.7rem; font-size: 1.3rem; }
.text h3 { margin: 1.6rem 0 0.4rem; }
.text ul, .text ol { padding-left: 1.3rem; }
.text li { margin-bottom: 0.3rem; }
.text address { font-style: normal; }
.text .klein { font-size: 0.92rem; color: var(--tusche-hell); }

.abschnitt { margin-bottom: 2.6rem; }
.abschnitt__titel {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tusche-hell); padding-bottom: 0.6rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--linie);
}

.leer { color: var(--tusche-hell); }

/* Lebenslauf: Seitenleiste links, Zeitstrahl rechts – Seite und PDF gleich aufgebaut */

.cv { display: grid; grid-template-columns: 18rem 1fr; gap: 3rem; padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; align-items: start; }
.cv__seite { background: var(--karton); border: 1px solid var(--linie); border-radius: var(--rundung); padding: 1.6rem 1.5rem 1.8rem; position: sticky; top: 5.5rem; }
.cv__foto { width: 9rem; height: 9rem; object-fit: cover; border-radius: 18px; display: block; margin-bottom: 1.1rem; }
.cv__name { font-size: 1.55rem; line-height: 1.15; margin: 0 0 0.35rem; letter-spacing: -0.01em; }
.cv__rolle { margin: 0 0 1.1rem; color: var(--tusche-hell); font-size: 0.92rem; line-height: 1.4; }
.cv__pdf { width: 100%; justify-content: center; box-sizing: border-box; margin-bottom: 0.4rem; }
.cv__titel { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stempel); margin: 1.6rem 0 0.7rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--linie); }
.cv__haupt .cv__titel { margin-top: 0; font-size: 0.8rem; }
.cv__haupt section + section { margin-top: 2.4rem; }
.cv__kontakt, .cv__liste { list-style: none; margin: 0; padding: 0; }
.cv__kontakt li { margin-bottom: 0.55rem; }
.cv__label { display: block; font-size: 0.72rem; color: var(--tusche-hell); }
.cv__kontakt a { color: var(--tusche); text-decoration: none; overflow-wrap: anywhere; font-size: 0.92rem; }
.cv__kontakt a:hover { color: var(--stempel); }
.cv__unter { font-size: 0.72rem; color: var(--tusche-hell); font-weight: 500; margin: 0.6rem 0 0.25rem; }
.cv__liste li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.22rem 0; border-bottom: 1px dashed var(--wand-tief); font-size: 0.93rem; }
.cv__liste li:last-child { border-bottom: 0; }
.cv__stufe { color: var(--tusche-hell); white-space: nowrap; }
.cv__marken { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.cv__marken li { background: var(--stempel-hell); color: var(--stempel-tief); border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.82rem; }
.cv__strahl { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--wand-tief); }
.cv__eintrag { position: relative; display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.2rem 1.2rem; padding: 0 0 1.5rem; }
.cv__eintrag::before { content: ""; position: absolute; left: calc(-1.1rem - 6px); top: 0.35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--stempel); box-shadow: 0 0 0 3px var(--wand); }
.cv__eintrag:last-child { padding-bottom: 0.3rem; }
.cv__zeit { color: var(--tusche-hell); font-size: 0.88rem; font-variant-numeric: tabular-nums; padding-top: 0.15rem; }
.cv__eintrag h3 { font-size: 1.05rem; font-weight: 650; margin: 0 0 0.15rem; }
.cv__eintrag p { margin: 0; color: var(--tusche-hell); }
.cv__zusatz { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.cv__zusatz li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; font-size: 0.92rem; padding: 0.2rem 0; }
.cv__zusatz .cv__zeit { font-size: 0.82rem; }

/* Listen mit Einträgen (Tools: Projekte, Werkzeuge) */

.register__liste { list-style: none; margin: 0; padding: 0; }
.register__eintrag { border-top: 1px solid var(--linie); }
.register__eintrag:last-child { border-bottom: 1px solid var(--linie); }
.register__link {
  display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1.5rem; align-items: baseline;
  padding: 1.1rem 0.2rem; color: var(--tusche); border-radius: var(--rundung-klein);
}
.register__link:hover { text-decoration: none; color: var(--tusche); }
.register__link:hover .register__serie { color: var(--stempel); }
.register__serie { font-size: 1.15rem; font-weight: 600; }
.register__zahl { color: var(--tusche-hell); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.register__text { grid-column: 1 / -1; color: var(--tusche-hell); font-size: 0.95rem; margin: 0; }

/* --- Fuß ------------------------------------------------------------------- */

.fuss {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  padding: 1.6rem 0 2rem; margin-top: 2rem;
  border-top: 1px solid var(--linie);
  color: var(--tusche-hell); font-size: 0.9rem;
}
.fuss a { color: var(--tusche-hell); }
.fuss a:hover { color: var(--tusche); }

/* --- Schmale Bildschirme --------------------------------------------------- */

@media (max-width: 40rem) {
  .kopf__weg { padding: 0.35rem 0.65rem; font-size: 0.9rem; }
  .cv { grid-template-columns: 1fr; gap: 1.8rem; }
  .cv__seite { position: static; }
  .cv__eintrag, .cv__zusatz li { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* --- Druck ------------------------------------------------------------------ */

@media print {
  :root { --wand: #fff; }
  .kopf, .fuss, .zum-inhalt, .cv__pdf { display: none; }
  .cv { grid-template-columns: 15rem 1fr; gap: 1.5rem; padding: 0; }
  .cv__seite { position: static; border: 0; padding: 0; }
  a { color: inherit; }
}
