:root {
  --bg-dark: #05070d;
  --bg-soft: #08111f;
  --bg-card: #0a1628;
  --bg-card2: #0d1e38;
  --blue-deep: #0b2d5e;
  --blue-mid: #1557a0;
  --blue-bright: #38bdf8;
  --blue-glow: #38bdf8;
  --metal-light: #cbd5e1;
  --metal-silver: #e8f1ff;
  --accent: #38bdf8;
  --text-primary: #e8f1ff;
  --text-secondary: #9ca8bd;
  --text-muted: #64748b;
  --line: rgba(56, 189, 248, 0.20);
  --glow: rgba(56, 189, 248, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(59, 130, 246, 0.22), transparent 28%), radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.13), transparent 30%), radial-gradient(circle at 50% 90%, rgba(37, 99, 235, 0.16), transparent 35%), linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-soft) 45%, var(--bg-dark) 100%);
  pointer-events: none;
  z-index: -4;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
  z-index: -3;
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 62%);
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -2;
  animation: float 8s ease-in-out infinite alternate;
}

.orb-a {
  width: 520px;
  height: 520px;
  background: #2563eb;
  opacity: 0.18;
  right: -160px;
  top: 180px;
}

.orb-b {
  width: 420px;
  height: 420px;
  background: #38bdf8;
  opacity: 0.10;
  left: -140px;
  bottom: 10%;
}

@keyframes float {
  from {
    transform: translateY(-20px);
  }

  to {
    transform: translateY(40px);
  }
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

nav a {
  display: inline-block;
  padding: 14px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'Rajdhani', sans-serif;
}

nav a:hover {
  color: var(--accent);
}

nav a.active {
  color: var(--accent);
}

header {
  position: relative;
  z-index: 1;
  padding: 80px 40px 60px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-bright), transparent);
}

.header-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text-primary);
  text-shadow: none;
  animation: fadeSlideUp 0.8s ease both;
}

.header-role {
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 10px;
  animation: fadeSlideUp 0.8s 0.15s ease both;
}

.header-meta {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 2;
  animation: fadeSlideUp 0.8s 0.25s ease both;
}

.header-meta a {
  color: var(--blue-glow);
  text-decoration: none;
}

.header-meta a:hover {
  color: var(--accent);
}

main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.full-width {
  grid-column: 1 / -1;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 0.7s ease both;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-bright), transparent);
}

.card:hover {
  border-color: rgba(42,143,245,0.45);
  box-shadow: 0 0 30px rgba(42,143,245,0.1);
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

.card:nth-child(4) {
  animation-delay: 0.35s;
}

.card:nth-child(5) {
  animation-delay: 0.4s;
}

.card:nth-child(6) {
  animation-delay: 0.45s;
}

.card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.intro-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.skills-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.skills-table tr {
  border-bottom: 1px solid rgba(42,143,245,0.08);
  transition: background 0.2s;
}

.skills-table tr:last-child {
  border-bottom: none;
}

.skills-table tr:hover {
  background: rgba(42,143,245,0.04);
}

.skills-table td {
  padding: 8px 6px;
  vertical-align: top;
}

.skill-label {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  width: 130px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.skill-value {
  color: var(--text-secondary);
  line-height: 1.6;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(21,87,160,0.25);
  border: 1px solid rgba(42,143,245,0.3);
  border-radius: 2px;
  font-size: 0.75rem;
  color: var(--metal-light);
  letter-spacing: 0.03em;
  transition: background 0.2s, border-color 0.2s;
}

.tag:hover {
  background: rgba(42,143,245,0.2);
  border-color: var(--blue-bright);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(42,143,245,0.08);
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 130px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.5;
  padding-top: 2px;
}

.timeline-duration {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.timeline-content {
  padding-left: 20px;
}

.timeline-company {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--metal-silver);
  letter-spacing: 0.03em;
}

.timeline-company span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Exo 2', sans-serif;
  font-weight: 400;
}

.timeline-position {
  font-size: 0.82rem;
  color: var(--text-primary);
  margin: 4px 0 10px;
  letter-spacing: 0.04em;
}

.timeline-bullets {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-bullets li {
  padding-left: 14px;
  position: relative;
}

.timeline-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--blue-bright);
}

/* ── AUSBILDUNG ── */ .edu-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(42,143,245,0.08);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  align-items: start;
}

.edu-item:last-child {
  border-bottom: none;
}

