/* =========================================================
   Lionidasgames — Studio Website
   Design-System: dunkles Theme, viel Weißraum, klare Typografie
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --bg:          #0e0e12;
  --bg-elev:     #16161d;
  --panel:       #16161d;
  --text:        #ECECF1;
  --text-dim:    #9a9aa8;
  --accent:      #f3c34a;   /* warmes Gold/Amber – Brand */
  --accent-2:    #a78bfa;   /* dezentes Violett (optional) */
  --border:      rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);
  --shadow:      0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.35);

  --radius:      14px;
  --radius-lg:   16px;
  --radius-sm:   12px;

  --maxw:        1120px;
  --gutter:      clamp(20px, 5vw, 40px);

  --font-head:   "Space Grotesk", system-ui, sans-serif;
  --font-body:   "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h:       68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: rgba(243, 195, 74, 0.28);
  color: #fff;
}

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

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(64px, 10vw, 112px) var(--gutter);
}

.section-alt {
  max-width: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
  border-block: 1px solid var(--border-soft);
}
.section-alt > * {
  max-width: var(--maxw);
  margin-inline: auto;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(36px, 6vw, 56px);
}
.section-head.left { text-align: left; }

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}
.section-head p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.muted { color: var(--text-dim); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease,
              backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 14, 18, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-bottom-color: var(--border);
}
/* Scrim, damit die Nav über dem hellen Hero-Video lesbar bleibt */
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -40% 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.65), transparent);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav.scrolled::before { opacity: 0; }

.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
}
.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.brand-name {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
}
.brand-name.small { font-size: 0.85rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  font-weight: 600 !important;
  box-shadow: 0 6px 18px rgba(243, 195, 74, 0.22);
}
.nav-cta:hover {
  background: #f7cf63 !important;
  color: var(--bg) !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 90vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(100px, 14vh, 170px) var(--gutter) clamp(56px, 9vh, 110px);
  text-align: center;
  isolation: isolate;
}

/* Vollflächiges Hintergrund-Video (Showreel) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #07070a;
}
.hero-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;        /* 16:9 anhand Breite */
  min-width: 177.78vh;    /* 16:9 anhand Höhe -> garantiert Abdeckung */
  min-height: 100vh;
  border: 0;
  pointer-events: none;   /* Hintergrund nicht klickbar */
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(75% 65% at 50% 34%, rgba(14, 14, 18, 0.28), rgba(14, 14, 18, 0.74)),
    linear-gradient(180deg, rgba(14, 14, 18, 0.5) 0%, rgba(14, 14, 18, 0.5) 45%, var(--bg) 100%);
}

.hero-glow {
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 620px;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 50% 18%, rgba(243, 195, 74, 0.16), transparent 70%),
    radial-gradient(40% 50% at 72% 8%, rgba(167, 139, 250, 0.12), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-inner {
  max-width: 760px;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(243, 195, 74, 0.06);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700;
}
.accent {
  color: var(--accent);
  background: linear-gradient(180deg, #ffd86b, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  margin: 22px auto 0;
  max-width: 600px;
  color: var(--text-dim);
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 10px 26px rgba(243, 195, 74, 0.24);
}
.btn-primary:hover {
  background: #f7cf63;
  box-shadow: 0 14px 32px rgba(243, 195, 74, 0.32);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* ---------- Hero Video (16:9) ---------- */
.hero-video {
  margin-top: clamp(40px, 7vw, 64px);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Cards Grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease,
              box-shadow 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
}

.card-top { display: flex; }
.card h3 { font-size: 1.4rem; }
.card p { color: var(--text-dim); }

.card-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.role {
  color: var(--accent) !important;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Team-Karten mit Foto */
.team-card { text-align: center; }
#team .cards { align-items: start; }   /* Karten an Inhalt anpassen, nicht strecken */
.team-photo {
  width: 100%;
  max-width: 220px;
  height: 330px;                       /* feste 2:3-Box -> kein Letterboxing */
  margin-inline: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}
.team-photo--placeholder {
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-dim);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 12px, transparent 12px 24px),
    var(--panel);
  border-style: dashed;
}

.link {
  color: var(--accent);
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.link:hover { opacity: 0.8; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.tag-beta {
  color: var(--accent);
  background: rgba(243, 195, 74, 0.08);
  border-color: rgba(243, 195, 74, 0.25);
}
.tag-live {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.25);
}

/* ---------- Studio split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}
.split-text .section-head { margin-bottom: 24px; }
.split-text p + p { margin-top: 16px; }
.split-text p { color: var(--text-dim); }
.split-text strong { color: var(--text); font-weight: 600; }

.split-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
  min-width: 48px;
}
.stat-label {
  color: var(--text-dim);
  font-size: 0.98rem;
}

/* ---------- CV / Lebenslauf ---------- */
.cv {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}
.cv-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cv-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding-bottom: 28px;
}
.cv-item:last-child { padding-bottom: 0; }
.cv-when {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  padding-top: 2px;
}
.cv-content {
  position: relative;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.cv-content::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(243, 195, 74, 0.14);
}
.cv-content h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cv-role {
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 4px;
}
.cv-content p:last-child { color: var(--text-dim); margin-top: 8px; }
.cv-intro { color: var(--text-dim); margin-bottom: 24px; max-width: 60ch; }
.cv-fullbtn { width: 100%; }

.cv-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.cv-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.cv-card h3 { font-size: 1rem; margin-bottom: 12px; }
.cv-card p { color: var(--text-dim); }
.skill-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags li {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}

@media (max-width: 820px) {
  .cv { grid-template-columns: 1fr; }
  .cv-aside { position: static; }
}

/* ---------- Kontakt ---------- */
.contact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 720px;
  margin-inline: auto;
}
.contact-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 195, 74, 0.3);
  box-shadow: var(--shadow-soft);
}
.contact-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact-value {
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, 0.2);
}
.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 30px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer .brand-name {
  letter-spacing: 0.14em;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 10px; font-size: 0.9rem; }
  .brand-name { font-size: 0.85rem; letter-spacing: 0.1em; }
}

