/* Phase 2 – content styles (fluid_styled_content + custom CEs) */
.main-content h1 {
  font-family: "Open Sans", Verdana, Arial, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 38.4px;
  letter-spacing: -1px;
  margin: 0 0 12px;
  color: #333;
}
.main-content h2 { font-size: 18px; margin: 10px 0 5px; color: #333; }
.main-content h3 { font-size: 115%; margin: 5px 0 10px; color: #333; }
.main-content h4 { font-size: 110%; margin: 10px 0 5px; text-transform: none; color: #333; }
.main-content p { margin: 0 0 1em; line-height: 130%; color: #666; }
.main-content .frame { margin-bottom: 1em; }
.main-content .frame:first-child h1 { margin-top: 0; }
.main-content .ce-bodytext a, .main-content .news a { color: #666; }

a.btn-prim, .btn-prim, button[type="submit"], .form-navigation button {
  display: inline-block;
  background: #fecf4e;
  color: #666 !important;
  border: 1px solid #bbb;
  padding: 4px 12px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
a.btn-prim:hover, button[type="submit"]:hover { background: #febe10; border-color: #febe10; }
.form-control, input.form-control, select.form-control, textarea.form-control {
  border: 1px solid #bbb;
  width: 100%;
  max-width: 400px;
  padding: 5px;
  color: #444;
  font: inherit;
  background: #fff;
}

/* FSC gallery tweaks */
.ce-gallery figure { margin: 0 0 .5rem; }
.ce-gallery figcaption,
.image-caption,
figure.image .image-caption,
.content-column figcaption {
  display: block;
  background: #dedede;
  color: #333;
  font-size: 14.4px;
  font-weight: 400;
  line-height: 1.3;
  padding: 2px 5px;
  margin: 0;
  text-align: left;
}
.content-column figure.image,
.content-column .ce-gallery,
.content-column .image-embed-item,
.content-column iframe,
.content-column table,
.content-column video,
.simmerl-embed,
.simmerl-embed iframe,
.simmerl-map,
.news .article img,
.news-single img {
  max-width: 100%;
}
.content-column iframe,
.simmerl-embed iframe {
  width: 100%;
  border: 0;
}
#bdk-leadstrecke { max-width: 100%; overflow: hidden; }
.ce-gallery img { display: block; height: auto; }

/* Hero / slider: full width of the content column, including its side padding */
.content-column > .hero { margin: 0 -16px; border-bottom: 5px solid #F7D900; background: #000; height: 296px; width: calc(100% + 32px); max-width: none; overflow: hidden; }
.content-column > .hero .hero-inner { min-height: 0; height: 100%; }
.content-column > .hero .frame { margin: 0; height: 100%; }
.simmerl-slider { position: relative; overflow: hidden; background: #000; height: 296px; }
.simmerl-slider.is-multi { aspect-ratio: auto; height: 296px; }
.simmerl-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.simmerl-slide.is-active { opacity: 1; position: absolute; }
.simmerl-slider:not(.is-multi) .simmerl-slide { opacity: 1; position: absolute; }
.simmerl-slide img, .hero-default img { width: 100%; height: 296px; object-fit: cover; object-position: center; display: block; max-width: none; }
@media (max-width: 950px) {
  .content-column > .hero {
    margin: 0 -12px;
    width: calc(100% + 24px);
    max-width: none;
    height: auto;
    aspect-ratio: 787 / 296;
  }
  .simmerl-slider,
  .simmerl-slider.is-multi,
  .simmerl-slide img,
  .hero-default img {
    height: auto;
    max-width: none;
    aspect-ratio: 787 / 296;
  }
}

/* Team cards: same box as live .member, white inside the border */
.team-grid {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.team-member {
  width: auto;
  height: auto;
  min-height: 250px;
  margin: 0;
  padding: 10px;
  border: 1px solid #ccc;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}
.team-member figure { margin: 0; text-align: left; background: #fff; }
.content-column .team-member figcaption,
.team-member figcaption {
  display: block;
  background: #fff;
  color: #333;
  padding: 0;
  margin: 0;
}
.team-member img { width: 96px; height: 128px; object-fit: cover; border: 0; background: #fff; }
.team-name { display: block; font-size: 14px; font-weight: 700; margin: 5px 0; }
.team-role { display: block; font-size: 13px; color: #666; }

/* Firmengeschichte: date and sentence share one line (the source has a <br>). */
.frame-layout-1 p { border-left: 3px solid var(--simmerl-yellow); padding: 0 0 .25rem .9rem; margin: 0 0 .9rem; }
.frame-layout-1 p br { display: none; }
.frame-layout-1 p strong:first-child,
.frame-layout-1 p b:first-child {
  display: inline;
  background: var(--simmerl-header);
  color: var(--simmerl-yellow);
  padding: 0 .4rem;
  margin: 0 .45rem 0 0;
  vertical-align: baseline;
  font-weight: 700;
}

/* Text beside an image: tops align, the image uses the free column. */
.frame-type-textmedia .ce-textpic.ce-intext {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.frame-type-textmedia .ce-textpic.ce-intext .ce-gallery {
  float: none;
  flex: 1 1 42%;
  max-width: 48%;
  margin: 0;
}
.frame-type-textmedia .ce-textpic.ce-intext.ce-right .ce-gallery { order: 2; }
.frame-type-textmedia .ce-textpic.ce-intext .ce-bodytext {
  flex: 1 1 52%;
  min-width: 0;
  overflow: visible;
}
.frame-type-textmedia .ce-textpic.ce-intext .ce-gallery img {
  width: 100%;
  height: auto;
  display: block;
}
.main-content h1 a.ausbildung {
  color: #333;
  font-weight: 300;
  text-decoration: none;
}
.main-content h1 a.ausbildung:hover {
  color: #444;
  text-decoration: none;
}

/* AGB previews on Rechtliche Hinweise: one full-width page, like live (595px). */
.ce-textpic.ce-below .ce-gallery[data-ce-columns="2"],
.ce-textpic.ce-below .ce-gallery[data-ce-columns="2"] .ce-outer,
.ce-textpic.ce-below .ce-gallery[data-ce-columns="2"] .ce-inner,
.ce-textpic.ce-below .ce-gallery[data-ce-columns="2"] .ce-row,
.ce-textpic.ce-below .ce-gallery[data-ce-columns="2"] .ce-column {
  display: block;
  float: none;
  width: 100%;
  max-width: 595px;
}
.ce-textpic.ce-below .ce-gallery[data-ce-columns="2"] img {
  display: block;
  width: 100%;
  max-width: 595px;
  height: auto;
}

@media (max-width: 950px) {
  .content-column .main-content .simmerl-embed--mobilede {
    margin-left: -16px;
    margin-right: -22px;
    width: calc(100% + 38px);
    max-width: none;
  }
  .simmerl-embed--mobilede iframe {
    width: 100%;
    height: 1350px;
    max-width: none;
  }
  .main-content,
  .main-content p {
    overflow-wrap: anywhere;
  }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* News: live list is a heading plus the full poster, then a mehr link. */
.content-column .news .article {
  display: block;
  border-bottom: 1px solid #e5e5e5;
  padding: 0 0 1.25rem;
  margin: 0 0 1.5rem;
  overflow: visible;
}
.content-column .news .article .header,
.content-column .news .article .teaser-text,
.content-column .news .article .footer,
.content-column .news .article .news-img-wrap {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  grid-column: auto;
  grid-row: auto;
}
.content-column .news .article h3 {
  margin: 0 0 .6rem;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -1px;
}
.content-column .news .article h3 a {
  color: #333;
  text-decoration: none;
}
.content-column .news .article .news-img-wrap,
.content-column .news .article .news-img-wrap a {
  display: block;
  float: none;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}
.content-column .news .article .news-img-wrap img,
.content-column .news-single .news-img-wrap img {
  float: none;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto .75rem;
  object-fit: contain;
  border: 0;
}
.content-column .news .article .teaser-text {
  margin: 0 0 .6rem;
  color: #666;
}
.content-column .news .article .footer {
  clear: both;
  border: 0;
  margin: .35rem 0 0;
  padding: 0;
  color: #888;
  font-size: .85rem;
}
.content-column .news .more {
  display: inline-block;
  margin-top: .35rem;
  background: #f7d900;
  color: #000;
  padding: 7px 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  border-right: 1px solid #939393;
  border-bottom: 1px solid #939393;
  box-shadow: 1px 1px 0 0 rgba(0, 0, 0, .2);
}
.content-column .news-single .header h1 {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -1px;
}
.content-column .news-single .news-img-wrap {
  float: none;
  width: auto;
  max-width: 100%;
  margin: 0 0 1rem;
}
.content-column .news-single .news-backlink-wrap {
  margin: 1.5rem 0 0;
}
.content-column .news-single .news-backlink-wrap a {
  color: #333;
  font-weight: 700;
}
.content-column .news .f3-widget-paginator,
ul.tx-indexedsearch-browsebox,
.simmerl-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
.content-column .news .f3-widget-paginator li,
ul.tx-indexedsearch-browsebox li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.content-column .news .f3-widget-paginator a,
.content-column .news .f3-widget-paginator .current,
ul.tx-indexedsearch-browsebox a {
  display: inline-block;
  min-width: 2.1rem;
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  box-sizing: border-box;
}
.content-column .news .f3-widget-paginator .current,
.content-column .news .f3-widget-paginator a[aria-current="page"],
ul.tx-indexedsearch-browsebox a[aria-current="page"],
ul.tx-indexedsearch-browsebox strong a {
  background: #f7d900;
  border-color: #f7d900;
  color: #111;
}
ul.tx-indexedsearch-browsebox a:hover,
.content-column .news .f3-widget-paginator a:hover {
  border-color: #333;
}
.news-related-files ul { padding-left: 1.2rem; }

/* Sitemap */
.frame-type-menu_sitemap ul { padding-left: 1.2rem; }

@media (max-width: 640px) {
  .frame-type-textmedia .ce-textpic.ce-intext { flex-direction: column; }
  .frame-type-textmedia .ce-textpic.ce-intext .ce-gallery { max-width: 100%; flex: 1 1 auto; width: 100%; }
  .content-column .news .article h3 { font-size: 26px; }
}
.sidebar-hours .hours-note { font-size: .8rem; color: var(--simmerl-muted); margin: .35rem 0 0; }
