/* Homepage ("Visitenkarte") — builds on the tokens in /styles.css. */

.home {
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  --ok: #15803d;
  --surface-strong: #efe8dc;
  --container: 1080px;
}

.home main:focus { outline: none; }

/* ---------- Header additions ---------- */
.nav-cta {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Shared section scaffolding ---------- */
.h-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  scroll-margin-top: calc(var(--header-height) + 8px);
}

.h-section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.h-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); max-width: 46rem; }

.h-kicker {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.home h2 {
  font-size: clamp(1.65rem, 1.6vw + 1.1rem, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

.h-intro { margin: 0.9rem 0 0; color: var(--muted); max-width: 62ch; }

.h-textlink {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.h-textlink:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.h-hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.h-hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 860px) {
  .h-hero-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}

.h-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.h-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.15);
}

.h-name {
  margin: 0;
  font-size: clamp(2.8rem, 6vw + 0.8rem, 5.2rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.h-role {
  margin: 1rem 0 0;
  font-size: clamp(1.15rem, 0.8vw + 0.95rem, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.h-role-stack {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.h-lead {
  margin: 1.4rem 0 0;
  max-width: 58ch;
  font-size: 1.08rem;
  color: #334155;
}

.h-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  margin-top: 1.8rem;
}
.h-actions .h-textlink { margin-left: 0.35rem; }

.h-portrait { margin: 0; justify-self: center; max-width: 340px; width: 100%; }

.h-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 24px 48px -24px rgba(15, 23, 42, 0.35);
}

.h-portrait figcaption {
  margin-top: 1rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

@media (max-width: 859px) {
  .h-portrait { order: -1; max-width: 168px; justify-self: start; }
  .h-portrait img { border-radius: 22px; }
  .h-portrait figcaption { display: none; }
}

/* Facts strip */
.h-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  border-top: 1px solid var(--border);
}

.h-facts > div { padding: 1.25rem 1rem 0.25rem 0; }
.h-facts > div + div { padding-left: 1rem; }
.h-facts > div:nth-child(3) { padding-left: 0; }

@media (max-width: 719px) {
  .h-facts > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .h-facts > div:nth-child(even) { border-left: 1px solid var(--border); }
}

@media (min-width: 720px) {
  .h-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .h-facts > div:nth-child(3) { padding-left: 1.25rem; }
  .h-facts > div + div { border-left: 1px solid var(--border); padding-left: 1.25rem; }
}

.h-facts dt {
  font-size: clamp(1.7rem, 1.5vw + 1.2rem, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.h-facts dd { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

/* ---------- Strengths ---------- */
.h-strengths {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 720px) { .h-strengths { grid-template-columns: repeat(2, 1fr); } }

.h-strength { background: var(--bg); padding: clamp(1.4rem, 2.5vw, 2rem); }

.h-num {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.h-strength h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.h-strength p { margin: 0; color: var(--muted); }

/* ---------- Projects ---------- */
.h-projects { display: grid; gap: 1rem; }

@media (min-width: 720px) { .h-projects { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .h-projects { grid-template-columns: repeat(3, 1fr); } }

.h-project {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .h-project:hover { border-color: #c9bfae; transform: translateY(-2px); }
}

.h-meta {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.h-project h3 { font-size: 1.08rem; line-height: 1.3; margin-bottom: 0.75rem; text-wrap: balance; }

.h-outcome {
  align-self: flex-start;
  margin: 0 0 0.9rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.9rem;
  font-weight: 650;
}

.h-project > p[lang] { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.1rem; }

.h-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.h-tags li {
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #334155;
  background: var(--surface);
}

.h-more { margin: 1.75rem 0 0; }

/* ---------- Leadership ---------- */
@media (min-width: 900px) {
  .h-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
  .h-split .h-head { position: sticky; top: calc(var(--header-height) + 2rem); margin-bottom: 0; }
}

.h-evidence { margin: 0; padding: 0; list-style: none; counter-reset: ev; }

.h-evidence li {
  counter-increment: ev;
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem 0 1.15rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.h-evidence li:last-child { border-bottom: 1px solid var(--border); }

.h-evidence li::before {
  content: counter(ev, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.h-evidence strong { color: var(--text); font-size: 1.02rem; }

/* ---------- Timeline ---------- */
.h-timeline { margin: 0; padding: 0; list-style: none; position: relative; }

.h-timeline li {
  position: relative;
  display: grid;
  gap: 0.25rem 2rem;
  padding: 0 0 1.75rem 1.75rem;
}

.h-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--surface);
}

.h-timeline li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 1.35rem;
  bottom: 0.2rem;
  width: 1px;
  background: var(--border);
}

.h-timeline li:last-child { padding-bottom: 0; }
.h-timeline li:last-child::after { display: none; }
.h-timeline li.is-current::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.h-timeline li.is-edu::before { border-color: var(--muted); border-radius: 3px; }

@media (min-width: 720px) {
  .h-timeline li { grid-template-columns: 10.5rem 1fr; padding-left: 2.25rem; }
}

.h-when {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

.h-timeline h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.h-org { font-weight: 500; color: var(--muted); }
.h-timeline p[lang] { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 64ch; }

/* ---------- Tech stack ---------- */
.h-stack { display: grid; border-top: 1px solid var(--border); }

.h-stack-row {
  display: grid;
  gap: 0.6rem 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 720px) { .h-stack-row { grid-template-columns: 12rem 1fr; align-items: baseline; } }

.h-stack-row h3 { margin: 0; font-size: 0.95rem; }
.h-stack-row ul { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }

.h-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.86rem;
  line-height: 1.2;
}

.h-chip.is-core {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.h-legend { font-size: 0.75rem; padding: 0.15rem 0.55rem; margin-right: 0.25rem; vertical-align: 0.1em; }

.h-certs {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.h-certs h3 { font-size: 0.95rem; margin-bottom: 1rem; }

.h-certs ul {
  display: grid;
  gap: 0.75rem 1.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) { .h-certs ul { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }

.h-certs li { display: grid; gap: 0.1rem; font-size: 0.95rem; }
.h-certs li > span { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }

/* ---------- Contact ---------- */
.h-contact {
  --c-bg: #0f172a;
  background: var(--c-bg);
  color: #e2e8f0;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  scroll-margin-top: var(--header-height);
}

.h-contact .h-kicker { color: #93c5fd; }
.h-contact h2 { color: #fff; max-width: 20ch; }
.h-contact p[lang] { margin: 1.1rem 0 0; max-width: 56ch; color: #cbd5e1; font-size: 1.05rem; }
.h-contact strong { color: #fff; }

.h-contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .h-contact-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: end; } }

.button-light { background: #fff; border-color: #fff; color: var(--c-bg); }
.button-light:hover { background: #dbeafe; border-color: #dbeafe; }
.button-ghost { background: transparent; border-color: #475569; color: #fff; }
.button-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #94a3b8; }

.h-contact a:focus-visible { outline-color: #93c5fd; }

.h-downloads h3 {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.h-downloads ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #1e293b; }
.h-downloads li { border-bottom: 1px solid #1e293b; }

.h-downloads a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.h-downloads a::after { content: "↓"; color: #93c5fd; }
.h-downloads li:last-child a::after { content: "↗"; }
.h-downloads a:hover { color: #93c5fd; }
.h-file { font-family: var(--mono); font-size: 0.78rem; color: #94a3b8; font-weight: 400; margin-left: auto; }

/* ---------- Footer & print ---------- */
.home .site-footer { border-top: 0; }

@media print {
  .site-header, .h-actions, .h-contact .h-actions, .skip-link { display: none !important; }
  .h-contact { background: none; color: inherit; }
  .h-contact h2, .h-contact strong, .h-downloads a { color: inherit; }
}
