/*==== Überschriften ====*/
/* source-sans-3-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  src: url('https://simonefriese.de/css/font/source-sans-3-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* source-sans-3-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  src: url('https://simonefriese.de/css/font/source-sans-3-v19-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* source-sans-3-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  src: url('https://simonefriese.de/css/font/source-sans-3-v19-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* source-sans-3-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 600;
  src: url('https://simonefriese.de/css/font/source-sans-3-v19-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* source-sans-3-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  src: url('https://simonefriese.de/css/font/source-sans-3-v19-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* source-sans-3-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 700;
  src: url('https://simonefriese.de/css/font/source-sans-3-v19-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* ==== Browserverhalten ==== */

html {
  scrollbar-gutter: stable;
}

/* ==== Grundtypografie ==== */

body {
  font-family: 'Source Sans 3', sans serif;
  font-weight: 400;
  color: #111111;
  margin: 0;
  line-height: 1.3;
}

p {
  font-size: 16px;
  line-height: 1.3;
  margin-top: 0.15rem;
  margin-bottom: 0.45rem;  
}

blockquote {
  font-style: italic;
  background-color: transparent;
  border-radius: 12px;
  /*padding: 15px;*/
  max-height: 400px;
  overflow: auto;
}

a {
  color: inherit;
  text-decoration: underline;
}

a:hover {
  color: black;
}

h1 { 
  font-family: 'Source Sans 3', sans serif;
  font-weight: 600;
  color: #abcb3c;
  font-size: 2.25rem;
  margin-top: 0.15rem;
  margin-bottom: 0.45rem; 
}

h2 {
  font-family: 'Source Sans 3', sans serif;
  font-weight: 600;
  color: #009ee3;
  font-size: 22px;
  /*line-height: 1.3;*/
  font-size: 1.4rem;    /* 22px */
  margin-top: 0.15rem;
  margin-bottom: 0.45rem; 
}

h3 {
  font-family: 'Source Sans 3', sans serif;
  font-weight: 600;
  /*color: #009ee3;*/
  font-size: 16px;
  /*line-height: 1.3;*/
  margin-bottom: 0;
  margin-top: 0.15rem;
  margin-bottom: 0.45rem;  
}

h4 {
  font-family: 'Source Sans 3', sans serif;
  font-weight: 600;
  /*color: #009ee3;*/
  font-weight: normal;
  font-size: 16px;        /* 16px */
  font-weight: normal;
  /*line-height: 1.5;*/
  margin-top: 0.15rem;
  margin-bottom: 0.45rem;  
}

ul {
  padding-left: 16px;
  margin: 0px 0;
}

ol {
  padding-left: 20px;
  margin: 0px 0;
}

li {
  margin-bottom: 5px; 
}

hr {
  border: none;
  border-top: 1px solid rgb(119, 119, 119);
  margin: 20px 0;
}

pre {
  background-color: #f2f2f2;
  border-radius: 12px;
  padding: 20px;
  max-height: 400px;
  overflow: auto;
}

code {
  color: rgb(19, 95, 170);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

button {
  font-size: 16px;
  color: #ffffff;
  background-color: green;
  border-radius: 12px;
  padding: 10px 20px;
  /*margin: 10px;*/
  cursor: pointer;
  border: none;
}

/* ==== Tabelle ==== */

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  /*font-size: 14px;*/
  font-weight: bold;
}

td {
  /*font-size: 14px;*/
}

/* ==== Kachel-Raster 800px (400er + 800er Kachel gemischt) ==== */
/* Eigener Breakpoint bei 800px (statt der sonst üblichen 600px):
   Container ist nur 800px breit, daher passt unterhalb dieser
   Breite keine zweite 400px-Spalte mehr -> bewusste Ausnahme,
   analog zur Navigation mit ihrem eigenen 768px-Breakpoint. */

.raster800-seite {
  width: 100%;
  max-width: 840px; /* 800px Inhalt + 2x20px Padding */
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  padding: 0 20px;
}

.raster800-einzeln {
  display: grid;
  grid-template-columns: repeat(auto-fill, 400px);
  justify-content: center;
  grid-gap: 0rem;
}

@media only screen and (max-width: 830px) {
  .raster800-einzeln {
    grid-template-columns: auto;
  }
}

