/* === Basisstil === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0e1117;
  color: #e0e0e0;
  line-height: 1.6;
}

a {
  color: #4db8ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Navigation === */
nav {
  background-color: #1c1f26;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  color: #e0e0e0;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #4db8ff;
  border-bottom: 2px solid #4db8ff;
}

/* === Header === */
header {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #1c1f26, #2a2f38);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

header p {
  font-size: 1.2rem;
  color: #ccc;
}

.profile-pic {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* === Abschnitte === */
section {
  padding: 3rem 1rem;
  max-width: 960px;
  margin: auto;
  text-align: left;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

section:nth-of-type(even) {
  background-color: #14171f;
}

section h2 {
  font-size: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #4db8ff;
  display: inline-block;
  margin-bottom: 2rem;
}

/* === Listen und Aufzählungen === */
ul {
  list-style-type: disc;
  padding-left: 2rem;
}

#skills li,
#projects li {
  margin-bottom: 0.8rem;
}

.offer-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.offer-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  position: relative;
  padding-left: 1.5rem;
}

.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4db8ff;
  font-weight: bold;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.pricing-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  position: relative;
  padding-left: 1.5rem;
}

.pricing-list li::before {
  content: "€";
  position: absolute;
  left: 0;
  color: #4db8ff;
  font-weight: bold;
}

/* === Projekte === */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-content: center;
}

.project-card {
  background-color: #1c1f26;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(77, 184, 255, 0.3);
}

.project-video {
  width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
}

/* === Soziale Links === */
.social-links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #1c1f26;
  color: #4db8ff;
  border: 2px solid #4db8ff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #4db8ff;
  color: #0e1117;
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(77, 184, 255, 0.4);
}

/* === Kontaktformular === */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #fff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #1f1f1f;
  color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #4db8ff;
}

.contact-form button {
  background-color: #4db8ff;
  color: #000;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #007acc;
  color: #fff;
}

/* === FAQ === */
.faq-item {
  margin-bottom: 2rem;
}

.faq-item h3 {
  font-size: 1.2rem;
  color: #4db8ff;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 1rem;
  color: inherit;
}

/* === Zurück nach oben Button (animiert) === */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #4db8ff;
  color: #fff;
  border: none;
  padding: 0.7rem 0.9rem;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.4s ease, background-color 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: #339ddf;
  box-shadow: 0 0 12px #4db8ff;
  transform: translateY(-3px);
}

body.light #back-to-top {
  background-color: #333;
  color: #fff;
}

/* === Datenschutz & Impressum im Stil der Abschnitte === */
#privacy, #impressum {
  padding: 3rem 1rem;
  max-width: 960px;
  margin: auto;
  text-align: left;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

#privacy h2,
#impressum h2 {
  font-size: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #4db8ff;
  display: inline-block;
  margin-bottom: 2rem;
}

#privacy p,
#impressum p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

body.light #privacy,
body.light #impressum {
  background-color: #fff;
  color: #111;
}

body.light #privacy h2,
body.light #impressum h2 {
  color: #111;
}

body.light #privacy a,
body.light #impressum a {
  color: #4db8ff;
  text-decoration: underline;
}

/* === Startscreen Intro === */
#intro {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #0e1117;
  color: #4db8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center; /* wichtig für mobile */
  padding: 2rem; /* falls Text umbricht */
  z-index: 9999;
  animation: fadeOut 1s ease 2.5s forwards;
}

.intro-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: popIn 1s ease-out forwards;
}

.intro-text p {
  font-size: 1.2rem;
  opacity: 0;
  animation: fadeIn 1.5s ease 1s forwards;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

@media (max-width: 600px) {
  .intro-text h1 {
    font-size: 2rem;
  }

  .intro-text p {
    font-size: 1rem;
  }
}

/* === Responsive Fix für Toggle & Navigation (kleine Bildschirme) === */
@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
}

/* === Fade-In Animation links/rechts === */
.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.is-visible.fade-in-left {
  opacity: 1;
  transform: translateX(0);
}

.is-visible.fade-in-right {
  opacity: 1;
  transform: translateX(0);
}

/* === Section Divider === */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #4db8ff, transparent);
  margin: 3rem auto;
  width: 60%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  box-shadow: 0 0 6px rgba(77, 184, 255, 0.15);
}

.section-divider.is-visible {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(77, 184, 255, 0.25);
}

/* === Referenz-Grid === */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  text-align: center;
}

.reference-grid span {
  display: inline-block;
  background-color: #1c1f26;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.reference-grid span:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(77, 184, 255, 0.4);
}

/* === Logo-Karussell === */
.carousel-container {
  overflow: hidden;
  margin-top: 2rem;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-track a img {
  height: 60px;
  filter: grayscale(100%);
  transition: transform 0.3s, filter 0.3s;
}

.carousel-track a:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Responsive === */
@media (min-width: 700px) {
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    justify-content: center;
  }

  nav ul {
    gap: 3rem;
  }

  header h1 {
    font-size: 3rem;
  }
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  background-color: #1c1f26; /* oder deine bevorzugte Footerfarbe */
  color: #e0e0e0;
}

.lang-switch {
  font-weight: bold;
  background: #4db8ff;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin-left: 1rem;
  transition: background-color 0.3s ease;
}

.lang-switch:hover {
  background: #007acc;
  color: #fff;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("evspic.jpeg") no-repeat center center / cover;
  opacity: 0.32; /* Passe die Transparenz bei Bedarf an */
  z-index: -1;
}
