/*
 * Responsive composition rules.
 *
 * These rules change component composition at real layout breakpoints. They do
 * not contain per-item offsets or screenshot-specific pixel corrections.
 */

@media (max-width: 1240px) {
  .site-nav__list {
    gap: 14px;
  }

  .site-nav a,
  .nav-group__toggle {
    font-size: 12px;
  }
}

@media (max-width: 980px) {
  :root {
    --sp-container: 720px;
  }

  h2 {
    font-size: 36px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100vh - 100px);
    overflow: auto;
    border-top: 1px solid #eeeeee;
    background: #ffffff;
    box-shadow: 0 14px 24px rgb(0 0 0 / 14%);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    display: grid;
    height: auto;
    gap: 0;
    margin: 0;
    padding: 12px 20px 22px;
  }

  .site-nav a,
  .nav-group__toggle {
    width: 100%;
    min-height: 44px;
    padding: 12px 0;
    font-size: 15px;
  }

  .nav-group__menu {
    position: static;
    display: none;
    width: auto;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
  }

  .nav-group__toggle[aria-expanded="true"] + .nav-group__menu {
    display: grid;
  }

  .benefit-grid,
  .service-grid,
  .conditions__grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid,
  .service-grid {
    gap: 28px;
  }

  .jodis-row > .jodis-column.jodis-column--1-2,
  .jodis-row > .jodis-column.jodis-column--1-3,
  .jodis-row > .jodis-column.jodis-column--2-3,
  .jodis-row > .jodis-column.jodis-column--2-5,
  .jodis-row > .jodis-column.jodis-column--3-5 {
    flex-basis: 100%;
  }

  .jodis-page--location-kontakt #navigation > .jodis-column.jodis-column--1-2 {
    flex-basis: 100%;
  }

  .app-showcase__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
  }

  .app-showcase__visual {
    grid-column: 1;
  }

  .app-showcase__copy {
    grid-column: 2;
  }

  .site-footer__grid {
    display: block;
    width: 80%;
    padding-block: 30px;
  }

  .site-footer {
    min-height: 0;
    padding-block: 30px;
  }

  .site-footer__section {
    margin-bottom: 30px;
  }

  .site-footer__section--contact {
    height: 165px;
  }

  .site-footer__section--legal {
    height: 101px;
  }

  .site-footer__section--social {
    min-height: 100px;
  }

  .site-footer h2,
  .site-footer p {
    margin-bottom: 8px;
  }

  .site-footer__logo {
    position: relative;
    width: 100%;
    height: auto;
  }

  .site-footer__logo-image {
    position: static;
  }

  .final-divider {
    --jodis-divider-height: 150px;
  }

  .conditions-divider {
    --jodis-divider-height: 150px;
  }

  .training-intro {
    min-height: 0;
    padding-bottom: 45px;
  }

  .final-cta__row {
    width: 80%;
    max-width: 80%;
  }

  .final-cta h2 {
    font-size: 40px;
  }

  .hero-tagline {
    font-size: 16px;
    letter-spacing: 5px;
    line-height: 2;
  }
}

