/*template: mihd*/
/* =======================================================
   GLOBAL RESET
======================================================= */

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

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

html {
  overflow-x: clip;
}

/*body {
  overflow-x: hidden;
}*/

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

:root {
  /* =======================
     BRAND / CI FARBEN
  ======================= */
  --color-primary: #E53935;
  --color-primary-dark: #B71C1C;
  --color-primary-light: #FF6F61;
  --color-secondary: #7A7A7A;
  --color-secondary-dark: #4A4A4A;
  --color-secondary-light: #B5B5B5;

  /* =======================
     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-neutral-100);
  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,
.wappen-right {
  height: 90px;
  width: auto;
  flex-shrink: 0;
  filter:
    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: 90px;
  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;
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

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

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 6px;        /* Größe der "Brücke" */
}

.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;
}

/* =======================================================
   Social-Media-Button
======================================================= */

.social-fixed {
  position: fixed;
  top: 15vh;
  right: 0;
  z-index: 9999;

  /* verhindert Layout-Probleme */
  pointer-events: none;
}

.social-box {
  background: var(--color-primary);
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);

  pointer-events: auto; /* wieder klickbar */
}

.social-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.social-box a:last-child {
  border-bottom: none;
}

.social-box img {
  width: 26px;
  height: 26px;
}

/* Hover */
.social-box a:hover {
  background: rgba(255,255,255,0.1);
}

/* =======================================================
   Kokelhase am Bildschirmrand
======================================================= */

.bunny-fixed {
  position: fixed;
  bottom: 10vh;   /* unteres Drittel */
  right: -8px;
  z-index: 9999;
  cursor: pointer;
  /*pointer-events: none; /* rein dekorativ damit wird die funktion des hasen inaktiv*/
}

.bunny-fixed img {
  width: 80px;   /* Größe anpassen */
  height: auto;
}

/* =======================================================
   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;
}

/* =======================================================
   KALENDER ABO BUTTON
======================================================= */

.calendar-nav {
  display: flex;
  justify-content: center;

  margin: 0.5rem 0 1.5rem;
}

.calendar-nav a {
  display: block;

  background: var(--color-neutral-100);
  color: var(--color-primary);

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

  box-shadow: 0 6px 18px var(--shadow-strong);

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

.calendar-nav a:hover {
  background: var(--bg-hover);
}


/* =======================================================
   KALENDER ABO POPUP
======================================================= */

.calendar-popup {
  display: none;

  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.45);

  z-index: 9999;

  align-items: center;
  justify-content: center;

  padding: 20px;
}

.calendar-popup.active {
  display: flex;
}

.calendar-popup-menu {
  display: flex;
  flex-direction: column;

  width: fit-content;

  background: var(--color-primary);

  padding: 0.6rem;
  border-radius: 20px;

  box-shadow: 0 6px 18px var(--shadow-strong);

  gap: 6px;
}

.calendar-popup-link {
  display: block;

  background: var(--color-neutral-100);
  color: var(--color-primary);

  padding: 0.4rem 1rem;

  border-radius: 20px;
  border: 2px solid var(--color-primary-dark);

  text-decoration: none;

  text-align: center;
  font-size: 1.05rem;

  white-space: nowrap;
}

.calendar-popup-link:hover {
  background: var(--bg-hover);
}

/* =======================================================
   EVENT NEXT POPUP
======================================================= */

.event-next-popup {
  display: none;

  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.45);

  z-index: 9999;

  align-items: center;
  justify-content: center;

  padding: 20px;
}

.event-next-popup.active {
  display: flex;
}

.event-next-popup-box {
  display: flex;
  flex-direction: column;

  width: fit-content;
  max-width: 90vw;

  background: var(--color-primary);

  padding: 0.7rem;
  border-radius: 20px;

  box-shadow: 0 6px 18px var(--shadow-strong);

  gap: 8px;
}

.event-next-popup-date {
  text-align: center;

  color: var(--color-neutral-100);

  font-size: 2rem;
  font-weight: 700;

  margin-bottom: 0.2rem;
}

