/* =======================================================
   GLOBAL RESET
======================================================= */

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

html, body {
  height: 100%;
  margin: 0;
}


/* =======================================================
   DESIGN VARIABLEN
======================================================= */

:root {
  /* =======================
     BRAND / CI FARBEN
  ======================= */
  --color-primary: #87CEEB;
  --color-primary-dark: #5DADE2;
  --color-primary-light: #B0E2FF;
  --color-secondary: #4CAF50;
  --color-secondary-dark: #2E7D32;
  --color-secondary-light: #7ED957;

  /* =======================
     NEUTRALE FARBEN
     (für Text & Flächen)
  ======================= */
  --color-neutral-100: #ffffff;  /* hell (weiß) */
  --color-neutral-900: #000000;  /* dunkel (schwarz) */

  /* =======================
     TEXTFARBEN
  ======================= */
  --text-default: #222;          /* Haupttext */
  --text-muted: #555;           /* Nebeninfos */

  /* =======================
     LINKS (hell / dunkel Kontext)
  ======================= */
  --link-on-light: var(--color-primary);      /* im Content */
  --link-on-dark: var(--color-neutral-100);   /* z. B. Footer */

  /* =======================
     HINTERGRÜNDE
  ======================= */
  --bg-primary: var(--color-primary);         /* Header, Footer */
  --bg-hover: #f2e6e3;                       /* Hover auf hell */

  /* =======================
     RAHMEN / UI ELEMENTE
  ======================= */
  --border-default: #ccc;

  /* =======================
     SCHATTEN
  ======================= */
  --shadow-strong: rgba(0,0,0,0.4);
  --shadow-medium: rgba(0,0,0,0.35);
  --shadow-soft: rgba(0,0,0,0.15);
  --shadow-intense: rgba(0,0,0,0.5);
}


/* =======================================================
   BASIS LAYOUT & TYPOGRAFIE
======================================================= */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  font-family: -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #222;
  font-size: 1rem;
}


/* =======================================================
   HAUPTINHALT
======================================================= */

main {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 2rem;
  text-align: justify;
  hyphens: auto;
}


/* =======================================================
   HEADER
======================================================= */

.site-header {
  background: var(--color-primary);
  color: white;
  position: relative;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 0.5rem;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3rem);
}

.header-inner img {
  display: block;
}

.wappen {
  height: 150px;
  width: auto;
  flex-shrink: 0;
  filter:
    drop-shadow(0 0 1px rgb(246, 237, 155))
    drop-shadow(0 0 1px rgb(246, 237, 155))
    drop-shadow(0 4px 8px rgba(0,0,0,0.35))
    drop-shadow(0 0 3px rgba(0,0,0,0.15));
}

.silhouette {
  max-height: 130px;
  width: auto;
   filter:
    drop-shadow(0 3px 6px rgba(0,0,0,0.5))
    drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}


/* =======================================================
   DESKTOP NAVIGATION
======================================================= */

.main-nav {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;

  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
  flex: 0 0 auto;
}

.main-nav .nav-item > a {
  display: block;
  background: white;
  color: var(--color-primary);

  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 2px solid var(--color-primary-dark);

  box-shadow: 0 6px 18px rgba(0,0,0,0.4);

  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav .nav-item > a:hover {
  background: #f2e6e3;
}


/* =======================================================
   DESKTOP DROPDOWN
======================================================= */

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;

  background: var(--color-primary);
  padding: 0.6rem;
  border-radius: 20px;

  min-width: 250px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);

  display: none;
  flex-direction: column;
  gap: 6px;

  z-index: 1000;
}

.nav-item:hover .submenu {
  display: flex;
}

.submenu a {
  display: block;
  width: 100%;

  background: white;
  color: var(--color-primary);

  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 2px solid var(--color-primary-dark);

  text-decoration: none;
}

.submenu a:hover {
  background: #f2e6e3;
}


/* =======================================================
   TYPOGRAFIE (CONTENT-BEREICH)
======================================================= */

main h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 1.6rem 0 1rem;
}

main > h1 {
  text-align: center;
}

main h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 1.4rem 0 0.7rem;
}

main h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);

  margin-top: 1.6rem;      /* mehr Abstand davor */
  margin-bottom: 0.25rem;  /* deutlich weniger danach */
}

main h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);

  margin-top: 2rem;
  margin-bottom: 0.2rem;
}

/* Text direkt nach Überschrift enger anschließen */
main h1 + p,
main h2 + p,
main h3 + p,
main h4 + p {
  margin-top: 0;
}

main p {
  margin-bottom: 0.4rem;
}

main .center-text {
  text-align: center;
  white-space: pre-line;
}

/* Impressum / Datenschutz lesen sich ohne Blocksatz besser */
main.imprint,
main.privacy {
  text-align: left;
}

main .poem {
  text-align: center;
  font-style: italic;
  margin: 0 auto;
  max-width: 900px;
  line-height: 1.6;
  white-space: pre-line;
}

/* Abstand vor und nach Gedichtblock */
main p + .poem {
  margin-top: 1.2rem;
}

main .poem + p {
  margin-top: 1.2rem;
}

main .poem-author {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.75em;
}

main ul,
main ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

/* =======================================================
   TERMINLISTE
======================================================= */

main ul.termine {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.2rem;
}

main ul.termine li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  padding-left: 1rem;
  align-items: start;   /* ← wichtig für mehrzeilige Titel */
}

.termine .datum {
  font-weight: 600;
  white-space: nowrap;
  min-width: 110px;   /* ← sorgt für gleiche Ausrichtung */
}

.termine .titel {
  text-align: left;
  display: block;
}

.termine .ort {
  font-size: 0.9em;
  color: #555;
  margin-top: 2px;
}

main li {
  margin-bottom: 0.35rem;
}

