@media (max-width: 1300px) {
  :root {
    --aspect-ratio: 20/6;
  }

  h1,
  #header .ce-bodytext > * {
    font-size: 36px;
  }

  #header .ce-bodytext {
    max-width: 360px;
  }

  h1 + h2.folgt {
    font-size: 30px;
  }
}

@media (max-width: 1100px) {
  .frame-icon .ce-gallery .ce-row a figcaption {
    hyphens: auto;
    font-size: 18px;
  }
}

@media (max-width: 1050px) {
  #inhaltsbereich > .frame-bg-grau:last-child, #inhaltsbereich > .frame-bg-graudunkel:last-child, #inhaltsbereich > .frame-type-shortcut .tx-powermail {
    padding-bottom: 150px;
  }
}

@media (max-width: 1024px) {
  #inhaltsbereich > .frame-bg-grau:last-child, #inhaltsbereich > .frame-bg-graudunkel:last-child, #inhaltsbereich > .frame-type-shortcut .tx-powermail {
    padding-bottom: 100px;
  }

  #footer::before {
    display: none;
  }

  #footer {
    min-height: unset;
    padding: 20px 0;
    margin-top: 100px !important;
    border-top: 3px solid var(--linkfarbe);
  }

  #footer.top {
    margin-top: 0 !important;
  }

  .mob_button {
    display: block;
    float: right;
    position: relative;
    z-index: 5;
    margin: 4px 0 0 0;
    width: 60px;
    height: 60px;
    cursor: pointer;
  }
 
  .mob_button span {
    background-color: var(--linkfarbe);
    height: 3px;
    left: 7px;
    margin-top: -1px;
    position: absolute;
    top: 50%;
    width: 45px;
    transition: all 0.3s ease 0.3s;
  }
 
  .mob_button span::after, .mob_button span::before {
    backface-visibility: hidden;
    background-color: var(--linkfarbe);
    content: "";
    height: 3px;
    position: absolute;
    transform: translateZ(0px);
    transition: all 0.3s ease 0.3s;
    width: 100%;
    display: block;
  }
 
  .mob_button span::before {
    transform: translateY(-12px);
  }
 
  .mob_button span::after {
    transform: translateY(12px);
  }
 
  .mobnavvisible.mob_button span {
    background-color: transparent;
  }
 
  .mobnavvisible.mob_button span::before {
    transform: translateY(0px) rotate(-45deg);
  }
 
  .mobnavvisible.mob_button span::after {
    transform: translateY(0px) rotate(45deg);
  }

  #header {
    max-height: calc(100vh - 110px);
  }

  #oben::after {
    display: none;
  }

  #oben {
    padding: 20px 5% 10px;
    border-bottom: 3px solid var(--linkfarbe);
  }

  #oben > .frame {
    width: 150px;
    float: left;
    clear: both;
    position: static;
  }

  #oben .hnavi {
    position: absolute;
    left: 0;
    top: 100%;
    right: 0;
    max-width: unset;
    margin: 2px 0 0 0;
    display: none;
    overflow: auto;
    max-height: calc(100vh - 111px);
  }

  #oben .hnavi > li {
    float: left;
    clear: both;
    width: 100%;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    transition: 0.2s;
  }

  #oben .hnavi > li > a {
    display: block;
    padding: 10px 20px !important;
    border-bottom: 1px dashed var(--linkfarbe);
    text-align: center;
    background: var(--font);
    color: var(--weiss);
  }

  #oben > .hnavi > li:last-child > a {
    border-bottom: 2px solid var(--linkfarbe);
  }

  #oben > .hnavi > li > a::after {
    display: none;
  }

  #oben > .hnavi > li.act > a {
    background: var(--linkfarbe);
    margin-top: -1px;
  }

  #oben > .hnavi > li.ifsub {
    position: relative;
  }

  #oben > .hnavi > li > .mobpfeil {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--weiss);
    border-bottom: 2px solid var(--weiss);
    transform: rotate(45deg);
    position: absolute;
    right: 20px;
    top: 12px;
    transition: 0.2s;
  }

  #oben > .hnavi > li.clicked > .mobpfeil {
    transform: rotate(-135deg);
    top: 18px;
  }

  #oben > .hnavi > li.clicked > a {
    background: var(--schwarz);
  }

  #oben > .hnavi > li.clicked .klappnavi {
    position: static;
    float: left;
    clear: both;
    width: calc(100% - 80px);
    max-width: unset;
    background: none;
    padding: 0 0 0 0;
    display: block;
    background: var(--schwarz);
    text-align: center;
    padding: 10px 40px;
    border-bottom: 1px dashed var(--linkfarbe);
  }

  #oben > .hnavi > li.clicked.act > a,
  #oben > .hnavi > li.clicked.act .klappnavi {
    background: var(--linkfarbe)
  }

  #oben > .hnavi > li.clicked.act .klappnavi {
    border-bottom: none;
  }

  #oben > .hnavi > li.clicked.act > a {
    border-bottom: 1px dashed var(--schwarz);
  }

  #oben > .hnavi > li.clicked .klappnavi li {
    float: none;
    width: auto;
    display: inline-block;
    margin: 5px !important;
    padding: 0 0 0 0;
  }

  #oben > .hnavi > li.clicked .klappnavi li a {
    display: block;
    padding: 5px 10px;
    border: 1px solid var(--linkfarbe);
  }

  #oben > .hnavi > li .klappnavi li a::before {
    display: none;
  }

  #oben > .hnavi > li.clicked.act .klappnavi li a {
    border-color: transparent;
    background: rgba(0,0,0,0.1);
  }

  #oben > .hnavi > li.clicked.act .klappnavi li.act a {
    border-bottom: 2px solid var(--font);
  }

  h1, h2 {
    font-size: 30px;
    border-bottom: none;
    padding-bottom: 0;
  }

  #header .ce-bodytext > * {
    font-size: 30px;
  }

  #header .ce-bodytext {
    max-width: 300px;
  }

  h1.zweizeilig {
    padding-bottom: 0;
  }

  h2 {
    font-size: 30px;
  }

  h1 span {
    border-bottom: 2px solid var(--grau);
  }

  h1:not(.zweizeilig) span {
    border-bottom: 2px solid var(--grau);
  }

  h2.zweizeilig {
    border-bottom: 2px solid var(--linkfarbe);
  }

  header {
    margin-bottom: 20px;
  }

  #header {
    margin-top: 110px;
  }

  h1 + h2.folgt,
  h2 + h3.folgt,
  h3 {
    font-size: 24px;
    margin-bottom: 20px;
    margin-top: 10px;
  }

  h3 {
    margin-bottom: 20px;
  }

  .frame-header .rahmen {
    display: block;
  }

  .frame-header header, .frame-header .ce-textpic {
    clear: both;
    width: 100%;
    margin: 0 0 0 0 !important;
  }

  /* .frame-header header {
    margin-bottom: 30px !important;
  } */

  .frame-header header {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 1000px) {
  #header {
    width: 100%;
    padding: 0 0 0 0;
  }

  #header .ce-bodytext {
    right: 5%;
  }

  #header::before,
  #header::after {
    display: none;
  }
}

