:root {
  --bg: #05060a;
  --bg-alt: #0b0d14;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.15);

  /* NEW: SlateBlue1 Accent */
  --accent2: #836fff;
  --accent2-soft: rgba(131, 111, 255, 0.18);

  --text: #f9fafb;
  --muted: #9ca3af;
  --danger: #ef4444;
  --success: #22c55e;
  --border: #1f2933;
  --radius: 10px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(3, 7, 18, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.nav a:hover {
  background: var(--accent2-soft);
  color: var(--text);
  transform: translateY(-1px);
}

/* Global link styling */

a {
  color: var(--accent2); /* dein SlateBlue */
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: var(--accent1); /* hellere Variante, falls du eine hast */
}

/* Sections */

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

/* Hero */

.hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-tagline {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tagline span {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;

  /* NEW: SlateBlue1 Accent */
  background: rgba(131, 111, 255, 0.12);
  border: 1px solid rgba(131, 111, 255, 0.35);
  color: var(--text);

  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Optional: leichter Hover-Effekt */
.hero-tagline span:hover {
  transform: translateY(-2px);
  border-color: var(--accent2);
  box-shadow: 0 6px 18px rgba(131, 111, 255, 0.25);
}


/* Timeline */

.timeline {
  position: relative;
}

/* FIXED + ACCENT2 */
.timeline-line {
  position: absolute;
  left: 1.1rem;
  top: 2.8rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent2), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.timeline-items {
  margin-left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
}

.timeline-item .dot {
  position: absolute;
  left: 0.6rem;
  top: 0.35rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: var(--accent2);
  box-shadow: 0 0 0 6px var(--accent2-soft);
}

.timeline-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

/* NEW: Hover effect */
.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent2);
  box-shadow: 0 18px 40px rgba(131, 111, 255, 0.35);
}

.skill-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.skill-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Contact */

.contact-intro {
  color: var(--muted);
  max-width: 560px;
}

.contact-form {
  margin-top: 1.5rem;
  max-width: 520px;
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.9rem;
  color: var(--muted);
}

input,
select,
textarea {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  outline: none;
  transition: border 0.15s, box-shadow 0.15s, background 0.15s;
}

/* NEW: SlateBlue1 focus */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 1px rgba(131, 111, 255, 0.6);
  background: rgba(15, 23, 42, 1);
}

textarea {
  resize: vertical;
}

/* Button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;

  /* Softer SlateBlue */
  background: linear-gradient(135deg, #6f5ee8, #8a7fff);
  color: white;

  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;

  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;

  /* Softer shadow */
  box-shadow: 0 12px 26px rgba(131, 111, 255, 0.28);
}

.btn:hover {
  background: linear-gradient(135deg, #7a6af0, #9b8fff);
  box-shadow: 0 16px 34px rgba(131, 111, 255, 0.35);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(131, 111, 255, 0.25);
}

.btn.loading {
  opacity: 0.8;
  cursor: wait;
}

.btn.success {
  background: linear-gradient(135deg, var(--success), #4ade80);
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.45);
}

.btn.error {
  background: linear-gradient(135deg, var(--danger), #f97373);
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.45);
}

/* Form status */

.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

/* Legal */

.legal ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.legal li {
  margin-bottom: 0.25rem;
}

.legal a {
  color: var(--accent2);
  text-decoration: none;
  font-size: 0.95rem;
}

.legal a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1rem 1.5rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent2);
}

.legal-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.legal-divider {
    margin: 4rem auto;
    width: 60%;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent2), transparent);
}


/* Responsive */

@media (max-width: 640px) {
  .site-header {
    padding-inline: 1rem;
  }

  .nav {
    gap: 0.5rem;
  }

  .nav a {
    padding-inline: 0.6rem;
  }

  .section {
    padding-inline: 1rem;
  }

  .contact-form {
    padding-inline: 1.1rem;
  }

  /* Timeline fix for mobile */
  .timeline-line {
    left: 0.9rem;
    top: 3.2rem;
    bottom: 2rem;
  }
}
