/* Modern Portfolio Styles for Felix Pauly */

/* Hinzufügen des Theme-Loaders, um Flash zu vermeiden */
:root {
  /* Modern color scheme */
  --primary: #2d4059;
  --secondary: #ea5455;
  --accent: #f07b3f;
  --light: #ffd460;
  --dark: #222831;
  --bg-light: #f8f9fa;
  --bg-dark: #121212;
  --text-light: #f8f9fa;
  --text-dark: #333;
  --text-muted: #6c757d;
  --shadow: rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;

  /* Sizing */
  --header-height: 80px;
  --container-width: 1280px;

  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
}

/* Add a preload state to prevent flash */
.preload * {
  transition: none !important;
}

/* Light/Dark theme variables */
body {
  --bg-color: var(--bg-light);
  --text-color: var(--text-dark);
  --card-bg: #ffffff;
  --border-color: #e1e4e8;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --timeline-line: #e1e4e8;
}

body.dark-theme {
  --bg-color: var(--bg-dark);
  --text-color: var(--text-light);
  --card-bg: #1e1e1e;
  --border-color: #333;
  --nav-bg: rgba(18, 18, 18, 0.8);
  --timeline-line: #333;
}

/* Base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease;
}

a {
  text-decoration: none;
  color: var(--secondary);
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

ul {
  list-style-type: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Theme toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background-color: var(--card-bg);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--shadow);
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: translateY(-3px);
}

.theme-toggle i {
  font-size: 1.2rem;
  color: var(--primary);
}

body:not(.dark-theme) .fa-sun,
body.dark-theme .fa-moon {
  display: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: var(--text-base);
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(234, 84, 85, 0.3);
  color: var(--text-light);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(234, 84, 85, 0.2);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition);
  background-color: transparent;
  height: var(--header-height);
}

header.scrolled {
  background-color: var(--nav-bg);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* Logo */
.logo-holder {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--secondary);
  border-radius: 50%;
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: lowercase;
  transition: var(--transition);
}

.logo:hover {
  transform: rotate(10deg) scale(1.05);
  background-color: var(--accent);
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 30px;
  height: 24px;
}

.mobile-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.mobile-toggle span:nth-child(1) {
  top: 0px;
}

.mobile-toggle span:nth-child(2) {
  top: 10px;
}

.mobile-toggle span:nth-child(3) {
  top: 20px;
}

.mobile-toggle.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-toggle.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  margin-bottom: 4rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

.subtitle {
  display: inline-block;
  font-size: var(--text-lg);
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

h1 {
  font-size: var(--text-6xl);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 span {
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

h1 span::after {
  content: "";
  position: absolute;
  height: 8px;
  background-color: var(--light);
  width: 100%;
  left: 0;
  bottom: 10px;
  z-index: -1;
}

.typing {
  font-size: var(--text-2xl);
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  position: relative;
}

.typing::after {
  content: "|";
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-text p {
  font-size: var(--text-xl);
  margin-bottom: 1rem;
  max-width: 500px;
}

.social-links {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--secondary);
  transition: var(--transition);
  box-shadow: 0 2px 10px var(--shadow);
}

.social-links a:hover {
  transform: translateY(-5px);
  background-color: var(--secondary);
  color: var(--text-light);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-wrapper {
  width: 400px;
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px var(--shadow);
  transition: var(--transition);
}

.image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--secondary);
  border-radius: var(--border-radius);
  transform: translate(15px, 15px);
  z-index: -1;
  transition: var(--transition);
}

.image-wrapper:hover {
  transform: translateY(-10px);
}

.image-wrapper:hover::before {
  transform: translate(10px, 10px);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-down a {
  display: block;
  font-size: 1.5rem;
  color: var(--text-color);
  transition: var(--transition);
}

.scroll-down a:hover {
  color: var(--secondary);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Stats Section */
.stats {
  background-color: var(--primary);
  padding: 3rem 0;
  margin-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

@media (max-width: 768px) {
  .stats-grid {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
  }

  .stat-item {
    width: 100%;
    text-align: center;
  }
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  flex: 1;
}

.stat-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.stat-item::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--secondary);
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  transition: var(--transition);
}

.stat-item:hover::before {
  transform: translateX(0);
}

.stat-item i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--light);
}

.stat-item h3 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.stat-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-base);
}

