/* style.css */

/* === Grundlayout === */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #f9f9f9;
  line-height: 1.6;
}

/* Header */
header {
  position: relative;
  height: 70vh;
  background: url('../Media/Bilder/Home/Header_02.webp') center/cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.headimage{
  height: 100%;
  z-index: 1;
}

header .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2;
}

.header-content {
  position: relative;
  z-index: 2;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* === NAVIGATION IM HEADER === */

/* Platzierung: über dem Header-Hintergrund */
.header-nav {
  position: absolute;
  top: 18px;              /* Abstand vom oberen Rand des Headers */
  left: 0;
  right: 0;
  z-index: 5;             /* höher als .overlay (die ggf. z-index:0 hat) und unter header-content (z-index:2) — wir setzen 5 um sicher zu sein */
  pointer-events: auto;
  display: flex;
  justify-content: center;
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
  padding: 0 20px;
}

/* Transparenter Hintergrund, leichtes Blur wenn gescrollt wird */
.header-nav.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Innerer Container */
.nav-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
}

/* Branding (klein, weil Header schon Namen zeigt) */
/* Logo Branding */
.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 40px;      /* Höhe des Logos */
  width: auto;
  display: block;
}

/* Optional: Abstand zu Links */
.nav-links {
  margin-left: 20px;
}
/* Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.nav-links .nav-link {
  text-decoration: none;
  color: white;           /* im transparenten Zustand weiß */
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
  color: #18ccf0;
  background: rgba(255,255,255,0.12);
}

/* Sticky Navigation */
.header-nav {
  position: fixed;       /* Fest oben, bleibt beim Scrollen sichtbar */
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 12px 20px;
}

/* Hintergrund transparent, solange Nutzer oben */
.header-nav.default {
  background: transparent;
  box-shadow: none;
}

/* Hintergrund sichtbar beim Scrollen */
.header-nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Links Farbe im transparenten Header */
.header-nav.default .nav-link,
.header-nav.default .nav-brand {
  color: white;
}

/* Links Farbe beim scrolled Header */
.header-nav.scrolled .nav-link,
.header-nav.scrolled .nav-brand {
  color: #111;
}

/* Burger Linien Farbe */
.header-nav.default .b-line {
  background: white;
}

.header-nav.scrolled .b-line {
  background: #111;
}


/* Burger (mobil) */
.burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.b-line {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  margin: 4px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* Wenn die Nav einen hellen Hintergrund hat (scrolled), passen wir die Farben an */
.header-nav.scrolled .nav-brand,
.header-nav.scrolled .nav-links .nav-link,
.header-nav.scrolled .b-line {
  color: #111;
  background: none;
}

.header-nav.scrolled .nav-links .nav-link {
  color: #111;
}

.header-nav.scrolled .b-line {
  background: #111;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 16px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    flex-direction: column;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    transform-origin: top right;
    display: none;
    min-width: 180px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-link {
    color: #111;
    padding: 12px 18px;
  }

  .burger { display: block; }

  /* Burger animiert */
  .burger.open .b-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .burger.open .b-line:nth-child(2) {
    opacity: 0;
  }
  .burger.open .b-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* Über mich Section */
.intextlink{
  text-decoration: none;
  color:#2f4f96;
}

/* Impressum Design */
.impressum{ 
text-align: center;
}

/* Buttons */
.btn {
  background: #2f4f96;
  color: white;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 25px;
  margin: 5px;
  display: inline-block;
  transition: background 0.3s ease;
}

.btn:hover { background: #18ccf0; }
.btn.outline {
  background: transparent;
  border: 2px solid white;
}
.btn.outline:hover {
  background: white;
  color: #18ccf0;
}

/* Sections */
section {
  padding: 70px 20px;
  max-width: 1000px;
  margin: auto;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  color: #111;
  margin-bottom: 30px;
}

#about p {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: auto;
  color: #555;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.project-card img { width: 99%; height: 200px; object-fit: cover; }
.project-card h3 { color: #2f4f96; margin: 15px 20px 10px; }
.project-card p { color: #555; margin: 0 20px 20px; font-size: 0.95rem; }

/* === SLIDESHOW MIT TEXT === */
#slideshow {
  max-width: 1100px;
  margin: 80px auto;
  text-align: center;
}

.slideshow-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.slideshow-text {
  flex: 1 1 40%;
  text-align: left;
}

.slideshow-text h2 {
  font-size: 2rem;
  color: #111;
  margin-bottom: 20px;
}

.slideshow-text p {
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Slideshow Container */
.slideshow-container {
  flex: 1 1 55%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 10px;
}

.caption {
  color: white;
  font-size: 1.1rem;
  padding: 10px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  border-radius: 0 0 10px 10px;
}

.caption a{
  color:white;
  text-decoration: none;
  text-decoration-color: white;
}

/* Navigation Buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 12px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.6);
}

/* Punkte unter der Slideshow */
.dots-container {
  text-align: center;
  margin-top: 20px;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.active, .dot:hover {
  background-color: #2f4f96;
}

/* Fade Animation */
.fade {
  animation-name: fade;
  animation-duration: 1.2s;
}

@keyframes fade {
  from {opacity: .4;}
  to {opacity: 1;}
}

/* Responsive Design */
@media (max-width: 900px) {
  .slideshow-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .slideshow-text {
    text-align: center;
  }

  .slideshow-text h2 {
    font-size: 1.7rem;
  }
}

#contact { text-align: center; }
#contact p { margin-bottom: 20px; color: #444; }

footer { text-align: center; padding: 20px; background: #111; color: white; font-size: 0.9rem; }
footer a { color: #ffff; text-decoration: none; }

/* Scroll Top Button */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 100;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #2f4f96;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  transition: background 0.3s;
}
#scrollTopBtn:hover { background-color: #18ccf0; }

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  header p { font-size: 1rem; }
}