body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    line-height: 1.5;
    font-size: 18px;
    margin: 0px;
    background-repeat: no-repeat;
    background-size: auto;
    background-position: center center;
}

p {
    margin: 0px;
    padding: 0px;
}

/* Styles for the landing page */
.landing-page {
    text-align: left;
    padding: 50px 20px; /* Außenabstand der gesamten Landing-Page */
}

/* Neue Hilfsklasse für Inhalte, die explizit gepolstert werden sollen */
.padded-content {
    padding: 20px 25px;
    box-sizing: border-box;
    width: 100%;
    display: block;
}

/* Spezifische Regel für h1 und h2 in der Landing-Page */
.landing-page h1,
.landing-page h2 {
    padding: 20px 25px;
    box-sizing: border-box;
}

/* Überschriften mit Rahmen */
.landing-page h1 {
    border-top: rgb(181, 6, 76) solid 1px;
    border-bottom: rgb(181, 6, 76) solid 1px;
}

.landing-page h2 {
    border-top: rgb(189, 189, 189) solid 1px;
    border-bottom: rgb(189, 189, 189) solid 1px;
}

/* Styles for StreamField content */
.stream-content {
    margin: auto;
    border-width: 0px;
    border-style: solid;
    background-repeat: no-repeat;
    background-size: auto;
    background-position: center center;
    border-radius: 0px;
    max-width: 1280px;
    width: 100%;
}

.stream-content h2 {
    margin-bottom: 50px;
}

.stream-content p {
    margin-bottom: 20px;
}

.stream-content img {
    margin: 20px 0;
    max-width: 100%;
    height: auto;
}

.cta-button, .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.cta-button:hover, .btn:hover {
    background-color: #0056b3;
}