@media (max-width: 950px) {
  .frame-media .ce-gallery {
    margin: 0 0 0 0;
    padding: 0 100px;
    width: calc(100% - 200px);
  }

  #inhaltsbereich .frame-style-1column .frame-rahmen .ce-textpic {
    display: block;
  }

  #inhaltsbereich .frame-style-1column .frame-rahmen .ce-bodytext, #inhaltsbereich .frame-style-1column .frame-rahmen .ce-gallery {
    float: left;
    clear: both;
    width: 100%;
  }

  #inhaltsbereich .frame-style-1column .frame-rahmen .ce-bodytext {
    border: none;
    margin: 0 0 0 0;
    padding: 20px 20px 10px 20px;
    width: calc(100% - 40px) !important;
    background: var(--bg-grau);
  }

  #inhaltsbereich .frame-style-1column .frame-rahmen .ce-gallery {
    height: 230px !important;
  }

  #inhaltsbereich .frame-style-1column .frame-rahmen.frame-layout-1 .ce-gallery img {
    top: 0;
    height: 100%;
  }

  #inhaltsbereich .frame-style-1column .cn_multicontent_teaser {
    margin-bottom: 50px;
  }

  #inhaltsbereich .frame-style-1column .col-100:first-child .frame-rahmen {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  h1.zweizeilig,
  h2.zweizeilig {
    margin-bottom: 0;
  }

  h1:not(.zweizeilig) span {
    border-bottom: 0;
  }

  .frame-icon .ce-gallery .ce-row {
    margin: 0 0 20px 0 !important;
    width: calc(50% - 10px);
  }

  .frame-icon .ce-gallery .ce-row:nth-child(even) {
    margin: 0 0 0 0 !important;
  }

  .frame-icon .ce-gallery .ce-row a {
    width: calc(100% - 47px);
    border: 3px solid var(--linkfarbe) !important;
  }

  .frame-icon .ce-gallery .ce-row:nth-child(1) a,
  .frame-icon .ce-gallery .ce-row:nth-child(4) a,
  .frame-icon .ce-gallery .ce-row:nth-child(5) a {
    background: var(--captcha);
    border-color: var(--captcha) !important;
  }

  .frame-icon .ce-gallery .ce-row:nth-child(1) a figcaption,
  .frame-icon .ce-gallery .ce-row:nth-child(4) a figcaption,
  .frame-icon .ce-gallery .ce-row:nth-child(5) a figcaption {
    /* color: var(--weiss); */
    color: var(--schwarz);
  }

  #inhaltsbereich .frame-icon .ce-gallery .ce-row a::before {
    background: var(--linkfarbe);
  }


  h1, h2 {
    border: none !important;
    /* color: var(--linkfarbe) !important; */
    padding: 0 0 0 0;
    margin: 0 0 30px 0;
    max-width: unset;
  }

  h1 + h2.folgt {
    margin-top: 10px;
    /* color: var(--font) !important; */
  }

  h2 + h3.folgt {
    margin-top: 10px;
  }

  h1 span {
    border-bottom: none;
  }
}