.edu-year {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.edu-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.edu-desc strong {
  color: var(--metal-silver);
  font-weight: 600;
}

.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lang-item {
  flex: 1;
  min-width: 120px;
  background: var(--bg-card2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 16px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.lang-item:hover {
  border-color: rgba(42,143,245,0.45);
  box-shadow: 0 0 16px rgba(42,143,245,0.08);
}

.lang-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--metal-silver);
  letter-spacing: 0.05em;
}

.lang-level {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.lang-level.native {
  color: var(--accent);
}

.lang-level.fluent {
  color: var(--blue-glow);
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 40px;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--line);
}

#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 200;
  width: 40px;
  height: 40px;
  background: var(--blue-mid);
  border: 1px solid var(--blue-bright);
  border-radius: 3px;
  color: var(--accent);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
}

#scrollTop.visible {
  opacity: 1;
  pointer-events: all;
}

#scrollTop:hover {
  background: var(--blue-bright);
  color: var(--bg-dark);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  header {
    grid-template-columns: 1fr;
    padding: 50px 24px 40px;
  }

  header .header-meta {
    text-align: left;
  }

  main {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  nav {
    padding: 0 20px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-content {
    padding-left: 0;
  }
}

/* Shared NWYD IT actions and two-level CV navigation */ .cv-topbar {
  position:relative;
  z-index:120;
  max-width:1100px;
  margin:24px auto 0;
  padding:0 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px
}

.cv-logo {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  line-height: 0;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .18s ease, transform .18s ease;
}

.cv-logo:hover {
  opacity: .94;
  transform: translateY(-1px);
}

.cv-logo img {
  display: block;
  width: auto;
  height: 28px;
}


@media (prefers-reduced-motion: reduce) {
  .cv-logo::after {
    animation: none;
    display: none;
  }
}

.cv-actions,.header-meta {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 24px;
  border-radius:14px;
  font-family:'Exo 2',sans-serif;
  font-weight:800;
  font-size:14px;
  letter-spacing:.01em;
  border:1px solid transparent;
  text-decoration:none;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease,color .2s ease
}

.btn:hover {
  transform:translateY(-2px)
}

.btn.primary {
  background:linear-gradient(180deg,#38bdf8 0%,#2563eb 100%);
  color:#fff;
  box-shadow:0 18px 50px rgba(37,99,235,.30),inset 0 1px 0 rgba(255,255,255,.28)
}

.btn.primary:hover {
  box-shadow:0 22px 60px rgba(56,189,248,.32),inset 0 1px 0 rgba(255,255,255,.34)
}

.btn.secondary {
  background:rgba(255,255,255,.035);
  border-color:rgba(255,255,255,.12);
  color:#d7e5f7
}

.btn.secondary:hover {
  background:rgba(56,189,248,.08);
  border-color:rgba(56,189,248,.42)
}

.cv-section-nav {
  position:sticky;
  top:0;
  z-index:110;
  margin-top:22px;
  padding:0 40px;
  display:flex;
    align-items: center;
    min-height: 64px;
  justify-content:center;
  gap:4px;
  background:rgba(5,7,13,.92);
  backdrop-filter:blur(12px);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid var(--line)
}

.cv-section-nav a {
  display:inline-block;
  padding:14px 16px;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-muted);
  text-decoration:none;
  font-family:'Rajdhani',sans-serif
}

.cv-section-nav a:hover,.cv-section-nav a.active {
  color:#38bdf8
}

@media(max-width:760px) {
  .cv-topbar {
    padding:0 20px;
    align-items:flex-start;
    flex-direction:column
  }

  .cv-actions {
    width:100%
  }

  .cv-actions .btn {
    flex:1
  }

  .cv-section-nav {
    padding:0 12px;
    justify-content:flex-start;
    overflow-x:auto
  }

  .cv-section-nav a {
    white-space:nowrap
  }

  .header-meta {
    margin-top:18px
  }
}


.cv-section-nav .cv-home-button{
    position:absolute;
    left:max(40px,calc((100vw - 1100px)/2 + 40px));
    top:50%;
    transform:translateY(-50%);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 24px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:14px;
    background:rgba(255,255,255,.035);
    color:#d7e5f7;
    font-size:14px;
    font-weight:800;
    letter-spacing:.01em;
    text-transform:none;
    transition:transform .2s ease,background .2s ease,border-color .2s ease;
}
.cv-section-nav .cv-home-button:hover{
    color:#d7e5f7;
    background:rgba(56,189,248,.08);
    border-color:rgba(56,189,248,.42);
    transform:translateY(-50%) translateY(-2px);
}
@media (max-width:980px){
    .cv-section-nav .cv-home-button{
        position:static;
        transform:none;
        white-space:nowrap;
    }
    .cv-section-nav .cv-home-button:hover{
        transform:translateY(-2px);
    }
}


@media (max-width: 640px) {
  .cv-logo img { height: 24px; }
}