@media (max-width: 520px) {
  .nav-inner { gap: 10px; }
  .nav-links a { padding: 7px 7px; font-size: 0.82rem; }
  .nav-cta { padding: 7px 12px !important; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 380px) {
  /* Wort-Marke ausblenden, Logo bleibt — schafft Platz für die Nav-Links */
  .brand-name:not(.small) { display: none; }
}

/* =========================================================
   Projekt-Detailseiten (/projekte/*.html)
   ========================================================= */
.proj-hero {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 8vw, 80px) var(--gutter) clamp(28px, 5vw, 48px);
  isolation: isolate;
}
.proj-hero .hero-glow { height: 480px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 26px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.proj-logo {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.back-link:hover { color: var(--text); gap: 11px; }

.proj-hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  margin-top: 16px;
  max-width: 16ch;
}
.proj-hero .lead {
  margin-left: 0;
  margin-right: 0;
  max-width: 60ch;
}

.proj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
}
.meta-chip strong { color: var(--text); font-weight: 600; }

/* Body: Inhalt + Sidebar */
.proj-body {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(32px, 6vw, 56px) var(--gutter) clamp(64px, 10vw, 100px);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}
.proj-main h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-top: 40px;
}
.proj-main h2:first-child { margin-top: 0; }
.proj-main p { color: var(--text-dim); margin-top: 14px; }
.proj-main p strong { color: var(--text); font-weight: 600; }

.feature-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-dim);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(243, 195, 74, 0.14);
}
.feature-list strong { color: var(--text); font-weight: 600; }

/* Sidebar */
.proj-aside {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fact-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.fact-card h3 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 0.95rem;
}
.fact-row:first-of-type { border-top: 0; }
.fact-row .k { color: var(--text-dim); }
.fact-row .v { color: var(--text); font-weight: 500; text-align: right; }
.fact-card .btn { width: 100%; margin-top: 18px; }

/* Screenshot-Galerie (Platzhalter bis echte Assets da sind) */
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.shot {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px),
    var(--panel);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}
.shot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.shot-img:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 195, 74, 0.3);
}

@media (max-width: 820px) {
  .proj-body { grid-template-columns: 1fr; }
  .proj-aside { position: static; }
}

/* Instagram-Reels-Embeds */
.proj-reels { padding-top: 0; }
.reels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
  justify-items: center;
}
.reels .instagram-media {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 !important;
}

/* =========================================================
   Roadmap (aus roadmap.json gerendert)
   ========================================================= */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.roadmap-col {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.roadmap-col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.roadmap-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
  flex: none;
}
.col-wip  .roadmap-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(243, 195, 74, 0.14); }
.col-done .roadmap-dot { background: #4ade80;       box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.14); }

.roadmap-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.roadmap-item h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  margin: 6px 0 0;
}
.roadmap-item p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 6px;
}
.roadmap-tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.col-done .roadmap-tag { color: #4ade80; }
.roadmap-none  { font-size: 0.9rem; opacity: 0.55; }
.roadmap-empty { text-align: center; grid-column: 1 / -1; }

@media (max-width: 760px) {
  .roadmap { grid-template-columns: 1fr; }
}

/* =========================================================
   Social-Links (Kontakt)
   ========================================================= */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 500;
  transition: transform 0.15s ease, border-color 0.2s ease, color 0.2s ease;
}
.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 195, 74, 0.3);
  color: var(--accent);
}
.social-link svg { flex: none; }

/* =========================================================
   Lebenslauf-Seite (lebenslauf.html)
   ========================================================= */

