/*
 * Contao 5 emits the generic core-element class "content-<type>" instead of
 * the former "ce_<type>" class.  The project styles still intentionally keep
 * their Contao 4 selectors; these aliases retain their visual effect while
 * custom/legacy elements continue to use their original classes.
 */

/* Text elements */
.content-text { width: 100%; margin-bottom: 0; }
.content-text a { text-decoration: none; color: #000; margin-bottom: 5px; }
.content-text a:hover { text-decoration: underline; }

#unternehmen .content-text:first-of-type a {
  font-family: "GillSansMTStd-Light", Arial, sans-serif;
  display: block;
  background: #e6e6e6;
  padding: 10px 20px 5px;
  float: left;
  margin: 45px 10px 0 0;
  border-bottom: 5px solid #e6e6e6;
  text-transform: uppercase;
  font-size: 18px;
}
#unternehmen .content-text:first-of-type a:hover { border-bottom-color: #303030; }
#produkte .content-text:first-child > p { margin-bottom: 40px; }
.zweidrittel .content-text { margin-bottom: 20px; }
.zweidrittel .content-text:first-of-type p:first-of-type { margin-right: 5%; }
#article_right .content-text table tr td { font-size: inherit; }
#article_right .content-text table tr { margin-bottom: 10px; }
#footer .content-text ul a { color: #909090; }
#footer_customs .content-text ul { display: none; float: left; width: 100%; margin-top: 20px; }
#footer_customs .content-text ul li { width: 100%; }
#footer_customs .content-text ul li a { display: block; padding: 0 0 5px; margin-bottom: 5px; }

/* Headline and link elements */
.content-headline.colored {
  text-transform: uppercase;
  width: auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 0;
  font-size: 38px;
  line-height: 38px;
  margin-right: 0;
  background-image: linear-gradient(90deg, #b91509, #20549d, #23bfe4);
  background-size: 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.content-hyperlink { font-family: "GillSansMTStd-Light", Arial, sans-serif; }
.button_wrapper .content-hyperlink a,
.content-hyperlink a {
  float: left;
  background: #e6e6e6;
  padding: 10px 20px 5px;
  border: 0;
  text-transform: uppercase;
  font-size: 18px;
  border-bottom: 5px solid #e6e6e6;
  font-weight: normal;
}
.button_wrapper .content-hyperlink a:hover,
.content-hyperlink a:hover { border-bottom-color: #303030; text-decoration: none; }
#article_right .content-hyperlink { width: 100%; margin-bottom: 5px; }
#article_right .content-hyperlink a { float: left; }

/* Images and galleries */
.mod_article .content-image { float: left; }
#header .mod_article .content-image { float: none !important; width: 100% !important; }
.mod_article .content-image .caption { margin-bottom: 20px; font-size: 32px; text-transform: uppercase; }
.referenzen .mod_article .content-image,
#product_caption.content-image { overflow: hidden; margin: 0 40px 40px 0; width: calc(33.3% - 40px); float: left; position: relative; }
.referenzen .mod_article .content-image a { position: relative; background-repeat: no-repeat; display: block; margin-bottom: 0; }
.referenzen .mod_article .content-image:hover .caption { border-bottom: 5px solid #404040; }
.content-gallery ul { margin: 0; padding: 0; overflow: hidden; list-style: none; }
.content-gallery li { float: left; }
.content-gallery li.col_first { clear: left; }

/*
 * Contao 5 moved the number of gallery columns from "ul.cols_4" to the
 * wrapper class "content-gallery--cols-4". The old float grid therefore no
 * longer receives a width. A CSS grid mirrors the former four-column layout
 * while also supporting the other column counts used by the project.
 */
.content-gallery > ul {
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns, 4), minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.content-gallery--cols-2 { --gallery-columns: 2; }
.content-gallery--cols-3 { --gallery-columns: 3; }
.content-gallery--cols-4 { --gallery-columns: 4; }
.content-gallery--cols-5 { --gallery-columns: 5; }
.content-gallery--cols-6 { --gallery-columns: 6; }
.content-gallery--cols-7 { --gallery-columns: 7; }
.content-gallery > ul > li { float: none; width: auto; margin: 0; padding: 0; }
.content-gallery figure { display: block; margin: 0; overflow: hidden; line-height: 1px; }
.content-gallery img { display: block; width: 100%; height: auto; transition: transform .75s ease-in-out; }
.content-gallery img:hover { transform: scale(1.05); }

.content-gallery.margin0 > ul { gap: 0; }

@media (max-width: 767px) {
  .mod_article .content-image .caption { font-size: 17px; }
  .referenzen .mod_article .content-image { width: 100%; margin: 0 0 10px !important; }
  .referenzen .mod_article .content-image a { left: inherit; margin-left: 0; }
  #article_right .content-text table tr td { font-size: 12px; }
}