/* Section styles */
section {
  padding: 6rem 0;

}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: var(--text-xl);
  color: var(--secondary);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  margin-top: 4rem;
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: 1rem;
  margin-top: 5.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 4px;
  background-color: var(--secondary);
  left: 20%;
  bottom: -10px;
  border-radius: 2px;
}

/* About & Skills */
.about-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-category h3 {
  font-size: var(--text-xl);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.skill-category h3::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
  left: 0;
  bottom: -8px;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-name {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

.skill-bar {
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background-color: var(--secondary);
  border-radius: 4px;
  position: relative;
  animation: skill-fill 2s ease-out;
}

@keyframes skill-fill {
  0% {
    width: 0;
  }
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--card-bg);
  border-radius: 30px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.tag:hover {
  background-color: var(--secondary);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px var(--shadow);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background-color: var(--timeline-line);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-color), 0 0 0 8px var(--timeline-line);
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 2rem;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

.timeline-item:nth-child(odd) .timeline-content {
  left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  left: 0;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -15px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 15px solid var(--card-bg);
}

.timeline-item:nth-child(even) .timeline-content::before {
  content: "";
  position: absolute;
  top: 20px;
  right: -15px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid var(--card-bg);
}

.timeline-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px var(--shadow);
}

.timeline-img {
  margin-bottom: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
}

.timeline-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
}

.timeline-content:hover .timeline-img img {
  transform: scale(1.1);
}

.timeline-date {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: var(--secondary);
  color: var(--text-light);
  border-radius: 20px;
  font-size: var(--text-sm);
  margin-bottom: 0.5rem;
}

.timeline-location {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.timeline-details {
  margin-top: 1.5rem;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

/* Timeline Feature mit Icons statt Bildern */
.timeline-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-feature::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 30%;
  z-index: 0;
}

.timeline-feature::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.timeline-feature i {
  font-size: 2.5rem;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.timeline-content:hover .timeline-feature {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px var(--shadow);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow);
}

.project-header {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 1.5rem;
  position: relative;
}

.project-header i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-header h3 {
  font-size: var(--text-xl);
  margin-bottom: 0;
}

.project-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: rgba(240, 123, 63, 0.15);
  color: var(--accent);
  border-radius: 15px;
  font-size: var(--text-xs);
  margin-bottom: 1rem;
  width: fit-content;
}

.project-description {
  margin-bottom: 1.5rem;
}

.project-features {
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.project-features li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center; /* Ändere von flex-start zu center für vertikale Zentrierung */
  gap: 0.5rem; /* Füge etwas Abstand zwischen Icon und Text hinzu */
}