blockquote {
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

.raw-html {
    text-align: left;
}

.embed {
    margin: 20px 0;
    text-align: center;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.table th {
    background-color: #f2f2f2;
}

.two-columns, .three-columns {
    display: flex;
}

.two-columns {
    gap: 20px;
}

.three-columns {
    gap: 20px;
}

.two-columns .left-column, .two-columns .right-column,
.three-columns .left-column, .three-columns .middle-column, .three-columns .right-column {
    flex: 1;
}

@media (max-width: 768px) {
    .two-columns, .three-columns {
        flex-direction: column;
    }
}

/* Basic Styles */
h1 {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
    font-size: 2em;
    font-weight: 300;
    line-height: 1.4;
    word-wrap: break-word;
}

h2 {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
    font-size: 1.5555em;
    font-weight: 300;
    line-height: 1.4;
}

h3 {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 500;
    line-height: 1.4;
}

h4 {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.ul {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    list-style-type: disc;
    padding-left: 20px;
}

.li {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

/* MISC */
.intro-block p {
    /* Falls das Intro-Bereich Padding benötigt, kannst du es explizit hier definieren */
    padding: 0px 25px;
    font-size: 1.75em;
}

/* DOWNLOAD BUTTON */
.document-download {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.document-download:hover {
    background-color: #0056b3;
}

/* AKKORDEON */
.collapsible {
  background-color: #e3e3e3;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: solid;
  text-align: left;
  outline: none;
  font-size: 18px;
}

.active, .collapsible:hover {
  background-color: #c3c3c3;
}

.collapsible:after {
  content: '\002B';
  color: #b5064c;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
}

.content {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: #f1f1f1;
}

/* FLIP CARD */
.flip-card4 {
    -webkit-perspective: 1000;
            perspective: 1000;
    border: 0;
    background: transparent;
}
  
.flip-card4:hover .flip-card-inner4,
.flip-card4.hover .flip-card-inner4 {
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
}
  
.flip-card4 {
    background-color: transparent;
    width: 401px;
    height: 294px;
    perspective: 1000px;
}
  
.flip-card-inner-front4 {
    width: 390px;
    height: 294px;
    border-radius: 10px;
}
  
.flip-card-inner-back4 {
    width: 370px;
    height: 265px;
    border-radius: 10px;
}
  
.flip-card-inner4 {
    transition: 0.5s;
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
    position: relative;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
}
  
.flip-card-inner-front4,
.flip-card-inner-back4 {
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
}
  
.flip-card-inner-front4 {
    background: url(https://info.dgq.de/cdnr/201/acton/attachment/23495/f-5d6747a0-312a-4978-ab6c-50e0d3d992f7/1/-/-/-/-/Regionalkreise.jpg) 0 0 no-repeat;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
  
.flip-card-inner-front4 span {
    width: 100%;
    text-align: center;
    background: rgba(254, 254, 254, 0.8);
    padding: 0.25rem 0;
    font-size: 1.25rem;
}
  
.flip-card-inner-back4 {
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: left;
    background: #d3d3d3;
    padding: 1rem;
}
  
.flip-card-inner-back-title4 {
    font-weight: medium;
    text-align: left;
}
  
.flip-card-inner-back-text4 {
    line-height: 1.3;
}

/* HERO IMAGE */
.hero-image {
    width: calc(100% + 40px);
    margin-left: -20px;
}
.hero-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* HEADER IMAGE FIXED */
.header-image-fixed {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}
.header-image-fixed img {
    display: block;
    width: 100%;
    height: auto;
}

/* TEASER BLOCK */
.teaser-block {
    display: flex;
    flex-wrap: wrap;
    /* Statt center nun flex-start, damit Oberkanten ausgerichtet sind */
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background-color: #f1f1f1;
    width: 100%;
    box-sizing: border-box;
}

.teaser-block__image {
    flex: 0 0 auto;
    max-width: 200px;
    width: 100%;
    box-sizing: border-box;
}

.teaser-block__image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0; /* Überschreibt z.B. "margin: 20px 0" aus .stream-content img */
}

.teaser-block__content {
    flex: 1;
    /* Falls die Überschrift standardmäßig oben einen Rand hat, setzen wir ihn auf 0 */
}

.teaser-block__content h3 {
    margin-top: 0;
}

.teaser-block__link {
    color: #b5064c;
    text-decoration: none;
    font-weight: bold;
}

.teaser-block__link:hover {
    text-decoration: underline;
}

/* Auf Mobilgeräten wird das Layout gestapelt */
@media (max-width: 768px) {
    .teaser-block {
        flex-direction: column;
        align-items: flex-start; /* optional, damit es konsistent bleibt */
    }
    .teaser-block__image,
    .teaser-block__content {
        width: 100%;
        max-width: 100%;
    }
}

/* Dreispaltiger Text (grau) */
.three-col-text-block {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.three-col-text-block__col {
    flex: 1;
    background-color: #bdbdbd; /* Grauer Hintergrund */
    padding: 20px;
    box-sizing: border-box;
}

/* Listen anpassen: Pfeile statt normaler Bullets */
.three-col-text-block__col ul {
    list-style-type: none;   /* Standard-Bullet ausschalten */
    margin: 0;
    padding-left: 0;         /* Keine Einrückung */
}

/* Pseudo-Element für den Pfeil */
.three-col-text-block__col ul li {
    position: relative;
    padding-left: 28px;      /* Platz für den Pfeil */
    margin-bottom: 10px;     /* Kleiner Abstand zwischen den Listeneinträgen */
}

.three-col-text-block__col a,
.three-col-text-block__col a {
  text-decoration: none;
  color: #b5064c;
}
.three-col-text-block__col a:hover,
.three-col-text-block__col a:hover {
  text-decoration: underline;
}

/* Du kannst statt '→' auch '»' oder ein Icon (via Font) verwenden */
.three-col-text-block__col ul li::before {
    content: "→";
    color: #b5064c;          /* DGQ-Farbe z. B. */
    font-weight: bold;
    position: absolute;
    left: 0; 
}

/* Responsive Breakpoint */
@media (max-width: 768px) {
    .three-col-text-block {
        flex-direction: column;
    }
    .three-col-text-block__col {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 2-Spalten (Überschrift + Pfeil-Liste) */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    /* Nur horizontaler Abstand zwischen den Spalten */
    column-gap: 20px;
    /* Vertikaler Abstand = 0 */
    row-gap: 0;
    grid-template-areas:
      "top-left top-right"
      "bottom-left bottom-right";
    margin: 20px 0; /* Optionaler Außenabstand zur Umgebung */
    box-sizing: border-box;
  }
  
  /* Zuweisung der Grid-Bereiche */
  .two-col-grid__top-left {
    grid-area: top-left;
    background-color: #e3e3e3;
    border-top: 2px solid #b5064c;
    border-bottom: 2px solid #b5064c;
    padding: 15px;
  }
  .two-col-grid__top-right {
    grid-area: top-right;
    background-color: #e3e3e3;
    border-top: 2px solid #b5064c;
    border-bottom: 2px solid #b5064c;
    padding: 15px;
  }
  .two-col-grid__bottom-left {
    grid-area: bottom-left;
    background-color: #bdbdbd;
    padding: 15px;
  }
  .two-col-grid__bottom-right {
    grid-area: bottom-right;
    background-color: #bdbdbd;
    padding: 15px;
  }
  
  /* Überschriften-Stil */
  .two-col-grid__top-left h4,
  .two-col-grid__top-right h4 {
    margin: 0; 
    font-size: 1.1em; 
    font-weight: 200;
    line-height: 1.4;
    color: #b5064c;
  }
  .two-col-grid__top-left a,
  .two-col-grid__top-right a {
    text-decoration: none;
    color: #b5064c;
  }
  .two-col-grid__top-left a:hover,
  .two-col-grid__top-right a:hover {
    text-decoration: underline;
  }
  
  /* Pfeile in den unteren Listen */
  .two-col-grid__bottom-left ul,
  .two-col-grid__bottom-right ul {
    list-style-type: none; 
    margin: 0;
    padding-left: 0;
  }
  .two-col-grid__bottom-left li,
  .two-col-grid__bottom-right li {
    position: relative;
    padding-left: 28px; 
    margin-bottom: 10px;
  }
  .two-col-grid__bottom-left li::before,
  .two-col-grid__bottom-right li::before {
    content: "→";
    color: #b5064c;
    font-weight: bold;
    position: absolute;
    left: 0;
  }
  
  /* Mobile: 1 Spalte, 4 Zeilen
     => linke Überschrift + Text, dann rechte Überschrift + Text
  */
  @media (max-width: 768px) {
    .two-col-grid {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto auto;
      column-gap: 0;
      row-gap: 0;
      grid-template-areas:
        "top-left"
        "bottom-left"
        "top-right"
        "bottom-right";
    }
  }


/* BLOCK 3xn */

/* Container für den gesamten Block */
.block-3xn-container {
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f7f7f7;
    color: #4a4a4a;
    font-family: Arial, sans-serif;
  }
  
  /* Hauptüberschrift (H2) */
  .block-3xn-heading {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
  }
  
  /* Zeile: Standardmäßig 3 Spalten */
  .block-3xn-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
  }
  
  /* Bei kleineren Bildschirmen: 1 Spalte */
  @media (max-width: 768px) {
    .block-3xn-row {
      grid-template-columns: 1fr;
    }
  }
  
  /* Spalte */
  .block-3xn-column {
    padding: 16px;
    box-sizing: border-box;
  }
  
  /* Spaltenüberschriften (H3) */
  .block-3xn-column h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  /* RichText-Inhalt */
  .block-3xn-content {
    line-height: 1.6;
  }


/* DGQ-Netzwerkveranstaltungen */
.netzwerk-header {
    background-color: rgba(181, 6, 76, 0.8);
    padding: 15px 10px 15px 20px;
    border-top: 2px solid #bdbdbd;
}

.netzwerk-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2em;
}

.netzwerk-container {
    background-color: #bdbdbd;
    padding: 10px 20px;
}

.netzwerk-event {
    margin-bottom: 1.5em;
}

.event-title {
    font-weight: bold;
    margin-bottom: 5px !important;
}

.event-description {
    margin-bottom: 5px !important;
}

.event-link a {
    color: #b5064c;
    font-weight: bold;
    text-decoration: none;
}

.event-link a:hover {
    text-decoration: underline;
}

.netzwerk-additional {
    margin-top: 2em;
}