/* Beyond Med – mobile.css
   Loaded AFTER live.css. Surgical overrides only — no !important.
   Wins via equal/higher specificity + later source order.
   Breakpoints: 900 (layout), 820 (nav), 380 (tight).
*/

/* —— Language switch (all viewports; header utility) —— */
.lang-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  margin-left: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.42rem 0.62rem;
  min-height: 34px;
  min-width: 2.35rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.lang-switch__btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-switch__btn.is-active,
.lang-switch__btn[aria-pressed="true"] {
  background: rgba(189, 193, 254, 0.95);
  color: var(--ink);
}

/* —— ≤900px: cards, grids, forms, photos —— */
@media (max-width: 900px) {
  .lang-switch {
    margin-left: 0.15rem;
    margin-right: 0.15rem;
  }

  .lang-switch__btn {
    min-height: 32px;
    padding: 0.38rem 0.52rem;
    font-size: 0.68rem;
  }

  /* Services: 2 columns */
  .services-strip__grid,
  .has-scroll-anim .services-strip__grid,
  .no-motion .services-strip__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: min(100% - 2 * var(--gutter), 1180px);
    margin-inline: auto;
    padding: 0;
    overflow: visible;
    transform: none;
    opacity: 1;
  }

  .services-strip__grid > .service-card,
  .has-scroll-anim .services-strip__grid > .service-card {
    display: flex;
    flex-direction: column;
    flex: none;
    width: auto;
    max-width: none;
    min-width: 0;
    aspect-ratio: auto;
    min-height: 0;
    border-radius: 16px;
    transform: none;
    background: #fff;
    color: var(--ink);
    overflow: hidden;
  }

  .service-card:hover {
    transform: none;
  }

  .service-card__img {
    position: relative;
    inset: auto;
    height: 110px;
    flex: 0 0 auto;
    width: 100%;
  }

  .service-card__img picture,
  .service-card__img img,
  .service-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .service-card__shade {
    position: absolute;
    inset: 0;
    height: 110px;
    z-index: 2;
    background: linear-gradient(
      180deg,
      rgba(20, 18, 24, 0.05),
      rgba(20, 18, 24, 0.22)
    );
  }

  .service-card__body {
    position: relative;
    inset: auto;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 0.75rem 0.9rem;
    background: #fff;
    color: var(--ink);
    gap: 0.35rem;
  }

  .service-card__title {
    color: var(--ink);
    text-shadow: none;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .service-card__text {
    color: rgba(47, 43, 54, 0.72);
    text-shadow: none;
    font-size: 0.78rem;
    line-height: 1.35;
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .service-card .btn {
    margin-top: auto;
    align-self: stretch;
    width: 100%;
    min-height: 36px;
    padding: 0.45rem 0.6rem;
    font-size: 0.78rem;
    background: var(--ink);
    border: 1px solid var(--ink);
    color: #fff;
    box-shadow: none;
  }

  /* Areas / Anwendungsgebiete: list */
  body.page-svc .ov-areas.areas__grid,
  body.page-svc .areas__grid.ov-areas,
  .ov-areas.areas__grid,
  .areas__grid,
  .has-scroll-anim .areas__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(47, 43, 54, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(30, 28, 26, 0.04);
    grid-template-columns: none;
  }

  body.page-svc .ov-areas .area-card,
  .ov-areas .area-card,
  .areas__grid .area-card,
  .has-scroll-anim .area-card {
    position: relative;
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(47, 43, 54, 0.08);
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transform: none;
    opacity: 1;
  }

  body.page-svc .ov-areas .area-card:last-child,
  .areas__grid .area-card:last-child {
    border-bottom: 0;
  }

  body.page-svc .ov-areas .area-card__media,
  body.page-svc .ov-areas .area-card__shade,
  .area-card__media,
  .area-card__shade,
  .area-card picture,
  .area-card img {
    display: none;
  }

  body.page-svc .ov-areas .area-card__label,
  .area-card__label {
    position: relative;
    inset: auto;
    display: block;
    padding: 0.9rem 1.05rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink);
    text-shadow: none;
    background: transparent;
  }

  body.page-svc .ov-areas .area-card__label::before,
  .area-card__label::before {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--green);
    margin-right: 0.65rem;
    vertical-align: 0.15em;
  }

  /* Explain / approach photos: hide (text-first) */
  .cc-explain .cc-explain__photo,
  figure.cc-explain__photo,
  .cc-explain__photo,
  .longe-explain__photo,
  body.page-longe .longe-explain__photo,
  body.page-longe .longe-explain__photo picture,
  body.page-longe .longe-explain__photo img {
    display: none;
    margin: 0;
    height: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
  }

  .cc-explain__grid,
  .longe-explain__grid,
  body.page-longe .longe-explain__grid {
    grid-template-columns: 1fr;
  }

  /* Media strip */
  .svc-media-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1.25rem;
  }

  .svc-media-strip--pair,
  .svc-media-strip--trio {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 0.85rem;
  }

  .svc-media-strip figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    min-width: 0;
  }

  .svc-media-strip--captioned figure,
  .svc-media-strip--pair figure,
  .svc-media-strip--trio figure {
    aspect-ratio: auto;
  }

  .svc-media-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .svc-media-strip--pair .svc-media-strip__img,
  .svc-media-strip--trio .svc-media-strip__img {
    aspect-ratio: 1 / 1;
  }

  @media (min-width: 520px) {
    .svc-media-strip--pair {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .svc-media-strip--trio {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (min-width: 760px) {
    .svc-media-strip--trio {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  /* Complete Check tiers */
  .cc-tier-grid,
  #ccTierGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    min-height: 0;
    max-width: none;
    margin-inline: 0;
    align-items: stretch;
  }

  .cc-tier,
  .cc-tier--mid {
    order: 0;
    min-width: 0;
    height: auto;
    border-radius: 14px;
    transform: none;
    opacity: 1;
  }

  .cc-tier__visual {
    aspect-ratio: 5 / 4;
  }

  .cc-tier h3,
  .cc-tier__titleblock h3 {
    font-size: 0.88rem;
    line-height: 1.15;
    margin: 0;
  }

  .cc-tier__body {
    padding: 0.7rem 0.6rem 0.8rem;
    gap: 0.4rem;
    flex: 1 1 auto;
  }

  .cc-tier__lead {
    font-size: 0.74rem;
    line-height: 1.3;
    margin: 0 0 0.35rem;
  }

  .cc-tier ul,
  .cc-tier__body ul {
    margin: 0 0 0.5rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
  }

  .cc-tier li,
  .cc-tier__body li {
    position: relative;
    padding: 0 0 0 0.85rem;
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.3;
    color: var(--ink);
  }

  .cc-tier li::before,
  .cc-tier__body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: var(--green);
  }

  .cc-tier__link {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    padding: 0.4rem 0.35rem;
    font-size: 0.7rem;
    text-align: center;
    border-radius: 999px;
  }

  .cc-table-scroll {
    overflow: visible;
    overflow-x: visible;
    margin-inline: 0;
    border-radius: 14px;
  }

  .cc-table-scroll::after {
    display: none;
  }

  .cc-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 0.72rem;
  }

  .cc-table th,
  .cc-table td {
    padding: 0.45rem 0.28rem;
    overflow-wrap: anywhere;
    vertical-align: middle;
  }

  .cc-table thead th {
    font-size: 0.62rem;
  }

  .cc-table tbody th {
    width: 40%;
    font-size: 0.7rem;
    position: static;
    box-shadow: none;
    background: transparent;
  }

  .cc-table tbody td {
    width: 20%;
    font-size: 0.85rem;
  }

  /* Footer Entdecken full-width + centered */
  .footer__shell {
    grid-template-columns: 1fr;
  }

  .footer__aside {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .footer__book,
  .footer__links-panel,
  .footer__quote {
    width: 100%;
    max-width: none;
    grid-column: auto;
  }

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

  .footer__links-panel .footer__heading {
    text-align: center;
  }

  .footer__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: 100%;
  }

  .footer__pills li {
    flex: 0 0 auto;
  }

  .footer__quote {
    text-align: center;
  }

  /* Contact form */
  .contact-form .row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .contact-form .radios {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
  }

  .contact-form .radios label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 0.7rem 1rem;
    margin: 0;
  }

  .contact-form .radios input {
    width: 1.1rem;
    height: 1.1rem;
    min-width: 1.1rem;
    margin: 0;
    flex-shrink: 0;
  }

  .contact-form .form-privacy {
    width: 100%;
    margin-top: 0.25rem;
  }

  .contact-form .form-privacy__label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .contact-form .form-privacy__check {
    flex: 0 0 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
  }

  .contact-form__submit {
    width: 100%;
    margin-top: 0.35rem;
  }
}

