/* =============================== */
/* Allgemeines Styling */
/* =============================== */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #fdf9f2;
  display: flex;
  color: #3e2e1f;
  flex-direction: column;
}

/* =============================== */
/* Sidebar */
/* =============================== */
.sidebar {
  width: 220px;
  background-color: #f5f0e1;
  color: #3e2e1f;
  padding: 20px;
  box-sizing: border-box;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: "Verdana", Geneva, sans-serif;
  transform: translateX(0);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sidebar h2 {
  margin-top: 0;
  font-family: "Georgia", "Times New Roman", serif;
}

.sidebar ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  width: 100%;
}

.sidebar ul li {
  margin: 10px 0;
}

.sidebar ul li a {
  color: #5a4632;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.sidebar ul li a:hover {
  color: #8f6239;
  text-decoration: underline;
}

/* Kerzensymbol */
.candle-symbol {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding-top: 16px;
}

.candle-symbol img {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.candle-symbol img:hover {
  opacity: 1;
}

/* =============================== */
/* Content-Bereich */
/* =============================== */
.content {
  margin-left: 230px;
  padding: 20px;
  box-sizing: border-box;
  flex-grow: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Feste Überschrift oben */
.fixed-title {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.fixed-title h1 {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 24px;
  color: #3e2e1f;
  word-break: break-word;
}

/* Links im Content */
.content a {
  color: #b68c5b;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.content a:hover {
  color: #8f6239;
  text-decoration: underline;
}

/* Weiße Inhaltsblöcke */
.section,
footer {
  background-color: #ffffff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
}

/* =============================== */
/* Scroll-Offset für Anker-Links (Sticky Header) */
/* =============================== */
.section {
  scroll-margin-top: 100px;
}

footer {
  scroll-margin-top: 100px;
}

@media screen and (max-width: 768px) {
  .section,
  footer {
    scroll-margin-top: 70px;
  }
}

/* Galerie */
.gallery {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.gallery.active {
  display: grid !important;
}

.gallery img,
.gallery video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  max-height: 80vh;
  object-fit: cover;
}

/* Über mich */
.about-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.about-text {
  flex-grow: 3;
}

.about-image {
  flex-grow: 1;
}

.about-image img {
  width: 100%;
  max-width: 150px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Mobile Profilbild im Text zuerst ausblenden */
.mobile-profile-image {
  display: none;
  margin-left: 10px;
}

.mobile-profile-image img {
  width: 80px;
  height: auto;
  border-radius: 10px;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Sicherheitssymbole */
#info ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

#info ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

#info ul li img {
  width: 88px;
  height: 80px;
  flex-shrink: 0;
}

#info ul li.double-width img {
  width: 160px;
  height: auto;
}

#info ul li span {
  flex-grow: 1;
}

/* Extra-Warnung */
.extra-warning {
  border: 2px solid #c94d4d;
  background-color: #fce5e5;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Tabs für Fotos und Videos */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.tab-button {
  padding: 10px 15px;
  background-color: #f5f0e1;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Verdana", Geneva, sans-serif;
  transition: background-color 0.3s ease;
}

.tab-button:hover,
.tab-button.active {
  background-color: #e9dfcd;
}

/* Burger Menü Button (mobil) */
.menu-toggle {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  background-color: #e9dfcd;
  color: #5a4632;
  border: none;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1001;
  font-family: "Verdana", Geneva, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* =============================== */
/* Responsive Design (Mobil) */
/* =============================== */
@media screen and (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }

  .content {
    margin-left: 0;
    padding: 15px;
  }

  .about-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .about-image {
    display: none;
  }

  .mobile-profile-image {
    display: inline-block;
  }

  .mobile-profile-image img {
    width: 80px;
    height: auto;
  }

  /* Galerie auf Mobil scrollbar machen */
  .gallery {
    display: none;
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 1fr);
    gap: 10px;
  }

  .gallery.active {
    display: grid !important;
  }

  .gallery img,
  .gallery video {
    max-height: 50vh;
  }

  /* Überschrift zentriert mit Platz für Menü */
  .fixed-title {
    padding: 15px 50px 15px 50px;
  }

  .fixed-title h1 {
    font-size: 20px;
  }

  /* ===== NEU: Abstand für Sidebar-Überschrift ===== */
  .sidebar h2 {
    padding-left: 50px; /* Abstand für den Burger-Button */
    box-sizing: border-box;
  }
}
