/* nunito-300 - latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 300;
  src: local('Nunito Light'), local('Nunito-Light'),
       url('../Fonts/nunito-v14-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('../Fonts/nunito-v14-latin-300.woff') format('woff'), /* Modern Browsers */
       url('../Fonts/nunito-v14-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
}
/* nunito-regular - latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  src: local('Nunito Regular'), local('Nunito-Regular'),
       url('../Fonts/nunito-v14-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../Fonts/nunito-v14-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../Fonts/nunito-v14-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
}
/* nunito-600 - latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  src: local('Nunito SemiBold'), local('Nunito-SemiBold'),
       url('../Fonts/nunito-v14-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
       url('../Fonts/nunito-v14-latin-600.woff') format('woff'), /* Modern Browsers */
       url('../Fonts/nunito-v14-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
}

/* rajdhani-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: 'Rajdhani';
  font-style: normal;
  font-weight: 400;
  src: url('../Fonts/rajdhani-v17-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* rajdhani-500 - 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: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  src: url('../Fonts/rajdhani-v17-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* rajdhani-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: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  src: url('../Fonts/rajdhani-v17-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* rajdhani-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: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  src: url('../Fonts/rajdhani-v17-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --vdi-blue: #003da4;
  --vdi-light-blue: #e2f1fc;
  --vdi-dark-blue: #19232f;
  --vdi-orange: #fe5a00;
  --text-dark: #000c19;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
}



* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Nunito", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1em;
  line-height: 1.5em;
}

* {
  margin: 0;
  padding: 0;
}

p {
  margin: 8px 0;
}

svg,
img {
  border: 0;
  max-width: 100%;
}

.ce-gallery img {
  height: auto;
}

a,
a:link,
a:visited,
a:hover {
  text-decoration: none;
  color: #fe5a00;
}

a:hover {
  text-decoration: none;
  color: #003da4;
}

strong,
b {
  font-weight: bold;
}

.text-center {
  text-align: center;
}

main,
article,
section,
nav,
header,
footer,
topline {
  display: block;
}

b, strong {
  font-weight: 600;
}

iframe {
  border: 0;
  margin: 0;
  padding: 0;
  frameborder: 0;
}

#wrapper {
  width: 100%;
}

.clearer {
  clear: both;
}

#content {
  margin-top: 50px;
}

.centering {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

.layout-default #content .wrapper {
  display: grid;
  grid-template-columns: calc(75% - 40px) 25%;
  column-gap: 40px;
}

@media only screen and (max-width: 1024px) {
  .layout-default #content .wrapper {
    display: block;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Rajdhani", Arial, Helvetica, sans-serif;
  font-weight: 600;
}


h1 {
  font-size: 220%;
  line-height: 150%;
  color: #003da4;
  font-weight: 500;
  padding-bottom: 5px;
  margin: 20px 0 10px 0;
}

#content h1:after {
  content: "";
  display: block;
  height: 0;
  width: 80px;
  border-bottom: 2px solid #003da4;
  left: 0;
  bottom: 0;
  margin: 5px 0 0 0;
}

#sidebar h1 {
  font-size: 170%;
}

h2 {
  font-size: 170%;
  line-height: 130%;
  font-weight: 600;
  color: #000;
  margin: 20px 0 10px 0;
  transition: all 0.5s ease-in-out;
}

#sidebar h2 {
  font-size: 130%;
}


h3 {
  margin: 10px 0 5px 0;
  font-size: 115%;
  color: #000;
}
#main ul {
  list-style: none;
}

#main li:before {
  content: "■";
  color: #9dd0f4;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

#main p {
}

figcaption {
  font-size: 90%;
  line-height: 130%;
  color: #666;
}

.btn {
  background: var(--vdi-orange);
  padding: 4px 10px;
  color: #fff;
  font-weight: 600;
  margin: 5px 0 10px 0;
  display: inline-block;
  transition: all 0.3s ease-in-out;
  border-radius: 5px;
}

.btn.light {
  background: var(--vdi-light-blue);
  color: var(--vdi-dark-blue);
}

.top-header .btn {
  margin: 0 5px;
}

a.btn {
  color: #fff;
}

.btn:hover {
  background: #a34714;
}

.btn.color2 {
  margin: 0px 0px 0px 15px;
  line-height: 145%;
}

/* ****++    HEADER    ++**** */

#header {
  width: 100%;
}

