/* Grundlayout */
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  background: #fffbe6;
  color: #333;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'UnifrakturCook', cursive;
  color: darkred;
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}

.caption, .site-footer p, label {
  font-family: 'UnifrakturCook', cursive;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px 40px;
  background: #fceabb;
  border-bottom: 4px double gold;
}

.logo-container {
  padding-left: 10px;
}

.logo {
  height: 60px;
  width: auto;
  max-width: 150px;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

/* Navigation – verspielt und musikalisch */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid gold;
  border-radius: 10px;
  font-size: 1.8em;
  color: darkred;
  padding: 5px 10px;
  font-family: 'UnifrakturCook', cursive;
  cursor: pointer;
  transition: background 0.3s ease;
}

.menu-toggle:hover {
  background: gold;
  color: white;
}

.nav ul {
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav li {
  display: flex;
  align-items: center;
}

.nav a {
  font-family: 'UnifrakturCook', cursive;
  color: darkred;
  font-size: 1.3em;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 10px;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}

.nav a:hover {
  background: gold;
  color: darkred;
  transform: scale(1.05);
  text-shadow: 1px 1px 2px #fffbe6;
}

/* Musiknoten als Trennzeichen */
.ornament {
  font-size: 1.5em;
  color: gold;
  padding: 0 5px;
  user-select: none;
}

/* Mobilmenü */
@media (max-width: 600px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
  }

  .nav.active {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    background: #fceabb;
    border-top: 2px solid gold;
    padding: 10px 0;
  }

  .nav li {
    padding: 10px 0;
  }
}


/* Rahmen */
.fancy-frame {
  border: 6px double gold;
  border-radius: 20px;
  padding: 20px;
  margin: 20px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  background: linear-gradient(to bottom, #fffbe6, #fceabb);
  box-sizing: border-box;
}

/* Bilder */
.orgelbild {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 20px auto;
  border-radius: 15px;
}

/* Musiknote */
.note {
  font-size: 2em;
  color: gold;
  text-align: center;
  animation: floatNote 6s infinite ease-in-out;
  display: block;
  text-align: center;
  margin: 10px 0;
}

@keyframes floatNote {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100px); opacity: 0; }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px;
  background: #fceabb;
  border-top: 4px double gold;
  font-family: 'UnifrakturCook', cursive;
  color: darkred;
}

.site-footer a {
  color: darkred;
  text-decoration: none;
  font-weight: bold;
}

.site-footer a:hover {
  text-decoration: underline;
}

.ornament {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: gold;
}

/* Galerie */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  width: 100%;
  max-width: 200px;
  cursor: pointer;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

.caption {
  margin-top: 8px;
  font-family: 'UnifrakturCook', cursive;
  color: darkred;
  font-size: 1em;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 10px gold;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2em;
  color: white;
  cursor: pointer;
}

/* Formular */
form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  padding: 10px;
  box-sizing: border-box;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 2px solid gold;
  border-radius: 10px;
  font-size: 1em;
  box-sizing: border-box;
}

button {
  background: darkred;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  cursor: pointer;
}

button:hover {
  background: crimson;
}

/* Suchfeld */
input[type="search"] {
  width: 80%;
  max-width: 400px;
  padding: 10px;
  margin: 20px auto;
  display: block;
  border: 2px solid gold;
  border-radius: 10px;
  font-size: 1em;
}

#search-results {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 500px;
}

#search-results li {
  margin: 10px 0;
}

#search-results a {
  text-decoration: none;
  color: darkred;
  font-weight: bold;
}

#search-results a:hover {
  text-decoration: underline;
}

/* Liedtextanzeige */
pre {
  white-space: pre-line;
  word-wrap: break-word;
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
  line-height: 1.5;
}

/* Mobiloptimierung */
@media (max-width: 600px) {
  h1 {
    font-size: 1.6em;
  }

  h2 {
    font-size: 1.3em;
  }

  h3 {
    font-size: 1.1em;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
  }

  .nav.active {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    background: #fceabb;
    border-top: 2px solid gold;
    padding: 10px 0;
  }

  .nav li {
    padding: 10px 0;
  }

  .logo {
    height: 50px;
    margin-bottom: 10px;
  }

  .gallery-item {
    max-width: 100%;
  }

  form {
    padding: 10px;
  }
}
.altdeutsch {
  font-family: 'UnifrakturCook', cursive;
  color: darkred;
}
.ornament {
  font-size: 1.5em;
  color: gold;
  padding: 0 5px;
  user-select: none;
}
.centered-block {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}
.intro {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.gallery figure {
  max-width: 300px;
  text-align: center;
}
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.gallery figcaption {
  margin-top: 5px;
  font-style: italic;
  color: #555;
}
