/* ==========================================
   SABRINA JURKOWITSCH – GESAMTER HANDY-CSS
========================================== */

@media (max-width: 767.98px) {

  /* ========================================
     GRUNDLAGEN
  ======================================== */

  html {
    overflow-x: clip;
  }

  body {
    min-width: 0;
    padding-top: 0;
    overflow-wrap: break-word;
  }

  main {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  main .container {
    width: 100%;
    max-width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }


  /* ========================================
     TYPOGRAFIE
  ======================================== */

  main h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.15rem, 10vw, 2.6rem);
    line-height: 1.08;
  }

  main h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 8vw, 2.15rem);
    line-height: 1.12;
  }

  main h3 {
    margin-bottom: 0.85rem;
    font-size: clamp(1.5rem, 7vw, 1.8rem);
    line-height: 1.18;
  }

  main h4 {
    font-size: 1.3rem;
    line-height: 1.25;
  }

  main h5 {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  main p,
  main li {
    font-size: 1rem;
    line-height: 1.7;
  }

  main p:last-child {
    margin-bottom: 0;
  }

  main a {
    overflow-wrap: anywhere;
  }


  /* ========================================
     MOBILE CONTENT ZENTRIEREN
  ======================================== */

  main .frame,
  main .textmedia-text,
  main .ce-bodytext {
    text-align: center;
  }

  main h1,
  main h2,
  main h3,
  main h4,
  main h5,
  main p {
    text-align: center;
  }

  main .btn,
  main .button,
  main .more {
    margin-right: auto;
    margin-left: auto;
  }

  main figure,
  main .image,
  main img {
    margin-right: auto;
    margin-left: auto;
  }

  main ul,
  main ol {
    display: inline-block;
    text-align: left;
  }


  /* Impressum und Datenschutzerklärung */

  :is(#pageid16, #pageid17) main .frame,
  :is(#pageid16, #pageid17) main .textmedia-text,
  :is(#pageid16, #pageid17) main .ce-bodytext,
  :is(#pageid16, #pageid17) main p {
    text-align: left;
  }

  :is(#pageid16, #pageid17) main .container {
    padding-right: 22px;
    padding-left: 22px;
  }

  :is(#pageid16, #pageid17) main h1 {
    margin-top: 0;
    margin-bottom: 1.4rem;
    text-align: center;
  }

  :is(#pageid16, #pageid17) main h2 {
    margin-top: 2.25rem;
    margin-bottom: 0.7rem;

    font-size: clamp(1.55rem, 7vw, 1.85rem);
    line-height: 1.15;
    text-align: left;
    text-wrap: balance;

    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  :is(#pageid16, #pageid17) main p {
    margin-top: 0;
    margin-bottom: 0.85rem;
    line-height: 1.65;
  }

  :is(#pageid16, #pageid17) main p:has(> strong:only-child) {
    margin-top: 2.25rem;
    margin-bottom: 0.7rem;
  }

  :is(#pageid16, #pageid17) main ul,
  :is(#pageid16, #pageid17) main ol {
    display: block;

    margin-top: 0.2rem;
    margin-bottom: 1rem;
    padding-left: 1.4rem;

    text-align: left;
  }

  :is(#pageid16, #pageid17) main li {
    line-height: 1.55;
  }

  :is(#pageid16, #pageid17) main li + li {
    margin-top: 0.2rem;
  }


  /* ========================================
     BILDER UND MEDIEN
  ======================================== */

  img,
  svg,
  video {
    max-width: 100%;
    height: auto;
  }

  main iframe {
    display: block;
    max-width: 100%;
    border: 0;
  }

  main figure {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  main figure img,
  main .image img {
    display: block;
    max-width: 100%;
    height: auto;
  }

  .slick-slide figure .caption {
    display: none;
  }


  /* ========================================
     TEXT-MEDIA
     TEXT ZUERST – BILD AM BLOCKENDE
  ======================================== */

  main .textmedia,
  main .ce-textpic {
    display: flex !important;
    flex-direction: column !important;
    gap: 26px;
  }

  main .textmedia > .textmedia-text,
  main .ce-textpic > .ce-bodytext {
    order: 1;

    width: 100%;
    max-width: 100%;
  }

  main .textmedia > .textmedia-gallery,
  main .textmedia > .ce-gallery,
  main .ce-textpic > .ce-gallery {
    order: 2;

    width: 100%;
    max-width: 380px;
    margin: 0 auto !important;
  }

  main .textmedia figure,
  main .ce-textpic figure,
  main .textmedia .image,
  main .ce-textpic .image {
    float: none;

    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
  }

  main .textmedia img,
  main .ce-textpic img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: min(65svh, 520px);
    margin: 0 auto;

    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }

  main .ce-row,
  main .ce-column {
    max-width: 100%;
  }


  /* ========================================
     CUSTOM-BILDGRÖSSEN AM HANDY
  ======================================== */

  .frame-custom-22 .image,
  .frame-custom-23 .image,
  .frame-custom-24 .image,
  .frame-custom-25 .image,
  .frame-custom-26 .image {
    float: none;

    width: fit-content;
    max-width: min(100%, 380px);
    height: auto;
    margin-right: auto;
    margin-left: auto;

    aspect-ratio: auto;
  }

  .frame-custom-22 .image figure,
  .frame-custom-23 .image figure,
  .frame-custom-24 .image figure,
  .frame-custom-25 .image figure,
  .frame-custom-26 .image figure,
  .frame-custom-22 .image picture,
  .frame-custom-23 .image picture,
  .frame-custom-24 .image picture,
  .frame-custom-25 .image picture,
  .frame-custom-26 .image picture {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;

    aspect-ratio: auto;
  }

  .frame-custom-22 .image img,
  .frame-custom-23 .image img,
  .frame-custom-24 .image img,
  .frame-custom-25 .image img,
  .frame-custom-26 .image img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: min(65svh, 520px);
    margin: 0 auto;

    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }


  /* ========================================
     FRAME-ABSTÄNDE
  ======================================== */

  .frame-space-before-extra-small,
  .frame-space-before-small,
  .frame-space-before-medium,
  .frame-space-before-large,
  .frame-space-after-extra-small,
  .frame-space-after-small,
  .frame-space-after-medium,
  .frame-space-after-large {
    display: block;
    padding-left: 0;
  }

  .frame-space-before-extra-small {
    margin-top: 8px !important;
  }

  .frame-space-before-small {
    margin-top: 20px !important;
  }

  .frame-space-before-medium {
    margin-top: 36px !important;
  }

  .frame-space-before-large {
    margin-top: 52px !important;
  }

  .frame-space-after-extra-small {
    margin-bottom: 8px !important;
  }

  .frame-space-after-small {
    margin-bottom: 20px !important;
  }

  .frame-space-after-medium {
    margin-bottom: 36px !important;
  }

  .frame-space-after-large {
    margin-bottom: 52px !important;
  }


  /* ========================================
     BUTTONS
  ======================================== */

  main .btn,
  main .button,
  main .more {
    max-width: 100%;
    min-height: 50px;
    padding-right: 20px;
    padding-left: 20px;

    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }


  /* ========================================
     FORMULARE
  ======================================== */

  main input,
  main select,
  main textarea {
    max-width: 100%;
    font-size: 16px;
  }

  main textarea {
    resize: vertical;
  }

  main .tx-powermail,
  main .tx-powermail label,
  main .tx-powermail input,
  main .tx-powermail select,
  main .tx-powermail textarea {
    text-align: left;
  }

  .tx-powermail .powermail_form {
    padding: 30px 24px;
    border-radius: 14px;
  }

  .tx-powermail legend.powermail_legend {
    margin-bottom: 24px;
    font-size: 1.8rem;
    text-align: center;
  }

  .tx-powermail .powermail_fieldset > .row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .tx-powermail input.btn.btn-primary[type="submit"] {
    width: 100%;
  }


  /* ========================================
     TABELLEN
  ======================================== */

  main table {
    display: block;

    width: 100%;
    max-width: 100%;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }


  /* ========================================
     BLOCKQUOTE
  ======================================== */

  main blockquote {
    margin-top: 22px;
    padding: 20px;

    border-left-width: 4px;
    border-radius: 0 14px 14px 0;
  }


  /* ========================================
     VIDEO-FRAME-ABSTÄNDE

     Das Video selbst wird ausschließlich
     im HTML des Videoelements formatiert.
  ======================================== */

  main .frame:has(.sj-video) {
    min-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  main .frame:has(.sj-video) + .frame {
    margin-top: 0;
  }

  main .frame:has(.sj-video) + .frame:has(.sj-cg) {
    padding-top: 48px;
  }


  /* ========================================
     CARD GROUP
  ======================================== */

  .sj-cg .card-group,
  .sj-cg .row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;

    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .sj-cg .card-group > *,
  .sj-cg .row > [class*="col"] {
    grid-column: auto !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .sj-cg .card {
    width: 82% !important;
    max-width: 330px !important;
    min-width: 250px;
    height: auto;

    margin: 0 auto !important;
  }

  .sj-cg .card-img-top,
  .sj-cg .card img {
    display: block;

    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;

    object-fit: cover;
    object-position: center;
  }

  .sj-cg .card-body {
    padding: 15px 14px 5px;
    text-align: center;
  }

  .sj-cg .card-title {
    font-size: clamp(1.1rem, 4.8vw, 1.35rem);
    line-height: 1.1;
    text-align: center;
  }

  .sj-cg .card-text {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: center;
  }

  .sj-cg .card-footer {
    padding: 5px 14px 15px;
    text-align: center;
  }

  .sj-cg .card a,
  .sj-cg .card .btn {
    min-height: 0;
    padding: 0 0 2px;
    font-size: 0.86rem;
  }


  /* ========================================
     LETZTER KONTAKTBEREICH IM MAIN
  ======================================== */

  main .frame:last-child {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  main .frame:last-child h2,
  main .frame:last-child h3 {
    margin-bottom: 20px;
  }

  main .frame:last-child p {
    max-width: 34rem;
    margin-right: auto;
    margin-bottom: 24px;
    margin-left: auto;
  }

  main .frame:last-child .btn {
    margin-top: 4px;
  }


  /* ========================================
     FOOTER
  ======================================== */

  .site-footer__inner,
  .site-footer__bottom-inner {
    width: min(calc(100% - 40px), 680px);
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 50px;
    padding: 60px 0;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__logo-link {
    width: 290px;
    margin-right: auto;
    margin-left: auto;
  }

  .site-footer__intro {
    max-width: 36rem;
    margin: 28px auto 0;
    text-align: center;

  }

  .site-footer__intro::before {
    margin-right: auto;
    margin-left: auto;
  }

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

  .site-footer__column h3 {
    margin-bottom: 24px;
  }

  .site-footer__column h3::after {
    margin-right: auto;
    margin-left: auto;
  }

  .site-footer__navigation ul {
    gap: 4px;
  }

  .site-footer__navigation li a {
    justify-content: center;

    width: 100%;
    min-height: 48px;
    padding: 11px 8px;

    line-height: 1.5;
    text-align: center;
  }

  .site-footer__navigation li a:hover,
  .site-footer__navigation li a:focus-visible,
  .site-footer__navigation li.active > a,
  .site-footer__navigation li.current > a {
    transform: none;
  }

  .site-footer__navigation li a::before {
    display: none;
  }

  .site-footer__contact {
    padding: 38px 0 0;
    text-align: center;

    border-top: 1px solid rgba(215, 185, 135, 0.6);
    border-left: 0;
  }

  .site-footer__contact > p {
    max-width: 34rem;
    margin: 0 auto;
    line-height: 1.8;
  }

  .site-footer__button {
    margin-top: 28px;
  }

  .site-footer__bottom-inner {
    align-items: center;
    flex-direction: column;
    gap: 15px;

    min-height: auto;
    padding: 24px 0;
    text-align: center;
  }


  /* ========================================
     NUR AM HANDY AUSBLENDEN
  ======================================== */

  .hiddenmobile {
    display: none !important;
  }
}


/* ==========================================
   KLEINE HANDYS
========================================== */

@media (max-width: 480px) {

  main .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .sj-video-content h2 br {
    display: none;
  }

  main .textmedia > .textmedia-gallery,
  main .textmedia > .ce-gallery,
  main .ce-textpic > .ce-gallery {
    max-width: 340px;
  }

  .frame-custom-22 .image,
  .frame-custom-23 .image,
  .frame-custom-24 .image,
  .frame-custom-25 .image,
  .frame-custom-26 .image {
    max-width: min(100%, 340px);
  }

  .sj-cg .card {
    width: 88% !important;
    max-width: 325px !important;
  }

  .site-footer__inner,
  .site-footer__bottom-inner {
    width: calc(100% - 32px);
  }

  .site-footer__inner {
    gap: 44px;
    padding: 52px 0;
  }

  .site-footer__navigation li a {
    min-height: 50px;
  }

  .site-footer__button {
    width: 100%;
  }

  .site-footer__bottom nav {
    align-items: center;
    flex-direction: column;
    gap: 12px;
  }

  .site-footer__bottom nav a {
    padding: 5px;
  }

  .site-footer__bottom nav a + a::before {
    display: none;
  }
}


/* ==========================================
   SEHR KLEINE HANDYS
========================================== */

@media (max-width: 359.98px) {

  main h1 {
    font-size: 2rem;
  }

  main h2 {
    font-size: 1.72rem;
  }

  main h3 {
    font-size: 1.42rem;
  }

  main .btn,
  main .button,
  main .more {
    width: 100%;
  }

  .sj-cg .card {
    width: 94% !important;
    min-width: 0;
  }

  .sj-cg .card-title {
    font-size: 1.08rem;
  }
}