#header .top-header {
  background-color: #ffffff;
  width: 100%;
  height: 80px;
}

#header .top-header .logo {
  margin-top: 12px;
  display: inline-block;
  width: 400px;
  color: #003da4;
}

#header .right {
  float: right;
  display: flex;
  padding-top: 42px;
}

#loginmenu {
  position: absolute;
  top: 0;
  right: 0;
  list-style: none;
}

#loginmenu li {
  display: inline-block;
  position: relative;
}

#loginmenu li a {
  color: #fff;
  display: block;
  background: rgba(255, 255, 255, 0.4);
  line-height: 30px;
  padding: 0 10px;
  text-transform: uppercase;
}

#loginmenu li a:hover {
  color: #003da4;
  background: rgba(255, 255, 255, 0.8);
}

.bild-header {
  width: 100%;
  /*background: url(/fileadmin/templates/images/header-image.jpg) no-repeat #004b71;*/
  background-position: center center;
  overflow: hidden;
  position: relative;
  max-height: 400px;
}

.bild-header .ce-gallery {
  margin-bottom: 0px;
}

.bild-header img {
  width: 100%;
  max-width: 1920px;
  height: 100%;
}

.bild-header .ce-gallery, .bild-header .ce-gallery div, .bild-header .ce-gallery figure {
	width: 100% !important;
  text-align: center;
  background: #ccc;
}

@media only screen and (min-width: 1280px) {
  .bild-header img {
    margin-top: -100px;
  }
  
  #body-1 .bild-header img {
    margin-top: 0px;
  }
}

@media only screen and (min-width: 1600px) {
  .bild-header img {
    margin: -200px auto 0 auto;
  }
  
  #body-1 .bild-header img {
    margin-top: 0px;
  }
}

.bild-header .ce-bodytext {
  position: absolute;
  top: 0;
  left: 0%;
  height: 100%;
  background: linear-gradient(rgba(0, 43, 80, 0.65), rgba(0, 43, 80, 0.65)), 
  url('Bodensee_Pano_2.png') center/cover no-repeat;
  padding: 40px 20% 20px 20%;
  box-sizing: border-box;
  color: #fff;
  transition: all 800ms;
}

.bild-header .ce-bodytext h1,
.bild-header .ce-bodytext h3 {
  color: #fff;
}

.bild-header .ce-bodytext p {
  font-size: 120%;
  line-height: 130%;
}

.bild-header .ce-bodytext a {
  color: #fff;
  border: 1px solid #fff;
  padding: 3px 5px;
  font-size: 60%;
}

.bild-header .ce-bodytext hr {
  width: 40%;
  border: 0px solid #fff;
  height: 3px;
  background: #fff;
  margin: 5px 0 0px 0;
}

.bild-header figcaption {
  position: absolute;
  right: 20px;
  top: 20%;
  color: #fff;
  transform: rotate(-90deg);
  transform-origin: top right;
  background: rgba(0, 0, 0, 0.3);
  line-height: 20px;
  padding: 0 3px;
  max-width: 200px;
}

/* Main MENU */

#nav {
  width: 100%;
  height: 35px;
  background: #333;
}

#nav #menu {
  list-style: none;
  height: 35px;
  display: flex;
  /*justify-content: space-between;*/
}

#nav #menu li {
  display: inline-block;
  cursor: pointer;
}

#nav #menu li a {
  font-size: 15px;
  line-height: 35px;
  color: #ffffff;
  display: block;
  padding: 0 20px;
  text-decoration: none;
}

#nav #menu li:hover,
#nav #menu li.act-nav,
#nav #menu li.hover-menu {
  background: #003da4; /* Old browsers */
  height: 35px;
}

#nav #menu .untermenu {
  position: absolute;
  left: 0px;
  z-index: 10;
  background-color: #ffffff;
  text-align: left;
  list-style: none;
  display: none;
  box-shadow: 5px 0 5px -5px #333, 0 5px 5px -5px #333;
  width: 100%;
  padding: 20px;
}

#nav #menu .untermenu h3 > a {
  color: #003da4;
  font-weight: 700;
}

#nav #menu .untermenu h3 {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0px;
  font-weight: normal;
  margin-right: 5px;
}

#nav #menu .untermenu h3:last-child {
  margin-right: 0px;
}

#nav #menu li:hover .untermenu,
#nav #menu li.hover-menu .untermenu {
  display: block;
}

