/* Link als Button im marrylove-Stil */
a.btn-link,
a.btn-link:link,
a.btn-link:visited,
a.btn-link:hover,
a.btn-link:active,
a.btn-link:focus {
  text-decoration: none;                  /* Unterstreichung aus */
  color: #000000;                         /* Schwarzer Text */
  font-weight: 400;                       /* normale Schriftstärke */
}

a.btn-link {
  display: inline-block;
  padding: 10px 18px;
  line-height: 1.2;
  cursor: pointer;

  /* Farbangaben aus deinem Screenshot */
  background: rgba(51, 156, 209, 0.5);    /* halbtransparentes Blau */
  border: 1px solid #339cd1;              /* Rahmenfarbe */
  border-radius: 1px;                     /* leichte Abrundung */
  box-shadow: 0 0 5px 0 rgba(51, 156, 209, 0.5);
}

/* Hover- und Klickzustände */
a.btn-link:hover,
a.btn-link:focus {
  text-decoration: none;
  color: #000000;                         /* bleibt schwarz */
  filter: brightness(0.95);
  box-shadow: 0 0 7px 0 rgba(51, 156, 209, 0.6);
  outline: none;
}

a.btn-link:active {
  filter: brightness(0.9);
}


/* ===========================
   Formular-Layout (ml-form)
   =========================== */

.ml-form {
  max-width: 100%;
}

.ml-form-row {
  margin-bottom: 15px;
}

.ml-form-row label {
  display: block;
}

.ml-form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

.ml-form-required {
  color: #c00000;
}

.ml-form input[type="text"],
.ml-form input[type="email"],
.ml-form input[type="tel"],
.ml-form input[type="url"],
.ml-form input[type="number"],
.ml-form textarea,
.ml-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font: inherit;
}

.ml-form textarea {
  min-height: 140px;
}

.ml-form-error-msg {
  color: #c00000;
  font-size: 0.9em;
  margin-top: 4px;
}

/* Ausrichtung der Submit-Zeile */
.ml-form-row-submit {
  margin-top: 20px;
}

/* ===========================
   Button-Variante von .btn-link
   =========================== */

button.btn-link,
input[type="submit"].btn-link {
  text-decoration: none;
  color: #000000;
  font-weight: 400;
  display: inline-block;
  padding: 10px 18px;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid #339CD1;
  background: linear-gradient(135deg, #ffffff, #dbeffd);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 0 0 0 rgba(51, 156, 209, 0.6);
}

button.btn-link:hover,
button.btn-link:focus,
input[type="submit"].btn-link:hover,
input[type="submit"].btn-link:focus {
  text-decoration: none;
  color: #000000;
  filter: brightness(0.95);
  box-shadow: 0 0 7px 0 rgba(51, 156, 209, 0.6);
  outline: none;
}

button.btn-link:active,
input[type="submit"].btn-link:active {
  filter: brightness(0.9);
}


/* Zusätzliche, stärker gezielte Formular-Styles für alle dynamischen Formulare
   (Formulare, die per data-ml-form gekennzeichnet sind) */

form[data-ml-form] {
  max-width: 100%;
}

form[data-ml-form] .ml-form-row {
  margin-bottom: 15px;
}

form[data-ml-form] label {
  display: block;
}

form[data-ml-form] .ml-form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

form[data-ml-form] .ml-form-required {
  color: #c00000;
}

form[data-ml-form] input[type="text"],
form[data-ml-form] input[type="email"],
form[data-ml-form] input[type="tel"],
form[data-ml-form] input[type="url"],
form[data-ml-form] input[type="number"],
form[data-ml-form] textarea,
form[data-ml-form] select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font: inherit;
}

form[data-ml-form] textarea {
  min-height: 140px;
}

form[data-ml-form] .ml-form-error-msg {
  color: #c00000;
  font-size: 0.9em;
  margin-top: 4px;
}

form[data-ml-form] .ml-form-row-submit {
  margin-top: 20px;
}

