:root {
  --rot: #820000;
  --hellgrau: #f8f8f8;

  --dark-red: #820000;
  --black: #1c1c1c;
  --white: #f5f5f5;
  --beige: #f0e9d7;
  --dark-gray: #4a4a4a;
  --dark-green: #2c3e50;
  --light-gray: #d3d3d3;
}

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
}

*:focus,
*:active {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--dark-red);
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--hellgrau);
  scroll-behavior: smooth;
  font-size: 1.1rem;
  line-height: 1.6;
}

header {
  background: var(--rot);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.3),
    inset 0 0 0 rgba(255, 255, 255, 0.2);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

a {
  color: var(--rot);
  text-decoration: underline;
  transition: color 0.2s ease;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1100;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: white;
  color: white;
  border-radius: 3px;
  position: absolute;
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 11px;
}

.menu-toggle span:nth-child(3) {
  top: 22px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
}

/* Mobile Nav */
@media (max-width: 768px) {
  nav ul {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background: var(--rot);
    display: block;
    padding-top: 4rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  }
  nav ul.active {
    transform: translateX(0);
  }
  nav li {
    margin: 1.5rem 0;
    text-align: center;
  }
  nav a {
    font-size: 1.2rem;
  }
  .menu-toggle {
    display: block;
  }
}

/* Main */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  margin: 4rem 0;
}

section h2 {
  color: var(--rot);
  margin-bottom: 1rem;
}

section[id] {
  position: relative;
  padding-top: 70px;
  margin-top: -70px;
  scroll-margin-top: 70px;
}

/* Galerie */
#anlassSelect {
  width: auto;
  max-width: 100%;
  border: 0px;
  outline: 0px;
  font-size: 1rem;
  background: transparent;
}

.swiper {
  width: 100%;
  height: max-content;
  margin-top: 1rem;
  /* border-radius: 8px; */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.swiper-slide {
  align-self: center;
  justify-self: center;
}

.swiper-slide img {
  width: 100%;
  height: max-content;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--rot);
}

.swiper-pagination-bullet-active {
  background: var(--rot);
}

.cta-button {
  display: inline-block;
  background: var(--rot);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #a00f1b;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--beige);
  color: #333;
}

.glightbox-container {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.glightbox-container img {
  max-width: 100vw !important;
  max-height: 80vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.glightbox-open {
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  -ms-touch-action: auto;
  touch-action: auto;
  height: auto;
}

.markdown-content {
  display: block;
  flex: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

h1,
.markdown-content h1 {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
}

h2,
.markdown-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--rot);
  position: relative;
}

h3,
.markdown-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--rot);
  position: relative;
}

h4,
.markdown-content h4 {
  font-size: 1rem;
  position: relative;
}

.markdown-content p {
  margin-bottom: 1.2rem;
}

.markdown-content ul,
.markdown-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.markdown-content li {
  margin-bottom: 0.5rem;
}

.markdown-content a {
  color: var(--rot);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.markdown-content a:hover {
  color: #900000;
}

.markdown-content blockquote {
  border-left: 4px solid #c10000;
  padding-left: 1rem;
  color: #555;
  font-style: italic;
  margin: 1.5rem 0;
  background: #f9f9f9;
}

.markdown-content code {
  background-color: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95rem;
  line-height: 1.1;
}

.markdown-content pre {
  background-color: #f4f4f4;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.markdown-content pre code {
  display: block;
  background: none;
  padding: 0;
  font-family: monospace;
  font-size: 0.95rem;
  line-height: 1.1;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-circle {
  aspect-ratio: 1 / 1;
  width: clamp(50px, 10vw, 80px);
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: bold;
  font-style: italic;
  color: white;
  background-color: transparent;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.logo-circle span {
  font-weight: lighter;
  padding-top: 8px;
}

.logo-circle:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.logo--white {
  color: white;
}

.logo--red {
  border: 2px solid var(--rot);
  color: var(--rot);
}

@keyframes logoIntro {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.animate-logo {
  animation: logoIntro 0.8s ease-out forwards;
}