/* Scroll-Reveal (nur aktiv, wenn JS läuft -> ohne JS bleibt alles sichtbar) */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in-view { opacity: 1; transform: none; }

.r-hero-sec { max-width: var(--maxw); margin-inline: auto; }
.r-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  margin-top: 10px;
}
.r-portrait {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1024 / 1536;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.r-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  background: rgba(243, 195, 74, 0.06);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}
.r-name { font-size: clamp(2rem, 5vw, 3rem); }
.r-title {
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.15rem;
  margin-top: 8px;
}
.r-profile { color: var(--text-dim); margin-top: 16px; max-width: 62ch; }
.r-contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.r-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
a.r-contact:hover { border-color: rgba(243, 195, 74, 0.3); color: var(--accent); transform: translateY(-2px); }
.r-contact--static { cursor: default; }

/* Timeline */
.r-timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.r-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(243, 195, 74, 0.12));
}
.r-item { position: relative; padding-bottom: 26px; }
.r-item:last-child { padding-bottom: 0; }
.r-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(243, 195, 74, 0.12);
}
.r-when { font-family: var(--font-head); font-weight: 600; color: var(--accent); font-size: 0.92rem; margin-bottom: 8px; }
.r-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.r-card h3 { font-size: 1.25rem; }
.r-org { color: var(--text-dim); font-family: var(--font-head); font-size: 0.92rem; margin-top: 4px; }
.r-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.r-list li { position: relative; padding-left: 20px; color: var(--text-dim); font-size: 0.96rem; }
.r-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Skills */
.r-skills { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 48px); align-items: start; }
.r-corebars { display: flex; flex-direction: column; }
.bar { margin-bottom: 16px; }
.bar-head { display: flex; justify-content: space-between; gap: 14px; font-size: 0.92rem; margin-bottom: 7px; }
.bar-head .bar-val { color: var(--accent); font-family: var(--font-head); white-space: nowrap; }
.bar-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; width: var(--val); background: linear-gradient(90deg, var(--accent), #ffd86b); }
html.js .bar-fill { width: 0; transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.js .in-view .bar-fill, html.js .bar.in-view .bar-fill { width: var(--val); }

.skillset { display: grid; gap: 16px; }
.skill-group { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.skill-group h3 { font-size: 1rem; margin-bottom: 14px; }

/* Engagement + Sprachen */
.r-twocol { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
.r-engage { display: flex; flex-direction: column; gap: 16px; }
.r-langs { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.r-langs .bar:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .r-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .r-profile { margin-inline: auto; }
  .r-contacts { justify-content: center; }
  .r-skills { grid-template-columns: 1fr; }
  .r-twocol { grid-template-columns: 1fr; }
}

/* Kompaktere Abstände auf der Lebenslauf-Seite */
.page-cv .section { padding-top: clamp(32px, 5vh, 54px); padding-bottom: clamp(32px, 5vh, 54px); }
.page-cv .section-head { margin-bottom: clamp(18px, 3vw, 28px); }
.page-cv .r-hero { margin-top: 6px; }
.page-cv .r-profile { margin-top: 12px; }
.page-cv .r-item { padding-bottom: 15px; }
.page-cv .r-card { padding: 16px 20px; }
.page-cv .r-card h3 { font-size: 1.15rem; }
.page-cv .r-list { margin-top: 10px; gap: 6px; }
.page-cv .r-list li { font-size: 0.92rem; }
.page-cv .cards { gap: 16px; }
.page-cv .card { padding: 20px 22px; }
.page-cv .r-skills { grid-template-columns: 1fr; gap: clamp(20px, 3vw, 28px); }
.page-cv .skillset { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-cv .skill-group { padding: 16px 18px; }
.page-cv .skill-group h3 { margin-bottom: 10px; }
@media (max-width: 560px) { .page-cv .skillset { grid-template-columns: 1fr; } }
.page-cv .bar { margin-bottom: 12px; }
.page-cv .r-engage { gap: 12px; }

/* CV-Button in der Team-Karte */
.team-cv-btn { margin-top: 6px; }

/* Split-Layout: fixe Bild-Spalte links, Content rechts */
.cv-layout {
  display: grid;
  grid-template-columns: minmax(300px, 36vw) 1fr;
}
.cv-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: hidden;
  background: #0b0b0f;
}
.cv-rail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.cv-content { min-width: 0; }
/* erste Sektion unter die Nav schieben */
.page-cv .cv-content .r-hero-sec { padding-top: calc(var(--nav-h) + 24px); }

@media (max-width: 900px) {
  .cv-layout { grid-template-columns: 1fr; }
  .cv-rail { position: static; height: clamp(280px, 46vh, 440px); }
  .cv-rail-img { object-position: center 20%; }
  .page-cv .cv-content .r-hero-sec { padding-top: clamp(28px, 5vh, 48px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  html.js .bar-fill { width: var(--val) !important; }
}
