/* Landingpage: Navbar, Hero, Sektionen */

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  min-height: var(--header-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  overflow: visible;
}
.logo-link img,
.logo-link svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.navbar-title {
  display: none;
  color: var(--primary-1);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0.75rem 0 1rem;
  flex-shrink: 0;
  min-width: 12em;
  max-width: 15em;
}
.navbar-title-main {
  font-size: 0.9rem;
}
.navbar-title-sub {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.95;
  display: block;
}
@media (min-width: 992px) {
  .navbar-title {
    display: block;
  }
}
@media (min-width: 1100px) {
  .navbar-title { min-width: 13em; max-width: 16em; }
  .navbar-title-main { font-size: 0.95rem; }
  .navbar-title-sub { font-size: 0.75rem; }
}

.nav-desktop {
  display: none;
}
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .nav-desktop a {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    color: var(--primary-3);
    font-weight: 600;
    border-radius: 0.25rem;
  }
  .nav-desktop a:hover {
    background: rgba(221, 97, 40, 0.08);
    color: var(--primary-1);
    text-decoration: none;
  }
  .nav-desktop a.nav-cta {
    background: var(--accent-1);
    color: #fff;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 0.35rem;
    white-space: nowrap;
  }
  .nav-desktop a.nav-cta:hover {
    filter: brightness(1.08);
    color: #fff;
    text-decoration: none;
  }
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile.is-open { display: flex; }
@media (min-width: 768px) {
  .nav-mobile { display: none !important; }
}
.nav-mobile a {
  padding: 0.75rem 1rem;
  color: var(--primary-3);
  font-weight: 600;
  border-radius: 0.25rem;
}
.nav-mobile a:hover {
  background: rgba(221, 97, 40, 0.08);
  color: var(--primary-1);
  text-decoration: none;
}
.nav-mobile a.nav-cta {
  background: var(--accent-1);
  color: #fff;
  text-align: center;
}
.nav-mobile a.nav-cta:hover {
  filter: brightness(1.08);
  color: #fff;
}