@media (max-width: 767px) {
  :root {
    --sp-gutter: 39px;
  }

  h2 {
    font-size: 28px;
  }

  .section-space {
    padding-block: 70px;
  }

  .contact-strip {
    position: absolute;
    height: 43px;
  }

  .contact-strip__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 130px);
    align-items: start;
    justify-content: center;
    gap: 13px;
    height: 43px;
    padding: 8px 0;
    text-align: center;
  }

  .contact-strip__link {
    align-items: center;
    white-space: normal;
  }

  .site-header {
    position: absolute;
    top: 30px;
    height: 80px;
    background: rgb(255 255 255 / 85%);
  }

  .site-header__inner {
    width: 80%;
    height: 80px;
    margin-inline: auto;
    padding: 0;
  }

  .brand-logo {
    width: 72px;
  }

  .menu-toggle {
    width: 32px;
    height: 56px;
    padding: 0;
  }

  .menu-toggle > span:not(.sr-only) {
    width: 20px;
  }

  #main-content {
    padding-top: 80px;
  }

  .hero {
    min-height: 360px;
  }

  .hero::after {
    height: 86px;
    clip-path: polygon(0 72%, 100% 15%, 100% 100%, 0 100%);
  }

  .hero__content {
    padding-bottom: 30px;
  }

  .hero__kicker {
    font-size: 20px;
    letter-spacing: 5px;
    line-height: 2;
  }

  .hero__content h1 {
    font-size: 45px;
  }

  .hero--home {
    --hero-content-start: 41px;
    --hero-title-gap: 9px;
    --hero-subtitle-gap: 101px;
    min-height: 421px;
  }

  .hero-divider {
    --jodis-divider-height: 110px;
  }

  .hero--home .hero__content h1 {
    font-size: 50px;
  }

  .hero--home .hero__subtitle {
    width: min(800px, 80vw);
    max-width: 800px;
  }

  .hero-tagline {
    font-size: 20px;
    letter-spacing: 5px;
    line-height: 2;
  }

  .home-story {
    padding-block: 52px 30px;
  }

  .home-story__heading {
    display: block;
  }

  .home-story__heading h2 {
    font-size: 28px;
  }

  .home-story__heading p {
    margin: 18px 0 0;
    font-size: 29px;
    text-align: right;
  }

  .home-ticket {
    position: fixed;
    z-index: 999;
    bottom: 0;
    left: 50%;
    display: flex;
    width: min(263px, calc(100vw - 32px));
    min-height: 60px;
    transform: translateX(-50%);
    border: 0;
    font-size: 14px;
    letter-spacing: 5px;
  }

  .benefit-grid {
    gap: 30px;
    margin-top: 60px;
  }

  .benefit-card {
    padding: 98px 20px 24px;
  }

  .home-story__copy {
    margin-top: 30px;
  }

  .home-services {
    padding-block: 27px 183px;
  }

  .home-services .site-container {
    width: 80%;
    max-width: 80%;
  }

  .services-ticket {
    display: flex;
    width: 100%;
  }

  .service-grid {
    gap: 64px;
  }

  .service-card p {
    min-height: 0;
  }

  .app-showcase {
    min-height: 1035px;
    height: 1035px;
    margin: 0;
  }

  .app-divider {
    --jodis-divider-height: 110px;
  }

  .app-showcase__grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 100px;
  }

  .app-showcase__visual {
    width: 306px;
    height: auto;
    flex: 0 0 auto;
    align-self: center;
  }

  .app-showcase__copy {
    width: 100%;
  }

  .app-showcase h2 {
    font-size: 28px;
  }

  .store-badges {
    gap: 0;
    margin-top: 31px;
  }

  .store-badges img {
    width: 216px;
  }

  .subsidy {
    height: 455px;
    min-height: 455px;
    padding-block: 120px 70px;
  }

  .subsidy::after {
    height: 110px;
  }

  .subsidy .site-container {
    width: 80%;
    max-width: 80%;
  }

  .partners {
    padding-block: 70px;
  }

  .partners h2 {
    font-size: 28px;
  }

  .partner-logo-grid {
    display: flex;
    max-width: none;
    align-items: center;
    flex-direction: column;
    gap: 30px;
  }

  .partner-logo-grid--primary {
    margin-top: 70px;
  }

  .partner-logo-grid--secondary {
    margin-top: 30px;
  }

  .reviews {
    padding-block: 40px 47px;
  }

  .reviews__sources {
    gap: 83px;
  }

  .reviews__stars {
    width: 156px;
    height: auto;
    margin-top: 55px;
  }

  .final-cta {
    padding-block: 100px;
  }

  .final-cta h2 {
    font-size: 32px;
  }

  .final-divider {
    --jodis-divider-height: 110px;
  }

  .training-intro {
    padding-top: 72px;
  }

  .training-intro .center-heading > p {
    margin-top: 38px;
  }

  .accordion {
    margin-top: 42px;
  }

  .accordion details + details {
    margin-top: 10px;
  }

  .accordion summary {
    padding-right: 50px;
  }

  .accordion__body {
    padding-right: 0;
    padding-left: 0;
  }

  .widget-section {
    min-height: 720px;
    margin-top: 0;
    padding-top: 72px;
  }

  .flutter-widget-shell {
    width: 100%;
    min-height: 600px;
  }

  .conditions {
    padding-block: 120px;
  }

  .conditions__grid {
    gap: 38px;
    margin-top: 46px;
  }

  .conditions .rate-card {
    min-height: 0;
    padding: 38px 24px 48px;
  }

  .hero--compact {
    min-height: 282px;
    height: 282px;
  }

  .hero--compact::before,
  .hero--compact::after {
    height: 110px;
  }

  .hero--compact .hero__content {
    padding-top: 27px;
    padding-bottom: 74px;
  }

  .hero--compact .hero__content h1 {
    font-size: 50px;
  }

  .functional-ticket {
    position: fixed;
    z-index: 999;
    bottom: 0;
    left: 50%;
    display: inline-flex;
    width: min(263px, calc(100vw - 32px));
    min-height: 60px;
    transform: translateX(-50%);
    border: 0;
    font-size: 14px;
    letter-spacing: 5px;
  }

  .training-intro .center-heading > p {
    font-size: 14px;
  }

  .accordion-cta {
    margin-top: 86px;
  }

  .training-intro .accordion {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .training-intro .accordion summary {
    min-height: 22px;
    padding: 0 50px 0 0;
    font-size: 22px;
    line-height: 1;
  }

  .widget-section {
    min-height: 760px;
    margin-top: 0;
    padding-top: 35px;
    padding-bottom: 38px;
  }

  .conditions {
    min-height: 1429px;
  }

  .conditions-divider {
    --jodis-divider-height: 110px;
  }

  .conditions .center-heading {
    margin-top: 0;
  }

  .conditions__grid {
    margin-top: 46px;
  }

  .rate-card--membership > p,
  .rate-card--membership > h4 {
    display: none;
  }

  .cashback {
    min-height: 787px;
    place-items: center start;
    text-align: left;
  }

  .cashback .center-heading { text-align: left; }

  .cashback p {
    font-size: 16px;
  }

  .cashback::before {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 145px;
    background: var(--sp-gradient);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 0);
    content: "";
    filter: drop-shadow(0 22px 0 rgb(187 230 178));
    pointer-events: none;
  }

  .site-footer {
    min-height: 0;
    padding-block: 30px;
  }

  .site-footer__grid {
    display: block;
    width: 80%;
    padding-block: 30px;
  }

  .site-footer h2,
  .site-footer p {
    margin-bottom: 8px;
  }

  .site-footer__logo {
    position: relative;
    width: 100%;
    height: auto;
  }

  .site-footer__section--social {
    min-height: 80px;
  }

  body:has(.jodis-page--impressum) .site-footer {
    min-height: 767px;
    background: #ffffff;
    color: #333333;
  }

  body:has(.jodis-page--impressum) .site-footer h2 {
    color: #333333;
  }

  body:has(.jodis-page--impressum) .social-links {
    display: grid;
    gap: 8px;
  }

  body:has(.jodis-page--impressum) .social-link {
    display: list-item;
    width: auto;
    height: auto;
    margin-left: 22px;
    background: transparent;
    color: var(--sp-color-primary);
    font-weight: 400;
    list-style: disc;
    text-align: left;
  }

  body:has(.jodis-page--impressum) .social-link::after {
    content: "Folgen";
  }

  body:has(.jodis-page--impressum) .site-footer__logo {
    width: min(100%, 290px);
  }
}

@media (min-width: 431px) and (max-width: 767px) {
  .contact-strip {
    height: 31px;
  }

  .contact-strip__inner {
    display: flex;
    width: 80%;
    height: 31px;
    margin-inline: auto;
    padding: 9px 0 0;
    align-items: flex-start;
    justify-content: center;
  }

  .contact-strip__link {
    align-items: flex-start;
    white-space: nowrap;
  }

  .brand-link {
    margin-left: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-motion] {
    opacity: 1;
    transform: var(--jodis-rest-transform, translate3d(0, 0, 0));
  }

  .jodis-reveal[data-jodis-animation] {
    opacity: 1;
    transform: none;
  }
}
