@media (max-width: 1750px) {

  #oben,
  #oben.scroll {
    width: 90%;
    padding: 5px 5%;
    box-shadow: 0 -10px 15px var(--grau);
  }

  #oben.scroll .image-embed-item,
  #oben>.frame-default .image-embed-item {
    width: auto;
    max-height: 50px;
  }

  /* #oben.scroll .hnavi,
  #oben .hnavi {
    margin-top: 0;
  }

  #oben.scroll .hnavi>li,
  #oben .hnavi>li {
    padding: 13px 0;
  } */

  .infoleiste {
    right: 5%;
  }

  /* ul.hnavi>li>a {
    padding: 10px 10px;
    width: calc(100% - 20px);
  } */

  #inhaltsbereich.sub {
    margin-top: 60px;
  }

  #inhaltsbereich header,
  #inhaltsbereich .ce-bodytext {
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 10 5 5;
  }

  @supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {

    #header.sub .ce-bodytext,
    h1,
    h2,
    h3,
    h4,
    h5 {
      /* Safari-spezifische Regeln */
      hyphens: auto;
      -webkit-hyphens: auto;
      -webkit-hyphenate-limit-before: 4;
      -webkit-hyphenate-limit-after: 5;
    }
  }

  @media not all and (min-resolution: 0.001dpcm) {

    #header.sub .ce-bodytext,
    h1,
    h2,
    h3,
    h4,
    h5 {
      hyphens: auto;
      -webkit-hyphens: auto;
      -webkit-hyphenate-limit-before: 4;
      -webkit-hyphenate-limit-after: 5;
    }
  }
}

@media (max-width: 1500px) {
  :root {
    --hoben: 90px;
  }

  .frame-bildtext .ce-right .ce-bodytext {
    padding: 0 60px;
    width: calc(50% - 120px);
    margin: 0;
  }
}

@media (max-width: 1400px) {
  #oben {
    width: 96%;
    padding: 5px 2%;
    box-shadow: 0 -10px 15px var(--grau);
  }
}

@media (max-width: 1350px) {
  #inhaltsbereich .ce-gallery:not(.ce-border) .ce-column.linksunten::after {
    top: 70%;
    left: -10%;
  }
}

@media (max-width: 1300px) {

  #oben,
  #oben.scroll {
    width: 98%;
    padding: 10px 1%;
  }
}

@media (max-width: 1270px) {

  #oben.scroll .hnavi>li,
  #oben .hnavi>li {
    padding: 10px 0;
  }

  ul.hnavi>li+li {
    margin-left: 0px;
  }

  #oben .image-embed-item,
  #oben.scroll .image-embed-item {
    margin-top: 0;
  }
}

@media (max-width: 1200px) {
  #footer .tx_cn-multicontent:first-child .col-33:last-child ul {
    float: left;
  }

  #footer .tx_cn-multicontent:last-child .row>div:last-child .ce-bodytext {
    float: left;
    clear: both;
    width: 100%;
  }

  #footer .tx_cn-multicontent .row>div:last-child .ce-gallery {
    margin-top: 30px;
  }

  #footer .tx_cn-columns .row .col-25,
  #footer .tx_cn-columns .row .col-25>div,
  #footer .tx_cn-columns .row .col-50,
  #footer .tx_cn-columns .row .col-50>div {
    width: 100% !important;
    margin: 0 !important;
  }

  #footer .tx_cn-multicontent .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 1150px) {
  #oben .hnavi>li+li {
    margin-left: 0px;
  }

  :root {
    --hoben: 80px;
  }

  #oben,
  #oben.scroll {
    /* height: 185px; */
    position: fixed;
    transition: var(--standardtransition);
    width: 98%;
    padding: 0 1%;
  }

  #oben.scroll {
    position: fixed;
  }

  .frame-filter .ui-accordion-header .header {
    font-size: 20px;
  }

  .frame-filter .ui-accordion-header .subheader {
    font-size: 16px;
  }

  #oben .image-embed-item {
    max-height: 70px;
    max-width: 100% !important;
    margin: 0;
  }

  /* #oben.scroll {
        height: 105px;
    } */

  #oben.scroll .image-embed-item {
    max-height: 70px;
    max-width: 100%;
    margin: 0;
  }

  .infoleiste {
    top: 5px;
  }

  /* .hauptnavi-wrap .mob_button {
    top: 35px;
  } */

  .frame-bewerben {
    display: block;
    top: 95px;
    transition: var(--standardtransition);
    z-index: -1;
  }

  #oben.scroll .frame-bewerben {
    top: 15px;
  }

  #oben>.frame-default .ce-gallery {
    margin: 5px 0;
  }

  /* #header,
  #oben.scroll+#header {
    margin-top: 0;
    margin-bottom: 0;
  } */

  #inhaltsbereich .ce-gallery:not(.ce-border) .ce-column.linksunten::after {
    top: 70%;
    left: -10%;
  }

  #inhaltsbereich>.frame:not(.breadcrumb)+.frame {
    margin-top: 40px !important;
  }

  .frame-farbkacheln .ce-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 1100px) {

  #header{
    margin-top: var(--hoben);
  }

  #header .ce-bodytext::before,
  #header .ce-bodytext::after {
    display: none !important;
  }

  #header .ce-bodytext {
    left: inherit;
    position: inherit;
    width: inherit;
    bottom: -130px;
    padding: 30px;
    font-size: 40px;
  }

  #header .ce-bodytext {
    line-height: 1.4em;
  }

  #header .ce-bodytext strong {
    font-size: 30px;
    font-size: 30px;
  }

  .news .news-list-view .article .news-img-wrap{
    width: 100%;
  }
  .news .news-list-view .article .content{
    width: 96%;
  }
}

