/* Inhaltsbereich: Text-Bild-Elemente und Tabellen (ursprünglich TYPO3 "css_styled_content") */

.csc-default {
  clear: both;
}

.csc-textpic-clear {
  clear: both;
}

/* Bildblöcke */
.csc-textpic-center {
  text-align: center;
}

.csc-textpic-center .csc-textpic-text {
  text-align: left;
}

.csc-textpic-imagewrap {
  margin: 0 auto;
}

.csc-textpic-intext-right .csc-textpic-imagewrap {
  float: right;
  margin-left: 20px;
}

.csc-textpic-intext-left .csc-textpic-imagewrap {
  float: left;
  margin-right: 20px;
}

.csc-textpic-imagewrap ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.csc-textpic-imagewrap li {
  margin: 0;
  padding: 0;
}

dl.csc-textpic-image {
  margin: 0 0 10px;
}

dl.csc-textpic-image dt,
dl.csc-textpic-image dd {
  margin: 0;
}

.csc-textpic-caption {
  font-size: 0.9em;
  text-align: center;
}

.csc-textpic-center dl.csc-textpic-image {
  margin-left: auto;
  margin-right: auto;
}

.csc-textpic img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.csc-textpic-border .csc-textpic-imagewrap img {
  border: 5px solid #FFDC80;
  box-sizing: border-box;
}

.csc-textpic-above .csc-textpic-imagerow {
  margin-bottom: 10px;
}

/* Tabellen im Inhalt */
table.contenttable {
  border-collapse: separate;
  border-spacing: 1px;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

table.contenttable.ta-center {
  margin-left: auto;
  margin-right: auto;
}

table.contenttable td,
table.contenttable th {
  padding: 4px;
  text-align: left;
  vertical-align: top;
}

table.contenttable td.ta-center {
  text-align: center;
}

table.contenttable .va-bottom {
  vertical-align: bottom;
}

table.contenttable .va-middle {
  vertical-align: middle;
}

table.contenttable .kopfzeile,
table.contenttable .kopfzeile td,
table.contenttable .kopfzeile th {
  background-color: #FFDC80;
}

table.contenttable img {
  max-width: 100%;
  height: auto;
}

/* Impressum: Tabelle mit Gitterlinien */
#content table.contenttable th,
#content table.contenttable td {
  overflow-wrap: anywhere;
}

#content table.contenttable:has(th) {
  border-collapse: collapse;
}

#content table.contenttable:has(th) th,
#content table.contenttable:has(th) td {
  border: 1px solid #C5BEB8;
  padding: 5px;
}

/* Links und Schaltflächen */
a.mehr-link {
  color: #0000EE;
  text-decoration: underline;
}

a.button {
  display: inline-block;
}

#content .bodytext {
  margin: 0 0 1em;
  line-height: 1.5;
}

#content h2 {
  margin-top: 1em;
}

#content img[src*="internal_link.gif"] {
  vertical-align: middle;
  margin-right: 3px;
}

/* Platzhalter für Einbettungen (Google Maps): bis zur Zustimmung wird nichts von extern geladen */
.embed-consent {
  max-width: 860px;
  margin: 0 auto 10px;
}

.embed-consent iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}

.embed-placeholder {
  box-sizing: border-box;
  padding: 30px 25px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #FFEFC6;
  border: 1px solid #D1BDA5;
  color: #503D26;
}

.embed-placeholder[hidden] {
  display: none;
}

.embed-placeholder p {
  margin: 0 0 12px;
  max-width: 560px;
  line-height: 1.5;
}

.embed-placeholder .embed-title {
  font-size: 1.2em;
  font-weight: bold;
}

.embed-placeholder .embed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.embed-button {
  padding: 8px 16px;
  border: 1px solid #d34d17;
  border-radius: 4px;
  background: #ee8434;
  color: #fff;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.embed-button:hover,
.embed-button:focus {
  background: #d34d17;
}

.embed-button-secondary {
  background: #fff;
  color: #503D26;
  border-color: #8E714D;
}

.embed-button-secondary:hover,
.embed-button-secondary:focus {
  background: #FFEFC6;
}
