/* Reset & Basis */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  color: #222;
  overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container für Navbar und Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main Content */
.page-content {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: 100vh;
  padding-bottom: 60px;
}

.hero-image img {
  width: 500px;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Hero Buttons (Icons) */
.hero-buttons {
  display: flex;
  gap: 15px;
}

@media (max-width: 992px) {
  .hero-buttons {
    justify-content: center;
  }
}

.hero-buttons .btn {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  background-color: #007bff;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.hero-buttons .btn:hover {
  background-color: #0056b3;
}

/* About Teaser (Text left, Image right) */
.about-teaser {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.about-text {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.5;
  padding-bottom: 5px;
}

.about-text .btn-primary {
  padding: 12px 25px;
  background-color: #007bff;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.about-text .btn-primary:hover {
  background-color: #0056b3;
}

.about-image img {
  width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Contact Section (Image left, Text right) */
.contact-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.contact-image img {
  width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.contact-text {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.contact-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.contact-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.5;
  padding-bottom: 5px;
}

.contact-text .btn-primary {
  padding: 12px 25px;
  background-color: #007bff;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.contact-text .btn-primary:hover {
  background-color: #0056b3;
}

/* Footer */
.footer {
  background-color: #f0f0f0;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* Scroll Animation (fadeInUp) */
.section-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

/* Tablets & smaller */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }

  .hero-image img {
    width: 350px;
    height: 350px;
  }

  .hero-text {
    max-width: 100%;
  }

  .about-teaser,
  .contact-section {
    flex-direction: column;
    text-align: center;
  }

  .about-image img,
  .contact-image img {
    width: 350px;
    margin-bottom: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {

  .container {
    padding: 0 15px;
  }

  /* Hero image smaller */
  .hero-image img {
    width: 250px;
    height: 250px;
  }

  /* About & Contact sections stack */
  .about-teaser,
  .contact-section {
    flex-direction: column;
  }

  .about-image img,
  .contact-image img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
  }
}


/* Navbar */
/* Navbar - die Leiste selbst füllt immer den ganzen Bildschirm */
.navbar {
  width: 100%; /* nicht 100vw */
  background: #fff;
  border-bottom: 1px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
  left: 0;
}

/* Container in Navbar */
.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: relative;
}

/* Mobile: Container in Navbar auf volle Breite ohne Seiten-Padding */
@media (max-width: 768px) {
  .navbar .container {
    max-width: 100%;
    padding-left: 15px;  /* kleines Padding links */
    padding-right: 15px; /* kleines Padding rechts */
    margin: 0;           /* kein automatischer Rand */
  }
}


/* Logo */
.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: #222;
  user-select: none;
  white-space: nowrap; /* verhindert Zeilenumbruch */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hamburger Menu (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  width: 30px;
  height: 25px;
  justify-content: center;
  z-index: 1100;
}

.hamburger div {
  width: 100%;
  height: 3px;
  background-color: #222;
  border-radius: 2px;
  transition: 0.3s;
}

/* Nav-Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  padding: 8px 5px;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 3px solid transparent;
}

.nav-links .mobile-theme-toggle {
  font-size: 2rem;
  font-weight: 600;
  color: #222;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 3px solid transparent;
  border-top: 3px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #007bff;
  border-bottom: 3px solid #007bff;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

/* Responsive Nav-Links (Mobile) */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

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

  /*.nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    background: white;
    width: 220px;
    height: calc(100% - 60px);
    flex-direction: column;
    gap: 0;
    padding-top: 20px;
    box-shadow: -3px 0 8px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    pointer-events: none;
    opacity: 0;
    z-index: 1099;
  }
    */

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #9c9999;
    flex-direction: column;
    display: none;
    padding: 1rem 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links li a:hover{
    background-color: #6867679c;
  }

  .nav-links.open {
    transform: translateX(0);
    pointer-events: auto;
    opacity: 1;
  }

  .nav-links li {
    border-bottom: 1px solid #ddd;
    margin: 15px 0;
  }

  .nav-links li a {
    display: block;
    padding: 15px 20px;
    font-size: 1.2rem;
  }
}



/* Desktop: Hamburger ausblenden */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

.highlight-text {
  color: #007bff;
  font-weight: 600;
  text-decoration: double;
  transition: background-color 0.3s;
}

/* Highlight Text Hover */

.theme-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 20px;
  display: flex;
  align-items: center;
}

.theme-toggle .icon {
  transition: transform 0.3s;
}

/* Desktop */
@media (min-width: 769px) {
  .theme-toggle {
    display: flex;
  }

  .mobile-theme-toggle {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .theme-toggle {
    display: none;
    margin: 20px;
  }

  .mobile-theme-toggle {
    display: block;
    border-top: 1px solid #eee;
    padding-top: 10px;
  }
}

/* DARK MODE STYLES */
body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

body.dark-mode .navbar {
  background-color: #1e1e1e;
  border-bottom: 1px solid #444;
}

body.dark-mode .nav-links {
  background-color: #1e1e1e;
}

body.dark-mode .nav-links li a {
  color: #f0f0f0;
}

body.dark-mode .nav-links li a:hover,
body.dark-mode .nav-links li a.active {
  color: #66b2ff;
  border-bottom: 3px solid #66b2ff;
}

/*body.dark-mode .hero-buttons .btn {
  background-color: #333;
}

body.dark-mode .hero-buttons .btn:hover {
  background-color: #555;
}
  */

body.dark-mode .footer {
  background-color: #1e1e1e;
  color: #aaa;
}

body.dark-mode .logo {
  color: white
}

.zeitstrahl {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.zeitstrahl h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  padding-bottom: 40px;
}

.zeitstrahl-item {
  position: relative;
  width: 100%;
  max-width: 800px;
  padding: 75px;
  background-color: #cccccc9f;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ueber-mich h1 {
  font-size: 2rem;
  text-align: center;
  padding-bottom: 40px;
}

body.dark-mode .zeitstrahl-item {
  background-color: #333;
}

.ueber-mich, .zeitstrahl{
    padding-bottom: 120px;
}

@media (max-width: 768px) {
  .zeitstrahl-item {
    padding: 20px;
  }
  
  .zeitstrahl h1 {
    font-size: 2.5rem;
  }
  
  .zeitstrahl-item p {
    font-size: 1rem;
  }

  .ueber-mich, .zeitstrahl {
    padding-bottom: 40px;
  }
  
}