@media (max-width: 850px) {
  #footer .ce-bodytext ul li {
    float: left;
    clear: both;
    width: 100%;
    margin: 0 0 0 0;
  }

  #footer .ce-bodytext ul li:last-child {
    margin: 20px 0 0 0;
  }

  #footer .col-25 {
    margin-top: 0;
  }

  .tx_cn-multicontent.frame-icon .row {
    margin: 0 0 0 0 !important;
  }

  .tx_cn-multicontent.frame-icon .col-50 {
    width: calc(100% - 40px);
    margin: 0 0 30px 0 !important;
    padding: 20px 20px 0 20px;
    height: auto !important;
    background: var(--bg-grau);
  }

  .tx_cn-multicontent.frame-icon .row:last-child .col-50:last-child {
    margin: 0 0 0 0 !important;
  }

  #cookieman-modal table td:nth-child(2) {
    min-width: 170px;
  }
}

@media (max-width: 820px) {
  .tx-powermail .powermail_fieldset {
    float: left;
    clear: both;
    width: 100% !important;
    margin: 0 0 0 0 !important;
  }
}

@media (max-width: 800px) {
  #inhaltsbereich .ce-bodytext hr + ul {
    float: left;
    clear: both;
    width: 100%;
    margin: 0 0 25px 0;
  }

  #inhaltsbereich .ce-bodytext hr + ul:last-of-type {
    margin: 0 0 0 0;
  }

  #inhaltsbereich .frame-rahmen .ce-bodytext {
    padding: 20px;
    border: 3px solid var(--linkfarbe);
    width: calc(100% - 46px);
  }

  #inhaltsbereich .ce-textpic.ce-intext .ce-gallery,
  #inhaltsbereich .ce-textpic.ce-intext .ce-bodytext {
    float: left;
    clear: both;
    width: 100%;
  }

  #inhaltsbereich .ce-textpic.ce-intext .ce-gallery {
    margin: 0 0 20px 0;
  }

  #inhaltsbereich .frame-rahmen .ce-textpic.ce-intext .ce-gallery {
    margin: 0 0 0 0;
  }
}