@media (max-width: 1040px) {
  #footer .tx_cn-multicontent .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  #footer .ce-right .ce-gallery{
    float: left;
  }
}

@media (max-width: 1000px) {
  header {
    margin-bottom: 0;
  }
}

@media (max-width: 991px) {

  #inhaltsbereich>.frame-type-textmedia .ce-gallery,
  #inhaltsbereich>.frame-type-textmedia .ce-bodytext {
    float: left;
    clear: both;
    width: 100%;
    max-width: 100% !important;
    margin: 5px 0;
    padding: 0;
    position: inherit;
  }

  #inhaltsbereich .ce-gallery:not(.ce-border) .ce-column::after {
    display: none;
  }

  /* #inhaltsbereich > .frame-meldungen {
        margin: -40px 0 0;
    } */

  #inhaltsbereich>.frame>.rahmen,
  #footer>.frame>.rahmen {
    margin: 0 5%;
    float: left;
    width: 90%;
  }

  #inhaltsbereich .frame-schmaler>.rahmen {
    padding: 0;
    width: 90%;
  }

  #inhaltsbereich>.frame:last-child {
    margin-bottom: 0;
  }

  #inhaltsbereich>.frame-type-div>.rahmen {
    margin: 0;
  }

  /* #inhaltsbereich .frame:not(.frame-schraeg, .frame-bildkacheln) .ce-textpic{
        display: flex;
        flex-direction: column-reverse;
    } */

  #inhaltsbereich .frame.frame-bildkacheln .ce-textpic {
    display: block !important;
  }
}

@media (max-width: 900px) {
  #inhaltsbereich {
    margin: 40px 0 !important;
  }

  .infoleiste .frame-default {
    display: none;
  }

  #header {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  #header .ce-gallery {
    max-width: 100%;
  }

  /* #header .ce-bodytext{
        display: block;
        background: var(--rot);
        position: inherit;
        width: calc(100% - 20px);
        border-radius: 0;
        bottom: 0;
        padding: 10px;
        right: 0;
        height: auto;
        font-size: 32px;
        min-width: inherit;
    } */

  #header .ce-bodytext a.more {
    position: relative;
    bottom: 0;
    left: calc(50% - 70px);
    float: left;
  }

  #inhaltsbereich {
    margin-top: 0;
  }

  .frame-meldungen {
    margin-top: 0 !important;
  }

  #footer .tx_cn-multicontent:nth-child(2) .row>div:last-child ul li {
    margin: 0;
  }

  #footer .tx_cn-multicontent:nth-child(2) .row>div:last-child ul li a {
    float: none;
  }
}

@media (max-width: 800px) {

  h2.folgt,
  h3 {
    font-size: 22px;
  }
}

@media (max-width: 750px) {
  .frame-bildkacheln .ce-bodytext {
    padding: 20px 5px;
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  #inhaltsbereich .ce-bodytext a.link-external,
  #inhaltsbereich .ce-bodytext a.more {
    padding: 5px 15px;
  }

  #inhaltsbereich>.frame:not(.breadcrumb)+.frame {
    margin-top: 60px;
  }

  #footer .tx_cn-multicontent .row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --hoben: 90px;
  }

  #oben .image-embed-item,
  #oben.scroll .image-embed-item {
    max-height: 45px;
    max-width: 100%;
    margin: 0;
  }

  #header .ce-bodytext {
    font-size: 24px;
  }

  #inhaltsbereich>.frame.breadcrumb {
    margin: 10px 0 10px;
  }

  .frame-farbkacheln .ce-gallery {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  #header .ce-bodytext {
    font-size: 24px;
  }

  /* #oben .hnavi > li {
        width: 90%;
        margin: 0 5% !important;
    } */

  #inhaltsbereich>.frame:not(.breadcrumb)+.frame {
    margin-top: 30px;
  }

  .frame-bildkacheln .row>div {
    width: 48%;
  }

  .frame-bildkacheln .row>div:nth-child(odd) {
    margin: 0 1% 10px 0;
  }

  .frame-bildkacheln .row>div:nth-child(even) {
    margin: 0 0 10px 1%;
  }
}

@media (max-width: 450px) {

  body,
  #footer {
    font-size: 16px;
  }

  #oben .image-embed-item {
    max-width: 200px;
  }

  label[for="mobnav"] .mob_button {
    right: -40px;
  }

  label[for="mobnav"] .mob_button {
    top: -23px;
  }

  .frame-bewerben {
    top: 48px;
  }

  /* 
  .hnavi>li>a {
    font-size: 18px;
  } */

  h1,
  h2 {
    font-size: 24px;
  }

  #header .ce-bodytext {
    font-size: 20px;
  }

  #inhaltsbereich .table th,
  #inhaltsbereich .table tr,
  #inhaltsbereich .table td {
    float: left;
    clear: both;
    width: 100%;
    border: none;
    padding: 0;
  }

  #inhaltsbereich .table td:first-child {
    font-weight: 700;
  }

  #inhaltsbereich .table tr {
    margin-bottom: 25px;
  }
}