/* szczepan.info – Grundgestaltung */

:root {
  --akzent: #5b8def;
  --akzent-dunkel: #3f6ed1;
  --hintergrund: #0f1220;
  --flaeche: #181c2f;
  --text: #e8ecf6;
  --gedaempft: #9aa4bf;
  --rand: rgba(255, 255, 255, .1);
  --radius: 14px;
  --breite: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--hintergrund);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--akzent); }
a:hover { color: var(--akzent-dunkel); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
.klein { font-size: .9rem; color: var(--gedaempft); }
.fliesstext { max-width: 68ch; }

main { display: block; }

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

.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--hintergrund) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rand);
}

.marke { font-weight: 700; text-decoration: none; color: var(--text); letter-spacing: -.01em; }

.nav { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--gedaempft); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.nav .sprachwechsel {
  border: 1px solid var(--rand);
  border-radius: 999px;
  padding: .1rem .7rem;
  color: var(--text);
}

.nav-schalter {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--rand);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.2rem;
  padding: .15rem .55rem;
  cursor: pointer;
}

/* ---------- Abschnitte ---------- */

.block, .hero, .kennzahlen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
}

.block + .block { padding-top: 0; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-rolle {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--akzent);
  margin-bottom: .6rem;
}

.hero-absatz { max-width: 55ch; color: var(--gedaempft); font-size: 1.08rem; }

.hero-bild img {
  border-radius: var(--radius);
  border: 1px solid var(--rand);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4 / 5;
}

.knopfreihe, .kontaktreihe { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.knopf {
  display: inline-block;
  background: var(--akzent);
  color: #fff;
  border: 1px solid var(--akzent);
  border-radius: 999px;
  padding: .6rem 1.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  font-family: inherit;
}
.knopf:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); color: #fff; }

.knopf-leer { background: transparent; color: var(--text); border-color: var(--rand); }
.knopf-leer:hover { background: rgba(255, 255, 255, .07); color: var(--text); border-color: var(--rand); }

/* ---------- Kennzahlen ---------- */

.kennzahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding-top: 0;
}
.kennzahl {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
}
.kennzahl-wert { display: block; font-size: 1.9rem; font-weight: 700; color: var(--akzent); }
.kennzahl-label { display: block; font-size: .88rem; color: var(--gedaempft); }

/* ---------- Karten / Leistungen ---------- */

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.karte {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.karte-icon { font-size: 1.7rem; margin-bottom: .4rem; }
.karte p:last-child { margin-bottom: 0; }

/* ---------- Faehigkeiten ---------- */

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem 1.6rem; }
.skill-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .95rem; }
.skill-balken { height: 7px; background: rgba(255, 255, 255, .1); border-radius: 99px; overflow: hidden; margin-top: .3rem; }
.skill-balken i { display: block; height: 100%; background: var(--akzent); border-radius: 99px; }

/* ---------- Projekte ---------- */

.projekte { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.2rem; }
.projekt {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}
.projekt-kopf { display: flex; gap: .9rem; align-items: center; margin-bottom: .7rem; }
.projekt-logo { width: 54px; height: 54px; object-fit: contain; border-radius: 10px; background: #fff; padding: 5px; flex: 0 0 auto; }
.projekt-kopf h3 { margin: 0; }
.projekt-text { flex: 1; }
.projekt-text p { margin-bottom: .6em; }
.projekt-bilder { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .8rem; }
.projekt-bilder img { border-radius: 8px; border: 1px solid var(--rand); aspect-ratio: 4 / 3; object-fit: cover; }
.verweis { font-size: .9rem; word-break: break-all; }

/* ---------- Kontakt ---------- */

.block-kontakt {
  background: var(--flaeche);
  border-top: 1px solid var(--rand);
  border-bottom: 1px solid var(--rand);
  max-width: none;
}
.block-kontakt > * { max-width: var(--breite); margin-left: auto; margin-right: auto; }

/* ---------- Fuss ---------- */

.fuss { border-top: 1px solid var(--rand); padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 1.5rem; }
.fuss-inhalt {
  max-width: var(--breite);
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: .93rem;
}
.fuss-impressum { max-width: 60ch; }
.fuss summary { cursor: pointer; color: var(--gedaempft); }
.fuss-zeile { max-width: var(--breite); margin: 1.5rem auto 0; font-size: .85rem; color: var(--gedaempft); }

/* ---------- Lebenslauf ---------- */

.seite-cv main { max-width: 900px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 3rem; }
.cv-werkzeuge { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.cv { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: clamp(1.2rem, 4vw, 2.5rem); }
.cv-kopf { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--rand); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.cv-foto { width: 120px; height: 150px; object-fit: cover; border-radius: 10px; }
.cv-kopf h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .2em; }
.cv-rolle { color: var(--akzent); margin-bottom: .5em; }
.cv-kontakt { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--gedaempft); }

.cv-block { margin-bottom: 2rem; }
.cv-block h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; color: var(--akzent); border-bottom: 1px solid var(--rand); padding-bottom: .4rem; }
.cv-eintrag { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.cv-eintrag:last-child { border-bottom: none; }
.cv-zeit { color: var(--gedaempft); font-size: .88rem; font-variant-numeric: tabular-nums; }
.cv-inhalt h3 { margin-bottom: .15em; font-size: 1.05rem; }
.cv-firma { color: var(--gedaempft); font-size: .92rem; margin-bottom: .4em; }
.cv-liste { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.cv-liste li { background: rgba(255, 255, 255, .04); border-radius: 10px; padding: .7rem .9rem; }

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

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-bild { order: -1; max-width: 280px; }
  .cv-eintrag { grid-template-columns: 1fr; gap: .2rem; }
  .nav-schalter { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: .2rem;
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
    background: var(--hintergrund);
    border-bottom: 1px solid var(--rand);
  }
  .kopf.offen .nav { display: flex; }
}

@media print {
  :root { --hintergrund: #fff; --flaeche: #fff; --text: #111; --gedaempft: #555; --rand: #ccc; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .kopf, .fuss, .cv-werkzeuge, .nav-schalter { display: none !important; }
  .seite-cv main { padding: 0; max-width: none; }
  .cv { border: none; padding: 0; }
  .cv-block { break-inside: avoid; }
  .cv-eintrag { break-inside: avoid; }
  a { color: #111; text-decoration: none; }
}