/* Hero Video */
.hero {
  padding: 1.5rem 0;
  background: var(--primary-3);
}
.hero .container {
  max-width: 900px;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #000;
  border: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Hero-Video-Slider (wie Geschichten-Slider) */
.hero-slider-area { margin: 0; }
.hero .slider-carousel { display: flex; align-items: center; gap: 0.5rem; position: relative; }
.hero .slider-viewport { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.hero .slider-viewport::-webkit-scrollbar { display: none; }
.hero .slider-track { display: flex; width: calc(100% * var(--slides, 1)); }
.hero .slider-item { scroll-snap-align: start; scroll-snap-stop: always; flex: 0 0 calc(100% / var(--slides, 1)); min-width: 0; box-sizing: border-box; padding: 0; }
.hero .slider-item .video-wrap { width: 100%; }
.hero .slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.75rem; }
.hero .slider-arrow { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border: none; border-radius: 50%; background: var(--primary-1); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background 0.15s; }
.hero .slider-arrow:hover { background: var(--primary-2); }
.hero .slider-arrow:focus { outline: 2px solid var(--primary-3); outline-offset: 2px; }
.hero .slider-dots button { width: 0.5rem; height: 0.5rem; border-radius: 50%; border: none; background: #ccc; padding: 0; cursor: pointer; transition: background 0.15s; }
.hero .slider-dots button.is-active { background: var(--primary-1); }
.hero .slider-dots button:hover { background: #999; }

.hero .video-wrap { position: relative; }
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}
.hero-video-overlay.hero-video-overlay-hidden {
  pointer-events: none;
  opacity: 0;
}

/* FAQ Sections */
.section-faq {
  scroll-margin-top: var(--header-height);
}
.section-faq h2 {
  color: var(--primary-2);
  margin-bottom: 0.75rem;
}
.section-faq p {
  margin: 0;
  max-width: 60ch;
}

/* Bewerberformular */
.section-apply {
  background: #f8f8f8;
}

/* Slider */
.section-slider {
  background: #fff;
}

/* Karte + Liste */
.section-events {
  background: #f8f8f8;
}

/* Footer */
.site-footer {
  background: var(--primary-3);
  color: #fff;
  padding: 2rem 0;
  margin-top: 2rem;
}
.site-footer a {
  color: #fff;
  opacity: 0.9;
}
.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.is-open {
  display: flex;
}
.modal-box {
  background: #fff;
  border-radius: 0.5rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 1.5rem;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: #eee;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}
.modal-close:hover {
  background: #ddd;
}

.modal-contact-success {
  text-align: center;
  padding: 0.5rem 0 1rem;
}
.modal-contact-success-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  background: var(--accent-1);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 3.5rem;
  border-radius: 50%;
}
.modal-contact-success h2 {
  margin: 0 0 0.5rem;
  color: var(--primary-2);
  font-size: 1.25rem;
}
.modal-contact-success p {
  margin: 0 0 1.25rem;
  color: var(--primary-3);
}

.slider-area { margin: 1rem 0; }
.slider-placeholder { color: var(--primary-3); opacity: 0.9; }

.slider-carousel { display: flex; align-items: center; gap: 0.5rem; position: relative; }
.slider-viewport { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.slider-viewport::-webkit-scrollbar { display: none; }
.slider-track { display: flex; width: calc(100% * var(--slides, 1)); }
.slider-item { scroll-snap-align: start; scroll-snap-stop: always; flex: 0 0 calc(100% / var(--slides, 1)); min-width: 0; box-sizing: border-box; padding: 1rem; background: #f5f5f5; border-radius: 0.5rem; }
.slider-item blockquote { margin: 0 0 0.5rem; font-style: italic; }

.slider-arrow { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border: none; border-radius: 50%; background: var(--primary-1); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background 0.15s; }
.slider-arrow:hover { background: var(--primary-2); }
.slider-arrow:focus { outline: 2px solid var(--primary-3); outline-offset: 2px; }

.slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.slider-dots button { width: 0.5rem; height: 0.5rem; border-radius: 50%; border: none; background: #ccc; padding: 0; cursor: pointer; transition: background 0.15s; }
.slider-dots button.is-active { background: var(--primary-1); }
.slider-dots button:hover { background: #999; }
.slider-counter { font-size: 0.9rem; color: var(--primary-3); }
.btn-small { padding: 0.35rem 0.75rem; font-size: 0.9rem; }
.events-layout { display: grid; gap: 1rem; }
@media (min-width: 768px) { .events-layout { grid-template-columns: 1fr 1fr; } }
.events-list ul, .events-list-only { list-style: none; padding: 0; margin: 0; }
.events-list li, .events-list-only li { padding: 0.75rem 0; border-bottom: 1px solid #eee; }
.events-map-fallback { padding: 1rem; background: #f0f0f0; border-radius: 0.5rem; margin-bottom: 1rem; }
.events-map-fallback p { margin: 0; color: var(--primary-3); }
.form-hint { font-size: 0.9rem; color: var(--primary-3); margin-bottom: 1rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; }
.checkbox-label input[type="checkbox"] { margin-top: 0.25rem; flex-shrink: 0; }

/* Landing: Buttons „Als Veranstalter melden“, „Alle Veranstaltungen ansehen“, „Absenden“, „Deine Geschichte teilen“ in Akzent 1 */
.section-events .btn-primary-1,
.section-apply .btn-primary-1,
.section-slider .btn-primary-1,
.modal-overlay .btn-primary-1 { background: var(--accent-1); color: #fff; }
.section-events .btn-primary-1:hover,
.section-apply .btn-primary-1:hover,
.section-slider .btn-primary-1:hover,
.modal-overlay .btn-primary-1:hover { filter: brightness(1.08); }

.modal-box-events { max-width: 720px; }
.modal-events-list { max-height: 60vh; overflow-y: auto; margin-top: 1rem; }
.modal-events-list ul { list-style: none; padding: 0; margin: 0; }
.modal-events-list li { padding: 0.75rem 0; border-bottom: 1px solid #eee; }
.modal-events-list .event-description { margin-top: 0.25rem; }