#nav #menu li:hover:nth-child(3) .untermenu,
#nav #menu li.hover-menu:nth-child(3) .untermenu {
  display: flex;
}

#nav #menu .untermenu li {
  display: block;
  border: none;
  border-bottom: 1px solid rgba(0, 61, 164, 0.401);
}

#nav #menu .untermenu li:last-child {
  border-bottom: none;
}

#nav #menu .untermenu a {
  padding: 4px 20px;
  line-height: 20px;
  color: #000000;
}

#nav #menu .untermenu2 a {
  line-height: 16px;
}

#nav #menu .untermenu li:hover,
#nav #menu .untermenu li:hover a,
#nav #menu .untermenu li.activelink > a {
  background: #d6e4fc;
  color: #003da4;
}

/* Hot Topics / addContent */

div.addContent {
  width: calc(50% - 14px);
  float: left;
  position: relative;
  overflow: hidden;
  margin-right: 28px;
}

div.addContent:nth-child(even) {
  margin-right: 0px;
}

div.addContent a img {
  transition: all 1300ms;
}

div.addContent:hover a img {
  transform: scale(1.1);
}

div.addContent header {
  position: absolute;
  z-index: 10;
  background: rgba(0, 61, 164, 0.75);
  width: 100%;
  pointer-events: none;
  transition: all 800ms;
}

div.addContent header h2 {
  color: #fff;
  padding: 5px 10px;
  pointer-events: none;
  margin: 0;
}

div.addContent:hover header {
  letter-spacing: 1px;
  background: rgba(0, 61, 164, 0.85);
}

/* ****++   PRINCIPAL SECTION    ++**** */

#principalsection {
  margin-top: 50px;
  padding-bottom: 50px;
}

/* Main Content */
.layout-startseite #main .grid {
  display: grid;
  grid-template-columns: calc(33.333% - 10px) calc(33.333% - 10px) calc(33.333% - 10px);
  column-gap: 15px;
  row-gap: 15px;
}

.layout-startseite #main .grid > div {
  position: relative;
}

.layout-startseite #main .grid > div header {
  position: absolute;
  z-index: 111;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  padding: 5px;
  pointer-events: none;
}

.layout-startseite #main .grid > div header h2 {
  color: #fff;
  padding: 0px;
  margin: 0px;
}

.layout-startseite #main .grid > div .ce-above .ce-gallery,
.layout-startseite #main .grid > div img {
  margin-bottom: 0px;
}

.layout-startseite #main .grid > div img {
  opacity: 0.5;
  transition: all 0.5s linear;
}

.layout-startseite #main .grid > div .ce-above .ce-gallery {
  background: rgba(0,0,0,1);
}

.layout-startseite #main .grid > div .ce-above .ce-gallery:hover img {
  opacity: 0.7;
  transition: all 0.5s linear;
  transform: scale(1.1);
}

/* Table info */

table {
  width: auto;
}

td {
  padding: 0 10px;
  vertical-align: top;
}

.contenttable tr:nth-child(odd) {
  background: rgba(0, 61, 164, 0.07);
}

/* Sidebar */

.download:before {
  content: "•";
  color: #fe5a00;
  padding-right: 3px;
}

.download:link {
  font-weight: bold;
  color: #000000;
  display: block;
  padding-left: 2px;
  margin-top: 4px;
}

.download:hover {
  color: #003da4;
}

#sidebar img {
  max-width: 100%;
}

.ce-bodytext {
}

div.bluebox {
	background: rgba(184, 224, 243, 0.4);
	padding: 25px;
}

div.bluebox h2 {
  margin-top: 0px;
}

/* ****++    Slideshow    ++**** */

.slideshow .ce-row {
  display: none;
}

.slideshow .ce-column {
  display: none;
}

.slideshow .ce-row:first-child {
  display: block;
}

.slideshow .ce-column:first-child {
  display: block;
}


/* Akkordeon */

.akkordeon .ce-bodytext,
.akkordeon figcaption {
	overflow: hidden;
	max-height: 0px;
	transition: all 1s ease-in-out;
}

.akkordeon.open .ce-bodytext,
.akkordeon.open figcaption {
	overflow: hidden;
	max-height: 1500px;
	transition: all 1s ease-in-out;
}

.akkordeon header h3 {
  display: none;
  width: 100%;
  grid-area: head3;
}

.akkordeon.open header h3 {
  display: block;
}

