/*
  Narrow WordPress pages of tuscheteam.de (home, service pages, legal pages, order page): the 1100px Beaver Builder row with
  a 20px text inset. footer/apply-footer.mjs links this file at the end of the <head> of every German WordPress page that
  carries the tt footer. The Astro pages do not load it.
  Source: layout preview of 2026-11-23 (vorschau-layout/bb-preview.css sections A, A2, A3 and footer-preview.css section A).
  Tokens: --tt-edge-w is the width of the header inner box, the footer inner box and the 1100px row; --tt-edge-pad is the
  padding inside it. Both are read by tt-footer.css (.tt-footer__inner).
*/
body {
  --tt-page-width: 1100px;
  --tt-edge-w: min(100%, 1100px);
  --tt-edge-pad: 20px;
}

/* ---------- header inner follows the row edge: logo on the left edge, last menu entry on the right edge ---------- */
#masthead .ast-container {
  box-sizing: border-box;
  max-width: none;
  width: var(--tt-edge-w);
  margin-inline: auto;
  padding-inline: var(--tt-edge-pad);
}
#masthead .site-header .ast-site-identity,
#masthead .ast-site-identity {
  padding-left: 0;
}
#masthead .site-logo-img {
  padding-right: 0;
}
#masthead .custom-logo {
  margin-left: 0;
}
@media (min-width: 922px) {
  .main-header-menu > .menu-item:last-child > .menu-link {
    padding-right: 0;
  }
}

/* ---------- dropdown ----------
   Dienstleistungen has 9 entries with Flurkarten. The 81px rows (49px line height) did not fit a 600px viewport, and the
   500px list reached past the right edge at 1024px. Rows of about 41px, anchored to the right edge of the menu item below
   1384px. The mobile sub-links were 10.9px. */
@media (min-width: 922px) {
  .main-header-menu .sub-menu .menu-link {
    padding-block: 8px;
    line-height: 1.4;
  }
}
@media (min-width: 922px) and (max-width: 1383px) {
  .main-header-menu > .menu-item-has-children > .sub-menu {
    left: auto !important;
    right: 0 !important;
  }
}
@media (max-width: 921px) {
  .main-header-menu .sub-menu .menu-link,
  .main-header-menu .sub-menu .menu-text {
    font-size: 15px;
    line-height: 1.4;
  }
  .main-header-menu .sub-menu .menu-link {
    padding-block: 12px;
  }
}

/* The Ratgeber entry (apply-menu.mjs) has no icon span, so its text sat 5px left of the other main menu entries on the mobile menu. */
@media (max-width: 921px) {
  #primary-menu > .menu-item > .menu-link > .menu-text:first-child {
    margin-left: 5px;
  }
}

/* ---------- start page below 1149px (the 1100px row meets the viewport edge): every module keeps one 24px gutter, the
   width of the collapsed toolbar tab of the preview; h1 and h2 had no side margin on phones ---------- */
@media (max-width: 1148px) {
  body.home {
    --tt-edge-pad: 24px;
  }
  body.home .fl-module > .fl-module-content {
    margin-left: 24px;
    margin-right: 24px;
  }
}

/* ---------- Trustindex blocks inside the page never overflow ---------- */
.responsive-trustindex-page {
  width: min(400px, 100%) !important;
  min-width: 0 !important;
  max-width: 100%;
}
.lp-review-widget-container,
.responsive-trustindex-page .ti-widget,
.responsive-trustindex-page .ti-widget-container {
  max-width: 100%;
}
