/* ============================= */
/*          SCHRIFT & FONT       */
/* ============================= */

@font-face {
  font-family: 'Urwood';
  src: url('fonts/Urwood.woff2') format('woff2'),
       url('fonts/URWWoodTypD.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Urwood', sans-serif;
  background: linear-gradient(to right, #000000 0%, #FF0000 20%, #FF0000 80%, #000000 100%);
  color: #fff;
}

/* ============================= */
/*          LAYOUT-GRUNDGERÜST   */
/* ============================= */

.layout {
  display: flex;
  min-height: 100vh;
}

.content {
  flex: 1;
  padding: 40px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.85);
  font-size: 1.25rem;
  text-align: left;
}

/* ============================= */
/*         SIDEBAR (links)       */
/* ============================= */

.sidebar {
  width: 250px;
  background-color: #111;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Elternelement braucht Perspektive */
.sidebar {
  perspective: 1000px;
}

.sidebar .logo {
  width: 100%;
  max-width: 180px;
  margin-bottom: 30px;

  /* 3D Rotation */
  animation: spin3d 20s linear infinite;
  transform-style: preserve-3d;
}

@keyframes spin3d {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  width: 100%;
}

.sidebar nav li {
  margin: 12px 0;
}

.sidebar nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background-color: #c00;
  color: #fff;
}

/* ============================= */
/*          ÜBERSCHRIFTEN        */
/* ============================= */

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

h2 {
  font-size: 2rem;
  margin-top: 40px;
}

h3 {
  font-size: 1.6rem;
  margin-top: 30px;
}

.gradient-heading {
  font-family: 'Urwood', serif;
  background: linear-gradient(to right, #990000, #000000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5em;
  text-align: left;
}

.section-heading-left {
  font-size: 2rem;
  font-family: 'Urwood', serif;
  color: #fff;
  text-align: left;
  margin-top: 40px;
  margin-bottom: 20px;
}

.section-heading-center {
  text-align: center;
  font-family: 'Urwood', serif !important;
}

.center-heading {
  text-align: center;
}

/* ============================= */
/*           TEXTE & LINKS       */
/* ============================= */

p, li {
  color: #ddd;
  line-height: 1.8;
  font-size: 1.25rem;
}

ul {
  padding-left: 20px;
}

.readable-text {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #f0f0f0;
  text-align: left;
  margin: 20px auto;
  max-width: 900px;
}

.custom-link {
  color: #cc0000;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
}

.custom-link:hover {
  text-decoration: underline;
  color: #ff0000;
}

.text-left {
  text-align: left;
  margin-left: 0;
}

/* ============================= */
/*             BUTTONS           */
/* ============================= */

.btn {
  display: inline-block;
  background-color: #c00;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 20px;
  font-weight: bold;
  font-size: 1.1rem;
}

.btn:hover {
  background-color: #900;
}

/* ============================= */
/*           INTRO VIDEO         */
/* ============================= */

.intro-video {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  max-width: 400px; /* etwas kleiner, wirkt edler */
  width: 100%;
}

.intro-video video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 6px solid #111; /* gleiche Farbe wie Hintergrund */
  box-shadow: 0 0 25px rgba(0,0,0,0.8); /* kräftiger, aber weicher Schatten */
  filter: brightness(0.9) contrast(1.05); /* leichte Anpassung für harmonischere Farben */
}



/* ============================= */
/*              FOOTER           */
/* ============================= */

.footer {
  background-color: #111;
  color: #666;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ============================= */
/*         GÄSTEBUCH FORMULAR    */
/* ============================= */

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  max-width: 500px;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
}

/* ============================= */
/*           MEMORY-GRID         */
/* ============================= */

.memory-section {
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
}

.memory-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.memory-grid img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.2s;
}

.memory-grid img:hover {
  transform: scale(1.05);
}

/* ============================= */
/*         LIGHTBOX OVERLAY      */
/* ============================= */

.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 40vw;
  max-height: 40vh;
  width: auto;
  height: auto;
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

/* ============================= */
/*         CHAPTER-BEREICH       */
/* ============================= */

.chapter-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-items: center;
  margin-top: 40px;
}

.chapter {
  background: linear-gradient(to bottom, #bbb, #888);
  color: #000;
  padding: 12px 16px;
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 6px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.chapter h2 {
  margin: 0 0 6px 0;
  font-size: 1.5rem;
  color: #c00;
  letter-spacing: 2.5px;   /* Buchstabenabstand */
}

.chapter p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.3;
  color: #000;
  text-align: center;
}

.chapter a {
  color: #c00;
  text-decoration: none;
}

.chapter a:hover {
  text-decoration: underline;
}

/* ============================= */
/*          BANNER-STILE         */
/* ============================= */

.banner-top {
  text-align: center;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
}

.banner-line {
  width: 100%;
  max-height: 40px;
  object-fit: cover;
  margin: 10px 0;
}

.banner-main {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 10px auto;
  display: block;
}

.banner-img-inmemory {
  max-width: 180px;
  height: auto;
  border: none;
  box-shadow: none;
  background: transparent;
}

.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.banner-text {
  flex: 1;
  color: #fff;
  font-family: 'Urwood', serif;
  font-size: 1.2rem;
}

.banner-text h1 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.banner-image img {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* ============================= */
/*        HEADER & LOGOS         */
/* ============================= */

header img {
  max-height: 80px;
  height: auto;
  width: auto;
}

.custom-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.custom-header h1 {
  text-align: center;
  font-family: 'Urwood', serif;
  font-size: 2rem;
  color: #fff;
  margin: 0;
}

.header-logo {
  height: 250px;
  width: auto;
  object-fit: contain;
  background: none;
}

/* ============================= */
/*       DIVERSES / SONSTIGES    */
/* ============================= */

.decorative-divider {
  border: 0;
  height: 4px;
  margin: 40px auto;
  max-width: 500px;
  background: linear-gradient(to right, #990000, #ff0000, #990000);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

/* ============================= */
/*        RESPONSIVE DESIGN      */
/* ============================= */

@media screen and (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
  }

  .sidebar .logo {
    margin: 0 auto 20px auto;
  }

  .sidebar nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sidebar nav li {
    margin: 5px 10px;
  }

  .content {
    padding: 20px;
  }

  .intro-video video {
    max-width: 100%;
  }

  .chapter-list {
    grid-template-columns: 1fr !important;
  }
}