/* —— ≤820px: hamburger nav —— */
@media (max-width: 820px) {
  .site-header {
    overflow: visible;
  }

  .site-header__inner {
    position: relative;
    overflow: visible;
    z-index: 1002;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1003;
  }

  .nav-toggle span {
    background: #fff;
  }

  body.nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #1a1a1a;
    height: var(--header-h);
    overflow: visible;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open,
  body.nav-open .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 1001;
    background: #1a1a1a;
    padding: 0.75rem var(--gutter)
      calc(1.5rem + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.is-open .site-nav__link,
  .site-nav.is-open .site-nav__item > .site-nav__link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
  }

  .site-nav.is-open .site-nav__link.is-active {
    color: var(--lavender);
  }

  .site-nav.is-open .site-nav__dropdown {
    position: static;
    display: none;
    width: 100%;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0.35rem 0.75rem;
  }

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

  .site-nav.is-open .site-nav__dropdown a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.55rem 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
  }

  body.nav-open main {
    visibility: hidden;
  }

  /* Footer aside: break 1100px 2-col from live.css */
  .footer__aside {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* —— ≤380px: tighter —— */
@media (max-width: 380px) {
  .service-card__title {
    font-size: 0.9rem;
  }

  .service-card__text {
    font-size: 0.74rem;
    -webkit-line-clamp: 2;
  }

  .service-card__img,
  .service-card__shade {
    height: 96px;
  }

  .cc-tier-grid,
  #ccTierGrid {
    gap: 0.4rem;
  }

  .cc-tier h3,
  .cc-tier__titleblock h3 {
    font-size: 0.8rem;
  }

  .cc-tier li,
  .cc-tier__body li {
    font-size: 0.64rem;
  }
}
@media (max-width: 900px) {

  .cc-fuer__media--triple {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .cc-fuer__media--triple .cc-fuer__visual--primary {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .cc-fuer__media--triple .cc-fuer__visual--secondary,
  .cc-fuer__media--triple .cc-fuer__visual--tertiary {
    aspect-ratio: 1 / 1;
  }

}