/* ---- gemeinsame Tile-Basis ---- */
.raster800-einzeln .kachel-400,
.raster800-einzeln .kachel-800 {
  max-height: none;
  min-height: auto;
  margin-bottom: 0.5rem;
  padding: 1rem 1.5rem;      /* <-- oben/unten 1rem, links/rechts jetzt 1.5rem */
  box-sizing: border-box;    /* <-- NEU: Padding wird in die feste Breite eingerechnet */
  background: #f6f6f6;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

/* ---- Tile 400px ---- */
.raster800-einzeln .kachel-400 {
  max-width: 392px;
  min-width: 392px;
}

/* ---- Tile 800px (spannt 2 Grid-Spalten) ---- */
.raster800-einzeln .kachel-800 {
  grid-column: span 2;
  max-width: 792px;
  min-width: 792px;
}

/* ---- Responsive Reset unter 800px ----
   WICHTIG: muss NACH den festen Breiten stehen,
   sonst wird der Reset von den Regeln oben überschrieben */
@media only screen and (max-width: 830px) {
  .raster800-einzeln .kachel-400,
  .raster800-einzeln .kachel-800 {
    max-width: 100%;
    min-width: unset;
    max-height: none;
    min-height: auto;
  }

  .raster800-einzeln .kachel-800 {
    grid-column: span 1; /* sonst reißt das 1-Spalten-Grid eine leere Spalte auf */
  }
}

/* ---- Textverhalten in beiden Tile-Größen ---- */
.raster800-einzeln .kachel-400 p,
.raster800-einzeln .kachel-800 p {
  word-wrap: break-word;
  overflow: hidden;
}

.raster800-einzeln .kachel-400 a,
.raster800-einzeln .kachel-800 a {
  text-decoration: underline;
  color: inherit;
}

@media only screen and (max-width: 830px) {
  .raster800-einzeln .kachel-400 p,
  .raster800-einzeln .kachel-800 p {
    margin-bottom: 0rem;
    padding-bottom: 0rem;
    /*font-size: 70%;*/
  }
}

/* ---- Medien Tile 400px: quadratisch begrenzt ---- */
.raster800-einzeln .kachel-400 img,
.raster800-einzeln .kachel-400 video {
  margin-top: auto;
  margin-right: auto;
  margin-bottom: 15px;
  margin-left: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 360px; /* = Content-Breite der Kachel -> quadratische Obergrenze */
  object-fit: contain;
}

/* ---- Medien Tile 800px: quadratisch begrenzt ---- */
.raster800-einzeln .kachel-800 img,
.raster800-einzeln .kachel-800 video {
  margin-top: auto;
  margin-right: auto;
  margin-bottom: 15px;
  margin-left: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 760px; /* = Content-Breite der Kachel -> quadratische Obergrenze */
  object-fit: contain;
}

/* ---- Medien mobil: fixer Kompromisswert (kein exaktes Quadrat, wie im Bestand) ---- */
@media only screen and (max-width: 830px) {
  .raster800-einzeln .kachel-400 img,
  .raster800-einzeln .kachel-400 video,
  .raster800-einzeln .kachel-800 img,
  .raster800-einzeln .kachel-800 video {
    max-width: 100%;
    max-height: 320px;
  }
}

/* ==== Kachel-Layout 400px ==== */

.kachel400-seite {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  /*margin-top: 10px;*/
  padding: 0 20px;
  box-sizing: border-box;
}

.kacheln400-einzeln {
  display: grid;
  grid-template-columns: repeat(auto-fill, 400px);
  justify-content: center;
  grid-gap: 0rem;
}

@media only screen and (max-width: 600px) {
  .kacheln400-einzeln {
    grid-template-columns: auto;
  }
}

.kacheln400-einzeln div {
  max-width: 385px;
  max-height: none;
  min-width: 385px;
  min-height: auto;
  margin: 0 auto 1rem auto;  /* <-- geändert: war nur "margin-bottom: 1rem" */
  padding: 1.5rem;
  background: #f6f6f6;
  /*border-radius: 10px;*/
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

@media only screen and (max-width: 600px) {
  .kacheln400-einzeln div {
    max-width: 100%;
    min-width: unset;
    max-height: none;
    min-height: auto;
  }
}

.kacheln400-einzeln div p {
  word-wrap: break-word;
  overflow: hidden;
}

.kacheln400-einzeln div a {
  text-decoration: underline;
  color: inherit;
}

@media only screen and (max-width: 600px) {
  .kacheln400-einzeln div p {
    margin-bottom: 0rem;
    padding-bottom: 0rem;
    font-size: 70%;
  }
}

.kacheln400-einzeln div img,
.kacheln400-einzeln div video {
  margin-top: auto;
  margin-right: auto;
  margin-bottom: 15px;
  margin-left: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
}

@media only screen and (max-width: 600px) {
  .kacheln400-einzeln div img,
  .kacheln400-einzeln div video {
    max-width: 100%;
    max-height: 250px;
  }
}

/* ==== Kachel-Layout 600px (groß) ==== */

.kachel-seite {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  /*margin-top: 10px;*/
  padding: 0 20px;
  box-sizing: border-box;
}

.kacheln-einzeln {
  display: grid;
  grid-template-columns: repeat(auto-fill, 600px);
  justify-content: center;
  grid-gap: 0rem;
}

@media only screen and (max-width: 600px) {
  .kacheln-einzeln {
    grid-template-columns: auto;
  }
}

.kacheln-einzeln div {
  max-width: 585px;
  max-height: none;
  min-width: 585px;
  min-height: auto;
  margin: 0 auto 1rem auto;  /* <-- geändert: war nur "margin-bottom: 1rem" */
  padding: 1.5rem;
  background: #f6f6f6;
  /*border-radius: 10px;*/
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}


@media only screen and (max-width: 600px) {
  .kacheln-einzeln div {
    max-width: 100%;
    min-width: unset;
    max-height: none;
    min-height: auto;
  }
}

.kacheln-einzeln div p {
  word-wrap: break-word;
  overflow: hidden;
}

.kacheln-einzeln div a {
  text-decoration: underline;
  color: inherit;
}

@media only screen and (max-width: 600px) {
  .kacheln-einzeln div p {
    margin-bottom: 0rem;
    padding-bottom: 0rem;
    font-size: 70%;
  }
}

.kacheln-einzeln div img,
.kacheln-einzeln div video {
  margin-top: auto;
  margin-right: auto;
  margin-bottom: 15px;
  margin-left: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

@media only screen and (max-width: 600px) {
  .kacheln-einzeln div img,
  .kacheln-einzeln div video {
    max-width: 100%;
    max-height: 400px;
  }
}

/* ==== Kachel-Layout 1200px (Vollbreite) ==== */
.kachel1200-seite {
  width: 100%;
  max-width: 1225px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.kacheln1200-einzeln {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  grid-gap: 0rem;
}

.kacheln1200-einzeln div {
  width: 100%;
  max-width: 1200px;
  max-height: none;
  min-height: auto;
  margin: 0 auto 1rem auto;  /* <-- geändert: war nur "margin-bottom: 1rem" */
  padding: 1.5rem;
  background: #f6f6f6;
  /*border-radius: 10px;*/
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}



/* Medien – analog zu den anderen Layouts */
.kacheln1200-einzeln div img,
.kacheln1200-einzeln div video {
  margin-top: auto;
  margin-right: auto;
  margin-bottom: 15px;
  margin-left: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}

@media only screen and (max-width: 600px) {
  .kacheln1200-einzeln div img,
  .kacheln1200-einzeln div video {
    max-width: 100%;
    max-height: 400px;
  }
}

.kacheln1200-einzeln div p {
  word-wrap: break-word;
  overflow: hidden;
}

.kacheln1200-einzeln div a {
  text-decoration: underline;
  color: inherit;
}

/* ==== Kachel-Layout 300px (Bildkachel, vollflächig, Festhoehe) ==== */
.kachel300-seite {
  width: 100%;
  max-width: 1225px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  padding: 0 20px;
  box-sizing: border-box;
}

.kacheln300-einzeln {
  display: grid;
  grid-template-columns: repeat(auto-fill, 289px);
  justify-content: center;
  grid-gap: 0.5rem;
}

@media only screen and (max-width: 600px) {
  .kacheln300-einzeln {
    grid-template-columns: auto;
  }
}

.kacheln300-einzeln div {
  width: 289px;
  height: 220px;
  margin: 0 auto;
  padding: 1.5rem;
  /*border-radius: 10px;*/
  overflow: hidden;
  box-sizing: border-box;
  background: #f6f6f6;
}

.kacheln300-einzeln div:has(img),
.kacheln300-einzeln div:has(video) {
  padding: 0;
  line-height: 0;
  font-size: 0;
}

.kacheln300-einzeln div img,
.kacheln300-einzeln div video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media only screen and (max-width: 600px) {
  .kacheln300-einzeln div,
  .kacheln300-einzeln div:has(img),
  .kacheln300-einzeln div:has(video) {
    width: 100%;
  }
}

/* ==== Text-Layout (gestapelt) ==== */

.text-container {
  width: 100%;
  max-width: 800px;
  padding-top: 0px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
}

.text-container > div {
  box-sizing: border-box;
  padding-left: 1rem;
  padding-right: 1rem;
}

.text-container .text-item {
  width: 800px;
  margin: 0px; 
  background: transparent;
  text-align: left;
  word-wrap: break-word;
  border-radius: 10px;
}

/* ==== Spalten-Alignment: erstes Element ohne Top-Abstand ==== */
.text-container > div > *:first-child {
  margin-top: 0;
}

/* ==== Spalten-Alignment: erstes Bild mit Top-Abstand ==== */
.text-container > div > img:first-child,
.text-container > div > video:first-child {
  margin-top: var(--bild-versatz, 10px);
}

/* ==== Text-Layout halbe Breite (gestapelt) ==== */

.text-container .text-item-half {
  width: 50%;
}

@media only screen and (max-width: 600px) {
  .text-container .text-item-half {
    width: 100%;
  }
}

/* ==== Text-Layout Drittel (gestapelt) ==== */
.text-container .text-item-third {
  width: 33.333%;
}

@media only screen and (max-width: 600px) {
  .text-container .text-item-third {
    width: 100%;
  }
}

/* ==== Text-Layout Viertel (gestapelt) ==== */
.text-container .text-item-quarter {
  width: 25%;
}

@media only screen and (max-width: 600px) {
  .text-container .text-item-quarter {
    width: 100%;
  }
}

/* ==== Medien allgemein ==== */

.responsive-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 600px) {
  .responsive-image {
    max-width: 80%;
  }
}

/* ==== Lightbox Overlay ==== */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-overlay.aktiv {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* ==== Footer ==== */

.footer {
  background-color: transparent;
  color: rgb(157, 157, 157);
  text-align: left;
  margin-top: 50px;
  margin-bottom: 15px;
  padding: 10px 15px;      /* 20px seitlich wie text-container */
  max-width: 800px;            /* gleich wie text-container */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;      /* Padding wird eingerechnet */
}

.footer a {
  color: #B6B6B6;
  text-decoration: none;
}

.footer a:hover {
  color: black;
}

/* ==== Navigation ==== */

.navigation {
  text-align: center;
  font-family: 'OpenSans', sans-serif;
  color: #e8e8e8;
  font-size: 16px;
  margin-top: 15px; /* Nav1: Abstand zum Logo, Nav2: Position Navigation */
}

.navigation a {
  text-decoration: none;
  color: #B6B6B6;
  padding: 7px 20px 5px 10px;
}

.navigation a:hover {
  color: darkgreen;
}

.navigation a.current {
  background-color: #A0BA8B;
  color: #ffffff;
}

@media screen and (max-width: 768px) {
  .navigation a {
    display: block;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 5px;
    /* Abstand zwischen den Navigationspunkten */
    margin-left: auto;
    width: fit-content;
  }
}

/* ==== Kopfbereich (Logo + Navigation) ==== */

/* Variante 1 (Standard): Logo oben, Navigation darunter, zentriert */
.kopfbereich {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;   /* Abstand des gesamten Kopfbereichs zum Seiteninhalt */
}

.kopfbereich-logo img {
  display: block;
  margin-top: 5px;
}

/* Variante 2: Logo links, Navigation rechts, vertikal zentriert */
.kopfbereich.kopfbereich-split {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin-top: 0;
  margin-right: auto;
  margin-bottom: 35px;
  margin-left: auto;
  padding: 0 20px;
  box-sizing: border-box;
  line-height: 1.8;
}

@media only screen and (max-width: 768px) {
  .kopfbereich.kopfbereich-split {
    flex-direction: column;
    align-items: center;
  }
}

/* ==== Eingebtte iFrame inhalte ==== */

.embed-facade {
  position: relative;
  width: 100%;              
  max-width: 100%;          
  margin: 20px auto;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
}

.embed-facade img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.embed-facade::after {
  content: "▶";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: #fff;
  text-shadow: 0 0 6px rgba(0,0,0,.6);
}

.embed-hinweis {
  position: absolute;
  bottom: 5px; left: 0; right: 0;
  padding: 15px 15px 15px 15px; /* oben | rechts | unten | links */
  font-size: 16px;
  line-height: 1.4;
  color: #ddd;
  background: rgb(151, 41, 1);
  pointer-events: none; /* Klick geht durch ans Facade-Div, nicht am Text hängen */
}

@media only screen and (max-width: 600px) {
  .embed-hinweis {
    font-size: 12px;
    padding: 8px 10px;
  }
}