.akkordeon header {
	transition: all 1s ease-in-out;
  display: grid;
  grid-template-columns: 20px auto;
  grid-template-areas: 
  "icon head2"
  "head3 head3";
}

.akkordeon header:hover {
  cursor: pointer;
}

.akkordeon header:hover h2 {
  transition: all 1s ease-in-out;
  color: rgba(28, 148, 209, 1);
  letter-spacing: 1px;
}

.akkordeon header:before {
  content: '+';
  font-weight: 800;
  line-height: 190%;
  font-size: 200%;
  color: rgba(28, 148, 209, 1);
  transition: all 1s ease-in-out;
}

.akkordeon.open header:before {
	content: '-';
  transition: all 1s ease-in-out;
}

.akkordeon header h2 {
  margin: 10px 0;
}

.akkordeon .ce-textpic {
  max-width: 20%;
  transition: all 1s ease-in-out;
}

.akkordeon.open .ce-textpic {
  max-width: 100%;
  transition: all 1s ease-in-out;
}

.akkordeon .ce-row {
  display: none;
}

.akkordeon .ce-row:first-child {
  display: inherit;
}

.akkordeon.open .ce-row { 
  display: inherit;
}

/* ****++    FOOTER    ++**** */

topline#footer {
  display: none;
}

#footer {
  background-color: #003da4;
  position: relative;
  height: 30px;
}

#footermenu {
  list-style-type: none;
  line-height: 16px;
  margin-left: 0px;
  padding-top: 6px;
}

#footermenu li {
  display: inline-block;
  padding: 0 10px;
  border-right: 1px solid #fff;
}

#footermenu li:last-child {
  padding-right: 0;
  border-right: 0px solid #fff;
}

#footermenu li:first-child {
  padding-left: 0;
}

#footermenu li a {
  color: #ffffff;
}

#footermenu li a:hover {
  color: #fe5a00;
}

#infofoot {
  position: absolute;
  right: 16px;
  top: 13px;
}

#infofoot .phonefoot,
#infofoot .emailfoot {
  display: inline-block;
  color: #ffffff;
}

#infofoot .phonefoot {
  margin-right: 19px;
}

#searchform {
  display: flex;
  height: 30px;
}

#searchform input {
  border: 1px solid var(--vdi-blue);
  padding: 0px 5px;
  line-height: 28px;
  width: 100px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

#tx-indexedsearch-searchbox-button-submit,
#searchform input[type="submit"] {
  background:  var(--vdi-blue);
  color: #fff;
  cursor: pointer;
  border: 1px solid var(--vdi-blue);
  padding: 0 5px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

#searchform input[type="submit"]:hover {
  background: #000;
}

footer {
  background: #000;
  color: #fff;
  padding: 10px 0;
  margin-top: 40px;
}

footer .adresse {
  display: grid;
  grid-template-columns: 33.33% 33.33% 33.33%;
  margin-top: 40px;
}

/* ****++    RESPONSIVE STYLE    ++**** */

#wrapiconmob {
  width: 100%;
  height: 35px;
  display: none;
  z-index: 10;
}

#menuicon {
  width: 34px;
  height: 26px;
  position: absolute;
  left: 10px;
  cursor: pointer;
  top: 5px;
  border: 1px solid #ffffff;
  border-radius: 4px;
  padding: 3px;
}

#menuicon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 26px;
  background: #ffffff;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s linear;
  margin-left: 3px;
}

#menuicon span:nth-child(1) {
  top: 4px;
}

#menuicon span:nth-child(2),
#menuicon span:nth-child(3) {
  top: 11px;
}

#menuicon span:nth-child(4) {
  top: 18px;
}

#menuicon.open span:nth-child(1) {
  top: 12px;
  width: 0%;
  left: 50%;
}

#menuicon.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#menuicon.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#menuicon.open span:nth-child(4) {
  top: 12px;
  width: 0%;
  left: 50%;
}

#principalsection,
#push,
#footer,
.bild-header {
  transition: opacity 0.5s linear;
}

.hidden {
  display: none;
}

.visuallyhidden {
  opacity: 0;
}

/* ****++    MEDIA QUERIES   ++**** */

@media only screen and (max-width: 1240px) {
  .bild-header .ce-bodytext {
    left: 40px;
    padding: 10px;
  }

  .bild-header .ce-bodytext p {
    font-size: 180%;
  }

  .centering {
    padding: 0 20px;
  }
}

