:root {
    --accent: #9b87f5;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

/* Header and Navigation Styles */
.header {
  background-color: #0a0a0a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  width: 100%;
  margin: 0;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  box-sizing: border-box;
}

.header-left .logo{
  font-weight: bold;
  color: #e5e5e5;
  margin: 0;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--accent);
}

.header-right .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: #e5e5e5;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px; /* Etwas weniger Rand auf kleinen Screens */
    }

    .nav-menu {
        gap: 15px; /* Abstand zwischen den Links verkleinern (vorher 30px) */
    }

    .nav-link {
        font-size: 14px; /* Schrift minimal kleiner machen */
    }
    
    .logo h1 {
        font-size: 1.2rem; /* Logo-Größe ggf. auch leicht anpassen */
    }
}

/* Body padding to account for fixed header */
body {
  margin: 0;
  padding: 0;
  padding-top: 70px;  /* NEU - für fixed header */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.hero {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
    min-height: calc(100vh - 70px);  /* GEÄNDERT - berücksichtigt Header */
    display: flex;  /* GEÄNDERT - von grid zu flex */
    align-items: center;  /* Zentriert vertikal */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    width: 100%;
}

.hero-title {
    margin-bottom: 32px;
}

.username {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
    display: block;
}

.hero-left h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #d0d0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}
.hero-info {
    list-style: none;
    margin-bottom: 32px;
}
.hero-info li {
    font-size: 1rem;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.hero-info li::before {
    content: "▹";
    color: #666;
    margin-right: 12px;
    font-size: 1.2rem;
}
.hero-info li strong {
    color: #e5e5e5;
    margin-left: 8px;
}
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #b5b5b5;
}
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e5e5e5;
    border: 1px solid #e5e5e5;
    color: #0a0a0a;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    width: fit-content;
    margin-top: 10px;
}
.cta-button:hover {
    background: #ffffff;
    border-color: var(--accent);
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 229, 229, 0.2);
}
.cta-button::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.cta-button:hover::after {
    transform: translateX(6px);
}
@media (max-width: 768px) {
    .hero {
        padding: 40px 24px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-left h1 {
        font-size: 2.5rem;
        white-space: normal;
    }
    .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .hero {
        gap: 50px;
    }
    .hero-left h1 {
        font-size: 2.75rem;
    }
}

.featured-section {
    background: #0a0a0a;
    padding: 100px 40px 40px;
    display: flex;
    justify-content: center;
}

.featured-container {
    max-width: 1200px;
    width: 100%;
}

.featured-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e5e5e5;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

/* 3-Spalten Grid, das auf Mobile automatisch umbricht */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.featured-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.featured-card:hover {
    background: #1f1f1f;
    border-color: #404040;
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.featured-content {
    padding: 40px 32px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1; /* Zieht die Technologie-Badges sauber nach unten, falls der Text unterschiedlich lang ist */
}

.featured-content .project-technologies {
    margin-top: auto; /* Schiebt die Badges immer ans Ende der Card */
    padding-top: 24px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .featured-section {
        padding: 80px 20px 20px;
    }
    
    .featured-heading {
        font-size: 2rem;
        margin-bottom: 40px;
    }
}

/* --- Projektkarten Hintergrundbilder --- */

/* Verhindert, dass das Bild über die abgerundeten Ecken der Karte ragt */
.featured-card {
    overflow: hidden; 
}

/* Für die Timeline müssen wir overflow: hidden setzen, 
   aber aufpassen, dass das ::after (der Strich) noch sichtbar bleibt.
   Da der Strich absolut positioniert ist, klappt das in der Regel,
   wenn der Strich außerhalb des a-Tags liegt. */
.timeline-content {
    overflow: hidden; 
}

/* Das eigentliche Bild */
.card-bg-image {
    position: absolute;
    bottom: -10px; /* Leicht nach unten verschoben */
    right: -10px;  /* Leicht nach rechts verschoben */
    width: 180px;  /* Größe des Bildes */
    height: 180px;
    background-image: var(--bg-image);
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.15; /* Sehr dezent, lenkt nicht vom Text ab */
    z-index: 0;
    pointer-events: none; /* Verhindert, dass das Bild Klicks blockiert */
    
    /* Weicher Übergang: Das Bild verblasst nach oben links in den Hintergrund */
    -webkit-mask-image: radial-gradient(circle at bottom right, black 20%, transparent 70%);
    mask-image: radial-gradient(circle at bottom right, black 20%, transparent 70%);
}

/* Wir stellen sicher, dass der Text IMMER über dem Bild liegt */
.featured-content, 
.timeline-content > .project-year,
.timeline-content > .project-title,
.timeline-content > .project-description,
.timeline-content > .project-highlights,
.timeline-content > .project-technologies {
    position: relative;
    z-index: 1;
}