.project-features li i {
  color: var(--secondary);
  font-size: var(--text-sm);
  display: flex; /* Sorgt für bessere Ausrichtung der Icons */
  align-items: center;
  justify-content: center;
  min-width: 16px; /* Feste Breite für gleichmäßigen Abstand */
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tech-badge {
  padding: 0.3rem 0.8rem;
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: 15px;
  font-size: var(--text-xs);
}

/* Contact Section */
.contact-container {
  display: flex;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

.contact-item i {
  font-size: 2rem;
  color: var(--secondary);
  background-color: rgba(234, 84, 85, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.contact-item h3 {
  margin-bottom: 0.5rem;
  font-size: var(--text-xl);
}

.contact-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-lg);
}

/* Responsive design for contact info */
@media (max-width: 768px) {
  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo p {
  font-size: var(--text-xl);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-light);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--text-light);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
  :root {
    --text-5xl: 2.5rem;
    --text-6xl: 3rem;
  }

  .container {
    padding: 0 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
  }
  
  .hero-text {
    text-align: center;
    order: 2;
  }
  
  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }

  .social-links, .cta-buttons {
    justify-content: center;
  }
  
  .about-container {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-icon {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    left: 80px !important;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    border-right: 15px solid var(--card-bg);
    border-left: 0;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --text-4xl: 1.875rem;
    --text-5xl: 2.25rem;
    --text-6xl: 2.5rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  nav ul {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--nav-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    transition: var(--transition);
    z-index: 99;
    backdrop-filter: blur(10px);
  }
  
  nav ul.active {
    height: calc(100vh - var(--header-height));
    padding: 2rem 0;
  }
  
  nav ul li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  
  nav ul.active li {
    opacity: 1;
    transform: translateY(0);
  }
  
  .nav-link {
    font-size: 1.5rem;
    display: block;
    padding: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .image-wrapper {
    width: 300px;
    height: 300px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  section {
    padding: 4rem 0;
  }
  
  .hero {
    padding-top: 120px;
    height: auto;
    min-height: 100vh;
  }
  
  .image-wrapper {
    width: 250px;
    height: 250px;
  }
}

/* Animation delays for nav items */
nav ul.active li:nth-child(1) { transition-delay: 0.1s; }
nav ul.active li:nth-child(2) { transition-delay: 0.2s; }
nav ul.active li:nth-child(3) { transition-delay: 0.3s; }
nav ul.active li:nth-child(4) { transition-delay: 0.4s; }
nav ul.active li:nth-child(5) { transition-delay: 0.5s; }
nav ul.active li:nth-child(6) { transition-delay: 0.6s; }

/* AOS animation overrides */
[data-aos] {
  pointer-events: none;
}
[data-aos].aos-animate {
  pointer-events: auto;
}

/* Impressum Section */
.impressum-content {
  text-align: center;
  margin: 0 auto;
  max-width: 400px;
}

.impressum-content a {
  color: var(--secondary);
  text-decoration: underline;
}

/* Impressum Page Styles */
.impressum-page {
  min-height: calc(100vh - var(--header-height) - 200px);
  padding-top: calc(var(--header-height) + 2rem);
}

.impressum-page .container {
  max-width: none;
  width: 95%;
}

.impressum-page .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.impressum-page .section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.legal-content {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px var(--shadow);
  max-width: 90%;
  width: 100%;
  margin: 0 auto;
  line-height: 1.8;
  text-align: center;
}

.legal-content p {
  margin-bottom: 1.5rem;
  text-align: center;
}

.legal-content strong {
  color: var(--primary);
  font-weight: 600;
}

.legal-content a {
  color: var(--secondary);
  text-decoration: underline;
  transition: var(--transition);
}

.legal-content a:hover {
  color: var(--accent);
}

.impressum-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}

.impressum-footer a {
  color: var(--text-muted);
}

/* Mobile responsiveness for impressum page */
@media (max-width: 768px) {
  .impressum-page {
    padding-top: calc(var(--header-height) + 1rem);
  }
  
  .legal-content {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .impressum-page .section-title {
    font-size: var(--text-3xl);
  }
}

/* Error Page Styles */
.error-page {
  min-height: calc(100vh - var(--header-height) - 200px);
  padding-top: calc(var(--header-height) + 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.error-visual {
  margin-bottom: 3rem;
}

.error-icon {
  font-size: 4rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1;
  text-shadow: 2px 2px 4px var(--shadow);
}

.error-title {
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--text-color);
  margin: 1rem 0;
}

.error-message {
  margin: 2rem 0;
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.error-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: var(--text-base);
  min-width: 150px;
}

.error-suggestions {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px var(--shadow);
  margin-top: 3rem;
  text-align: left;
}

.error-suggestions h3 {
  color: var(--primary);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.error-suggestions ul {
  list-style: none;
  padding: 0;
}

.error-suggestions li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.error-suggestions li i {
  color: var(--secondary);
  font-size: var(--text-sm);
  width: 16px;
}

.error-suggestions a {
  color: var(--secondary);
  text-decoration: underline;
  transition: var(--transition);
}

.error-suggestions a:hover {
  color: var(--accent);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Mobile responsiveness for error page */
@media (max-width: 768px) {
  .error-code {
    font-size: 6rem;
  }
  
  .error-title {
    font-size: var(--text-2xl);
  }
  
  .error-message {
    font-size: var(--text-base);
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-actions .btn {
    width: 100%;
    max-width: 250px;
  }
  
  .error-suggestions {
    padding: 1.5rem;
    margin: 0 1rem;
    margin-top: 2rem;
  }
}