@media (max-width: 750px) {
  #header .ce-bodytext {
    max-width: unset;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 5%;
  }

  #header .ce-bodytext > * {
    color: var(--weiss);
    font-size: 20px;
    display: block;
    background: none;
  }

  #header .ce-bodytext::before {
    background: var(--linkfarbetrans70);
  }

  #header .ce-bodytext::after {
    display: none;
  }

  #inhaltsbereich .frame-ol {
    background: var(--linkfarbe);
    margin-top: 10px !important;
    margin-bottom: 50px !important;
  }

  .frame-ol ol {
    float: left;
    clear: both;
    width: 100%;
    padding: 10px 0;
    display: block;
    text-align: center;
  }

  .frame-ol ol li {
    display: inline-block;
    text-align: center;
    width: auto;
    min-height: unset;
    padding: 0 0 0 0;
    color: var(--weiss);
  }

  .frame-ol ol li::after {
    animation: none;
    content: '-';
    margin: 0 5px;
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    background: none;
  }

  .frame-ol ol li:last-child::after {
    display: none;
  }

  .frame-ol ol li::before {
    display: none;
  }

  #inhaltsbereich .frame-ol + .frame-bg-grau,
  #inhaltsbereich .frame-ol + .frame-bg-graudunkel {
    margin-top: 4px;
  }

  .frame-branchen .ce-gallery .container,
  .frame-branchen .ce-bodytext .container {
    float: left;
    clear: both;
    width: 100%;
    margin: 0 0 0 0;
  }

  #inhaltsbereich .frame-branchen .ce-bodytext li {
    height: auto;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--font);
    color: var(--weiss);
  }

  .frame-branchen .ce-gallery .ce-row figcaption {
    font-size: 18px;
  }

  #inhaltsbereich .frame-branchen .ce-bodytext li::before {
    background: var(--font);
  }

  #inhaltsbereich .frame-branchen .ce-bodytext li:hover {
    height: auto;
  }

  #inhaltsbereich .frame-ol + .frame-bg-graudunkel {
    margin-top: 4px !important;
  }
}

@media (max-width: 700px) {
  #inhaltsbereich > .frame:first-child {
    margin-top: 20px;
  }

  #inhaltsbereich > .frame {
    margin-top: 60px;
  }

  .frame-bg-graudunkel,
  .frame-bg-grau {
    padding: 50px 0;
  }

  .frame-media .ce-gallery {
    padding: 0 0 0 0;
    width: 100%;
  }

  .frame-media .ce-gallery:before, .frame-media .ce-gallery:after {
    display: none;
  }

  #inhaltsbereich .frame-layout-20 .ce-gallery.zw_fixed {
    background-attachment: scroll;
  }

  :root {
    --aspect-ratio: 3 / 1;
  }
}

@media (max-width: 600px) {
  .frame-icon .ce-textpic {
    margin-top: 20px;
  }

  .frame-icon header * {
    text-align: center;
    display: block;
    width: 100%;
  }

  .frame-icon .ce-gallery .ce-row,
  .frame-icon .ce-gallery .ce-row:nth-child(even) {
    margin: 0 10% 20px !important;
    width: 80%;
  }

  .frame-icon .ce-gallery .ce-row:nth-child(odd) a {
    background: none;
    border-color: var(--linkfarbe) !important;
  }

  .frame-icon .ce-gallery .ce-row:nth-child(even) a {
    background: var(--captcha);
    border-color: var(--captcha) !important;
  }

  .frame-icon .ce-gallery .ce-row:nth-child(odd) a figcaption {
    color: var(--font);
  }

  .frame-icon .ce-gallery .ce-row:nth-child(even) a figcaption {
    color: var(--weiss);
  }

  .tx_cn-multicontent.frame-icon .ce-gallery .ce-row {
    margin: 0 0 0 0 !important;
  }

  #oben > .frame {
    width: 120px;
  }

  #header {
    margin-top: 95px;
  }

  .mob_button {
    margin: 3px 0 0 0;
    height: 50px;
  }
}

