
:root {
  --bg-dark:       #060c18;
  --bg-card:       #0a1628;
  --bg-card2:      #0d1e38;
  --blue-deep:     #0b2d5e;
  --blue-mid:      #1557a0;
  --blue-bright:   #2a8ff5;
  --blue-glow:     #4fb3ff;
  --metal-light:   #a8c8e8;
  --metal-silver:  #c8dff0;
  --accent:        #5ecfff;
  --text-primary:  #deeeff;
  --text-secondary:#8ab4d4;
  --text-muted:    #4a7090;
  --line:          rgba(42,143,245,0.2);
  --glow:          rgba(79,179,255,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-image:
    linear-gradient(rgba(42,143,245,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,143,245,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}


nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,12,24,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;
  background: linear-gradient(135deg, var(--metal-silver) 0%, var(--blue-glow) 50%, var(--metal-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  animation: fadeSlideUp 0.8s ease both;
}

.header-role {
  font-size: 1.05rem;
  color: var(--accent);
  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(--blue-bright);
  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(--blue-glow);
  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(--blue-glow);
  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;
  }
}
