/* ===========================================================
   1) GLOBAL RESET & BASE
=========================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    color: #111;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, blockquote, pre, figure {
    margin: 0 0 15px 0;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

a {
    color: #3597B0;
    text-decoration: none;
}
a:hover {
    color: #111;
    text-decoration: underline;
}

/* ===========================================================
   2) TYPOGRAPHY
=========================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Passion One', sans-serif;
    font-weight: 700;
    letter-spacing: .5px;
    color: #3597B0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p  { font-size: 1rem; }

/* ===========================================================
   3) WRAPPER
=========================================================== */

.wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===========================================================
   4) HEADER
=========================================================== */

.site-header {
    width: 100%;
    background: linear-gradient(120deg, #f29400, #ffffff);
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.headerbg {
    padding: 8px 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.fwlogo {
    height: 50px;
    object-fit: contain;
}

/* ===========================================================
   5) NAVIGATION
=========================================================== */

.site-nav {
    width: 100%;
    background: linear-gradient(120deg, #f29400, #ffffff);
    padding: 12px 0 16px 0;
    position: relative;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.nav-menu a {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2F292B;
    transition: 0.2s ease;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.25);
    color: #000;
}

.nav-menu .active {
    background: #3597B0;
    color: #fff !important;
}

/* ===========================================================
   6) MOBILE NAVIGATION
=========================================================== */

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 700px) {

    .nav-toggle-label {
        display: block;
        cursor: pointer;
        width: 32px;
        height: 32px;
        position: absolute;
        left: 15px;
        top: 12px;
        z-index: 1000;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: "";
        position: absolute;
        width: 26px;
        height: 3px;
        background: #2F292B;
        transition: 0.3s ease;
        border-radius: 2px;
    }

    .nav-toggle-label span {
        top: 50%;
        transform: translateY(-50%);
    }
    .nav-toggle-label span::before { top: -8px; }
    .nav-toggle-label span::after  { top: 8px; }

    .nav-menu {
        position: absolute;
        top: 55px;
        left: 15px;
        right: 15px;
        background: #fff3e0;
        padding: 14px;
        border-radius: 10px;
        display: none;
        flex-direction: column;
        gap: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        z-index: 999;
    }

    .nav-menu a {
        padding: 12px;
        background: #ffffff;
        border-radius: 6px;
    }

    .nav-menu a:hover {
        background: #f29400;
        color: #fff;
    }

    .nav-toggle:checked ~ .site-nav .nav-menu {
        display: flex;
    }

    .nav-toggle:checked + .nav-toggle-label span {
        background: transparent;
    }
    .nav-toggle:checked + .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }
    .nav-toggle:checked + .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }
}

/* ===========================================================
   7) PAGE CONTENT
=========================================================== */

.page-content {
    padding: 0;
    flex: 1;
}

/* ===========================================================
   8) FOOTER
=========================================================== */

.site-footer {
    width: 100%;
    background: #f29400;
    padding: 22px 0;
    color: #fff;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.footer-text {
    font-size: 0.9rem;
    color: #fff;
}

.footer-link {
    color: #fff;
    text-decoration: underline;
    font-size: 0.95rem;
    transition: 0.25s ease;
}

.footer-link:hover {
    color: #3597B0;
}

.social-media-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.social-media-list a i {
    font-size: 1.7rem;
    color: #fff;
    transition: 0.25s ease;
}

.social-media-list a:hover i {
    color: #3597B0;
}

/* ===========================================================
   9) KANDIDATEN
=========================================================== */

.kandidaten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

.kandidat-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.kandidat-card:hover {
  transform: translateY(-4px);
}

.kandidat-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
  cursor: zoom-in;
}

.kandidat-card h2 {
  font-size: 1.35rem;
  margin: 0;
  color: #3597B0;
  font-weight: 700;
}

.kandidat-card .listenplatz {
  font-size: 1rem;
  font-weight: 700;
  color: #f29400;
  margin: 6px 0 10px 0;
}

/* ===========================================================
   10) TERMINE
=========================================================== */

.terminliste {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.termin {
    display: flex;
    gap: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.t_left {
    width: 260px;
    flex-shrink: 0;
}

.t_datum {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3597B0;
}

.t_uhrzeit {
    font-size: 1rem;
    font-weight: 600;
    color: #3597B0;
}

.t_ort {
    font-size: 0.9rem;
    color: #65595D;
}

.t_title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2F292B;
}

@media (max-width: 700px) {

    .termin {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        overflow: hidden;
    }

    .t_left {
        width: 100%;
        flex-shrink: 1;
    }

    .t_text {
        width: 100%;
    }

    .terminliste,
    .termin,
    .t_left,
    .t_text {
        max-width: 100%;
    }
}

/* ===========================================================
   11) CONTENT BOX
=========================================================== */

.content-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.content-box.orange {
    border-left: 6px solid #f29400;
}

.content-box h1,
.content-box h2,
.content-box h3 {
    margin-top: 0;
    color: #3597B0;
}

/* ===========================================================
   12) HERO IMAGE + CAPTION
=========================================================== */

.hero-image {
    margin-top: 35px;
    margin-bottom: 10px;
    text-align: center;
}

.hero-image img {
    max-width: 1100px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    cursor: zoom-in;
}

.hero-caption {
  max-width: 750px;
  margin: 0 auto 50px auto;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #555;
  padding: 0 10px;
}

.hero-caption strong {
  color: #2F292B;
}

.hero-caption em {
  color: #777;
  font-style: italic;
}

/* ===========================================================
   13) TIMELINE
=========================================================== */

.timeline-wrapper {
  position: relative;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-line {
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #3597B0;
  border-radius: 2px;
  opacity: 0.25;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: absolute;
  left: 14px;
  top: 0;
  background: #f29400;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #3597B0;
}

.timeline-dot.blue {
  background: #3597B0;
  box-shadow: 0 0 0 2px #f29400;
}

.timeline-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px 20px;
  border-left: 4px solid #3597B0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.timeline-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-card h3 {
  margin: 0 0 8px 0;
  color: #3597B0;
  font-size: 1.15rem;
}

.timeline-card p {
  margin: 0;
  color: #333;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .timeline-line { left: 18px; }
  .timeline-item { padding-left: 55px; }
  .timeline-dot { left: 10px; }
}

/* ===========================================================
   14) FLYER – DESKTOP & MOBILE, BUTTON IM BILD
=========================================================== */

.flyer-container {
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
}

/* Wrapper für jede Seite (Bild + Button) */
.flyer-view {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  overflow: hidden;
}

.flyer-page-wrapper {
  position: relative;
  flex: 1 1 0;
  max-width: 280px;
}

/* Bild selbst */
.flyer-page {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  cursor: zoom-in;
  object-fit: contain;
}

/* Oranger Button IM Bild, unten rechts */
.flyer-button {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  background: #f29400;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: 0.2s ease;
}

.flyer-button:hover {
  background: #d98300;
}

.flyer-button i {
  color: #fff;
  font-size: 1.2rem;
}

/* MOBIL: beide Seiten nebeneinander, aber passend skaliert */
@media (max-width: 700px) {

  .flyer-view {
    justify-content: space-between;
    gap: 8px;
  }

  .flyer-page-wrapper {
    max-width: 48vw; /* zwei Seiten passen nebeneinander */
  }

  .flyer-button {
    bottom: 8px;
    right: 8px;
  }
}

/* LIGHTBOX bleibt wie gehabt, nur mobil maximal breit */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

@media (max-width: 700px) {
  .lightbox img {
    max-width: 100%;
    max-height: 90%;
  }
}
