/* ==========================================================================
   Portfolio – Wirtschaftsinformatik
   ========================================================================== */

/* Schrift lokal eingebunden (keine Verbindung zu Google, DSGVO-freundlich) */
@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --ink: #0B1A33;
  --ink-2: #44506A;
  --muted: #66728A;
  --line: #E1E7EF;
  --line-strong: #CAD3E0;
  --accent: #0B4EA2;          /* Logo-Blau */
  --active: #15388A;
  --eyebrow: #3E6BB0;
  --chip: #EAF0F8;
  --chip-hover: #DDE6F3;
  --chip-ink: #1E2D48;
  --navy: #0B1A33;
  --navy-blue: #10295E;
  --footer: #0A1C3C;

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 72, .04), 0 6px 18px rgba(16, 36, 72, .05);
  --shadow-md: 0 2px 6px rgba(16, 36, 72, .06), 0 20px 44px rgba(16, 36, 72, .11);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  position: relative;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 350;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Hintergrund-Wellen ---------- */
.bg-deco {
  position: absolute; top: 0; left: 0; right: 0; z-index: 0;
  height: clamp(760px, 100vh, 1000px);
  height: clamp(760px, 100svh, 1000px);
  pointer-events: none;
}
.bg-deco svg { width: 100%; height: 100%; }
@media (max-width: 760px) {
  .bg-deco { opacity: .7; }
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ---------- Header / Navigation ---------- */
.site-header { z-index: 30; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nowrap { white-space: nowrap; }

.nav { display: flex; align-items: center; gap: clamp(28px, 4.2vw, 64px); }
.nav > a {
  position: relative; padding: 8px 0;
  font-size: 16.5px; font-weight: 400; color: var(--ink);
  transition: color .2s ease;
}
.nav > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav > a:hover { color: var(--active); }
.nav > a:hover::after { transform: scaleX(1); }
.nav > a[aria-current="page"]::after { display: none; }
.nav > a[aria-current="page"] { color: var(--active); }
/* Linie unter dem aktiven Menüpunkt – gleitet beim Seitenwechsel zum neuen Punkt */
.nav-ind {
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: currentColor;
  view-transition-name: nav-ind;
}

/* Sprachumschalter */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px; background: var(--chip);
}
.lang-opt {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 11px 0 5px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em; line-height: 1; color: var(--muted);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
a.lang-opt:hover { color: var(--ink); background: rgba(255, 255, 255, .65); }
.lang-opt.is-active {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 36, 72, .08), 0 3px 10px rgba(16, 36, 72, .08);
}
.flag {
  position: relative; flex: none;
  width: 20px; height: 20px; border-radius: 50%; overflow: hidden;
  transition: opacity .2s ease, filter .2s ease;
}
.flag svg { display: block; width: 100%; height: 100%; }
.flag::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(15, 35, 71, .14);
}
a.lang-opt .flag { opacity: .7; filter: saturate(.7); }
a.lang-opt:hover .flag { opacity: 1; filter: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle .icon-close { display: none; }

/* ---------- Typografie-Bausteine ---------- */
.eyebrow {
  font-size: 13.5px; font-weight: 500; line-height: 1;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 18px;
}
.display {
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.08;
  overflow-wrap: break-word; hyphens: auto;
}
.h2 { font-size: clamp(30px, 3.2vw, 42px); letter-spacing: -0.02em; }
.h3 { font-size: clamp(26px, 2.4vw, 32px); }
.lead {
  margin-top: 22px; max-width: 720px;
  font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--ink-2);
}
.section-lead { margin-top: 12px; font-size: 17px; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 6px;
  font-size: 15.5px; font-weight: 450; line-height: 1; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn .icon { width: 19px; height: 19px; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #17305A; box-shadow: 0 10px 24px rgba(11, 26, 51, .18); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips li {
  padding: 5px 10px; border-radius: 999px;
  background: var(--chip); color: var(--chip-ink);
  font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: -0.01em;
}

/* ---------- Sektionen ---------- */
.section { padding: 72px 0; }
.section-tight { padding-top: 28px; }
.section-head { margin-bottom: 36px; }
.center { display: flex; justify-content: center; margin-top: 30px; }

/* ==========================================================================
   Startseite
   ========================================================================== */
/* Hero füllt die komplette Bildschirmhöhe (abzüglich Header) */
.hero {
  display: flex;
  min-height: calc(100vh - 96px);
  min-height: calc(100svh - 96px);
}
.hero-inner { display: flex; flex-direction: column; }
.hero-main { margin: auto 0; padding: 40px 0 56px; }
/* Name als große Hauptüberschrift auf der Startseite */
.hero .display { font-size: clamp(48px, 6.6vw, 92px); letter-spacing: -0.03em; line-height: 1.02; }
.hero-foot { padding-bottom: 18px; }

/* Kategorien auf der Startseite: jeder Eintrag öffnet die Projektseite gefiltert */
.focus-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.focus-row li { padding: 0 10px; }
.focus-row li + li { border-left: 1px solid var(--line); }
.focus-row a {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 10px 8px 14px; border-radius: 12px; text-align: center;
  font-size: 16.5px; font-weight: 400; color: var(--ink);
  transition: color .2s ease, background-color .2s ease;
}
.focus-row a:hover { color: var(--active); background: rgba(221, 230, 243, .5); }
.focus-row .icon { width: 34px; height: 34px; stroke-width: 1.4; transition: transform .2s ease; }
.focus-row a:hover .icon { transform: translateY(-3px); }
.filters .pill { scroll-margin-top: 24px; }

.scroll-cue {
  display: flex; width: 44px; height: 44px; margin: 22px auto 0;
  align-items: center; justify-content: center; color: var(--ink);
  border-radius: 50%;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue .icon { width: 26px; height: 26px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Karten */
/* minmax(0, …): Spalten richten sich nur nach dem Platz, nie nach der Bildgröße (sonst sprengt Safari das Raster) */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.card {
  display: flex; flex-direction: column;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-link { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-link:hover .card-media img { transform: scale(1.03); }

.card-media {
  position: relative; overflow: hidden;
  aspect-ratio: 2.15 / 1;
  border-radius: 10px;
  background: var(--chip);
}
.card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 8px 10px; }
.card-title { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.card-text { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.card-body .chips { margin-top: auto; padding-top: 16px; }

/* Ansatz */
.approach { position: relative; padding: 80px 0 120px; overflow: hidden; }
.approach-deco {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  pointer-events: none; z-index: 0;
}
.approach-deco svg { width: 100%; height: 100%; }
.approach-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center;
}
.approach-text p.body-lg {
  margin-top: 24px; max-width: 540px;
  font-size: 17px; line-height: 1.7; color: var(--ink-2);
}

.values { display: grid; gap: 30px; }
.values li { display: flex; align-items: center; gap: 30px; }
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 56px; height: 56px; border-radius: 12px;
  background: #EDF2F9; border: 1px solid #E2E9F3; color: var(--ink);
}
.icon-tile .icon { width: 28px; height: 28px; stroke-width: 1.4; }
.values li > div { padding: 4px 0 4px 30px; border-left: 1px solid var(--line-strong); }
.values h3 { font-size: 19.5px; }
.values p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }

/* ==========================================================================
   Unterseiten
   ========================================================================== */
.page-hero { padding: 48px 0 0; }

/* Projekte */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.pill {
  height: 42px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--chip); color: var(--ink);
  font-size: 15.5px; font-weight: 400; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.pill:hover { background: var(--chip-hover); }
.pill.is-active { background: var(--navy-blue); color: #fff; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project { scroll-margin-top: 24px; }
.project[hidden] { display: none; }
.project.is-entering { animation: fade-up .4s ease both; }
.project .card-media { aspect-ratio: 2.4 / 1; }
.project-wide { grid-column: span 2; }
.project-wide .card-media { aspect-ratio: 3.15 / 1; }
.project-wide .card-title { font-size: clamp(22px, 2.2vw, 30px); }
.project-wide .card-text { font-size: 15.5px; max-width: 640px; }
.project:not(.project-wide) .card-title { font-size: 20px; }
.project .card-text { font-size: 14.5px; }
/* Karte über die volle Breite (z. B. Zeitleiste der Website) */
.project-full { grid-column: 1 / -1; }
.project-full .card-media { aspect-ratio: 10 / 3; }
.project-full .card-text { max-width: 760px; }
/* Karte neben einer breiten Karte: Bild füllt die Höhe aus */
.project-wide + .project:not(.project-wide) .card-media,
.project:not(.project-wide):has(+ .project-wide) .card-media { flex: 1 0 auto; }
.project-wide + .project:not(.project-wide) .card-body,
.project:not(.project-wide):has(+ .project-wide) .card-body { flex: 0 0 auto; }

.card-meta {
  margin-bottom: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--eyebrow);
}
.card-actions {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card-actions a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 450; color: var(--ink);
  transition: color .2s ease;
}
.card-actions a:hover { color: var(--accent); }
.card-actions .icon { width: 17px; height: 17px; stroke-width: 1.7; }
.card-actions small { font-size: 12px; color: var(--muted); }

.badge {
  position: absolute; top: 18px; left: 18px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: 14px; font-weight: 400; line-height: 1;
  box-shadow: 0 4px 14px rgba(11, 26, 51, .12);
}
.badge .icon { width: 16px; height: 16px; stroke-width: 1.8; }

.filter-empty { margin-top: 24px; color: var(--muted); }

@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Über mich */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 64px; align-items: start;
}
.about-intro .lead { max-width: 780px; }
.focus-inline { display: flex; flex-wrap: wrap; margin-top: 52px; }
.focus-inline li {
  display: flex; flex-direction: column; gap: 14px;
  padding: 6px 52px 14px;
  font-size: 17px; font-weight: 400; color: var(--ink);
}
.focus-inline li:first-child { padding-left: 0; }
.focus-inline li + li { border-left: 1px solid var(--line-strong); }
.focus-inline .icon { width: 36px; height: 36px; stroke-width: 1.35; }

.portrait {
  margin: 4px 0 0;
  border-radius: 22px; overflow: hidden;
  aspect-ratio: 1.03 / 1;
  background: var(--chip);
  box-shadow: 0 24px 50px rgba(16, 36, 72, .16);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.skills { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 18px; }
.skills li {
  padding: 9px 21px; border-radius: 12px;
  background: var(--chip); color: var(--ink);
  font-size: 16px; font-weight: 400;
}

.divider { margin: 48px 0 40px; border: 0; border-top: 1px solid var(--line-strong); }

.about-site { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: end; }
.about-site p { margin-top: 16px; max-width: 760px; font-size: 16.5px; line-height: 1.7; }

.timeline { margin-top: 30px; }
.timeline li {
  position: relative;
  display: grid; grid-template-columns: 76px 214px minmax(0, 1fr);
  padding-bottom: 28px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before {
  content: ""; position: absolute; left: 24px; top: 20px; bottom: -6px;
  width: 1px; background: var(--line-strong);
}
.tl-dot {
  position: absolute; left: 19px; top: 9px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #A3AEBF;
}
.is-current .tl-dot { left: 17.5px; top: 7.5px; width: 14px; height: 14px; background: var(--navy-blue); }
.tl-date { grid-column: 2; font-size: 17px; font-weight: 400; color: var(--ink); line-height: 1.6; }
.tl-body { grid-column: 3; }
.tl-body h3 { font-size: 19.5px; line-height: 1.4; }
.tl-body p { margin-top: 3px; font-size: 15.5px; color: var(--muted); }

/* Kontakt */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px; align-items: start;
}
.contact-list { display: grid; gap: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
a.contact-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.contact-item .label { display: block; font-size: 13px; color: var(--muted); }
.contact-item .value { display: block; font-size: 16.5px; font-weight: 450; color: var(--ink); overflow-wrap: anywhere; }

.form-card {
  padding: clamp(22px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.form-card h3 { font-size: 22px; margin-bottom: 22px; }
#kontakt { scroll-margin-top: 24px; }
.contact-section .contact-grid { margin-top: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  background: #FBFCFE; border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 15.5px; font-weight: 350; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 78, 162, .14);
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-note { max-width: 340px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Rechtliches */
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; font-size: 22px; }
.prose h3 { margin-top: 24px; font-size: 17px; }
.prose p, .prose li { margin-top: 10px; font-size: 16px; line-height: 1.7; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   404-Seite
   ========================================================================== */
.nf {
  display: flex;
  min-height: calc(100vh - 96px);
  min-height: calc(100svh - 96px);
}
.nf-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 48px;
  padding-top: 40px; padding-bottom: 72px;
}
.nf-text { max-width: 720px; }
.nf-code {
  font-size: clamp(140px, 19vw, 280px); font-weight: 600;
  line-height: .9; letter-spacing: -0.06em; padding-right: .06em;
  background: linear-gradient(150deg, var(--accent) 15%, #A9C0E3 88%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  user-select: none;
}
.nf-hint { margin-top: 26px; font-size: 15.5px; color: var(--muted); }
.nf-hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.nf-hint a:hover { color: var(--active); }
@media (max-width: 900px) {
  .nf-inner { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 10px; }
  .nf-code { order: -1; font-size: clamp(96px, 27vw, 170px); }
}
@media (max-width: 760px) {
  .nf { min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); }
  .nf-inner { padding-top: 16px; padding-bottom: 48px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  overflow: hidden;
  background: var(--footer); color: #C9D4E6;
  padding: 64px 0 30px;
}
.footer-deco { position: absolute; inset: 0; pointer-events: none; }
.footer-deco svg { width: 100%; height: 100%; }
.site-footer .container { position: relative; z-index: 1; }

.footer-top { display: grid; grid-template-columns: 270px 270px 1fr; }
.footer-brand { padding-right: 40px; border-right: 1px solid rgba(255, 255, 255, .14); }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin-top: 18px; font-size: 14.5px; line-height: 1.55; color: #fff; }
.footer-col { padding-left: 60px; }
.footer-col + .footer-col { padding-left: 0; }
.footer-title {
  margin-bottom: 16px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: #8FAAD8;
}
.footer-col li + li { margin-top: 6px; }
.footer-col a { font-size: 14.5px; color: #fff; transition: color .2s ease; }
.footer-col a:hover { color: #A9C8FF; }
.footer-contact li + li { margin-top: 12px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 16px; }
.footer-contact .icon { width: 21px; height: 21px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13.5px; color: #fff;
}
.footer-bottom nav { display: flex; gap: 36px; }
.footer-bottom a:hover { color: #A9C8FF; }

/* ==========================================================================
   Scroll-Animation (nur mit JS aktiv)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal].no-anim { transition: none; }

/* ==========================================================================
   Seitenübergänge
   ========================================================================== */
@view-transition { navigation: auto; }

/* Nur der Inhalt wechselt; Hintergrund, Welle und Footer bleiben stehen, der Header blendet sanft über */
.site-header { view-transition-name: site-header; }
main { view-transition-name: page-main; }

::view-transition-old(root),
::view-transition-new(root) { animation: none; }
::view-transition-group(page-main) { animation-duration: .4s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(page-main) { animation: vt-out .15s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(page-main) { animation: vt-in .42s cubic-bezier(.2, .8, .2, 1) .13s both; }
::view-transition-group(site-header) { animation-duration: .3s; }
::view-transition-group(nav-ind) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Fallback ohne View Transitions (erster Aufruf, ältere Browser) */
.page-in main { animation: page-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .approach-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .focus-inline li { padding: 6px 32px 14px; }
}

@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .portrait { max-width: 360px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .about-site { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .footer-brand { grid-column: 1 / -1; border-right: 0; padding-right: 0; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .footer-col { padding-left: 0; }
}

@media (max-width: 760px) {
  .header-inner { height: 76px; }
  .brand img { height: 34px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 76px; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav > a { padding: 14px 14px; border-radius: 8px; font-size: 17px; }
  .nav > a::after { display: none; }
  .nav > a[aria-current="page"] { background: var(--chip); }
  .nav-ind { display: none; }
  .nav .lang-switch { align-self: flex-start; margin: 10px 10px 6px; }
  .lang-opt { height: 34px; font-size: 14px; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .nav-toggle .icon-menu { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }

  .page-hero { padding-top: 28px; }
  .hero { min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); }
  .hero-main { padding: 24px 0 40px; }
  .br-desktop { display: none; }
  .btn-row { gap: 12px; }
  .focus-row li { padding: 0 4px; }
  .focus-row a { padding: 8px 4px 12px; font-size: 14px; gap: 10px; }
  .focus-row .icon { width: 30px; height: 30px; }
  .section { padding: 56px 0; }
  .section-tight { padding-top: 24px; }
  .approach { padding: 72px 0 80px; }
  .values li { gap: 20px; }
  .values li > div { padding-left: 20px; }

  .focus-row li span { hyphens: auto; overflow-wrap: anywhere; }
  /* Spalten richten sich nach dem Inhalt, damit Begriffe wie „Healthcare-IT“ nicht zerrissen werden */
  .focus-inline { display: grid; grid-template-columns: repeat(3, auto); margin-top: 36px; }
  .focus-inline li:last-child { padding-right: 0; }
  .focus-inline li { padding: 4px 14px 10px; font-size: 14px; line-height: 1.4; gap: 10px; }
  .focus-inline .icon { width: 30px; height: 30px; }

  .timeline li { grid-template-columns: 44px minmax(0, 1fr); padding-bottom: 24px; }
  .timeline li:not(:last-child)::before { left: 14px; }
  .tl-dot { left: 9px; }
  .is-current .tl-dot { left: 7.5px; }
  .tl-date { grid-column: 2; font-size: 15px; color: var(--muted); }
  .tl-body { grid-column: 2; }

  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .card-grid, .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-wide { grid-column: auto; }
  .project-wide .card-media { aspect-ratio: 2 / 1; }
  .badge { top: 10px; left: 10px; gap: 6px; padding: 5px 11px; font-size: 12.5px; }
  .badge .icon { width: 14px; height: 14px; }
  .btn-row .btn { flex: 1 1 auto; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .focus-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-row li + li { border-left: 0; }
  .focus-row li:nth-child(even) { border-left: 1px solid var(--line); }
  .focus-row li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .focus-row a { flex-direction: row; justify-content: center; gap: 10px; padding: 14px 4px; }
  .focus-row .icon { width: 26px; height: 26px; }
}

@media (max-width: 480px) {
  .display { font-size: 7.1vw; }
  .hero .display { font-size: 12.5vw; }
  .hero .eyebrow { letter-spacing: .18em; line-height: 1.5; }
  .eyebrow-more { display: none; }
}

@media (max-width: 420px) {
  .focus-row a { font-size: 13px; }
  .focus-inline li { padding: 4px 10px 10px; font-size: 13px; }
  .focus-inline li:last-child { padding-right: 0; }
  .pill { height: 38px; padding: 0 16px; font-size: 14.5px; }
}