@media (max-width: 550px) {
  #footer .col-75,
  #footer .col-25 {
    clear: both;
    width: 100%;
    margin: 0 0 0 0;
  }

  #footer .col-25 {
    margin-top: 20px;
  }

  #footer .frame-type-menu_subpages ul {
    float: left;
    clear: both;
    width: 100%;
    margin-top: 20px;
  }

  #footer .frame-type-menu_subpages ul li {
    float: left;
    clear: both;
    width: 100%;
    margin: 0 0 5px 0;
  }

  #footer .frame-type-menu_subpages ul li:last-child {
    margin: 0 0 0 0;
  }

  #footer .frame-type-menu_subpages ul li a {
    display: block;
    padding: 14px 0;
    background: var(--linkfarbe);
    color: var(--weiss);
    text-align: center;
  }
}

@media (max-width: 500px) {
  #inhaltsbereich .ce-bodytext a {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  :root {
    --aspect-ratio: 2 / 1;
  }
}

@media (max-width: 450px) {
  #inhaltsbereich .col-100 .frame-default .ce-textpic.ce-intext .ce-gallery,
  #inhaltsbereich .col-100 .frame-default .ce-textpic.ce-intext .ce-gallery * {
    float: left;
    clear: both;
    width: 100%;
  }

  #inhaltsbereich .col-100 .frame-default .ce-textpic.ce-intext .ce-gallery .ce-row {
    margin-top: 10px;
  }

  #inhaltsbereich .col-100 .frame-default .ce-textpic.ce-intext .ce-gallery .ce-row:first-child {
    margin-top: 0;
  }

  #inhaltsbereich .frame-style-1column .frame-rahmen .ce-gallery {
    height: 170px !important;
  }

  #oben > .hnavi > li.clicked .klappnavi {
    width: 100%;
    padding: 0 0 0 0;
  }

  #oben > .hnavi > li.clicked .klappnavi li {
    float: left;
    width: 100%;
    margin: 0 0 0 0 !important;
    clear: both;
  }

  #oben > .hnavi > li.clicked > a {
    background: var(--linkfarbe);
    margin-top: -1px;
  }

  #oben > .hnavi > li.clicked .klappnavi li a {
    display: block;
    padding: 10px 10px;
    border: none;
    border-bottom: 1px dashed var(--linkfarbe);
  }

  #oben > .hnavi > li.clicked .klappnavi li:last-child a {
    border-bottom: none;
  }

  #oben > .hnavi > li.clicked.act .klappnavi li a {
    background: var(--schwarz);
    border-bottom: 1px dashed var(--linkfarbe);
  }

  #oben > .hnavi > li.clicked.act .klappnavi li.act a {
    border-bottom: 1px dashed var(--linkfarbe);
    color: var(--linkfarbe);
  }

  .tx-powermail .powermail_fieldwrap .powermail_field > select {
    width: 100%;
  }

  #inhaltsbereich .tx-powermail .powermail_fieldwrap_type_submit {
    text-align: center;
  }

  #inhaltsbereich .tx-powermail .powermail_fieldwrap_type_submit .powermail_field {
    float: none;
    display: inline-block;
  }

  h1, h2 {
    font-size: 24px;
  }

  h1 + h2.folgt,
  h2 + h3.folgt,
  h3 {
    font-size: 20px;
  }

  #inhaltsbereich .frame-rahmen .ce-bodytext {
    padding: 20px 10px;
    width: calc(100% - 26px);
  }

  #inhaltsbereich .frame-style-1column .frame-rahmen.frame-layout-1 .ce-bodytext {
    padding: 20px 10px;
    width: calc(100% - 20px) !important;
  }
}