/* --------------------------------------------------

  :::  Sections Styles

-------------------------------------------------- */


/* --------------------------------------------------
  :::  Notification Styles
-------------------------------------------------- */
.alert-header {
    margin-bottom: 0;
    font-size: var(--step-0);
    padding: var(--space-3xs-2xs);
    text-align: center;
}

.alert {
    position: relative;
    margin-bottom: 20px;
    padding: 15px 29px 15px 15px;
}

/* --------------------------------------------------
  :::  Schmale Spalte > blocks Template
-------------------------------------------------- */
/* Container mit 80% Breite */
.container.w-80 {
  max-width: calc(var(--grid-max-width) * 0.8);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Text-Blöcke mit 80% Breite */
.text.blocks {
  width: 100%; /* 100% der Container-Breite, was 80% der Gesamtbreite entspricht */
}

.text:first-of-type {
  padding-top: var(--space-xl-2xl);
}

/* Überschriften mit voller Breite */
.text.blocks h1,
.text.blocks h2,
.text.blocks h3,
.text.blocks h4,
.text.blocks h5,
.text.blocks h6 {
  width: 100%;
  margin-bottom: 1.5rem;
}

/* Absätze mit begrenzter Breite und rechts ausgerichtet */
.text.blocks p:not(blockquote p):not(.columns-block p),
.text.blocks ul:not(ul.reference-list) {
  width: 80%;
  margin-left: auto;
  margin-right: 0;
  text-align: left;
  margin-bottom: 1.5rem;
}

/* Blockquote mit voller Breite */
.text.blocks blockquote {
  margin-bottom: var(--space-xl);
}

/* Blockquote Absätze mit voller Breite */
.text.blocks blockquote,
.text.blocks blockquote p {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Bild, Galerie und Slider-Blöcke mit 80% Breite und zentriert */
/* Diese Blöcke sind breiter als der Text-Container */
.text.blocks figure,
.text.blocks .slider-wrapper {
  width: 100%; /* 80% / 70% = 1.1428 oder 114.28% der Container-Breite */
  max-width: calc(var(--grid-max-width) * 0.7); /* 80% der maximalen Grid-Breite */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.text.blocks figure:not(figure.slider) {
  margin: var(--space-xl) auto;
}

.text.blocks .slider-wrapper {
  margin: var(--space-xl) auto var(--space-xl) auto;
  overflow: visible;
}
/* Stellen Sie sicher, dass Bilder innerhalb der figure-Elemente responsive sind */

.text.blocks .slider-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Anpassungen für mobile Geräte */
@media (max-width: 768px) { 
  /* Überschriften und Absätze mit gleicher Breite */
  .text.blocks h1,
  .text.blocks h2,
  .text.blocks h3,
  .text.blocks h4,
  .text.blocks h5,
  .text.blocks h6,
  .text.blocks p,
  .text.blocks blockquote,
  .text.blocks blockquote p {
    width: 100%!important;
    max-width: 100%!important;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Im mobilen View stoßen Bild-Blöcke an den Browserrand */
  .text.blocks figure,
  .text.blocks .slider-wrapper {
    width: 100vw;
    max-width: 100vw;
  }

  /* Spezifische Anpassungen für Block-Container im mobilen View */
  .text.blocks .block-type-image,
  .text.blocks .block-type-gallery,
  .text.blocks .block-type-imageslider {
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
}