@media only screen and (max-width: 1024px) {
  .bild-header .ce-bodytext {
  }

  .bild-header .ce-bodytext p {
    font-size: 150%;
  }

  div.addContent header h2 {
    font-size: 140%;
    line-height: 90%;
  }
}

@media only screen and (max-width: 820px) {
  body {
    font-size: 0.85em;
  }
  
  .ce-right .ce-gallery {
    float: none !important;
  }
  
  .bild-header .ce-bodytext {
    padding: 0 10px;
  }

  .bild-header .ce-bodytext p {
    font-size: 130%;
  }

  .bild-header .ce-bodytext h3 {
    margin-bottom: 0px;
  }

  .centering {
    width: 100%;
  }

  #principalsection {
    padding: 0 10px;
    box-sizing: border-box;
  }

  #header .top-header #loginmenu {
    right: 10px;
  }

  #header .top-header .logo {
    margin-left: 10px;
    height: 40px;
  }
}

@media only screen and (max-width: 680px) {
  
  #header .top-header #loginmenu {
    bottom: 70px;
  }

  #principalsection #main {
    width: 100%;
    float: none;
    clear: left;
  }

  #principalsection #sidebar {
    width: 100%;
    float: none;
    clear: right;
  }
  #principalsection #main section > div:last-child {
    margin-bottom: 13px;
  }

  #header .right {
    display: inline;
    padding-top: 9px;
  }

  #searchform {
    display: none;
  }
}

@media only screen and (max-width: 610px) {
  #bg-mobile-menu {
    width: 100%;
    z-index: 990;
    -webkit-overflow-scrolling: touch;
    background-color: #1097d7;
    display: none;
  }

  #wrapiconmob {
    display: block;
  }
  
  .top-header .btn.color2 {
    line-height: 22px;
    background-position: right 10px top 5px;
  }
  
  #nav #menu {
    display: block;
    position: absolute;
    z-index: 1000;
    width: 100%;
    left: 0px;
  }

  #nav #menu li {
    display: block;
    background: #1b6eb0;
    border-bottom: 1px solid #ffffff;
  }

  #nav #menu li a {
    border-left: none;
    border-right: none;
  }

  #nav #menu li:last-child a {
    border-right: none;
  }

  #nav #menu li:hover .untermenu {
    display: none;
  }

  #nav #menu li a {
    box-sizing: border-box;
    padding: 0 0 0 10px;
    width: 100%;
  }

  #nav #menu .act-nav .untermenu {
    display: block;
  }

  #nav #menu .untermenu {
    width: 100%;
    box-shadow: none;
    top: auto;
    left: auto;
    overflow: hidden;
    padding: 0;
    position: relative;
  }

  #nav #menu .untermenu li {
    background: #ffffff;
  }

  #nav #menu .untermenu li:first-child {
    border-top: none;
  }

  #nav #menu .untermenu li a {
    width: 100%;
    padding: 0 0 0 20px;
    box-sizing: border-box;
  }
}

@media only screen and (max-width: 580px) {
  
  .centering {
    padding: 0 10px;
  }
  
  .bild-header .ce-bodytext {
    display: none;
  }
}

@media only screen and (max-width: 430px) {
  body {
  }
  
  #header .right {
    display: inline;
    padding-top: 7px;
  }

  #header .top-header {
    height: auto;
    text-align: center;
  }

  #header .top-header .logo {
    width: 94%;
    margin-top: 8px;
    margin-bottom: 5px;
    margin-left: 0;
  }
}


/*****************************************/
/*************** Events ******************/
/*****************************************/

.event-item {
    margin: 0 0 15px 0;
    padding: 15px;
    border-left: 4px solid #004080;
    background: #f9f9f9;
}

.event-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #004080;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    color: #555;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Unicode-Icons */
.icon-organizer::before { content: "👥"; margin-right: 5px; }
.icon-date::before { content: "📅"; margin-right: 5px; }
.icon-location::before { content: "📍"; margin-right: 5px; }

.event-organizer {
    font-weight: 600;
    color: #c00;
}


.layout-foerderfirmen .wrapper main {
  display: flex;
  justify-content: space-between
}

.layout-foerderfirmen .wrapper main section {
  width: 49%;
}

/*****************************************/
/********* Förderfirmen: Logos ***********/
/*****************************************/