main ul li::marker,
main ol li::marker {
  color: var(--color-primary);
}

main a {
  color: var(--color-primary);
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
}

main img {
  max-width: 700px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1.2rem auto;
  border-radius: 6px;
}

/* =======================================================
   FORMULAR – GRUNDLAYOUT
======================================================= */

/* Abstand zwischen Feldern */
.form-field {
    margin-bottom: 22px;
}

/* Labels */
.form-field label {
    font-size: 18px;
    display: block;
    margin-bottom: 6px;
}

/* Eingabefelder */
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    font-size: 18px;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    max-width: 100%;
}

/* Textarea */
.form-field textarea {
    min-height: 180px;
    resize: vertical;
}


/* =======================================================
   FILE UPLOAD
======================================================= */

/* Input selbst */
.form-field input[type="file"] {
    border: none;
    background: none;
    padding: 0;
    width: auto;
    display: inline-block;
}

/* Wrapper entfernen (falls Grav ihn setzt) */
.form-field .form-input-wrapper {
    border: none;
    background: none;
    padding: 0;
}

/* Button */
.form-field input[type="file"]::file-selector-button {
    background: var(--color-primary);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* Hover */
.form-field input[type="file"]::file-selector-button:hover {
    background: var(--color-primary-dark);
}


/* =======================================================
   CHECKBOX (DATENSCHUTZ)
======================================================= */

/* Checkbox + Text nebeneinander */
.form-field input[type="checkbox"] {
    width: auto;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

/* Label neben Checkbox */
.form-field input[type="checkbox"] + label {
    display: inline;
    vertical-align: middle;
    margin: 0;
}

/* Optional: schöner Abstand nach oben */
.form-field.checkbox {
    margin-top: 10px;
}


/* =======================================================
   BUTTON
======================================================= */

input[type="submit"],
.button {
    background: var(--color-primary);
    color: white;
    padding: 12px 35px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* Hover */
input[type="submit"]:hover,
.button:hover {
    background: var(--color-primary-dark);
}

/* =======================================================
   COVER SLIDER
======================================================= */

.cover-slider {
  position: relative;
  max-width: 400px;
  margin: 1.5rem auto;
  padding: 0 30px;
  text-align: center;
}

.cover-slider img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 6px 18px var(--shadow-medium);
  background: white;
  padding: 6px;
  transition: transform 0.3s ease;
}

.cover-slider img:hover {
  transform: scale(1.03);
}

/* =======================
   NAVIGATION (PFEILE)
======================= */

.cover-slider {
  position: relative;
}

/* Buttons */
.cover-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  display: flex;                 /* Zentrierung */
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 60px;

  background: rgba(0,0,0,0.15);  /* transparenter */
  color: white;
  border: none;

  font-size: 1.6rem;
  line-height: 1;

  cursor: pointer;
  border-radius: 10px;

  z-index: 10;

  opacity: 0;
  pointer-events: none;

  transition: background 0.2s ease, opacity 0.2s ease;
}

/* sichtbar bei hover */
.cover-slider:hover button,
.cover-slider button:hover {
  opacity: 1;
  pointer-events: auto;
}

/* exakt am Bildrand */
.cover-slider .cover-prev {
  left: 0px;
}

.cover-slider .cover-next {
  right: 0px;
}

/* Hover */
.cover-slider button:hover {
  background: rgba(0,0,0,0.35);
}

/* Klick */
.cover-slider button:active {
  transform: translateY(-50%) scale(0.95);
}


/* =======================
   MOBILE
======================= */

@media (max-width: 900px) {
  .cover-slider {
    max-width: 90%;
  }

  .cover-slider button {
    font-size: 1.5rem;
    padding: 0.2rem 0.5rem;
  }
}


/* =======================================================
   FOOTER
======================================================= */

.site-footer {
  background: var(--color-secondary);
  color: white;
  padding: 0.5rem 0;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer-links {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

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



/* =======================================================
   BURGER (standardmäßig versteckt)
======================================================= */

.nav-toggle {
  display: none;
}

.burger {
  display: none;
}


/* =======================================================
   MOBILE VERSION
======================================================= */

@media (max-width: 900px) {

  /* Header */
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .wappen { height: 70px; }

  .header-inner .silhouette {
    display: none;
  }

  /* Burger */
  .burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 3000;
  }

  .burger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .nav-toggle:checked + .header-inner .burger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle:checked + .header-inner .burger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .header-inner .burger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* ================= MOBILE NAV ================= */

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--color-primary);

    display: block;          /* ← WICHTIG: KEIN FLEX mehr */
    padding: 6rem 2rem 3rem;
    overflow-y: auto;
    overflow-x: hidden;

    transform: translateX(100%);
    transition: transform 0.35s ease;

    z-index: 2000;
  }

  .nav-toggle:checked ~ .main-nav {
    transform: translateX(0);
  }

  /* Jeder Menüpunkt untereinander */
  .nav-item {
    display: block;
    width: 100%;
    margin-bottom: 1.4rem;
  }

  /* Hauptpunkte */
  .nav-item > a {
    display: block;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 0;
  }

  /* Submenu */
  .submenu {
    position: static;
    display: block;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-top: 0.6rem;
    margin-left: 1.2rem;
  }

  .submenu a {
    display: block;
    background: transparent;
    border: none;
    color: #f2e6e3;
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    padding: 0;
  }

  /* ================= MOBILE Content ================= */  
  main {
    max-width: 100%;
    padding: 1rem clamp(1rem, 4vw, 2rem);
  }

  main img {
    max-width: 100%;
  }
	
  .cover-slider {
    max-width: 90%;
  }

  .cover-slider button {
    font-size: 1.5rem;
    padding: 0.2rem 0.5rem;
  }
}