.event-next-popup-item {
  display: block;

  background: var(--color-neutral-100);
  color: var(--color-primary);

  padding: 0.4rem 1rem;

  border-radius: 20px;
  border: 2px solid var(--color-primary-dark);

  text-align: center;
  font-size: 1.05rem;

  white-space: nowrap;
}

.event-next-popup-more {
  display: flex;
  flex-direction: column;
  gap: 8px;
}



/* =====================================================
Teilenbutton für Plakate
===================================================== */

.blackboard {
  max-width: 400px;
  margin: 1.5rem auto;
  padding: 0 30px;
}

.poster {
  position: relative;
  margin-bottom: 25px;
}

.poster img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  background: white;
  padding: 6px;
  transition: transform 0.3s ease;
}

.poster img:hover {
  transform: scale(1.02);
}

.share-btn {
  position: absolute;
  top: -12px;   /* 🔥 in die Ecke ziehen */
  right: -12px;

  width: 44px;
  height: 44px;

  border-radius: 50%;
  border: none;

  background: #e53935; /* 🔥 rot */
  color: white;

  box-shadow: 0 6px 14px rgba(0,0,0,0.25);

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
}

/* Hover */
.share-btn:hover {
  transform: scale(1.1);
  background: #d32f2f;
}

/* Klick */
.share-btn:active {
  transform: scale(0.95);
}

/* =======================================================
   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);
}


/* =======================================================
   PICTURE SLIDER
======================================================= */

.picture-slider {
  position: relative;
  width: 100%;
}

.picture-slider #picture-slider-container {
  width: 100%;
}

.picture-slider .slide {
  display: none;
  width: 100%;
}

.picture-slider .slide img {
  display: block;
  width: 100%;

  border-radius: 12px;

  border: 4px solid rgba(255,255,255,0.6);
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.15),
    0 0 0 1px rgba(0,0,0,0.05);
}

/* =======================================================
   DESKTOP (CAROUSEL mit OVERFLOW sichtbar)
======================================================= */

.picture-slider-wrapper {
  overflow: visible; /* 👉 nichts abschneiden */
}

.picture-slider.carousel {
  position: relative;

  width: min(1200px, 100%);
  margin: 65px auto;

  aspect-ratio: 13 / 2;

  overflow: visible; /* 👉 wichtig für prev/next + Schatten */
}

/* Bühne */
.picture-slider.carousel .carousel-track {
  position: relative;
  height: 100%;
}

/* Slides */
.picture-slider.carousel .carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75%;

  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;

  transition:
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.8s ease;

  z-index: 1;
}

/* aktiv */
.picture-slider.carousel .carousel-item.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 3;
}

/* links */
.picture-slider.carousel .carousel-item.prev {
  transform: translate(-95%, -50%) scale(0.9);
  opacity: 0.5;
  z-index: 2;
}

/* rechts */
.picture-slider.carousel .carousel-item.next {
  transform: translate(-5%, -50%) scale(0.9);
  opacity: 0.5;
  z-index: 2;
}

/* Bild */
.picture-slider.carousel .carousel-item img {
  display: block;
  width: 100%;
  height: auto;

  border-radius: 12px;
  border: 4px solid rgba(255,255,255,0.6);

  box-shadow: 
    0 12px 30px rgba(0,0,0,0.2),
    0 0 0 1px rgba(0,0,0,0.05);
}

/* Fade links */
.picture-slider.carousel .carousel-item.prev img {
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 55%,
    black 100%
  );
}

/* Fade rechts */
.picture-slider.carousel .carousel-item.next img {
  mask-image: linear-gradient(
    to left,
    transparent 0%,
    black 55%,
    black 100%
  );
}


/* =======================================================
   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);
}

/* =======================
   Blackboard
======================= */

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

.blackboard img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 6px 18px var(--shadow-medium);
  background: white;
  padding: 6px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.blackboard img:hover {
  transform: scale(1.03);
}

/* =======================
   Visitenkarten
======================= */

.cards {
  width: 900px;
  max-width: 100%;
  margin: 20px auto;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.2);
}

.card-inner {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 15px;
  align-items: flex-start;
}

.card-text {
  min-width: 0;
  text-align: left;
}

/* gleichmäßige Abstände */
.card-text > * {
  margin-bottom: 6px;
}