/*  Ersetzt das frühere .fourCol-Raster aus Gridelements. Dort verteilte die
    Redaktion die Logos von Hand auf vier .col-Stapel; hier liegen alle
    Elemente flach in der Spalte "Logos Förderfirmen".

    Bewusst Grid und nicht column-count: Bei mehrspaltigem Layout entscheidet
    der Browser über die Fragmentierung, und WebKit lässt am Kopf einer Spalte
    gerne Luft, wenn die Kinder break-inside: avoid haben. Grid legt die
    Zeilenoberkanten fest – alle Karten einer Zeile beginnen garantiert auf
    gleicher Höhe. Nebeneffekt: Die Reihenfolge läuft jetzt zeilenweise von
    links nach rechts, nicht mehr spaltenweise.                              */

.logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.logos > .frame {
  display: flex;
  margin: 0;
  padding: 15px;
  box-sizing: border-box;
  border: 3px solid rgba(0, 0, 0, 0.802);
  border-radius: 15px;
  background: #fff;
}

/*  Schachbrett aus blauen und dunklen Rahmen wie im alten Raster.
    Die Muster hängen an der Spaltenzahl und werden unten mitgezogen.        */
.logos > .frame:nth-child(8n + 1),
.logos > .frame:nth-child(8n + 3),
.logos > .frame:nth-child(8n + 6),
.logos > .frame:nth-child(8n + 8) {
  border-color: #003da4;
}

/*  Karteninhalt über die volle Kartenhöhe verteilen  */
.logos .ce-textpic {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

/*  fluid_styled_content zentriert Bilder über einen Float-Trick:
      .ce-center .ce-outer { position: relative; float: right; right:  50% }
      .ce-center .ce-inner { position: relative; float: right; right: -50% }
    Beide Verschiebungen heben sich nur auf, solange beide Elemente floaten.
    In der Flexbox unten sind Floats wirkungslos, die Verschiebungen aber
    nicht – das Logo landete dadurch 50 % der Galeriebreite zu weit links.
    Deshalb hier auch position und right zurücksetzen, nicht nur float.      */
.logos .ce-outer,
.logos .ce-inner,
.logos .ce-row,
.logos .ce-column,
.logos figure.image {
  margin: 0;
  padding: 0;
  float: none;
  position: static;
  right: auto;
  left: auto;
  width: auto;
}

/*  Feste Höhe statt min-height: Sonst richtet sich die Logofläche nach dem
    Seitenverhältnis des jeweiligen Logos (gemessen: 70 bis 81 px), und
    Trennlinie wie Beschriftung sitzen in jeder Karte auf anderer Höhe.      */
.logos .ce-gallery {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ccc;
}

.logos .ce-gallery img {
  max-height: 70px;
  max-width: 100%;
  width: auto !important;
  height: auto;
}

/*  Beschriftung unten bündig, wenn ein Logo darüber steht. Karten ohne Logo
    (z. B. "GKS Hydraulik") bleiben durch justify-content mittig.            */
.logos .ce-bodytext {
  text-align: center;
}

.logos .ce-gallery + .ce-bodytext {
  margin-top: auto;
}

.logos .ce-bodytext h1,
.logos .ce-bodytext h2,
.logos .ce-bodytext h3,
.logos .ce-bodytext h4,
.logos .ce-bodytext p {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
}

@media only screen and (max-width: 1024px) {
  .logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /*  Ungerade Spaltenzahl: odd/even ergibt von selbst ein Schachbrett  */
  .logos > .frame:nth-child(8n + 1),
  .logos > .frame:nth-child(8n + 3),
  .logos > .frame:nth-child(8n + 6),
  .logos > .frame:nth-child(8n + 8) {
    border-color: rgba(0, 0, 0, 0.802);
  }

  .logos > .frame:nth-child(odd) {
    border-color: #003da4;
  }
}

@media only screen and (max-width: 680px) {
  .logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logos > .frame:nth-child(odd) {
    border-color: rgba(0, 0, 0, 0.802);
  }

  .logos > .frame:nth-child(4n + 1),
  .logos > .frame:nth-child(4n + 4) {
    border-color: #003da4;
  }
}

@media only screen and (max-width: 430px) {
  .logos {
    grid-template-columns: minmax(0, 1fr);
  }

  .logos > .frame:nth-child(4n + 1),
  .logos > .frame:nth-child(4n + 4) {
    border-color: rgba(0, 0, 0, 0.802);
  }

  .logos > .frame:nth-child(odd) {
    border-color: #003da4;
  }
}