/* Button im Formular wie .btn-link darstellen */
form[data-ml-form] button[type="submit"],
form[data-ml-form] input[type="submit"],
button.btn-link,
input[type="submit"].btn-link {
  text-decoration: none;
  color: #000000;
  font-weight: 400;
  display: inline-block;
  padding: 10px 18px;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid #339CD1;
  background: linear-gradient(135deg, #ffffff, #dbeffd);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 0 0 0 rgba(51, 156, 209, 0.6);
}

form[data-ml-form] button[type="submit"]:hover,
form[data-ml-form] button[type="submit"]:focus,
form[data-ml-form] input[type="submit"]:hover,
form[data-ml-form] input[type="submit"]:focus,
button.btn-link:hover,
button.btn-link:focus,
input[type="submit"].btn-link:hover,
input[type="submit"].btn-link:focus {
  text-decoration: none;
  color: #000000;
  filter: brightness(0.95);
  box-shadow: 0 0 7px 0 rgba(51, 156, 209, 0.6);
  outline: none;
}

form[data-ml-form] button[type="submit"]:active,
form[data-ml-form] input[type="submit"]:active,
button.btn-link:active,
input[type="submit"].btn-link:active {
  filter: brightness(0.9);
}



/* Globale Button-Klasse im marrylove-Stil */
.btn,
a.btn-link,
form[data-ml-form] button[type="submit"],
form[data-ml-form] input[type="submit"],
button.btn-link,
input[type="submit"].btn-link {
  text-decoration: none;
  color: #000000;
  font-weight: 400;
  display: inline-block;
  padding: 10px 18px;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid #339CD1;
  background: linear-gradient(135deg, #ffffff, #dbeffd);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 0 0 0 rgba(51, 156, 209, 0.6);
}

/* Hover- und Fokuszustände für Buttons */
.btn:hover,
.btn:focus,
a.btn-link:hover,
a.btn-link:focus,
form[data-ml-form] button[type="submit"]:hover,
form[data-ml-form] button[type="submit"]:focus,
form[data-ml-form] input[type="submit"]:hover,
form[data-ml-form] input[type="submit"]:focus,
button.btn-link:hover,
button.btn-link:focus,
input[type="submit"].btn-link:hover,
input[type="submit"].btn-link:focus {
  text-decoration: none;
  color: #000000;
  filter: brightness(0.95);
  box-shadow: 0 0 7px 0 rgba(51, 156, 209, 0.6);
  outline: none;
}

/* Active-Zustand für Buttons */
.btn:active,
a.btn-link:active,
form[data-ml-form] button[type="submit"]:active,
form[data-ml-form] input[type="submit"]:active,
button.btn-link:active,
input[type="submit"].btn-link:active {
  filter: brightness(0.9);
}


/* Added spacing under image caption */
.ml-press-image-meta { margin-bottom: 1.6rem; display:block; }

/* Marrylove – Bild-Galerie (Grid)
   --------------------------------
   Block "Bild-Galerie (Grid)" erzeugt:
   <div class="ml-gallery" data-ml-gallery="1"> … </div>
*/
.ml-gallery[data-ml-gallery],
.ml-gallery {
  margin: 2rem 0;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Einzelnes Galerie-Item – sorgt für einheitliche Bildkacheln */
.ml-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

/* Bilder in der Übersicht – einheitlicher Zuschnitt (z. B. 4:3) */
.ml-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Linktext in der Kachel nicht anzeigen – Caption nur in der Lightbox nutzen */
.ml-gallery-item {
  font-size: 0;
  line-height: 0;
}

/* Fallback für Bilder innerhalb der Galerie ohne .ml-gallery-item */
.ml-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Mobile: unterhalb von 640px lieber einspaltig stapeln,
   damit keine "einsame" Kachel in einer zweiten Zeile hängt. */
@media (max-width: 640px){
  .ml-gallery[data-ml-gallery],
  .ml-gallery {
    display: block !important;
  }

  .ml-gallery-item {
    margin-bottom: 1rem;
  }
}

/* Lightbox für Galerie-Bilder */
/* Lightbox für Galerie-Bilder */
.ml-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.ml-lightbox-inner {
  max-width: 90vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

.ml-lightbox-inner img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ml-lightbox-caption {
  margin-top: 0.75rem;
  color: #ffffff;
  font-size: 0.9rem;
  text-align: center;
  max-width: 100%;
}


.ml-lightbox-inner img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  height: auto;
  display: block;
}

.ml-lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* Marrylove – Bilder-Slider
   --------------------------------
   Block "Bilder-Slider":
   <div class="ml-slider" data-ml-slider="1"> … </div>
*/
.ml-slider[data-ml-slider],
.ml-slider {
  margin: 2rem 0;
  width: 100%;
  position: relative;
}


/* Sliderbilder: einheitliches 16:9-Format mit Zuschnitt */
.ml-slider .ml-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ml-slider-track {
  position: relative;
  overflow: hidden;
}

.ml-slide {
  display: none;
}

.ml-slide.is-active {
  display: block;
}

.ml-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.ml-slide figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

/* Slider-Navigation (Pfeile) */
.ml-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #339CD1;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.ml-slider-arrow:hover {
  background: #e6f2fb;
}

.ml-slider-prev {
  left: -2rem;
}

.ml-slider-next {
  right: -2rem;
}

/* Dots unter dem Slider */

/* Beschriftungen im Slider im Frontend ausblenden */
.ml-slider figcaption {
  display: none;
}
.ml-slider-dots {
  margin-top: 0.75rem;
  text-align: center;
}

.ml-slider-dot {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;

  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #339CD1;
  background: #ffffff;
  display: inline-block;
  margin: 0 4px;
  padding: 0;
  cursor: pointer;
}

.ml-slider-dot.is-active {
  background: #339CD1;
}

/* Alte "Send"-Buttons im Slider ausblenden */
.ml-slider[data-ml-slider] input[type="submit"],
.ml-slider[data-ml-slider] button[type="submit"],
.ml-slider input[type="submit"],
.ml-slider button[type="submit"] {
  display: none;
}

/* Mobile */
@media (max-width: 600px) {
  }


/* Alle Texte im Slider ausblenden – nur Pfeile & Dots bleiben sichtbar */
.ml-slider {
  color: transparent;
}

/* Pfeile explizit einfärben, damit die Symbole sichtbar bleiben */
.ml-slider .ml-slider-arrow {
  color: #339CD1;
}


/* ============================================
   Marrylove – Bilder-Slider Feintuning (2025-12-01)
   - Slider über volle Breite wie Galerie/Footer
   - Pfeile dezent innerhalb des Bildes positionieren
   ============================================ */

/* Slider full-bleed über die gesamte Viewport-Breite */
.ml-slider[data-ml-slider],
.ml-slider {
  margin: 2rem 0;
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Keine zusätzlichen Ränder um die Slides */
.ml-slider .ml-slider-track {
  position: relative;
  overflow: hidden;
  max-width: 100vw;
}

.ml-slider .ml-slide {
  margin: 0;
}

/* Bilder randlos und ohne abgerundete Ecken */
.ml-slider .ml-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Pfeile modern & minimalistisch innerhalb des Bildes */
.ml-slider .ml-slider-arrow {
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ml-slider .ml-slider-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.05);
}

/* Pfeile mit Abstand nach innen statt außerhalb des Bildes */
.ml-slider-prev {
  left: 1rem;
  right: auto;
}

.ml-slider-next {
  right: 1rem;
  left: auto;
}

/* Texte im Slider weiterhin ausblenden, Pfeile bleiben sichtbar */
.ml-slider {
  color: transparent;
}

/* Auf sehr kleinen Screens etwas kleinere Pfeile verwenden */
@media (max-width: 600px) {
  .ml-slider .ml-slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

/* === Vollbreiter Abschnitt ========================================= */

.gjs-render .ml-fullwidth-section,
.ml-fullwidth-section {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-top: 24px;
  padding-bottom: 24px;
}


/* Kein zusätzlicher Abstand nach dem Header: 
   Wenn die erste Sektion direkt unter dem Header sitzt,
   oben keinen Extra-Padding-Abstand. */
.gjs-render > .ml-fullwidth-section:first-child {
  padding-top: 0;
}
/* Innerer Inhaltsbereich:
   - Breite wie normale Textspalte (1200px - 2 * 24px Padding)
   - keine zusätzliche horizontale Einrückung
*/
.gjs-render .ml-fullwidth-inner,
.ml-fullwidth-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

@media (max-width: 767.98px) {
  .gjs-render .ml-fullwidth-section,
  .ml-fullwidth-section {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}


/* ===== Gap-Fix direkt unter dem Header =====
   Entfernt jeden zusätzlichen oberen Abstand (Margin/Padding) 
   des ersten Blocks im Grapes-Content-Bereich. */
.gjs-render > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Speziell für die Fullwidth-Sektion */
.gjs-render > .ml-fullwidth-section:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ===== Presse: Pagination (Archiv) ===== */
.ml-press-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ml-press-item {
  margin-bottom: 1.25rem;
}

.ml-press-item h2 {
  margin: 0 0 0.25rem;
}

.ml-pagination {
  margin: 1.25rem 0 0;
  display: flex;
  justify-content: center !important;
  width: 100%;
}

.ml-pagination .ml-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center !important;
  width: 100%;
}

.ml-pagination .ml-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(0,0,0,0.28) !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

.ml-pagination a.ml-page-btn:hover {
  background: rgba(0,0,0,0.04);
}

.ml-pagination .ml-page-arrow {
  padding: 0;
  font-weight: 700;
}

.ml-pagination .ml-active {
  background: rgba(0, 123, 255, 0.12);
  border-color: rgba(0, 123, 255, 0.4);
}

.ml-pagination .ml-disabled {
  opacity: 0.45;
}

.ml-pagination .ml-page-ellipsis {
  padding: 0 4px;
  opacity: 0.7;
}

/* ======================================================
   Header-Logo – Mobile Responsive Fix
   Verhindert Verzerrung/Übergröße durch feste Höhenwerte
   ====================================================== */
@media (max-width: 767px) {
  header .logo img {
    height: auto !important;
    width: auto !important;
    max-height: 110px;  /* ausreichend groß, aber nicht überdimensioniert */
    max-width: 100%;
    display: block;
  }
}

/* ======================================================
   Header-Logo – Desktop Spacing (Logo oberhalb Navigation)
   Mehr Abstand zwischen Logo und Navigation, damit beides
   nicht "zusammenklebt". Gilt nur in der Desktopansicht.
   ====================================================== */
@media (min-width: 768px) {
  .ml-header.ml-nav-top.ml-logo-above .ml-header-logo {
    margin-bottom: 18px;
  }
}