/* letzte Zeile sauber */
.card-text > *:last-child {
  margin-bottom: 0;
}

/* =======================
   MEDIA (Foto / Logo)
======================= */

.card-media {
  width: 90px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* PASSFOTO */
.card-media .photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}

/* LOGO / WAPPEN */
.card-media .logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

/* ======================= */

.card-text h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.opening {
  margin-top: 10px;
  font-size: 0.95em;
  line-height: 1.4;
}

/* --- Öffnungszeiten Layout --- */
.opening-title {
  font-weight: bold;
  margin-bottom: 6px;
}

.opening-row {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 10px;
}

.opening-days {
  text-align: left;
}

.opening-times {
  text-align: right;
  white-space: nowrap;
}

/* optional alt */
.opening strong {
  display: block;
  margin-bottom: 4px;
}

.note {
  margin-top: 10px;
  font-size: 0.9em;
  color: #555;
}

/* =======================
   Social (eigene Zeile)
======================= */

.social {
  display: block;
  margin-top: 6px;
  line-height: 1;
}

.social a {
  display: inline-block;
  margin-right: 8px;
}

.social img {
  display: block;
  width: 18px;
  height: 18px;

  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.social img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* =======================================================
   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;
    position: relative;
  }

  .header-inner::after {
    content: "Heiligendorf";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
  }

  .wappen { height: 70px; }

  .header-inner .silhouette,
  .header-inner .wappen-right {
    display: none;
  }

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

  .burger span {
    width: 28px;
    height: 3px;
    background: var(--color-primary-dark);
    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;
  }

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

  /* 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;
  }

  .social-fixed {
    transform: scale(0.75);
    transform-origin: right center; /* bleibt sauber am Rand */
    z-index: 2000;
  }

  .bunny-fixed {
    transform: scale(0.75);
    transform-origin: right center;
    z-index: 1500;
  }

/* =======================================================
   MOBILE Carousel (ohne Prev&Next-Bilder)
======================================================= */

  .picture-slider.carousel {
    width: 100%;
    margin: 40px 0;
    aspect-ratio: auto;

    overflow: visible; /* 👉 GANZ WICHTIG */
  }

  .picture-slider.carousel .carousel-track {
    height: auto;
  }

  .picture-slider.carousel .carousel-item {
    position: relative;
    top: auto;
    left: auto;

    transform: none !important;
    opacity: 1 !important;

    width: 100%;
    display: none;
  }

  /* nur aktives Bild */
  .picture-slider.carousel .carousel-item.active {
    display: block;
  }

  .picture-slider.carousel .carousel-item img {
    width: 100%;
    height: auto;

    mask-image: none;
  }

  /* ================= 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;
  }

  /* =======================
     Mobile Karten
  ======================= */

  .cards {
    width: 90vw;
    margin-left: calc(50% - 45vw);
    grid-template-columns: 1fr !important;
  }

  /* h3 in Cards ohne Top-Abstand */
  .card-text h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
  }

  /* =======================
     Standard (Foto rechts)
  ======================= */

  .card-inner {
    display: grid;
    grid-template-columns: 1fr 90px;
  }

  /* =======================
     LOGO Layout (1 Spalte)
  ======================= */

  .card-inner.has-logo {
    grid-template-columns: 1fr;
  }

  /* Logo oben mittig */
  .card-inner.has-logo .card-media {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    margin-bottom: 10px;
  }

  /* Text darunter */
  .card-inner.has-logo .card-text {
    grid-row: 2;
    text-align: center;              /* 🔥 alles zentriert */
  }

  /* Logo Größe */
  .card-inner.has-logo .logo {
    max-width: 80px;
  }

  /* =======================
     Zentrierung Feinschliff
  ======================= */

  /* Links sauber mittig */
  .card-inner.has-logo .card-text a {
    display: inline-block;
  }

  /* Öffnungszeiten einspaltig + zentriert */
  .card-inner.has-logo .opening-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .card-inner.has-logo .opening-days,
  .card-inner.has-logo .opening-times {
    text-align: center;
  }

  /* Social Icons mittig */
  .card-inner.has-logo .social {
    text-align: center;
  }

  .card-inner.has-logo .social a {
    margin: 0 4px;
  }
}