/* =========================
   HEADER + NAVIGATION
   Single source of truth since 1.0.1019
========================= */

body.admin-bar {
  --tm-admin-bar-offset: 32px;
}

.site-header {
  position: sticky;
  top: var(--tm-admin-bar-offset, 0px);
  left: 0;
  right: 0;
  z-index: 10000;

  width: 100%;

  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.76);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header .tm-header-inner {
  width: min(100% - clamp(36px, 4.5vw, 88px), 1280px);
  max-width: 1280px;
  margin-inline: auto;
}

.tm-header-inner {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 2.2vw, 36px);

  height: 82px;
}

.site-branding {
  display: flex;
  align-items: center;
  justify-self: start;
}

.site-header .tm-logo,
.tm-mobile-menu .tm-logo {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;

  min-height: auto;
  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;
  box-shadow: none;
  transform: none;

  color: var(--tm-logo-main);

  font-size: 1.56rem;
  font-weight: 840;
  line-height: 1;
  letter-spacing: -0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .tm-logo:hover,
.tm-mobile-menu .tm-logo:hover {
  transform: none;
  box-shadow: none;
}

.tm-logo-main {
  color: var(--tm-logo-main);
}

.tm-logo-dot {
  margin-inline: 0.015em;
  color: var(--tm-logo-accent);
}

.tm-logo-sub {
  color: var(--tm-logo-sub);
  font-weight: 660;
}

.site-branding a:hover .tm-logo-dot,
.site-branding a:hover .tm-logo-sub {
  opacity: 0.78;
}

/* Desktop navigation */

.main-navigation {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.tm-main-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2vw, 38px);

  margin: 0;
  padding: 0;

  list-style: none;
}

.tm-main-menu li {
  position: relative;
  margin: 0;
  padding: 0;
}

.tm-main-menu a {
  position: relative;

  display: inline-flex;
  align-items: center;

  min-height: 82px;

  color: var(--tm-text);

  font-size: 1rem;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;

  transition: color 0.18s ease;
}

.tm-main-menu a::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 20px;

  width: 0;
  height: 2px;

  border-radius: 999px;
  background: var(--tm-primary);

  transform: translateX(-50%);
  transition: width 0.18s ease;
}

.tm-main-menu a:hover,
.tm-main-menu a:focus-visible,
.tm-main-menu .current-menu-item > a,
.tm-main-menu .current_page_item > a,
.tm-main-menu .current-menu-ancestor > a {
  color: var(--tm-primary);
}

.tm-main-menu a:hover::after,
.tm-main-menu a:focus-visible::after,
.tm-main-menu .current-menu-item > a::after,
.tm-main-menu .current_page_item > a::after,
.tm-main-menu .current-menu-ancestor > a::after {
  width: 100%;
}

.tm-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;

  min-width: 164px;
  min-height: 46px;
  padding-inline: 22px;

  border: 1px solid transparent;
  border-radius: 999px;

  background: var(--tm-primary);
  color: #ffffff;

  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);

  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.tm-header-cta:hover,
.tm-header-cta:focus-visible,
.tm-header-cta[aria-current="page"] {
  background: var(--tm-primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.27);
}

.tm-menu-toggle,
.tm-mobile-menu {
  display: none;
}

body.tm-menu-open {
  overflow: hidden;
}

/* Mobile header and one-screen navigation */

@media (max-width: 1080px) {
  .site-header {
    position: fixed;
    top: var(--tm-admin-bar-offset, 0px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(15, 23, 42, 0.07);
  }

  body.tm-menu-open .site-header {
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  }

  .site-header .tm-header-inner {
    width: min(100% - 32px, 100%);
  }

  .tm-header-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    height: 78px;
    gap: 16px;
  }

  .site-header .tm-logo {
    font-size: 1.68rem;
  }

  .main-navigation,
  .tm-header-cta {
    display: none;
  }

  .tm-menu-toggle {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;

    width: 46px;
    height: 46px;
    padding: 0;

    border: 0;
    border-radius: 999px;

    background: transparent;
    cursor: pointer;
  }

  .tm-menu-toggle span {
    position: absolute;
    left: 50%;

    width: 29px;
    height: 2.5px;

    border-radius: 999px;
    background: #0f172a;

    transform: translateX(-50%);
    transition:
      transform 0.24s ease,
      opacity 0.18s ease,
      top 0.24s ease;
  }

  .tm-menu-toggle span:nth-child(1) { top: 14px; }
  .tm-menu-toggle span:nth-child(2) { top: 22px; }
  .tm-menu-toggle span:nth-child(3) { top: 30px; }

  body.tm-menu-open .tm-menu-toggle span:nth-child(1) {
    top: 22px;
    transform: translateX(-50%) rotate(45deg);
  }

  body.tm-menu-open .tm-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.tm-menu-open .tm-menu-toggle span:nth-child(3) {
    top: 22px;
    transform: translateX(-50%) rotate(-45deg);
  }

  .tm-mobile-menu {
    position: fixed;
    inset: calc(78px + var(--tm-admin-bar-offset, 0px)) 0 0;
    z-index: 9999;

    display: block;
    height: calc(100dvh - 78px - var(--tm-admin-bar-offset, 0px));
    padding: clamp(17px, 2.4vh, 24px) 0 max(12px, env(safe-area-inset-bottom));

    background:
      radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.13), transparent 34%),
      linear-gradient(180deg, #f8fbff 0%, #f8fafc 55%, #ffffff 100%);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    transform: translateY(-10px);
    transition:
      opacity 0.24s ease,
      visibility 0.24s ease,
      transform 0.3s cubic-bezier(.22, 1, .36, 1);
  }

  .tm-mobile-menu.active,
  .tm-mobile-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .tm-mobile-menu__inner {
    display: flex;
    flex-direction: column;

    width: min(100% - 36px, 720px);
    min-height: calc(100% - 2px);
    margin-inline: auto;
  }

  .tm-mobile-header {
    display: none;
  }

  .tm-mobile-menu__nav {
    display: grid;
    gap: 0;
  }

  .tm-mobile-feature,
  .tm-mobile-nav__link {
    position: relative;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;

    width: 100%;

    color: #0f172a;
    text-decoration: none;

    transition:
      border-color 0.18s ease,
      background 0.18s ease,
      box-shadow 0.18s ease,
      transform 0.18s ease;
  }

  .tm-mobile-feature:hover,
  .tm-mobile-feature:focus-visible,
  .tm-mobile-nav__link:hover,
  .tm-mobile-nav__link:focus-visible {
    color: #0f172a;
    transform: translateY(-1px);
  }

  .tm-mobile-feature:active,
  .tm-mobile-nav__link:active {
    transform: scale(0.992);
  }

  .tm-mobile-feature {
    min-height: 88px;
    padding: 11px 18px;
    gap: 14px;

    border: 1px solid rgba(37, 99, 235, 0.26);
    border-radius: 24px;

    background:
      radial-gradient(circle at 62% 34%, rgba(37, 99, 235, 0.09), transparent 36%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.9));

    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.065);
  }

  .tm-mobile-feature[aria-current="page"] {
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 20px 48px rgba(37, 99, 235, 0.12);
  }

  .tm-mobile-feature__icon,
  .tm-mobile-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
  }

  .tm-mobile-feature__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;

    color: var(--tm-primary);
    background: rgba(239, 246, 255, 0.98);
    border: 1px solid rgba(37, 99, 235, 0.17);
  }

  .tm-mobile-nav__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    color: #0f172a;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
  }

  .tm-mobile-feature__icon svg {
    width: 22px;
    height: 22px;
  }

  .tm-mobile-nav__icon svg {
    width: 18px;
    height: 18px;
  }

  .tm-mobile-feature__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .tm-mobile-feature__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 4px;
    padding: 5px 12px;

    border-radius: 10px;

    background: rgba(219, 234, 254, 0.94);
    color: var(--tm-primary);

    font-size: 0.72rem;
    font-weight: 820;
    line-height: 1;
  }

  .tm-mobile-feature__title {
    display: block;

    color: #0f172a;

    font-size: clamp(1.22rem, 4.35vw, 1.38rem);
    font-weight: 840;
    line-height: 1.03;
    letter-spacing: -0.052em;
  }

  .tm-mobile-feature__text {
    display: block;

    max-width: 100%;
    margin-top: 4px;

    color: #64748b;

    font-size: clamp(0.86rem, 3vw, 0.96rem);
    font-weight: 560;
    line-height: 1.16;
    letter-spacing: -0.02em;
    white-space: normal;
  }

  .tm-mobile-nav {
    display: grid;
    gap: 8px;

    margin: 12px 0 0;
    padding: 0;

    list-style: none;
  }

  .tm-mobile-nav li {
    margin: 0;
    padding: 0;
  }

  .tm-mobile-nav__link {
    min-height: 58px;
    padding: 6px 18px;
    gap: 14px;

    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 21px;

    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  }

  .tm-mobile-nav__link:hover,
  .tm-mobile-nav__link:focus-visible,
  .tm-mobile-nav__link.is-current,
  .tm-mobile-nav__link[aria-current="page"] {
    border-color: rgba(37, 99, 235, 0.24);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.065);
  }

  .tm-mobile-nav__link.is-current .tm-mobile-nav__icon,
  .tm-mobile-nav__link[aria-current="page"] .tm-mobile-nav__icon {
    color: var(--tm-primary);
    background: rgba(239, 246, 255, 0.96);
    border-color: rgba(37, 99, 235, 0.16);
  }

  .tm-mobile-nav__label {
    color: #0f172a;

    font-size: clamp(1.08rem, 4vw, 1.22rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.045em;
    white-space: nowrap;
  }

  .tm-mobile-menu__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;

    width: 20px;
    flex: 0 0 20px;

    color: var(--tm-primary);

    font-size: 1.32rem;
    font-weight: 760;
    line-height: 1;
  }

  .tm-mobile-menu__footer--legal-only {
    margin-top: clamp(16px, 2.2vh, 24px);
    padding: 0 0 max(2px, env(safe-area-inset-bottom));
  }

  .tm-mobile-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 0;
    padding-top: 10px;

    border-top: 1px solid rgba(226, 232, 240, 0.76);

    color: #64748b;

    font-size: clamp(0.78rem, 3.1vw, 0.9rem);
    font-weight: 600;
    line-height: 1.2;
  }

  .tm-mobile-legal a {
    color: #64748b;
    text-decoration: none;
  }

  .tm-mobile-legal a:hover,
  .tm-mobile-legal a:focus-visible {
    color: var(--tm-primary);
  }
}

@media (max-width: 782px) {
  body.admin-bar {
    --tm-admin-bar-offset: 46px;
  }
}

@media (max-width: 430px) {
  .tm-mobile-menu {
    padding-top: 17px;
  }

  .tm-mobile-menu__inner {
    width: calc(100% - 30px);
  }

  .tm-mobile-feature {
    min-height: 86px;
    padding-inline: 17px;
    border-radius: 23px;
  }

  .tm-mobile-feature__title {
    font-size: 1.22rem;
  }

  .tm-mobile-feature__text {
    font-size: 0.86rem;
  }

  .tm-mobile-nav__link {
    min-height: 57px;
    padding-inline: 17px;
  }

  .tm-mobile-nav__label {
    font-size: 1.12rem;
  }
}

@media (max-width: 900px) and (max-height: 740px) {
  .tm-mobile-menu {
    padding-top: 11px;
    padding-bottom: max(7px, env(safe-area-inset-bottom));
  }

  .tm-mobile-feature {
    min-height: 78px;
    padding-block: 8px;
  }

  .tm-mobile-feature__icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .tm-mobile-feature__icon svg {
    width: 19px;
    height: 19px;
  }

  .tm-mobile-feature__badge {
    margin-bottom: 3px;
    padding: 4px 10px;
    font-size: 0.66rem;
  }

  .tm-mobile-feature__title {
    font-size: 1.08rem;
  }

  .tm-mobile-feature__text {
    font-size: 0.76rem;
    line-height: 1.12;
  }

  .tm-mobile-nav {
    gap: 6px;
    margin-top: 8px;
  }

  .tm-mobile-nav__link {
    min-height: 50px;
    padding-block: 4px;
    border-radius: 18px;
  }

  .tm-mobile-nav__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .tm-mobile-nav__icon svg {
    width: 16px;
    height: 16px;
  }

  .tm-mobile-nav__label {
    font-size: 1rem;
    line-height: 1.02;
  }

  .tm-mobile-menu__arrow {
    font-size: 1.2rem;
  }

  .tm-mobile-menu__footer--legal-only {
    margin-top: 10px;
  }

  .tm-mobile-legal {
    padding-top: 7px;
    font-size: 0.72rem;
  }
}

@media (max-width: 380px), (max-width: 900px) and (max-height: 660px) {
  .tm-mobile-menu {
    overflow-y: auto;
  }

  .tm-mobile-feature {
    min-height: 72px;
  }

  .tm-mobile-feature__title {
    font-size: 1.01rem;
  }

  .tm-mobile-feature__text {
    font-size: 0.7rem;
  }

  .tm-mobile-nav {
    gap: 5px;
    margin-top: 6px;
  }

  .tm-mobile-nav__link {
    min-height: 46px;
    border-radius: 17px;
  }

  .tm-mobile-nav__icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .tm-mobile-nav__icon svg {
    width: 15px;
    height: 15px;
  }

  .tm-mobile-nav__label {
    font-size: 0.94rem;
  }

  .tm-mobile-menu__footer--legal-only {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-main-menu a::after,
  .tm-header-cta,
  .tm-menu-toggle span,
  .tm-mobile-menu,
  .tm-mobile-feature,
  .tm-mobile-nav__link {
    transition: none;
  }
}

/* ======================================================================
   v1.0.1174 . Mobiles Menü als kompakte, gegliederte Navigation
   Der feste Seitenheader mit Logo und Schließen-Symbol bleibt unverändert.
   ====================================================================== */
@media (max-width: 1080px) {
  .tm-mobile-menu {
    padding-top: clamp(16px, 2.2vh, 22px);
    background:
      radial-gradient(circle at 50% -8%, rgba(37, 99, 235, 0.08), transparent 31%),
      #ffffff;
  }

  .tm-mobile-menu__inner {
    width: min(100% - 32px, 720px);
  }

  .tm-mobile-search {
    margin-bottom: 22px;
  }

  .tm-mobile-search .tm-search-field {
    padding: 5px 5px 5px 16px;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.045);
  }

  .tm-mobile-search .tm-search-field input {
    min-height: 46px;
    font-size: 1rem;
  }

  .tm-mobile-search .tm-search-submit {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .tm-mobile-search .tm-search-status:empty,
  .tm-mobile-search .tm-search-results:empty {
    display: none;
  }

  .tm-mobile-search .tm-search-status:not(:empty) {
    min-height: 0;
    margin: 10px 3px 5px;
  }

  .tm-mobile-menu__nav {
    display: block;
  }

  .tm-mobile-feature {
    min-height: 98px;
    padding: 15px 18px;
    gap: 15px;
    border-radius: 22px;
    background:
      radial-gradient(circle at 74% 34%, rgba(37, 99, 235, 0.11), transparent 38%),
      linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: none;
  }

  .tm-mobile-feature:hover,
  .tm-mobile-feature:focus-visible {
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.09);
  }

  .tm-mobile-feature__icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 16px;
    background: rgba(219, 234, 254, 0.72);
  }

  .tm-mobile-feature__icon svg {
    width: 25px;
    height: 25px;
  }

  .tm-mobile-feature__title {
    font-size: clamp(1.16rem, 4.35vw, 1.34rem);
    line-height: 1.08;
  }

  .tm-mobile-feature__text {
    margin-top: 6px;
    font-size: clamp(0.88rem, 3.25vw, 0.98rem);
  }

  .tm-mobile-nav-group {
    margin-top: 28px;
  }

  .tm-mobile-nav-group__title {
    margin: 0 0 8px;
    padding: 0 12px;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .tm-mobile-nav {
    display: block;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
  }

  .tm-mobile-nav li {
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  }

  .tm-mobile-nav__link {
    min-height: 64px;
    padding: 9px 10px;
    gap: 13px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .tm-mobile-nav__link:hover,
  .tm-mobile-nav__link:focus-visible {
    border-color: transparent;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: none;
    transform: none;
  }

  .tm-mobile-nav__link.is-current,
  .tm-mobile-nav__link[aria-current="page"] {
    margin-block: 4px;
    min-height: 56px;
    border-radius: 14px;
    background: #eff6ff;
    box-shadow: none;
  }

  .tm-mobile-nav__icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0f172a;
  }

  .tm-mobile-nav__link.is-current .tm-mobile-nav__icon,
  .tm-mobile-nav__link[aria-current="page"] .tm-mobile-nav__icon {
    border: 0;
    background: transparent;
    color: var(--tm-primary);
  }

  .tm-mobile-nav__icon svg {
    width: 22px;
    height: 22px;
  }

  .tm-mobile-nav__label {
    font-size: clamp(1.04rem, 4vw, 1.18rem);
    font-weight: 680;
    line-height: 1.15;
    letter-spacing: -0.03em;
  }

  .tm-mobile-nav__link.is-current .tm-mobile-nav__label,
  .tm-mobile-nav__link[aria-current="page"] .tm-mobile-nav__label {
    color: var(--tm-primary-dark);
    font-weight: 760;
  }

  .tm-mobile-menu__arrow {
    width: 18px;
    flex-basis: 18px;
    color: #0f172a;
    font-size: 1.65rem;
    font-weight: 430;
  }

  .tm-mobile-feature .tm-mobile-menu__arrow {
    color: var(--tm-primary);
  }

  .tm-mobile-menu__footer--legal-only {
    margin-top: 26px;
  }

  .tm-mobile-legal {
    padding-top: 14px;
  }
}

@media (max-width: 430px) {
  .tm-mobile-feature {
    min-height: 94px;
    padding-inline: 15px;
  }

  .tm-mobile-nav-group {
    margin-top: 24px;
  }

  .tm-mobile-nav__link {
    min-height: 60px;
    padding-inline: 8px;
  }
}

@media (max-width: 900px) and (max-height: 740px) {
  .tm-mobile-search {
    margin-bottom: 16px;
  }

  .tm-mobile-feature {
    min-height: 82px;
    padding-block: 11px;
  }

  .tm-mobile-feature__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .tm-mobile-feature__title {
    font-size: 1.08rem;
  }

  .tm-mobile-feature__text {
    margin-top: 3px;
    font-size: 0.8rem;
  }

  .tm-mobile-nav-group {
    margin-top: 18px;
  }

  .tm-mobile-nav-group__title {
    margin-bottom: 5px;
    font-size: 0.67rem;
  }

  .tm-mobile-nav__link {
    min-height: 52px;
    padding-block: 6px;
  }

  .tm-mobile-nav__icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .tm-mobile-nav__icon svg {
    width: 19px;
    height: 19px;
  }

  .tm-mobile-nav__label {
    font-size: 0.98rem;
  }

  .tm-mobile-menu__footer--legal-only {
    margin-top: 16px;
  }
}

/* ======================================================================
   v1.0.1176 . Mobiler Seitenheader: Suche, Kontakt und Menü
   Die bestehende Headerhöhe von 78px bleibt unverändert.
   ====================================================================== */
.tm-mobile-header-actions,
.tm-contact-overlay {
  display: none;
}

body.tm-contact-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .tm-header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 4px;
  }

  .tm-mobile-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
  }

  .tm-mobile-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color .18s ease, background .18s ease;
  }

  .tm-mobile-header-action:hover,
  .tm-mobile-header-action:focus-visible,
  .tm-mobile-header-action[aria-expanded="true"] {
    color: var(--tm-primary);
    background: #f8fafc;
    outline: none;
  }

  .tm-mobile-header-action svg {
    width: 27px;
    height: 27px;
    stroke: currentColor;
  }

  .tm-menu-toggle {
    margin-left: 0;
  }

  .tm-contact-overlay {
    position: fixed;
    inset: calc(78px + var(--tm-admin-bar-offset, 0px)) 0 0;
    z-index: 15000;
    display: block;
    padding: 14px 16px max(18px, env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, .22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
  }

  .tm-contact-overlay[hidden] {
    display: none;
  }

  .tm-contact-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .tm-contact-panel {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 24px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
    transform: translateY(-8px);
    transition: transform .22s cubic-bezier(.22, 1, .36, 1);
  }

  .tm-contact-overlay.is-open .tm-contact-panel {
    transform: translateY(0);
  }

  .tm-contact-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
  }

  .tm-contact-panel__eyebrow {
    margin-bottom: 5px;
    color: var(--tm-primary);
    font-size: .72rem;
    font-weight: 820;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .tm-contact-panel h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.22rem, 4.6vw, 1.55rem);
    font-weight: 840;
    line-height: 1.08;
    letter-spacing: -.035em;
  }

  .tm-contact-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
  }

  .tm-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tm-contact-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 78px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
  }

  .tm-contact-option:hover,
  .tm-contact-option:focus-visible {
    border-color: rgba(37, 99, 235, .35);
    background: #f8fbff;
    color: #0f172a;
    outline: none;
    transform: translateY(-1px);
  }

  .tm-contact-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #eff6ff;
    color: var(--tm-primary);
  }

  .tm-contact-option--whatsapp .tm-contact-option__icon {
    background: #ecfdf5;
    color: #16a34a;
  }

  .tm-contact-option__icon svg {
    width: 23px;
    height: 23px;
  }

  .tm-contact-option__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
  }

  .tm-contact-option__content strong {
    color: #0f172a;
    font-size: .98rem;
    font-weight: 790;
    line-height: 1.12;
  }

  .tm-contact-option__content small {
    overflow: hidden;
    color: #64748b;
    font-size: .77rem;
    font-weight: 560;
    line-height: 1.22;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Suche lebt ab v1176 im festen Header und reserviert im Menü keinen Platz mehr. */
  .tm-mobile-menu__nav {
    margin-top: 0;
  }
}

@media (max-width: 430px) {
  .site-header .tm-header-inner {
    width: calc(100% - 22px);
  }

  .site-header .tm-logo {
    font-size: clamp(1.42rem, 6.3vw, 1.68rem);
  }

  .tm-mobile-header-action,
  .tm-menu-toggle {
    width: 42px;
    height: 46px;
  }

  .tm-mobile-header-action svg {
    width: 25px;
    height: 25px;
  }

  .tm-contact-overlay {
    padding-inline: 10px;
  }

  .tm-contact-panel {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .tm-contact-option {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 72px;
    padding: 10px;
  }

  .tm-contact-option__icon {
    width: 38px;
    height: 38px;
  }

  .tm-contact-option__content strong {
    font-size: .92rem;
  }

  .tm-contact-option__content small {
    font-size: .71rem;
  }
}

@media (max-width: 360px) {
  .site-header .tm-logo {
    font-size: 1.32rem;
  }

  .tm-mobile-header-action,
  .tm-menu-toggle {
    width: 39px;
  }

  .tm-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-mobile-header-action,
  .tm-contact-overlay,
  .tm-contact-panel,
  .tm-contact-option {
    transition: none;
  }
}


/* ======================================================================
   v1.0.1177 . Ruhigere Header-Icons und reduziertes Kontakt-Sheet
   Mobiles Hauptmenü bleibt unverändert.
   ====================================================================== */
@media (max-width:1080px) {
  .tm-mobile-header-actions {
    gap: 0;
  }

  .tm-mobile-header-action {
    width: 44px;
    height: 46px;
    border-radius: 999px;
    background: transparent;
    color: #0f172a;
    transition: color .16s ease, background .16s ease;
  }

  .tm-mobile-header-action:hover,
  .tm-mobile-header-action:focus-visible,
  .tm-mobile-header-action[aria-expanded="true"] {
    color: #0f172a;
    background: #f5f5f7;
    outline: none;
  }

  .tm-mobile-header-action svg {
    width: 25px;
    height: 25px;
    stroke-width: 1.65;
  }

  .tm-contact-overlay {
    padding: 12px 14px max(18px, env(safe-area-inset-bottom));
    background: rgba(15,23,42,.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .tm-contact-panel {
    width: min(100%, 620px);
    padding: 22px 20px 10px;
    border: 0;
    border-radius: 24px;
    background: rgba(255,255,255,.99);
    box-shadow: 0 22px 65px rgba(15,23,42,.17);
  }

  .tm-contact-panel__header {
    align-items: center;
    margin-bottom: 10px;
  }

  .tm-contact-panel__eyebrow {
    margin-bottom: 4px;
    font-size: .69rem;
    letter-spacing: .075em;
  }

  .tm-contact-panel h2 {
    max-width: 470px;
    font-size: clamp(1.2rem,4.4vw,1.48rem);
    line-height: 1.08;
  }

  .tm-contact-panel__close {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    background: #f5f5f7;
    font-size: 1.4rem;
  }

  .tm-contact-grid {
    display: block;
  }

  .tm-contact-option {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) auto;
    gap: 13px;
    min-height: 66px;
    padding: 10px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .tm-contact-option + .tm-contact-option {
    border-top: 1px solid rgba(226,232,240,.9);
  }

  .tm-contact-option::after {
    content: "›";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 22px;
    color: #94a3b8;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1;
  }

  .tm-contact-option:hover,
  .tm-contact-option:focus-visible {
    border-color: transparent;
    background: transparent;
    color: #0f172a;
    outline: none;
    transform: none;
  }

  .tm-contact-option:hover .tm-contact-option__content strong,
  .tm-contact-option:focus-visible .tm-contact-option__content strong,
  .tm-contact-option:hover .tm-contact-option__icon,
  .tm-contact-option:focus-visible .tm-contact-option__icon {
    color: var(--tm-primary);
  }

  .tm-contact-option__icon {
    width: 34px;
    height: 34px;
    border-radius: 0;
    background: transparent;
    color: #0f172a;
    transition: color .16s ease;
  }

  .tm-contact-option--whatsapp .tm-contact-option__icon {
    background: transparent;
    color: #16a34a;
  }

  .tm-contact-option__icon svg {
    width: 22px;
    height: 22px;
  }

  .tm-contact-option__content {
    gap: 2px;
  }

  .tm-contact-option__content strong {
    font-size: .98rem;
    font-weight: 760;
    line-height: 1.15;
  }

  .tm-contact-option__content small {
    overflow: visible;
    color: #64748b;
    font-size: .79rem;
    line-height: 1.22;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (max-width:430px) {
  .tm-mobile-header-action,
  .tm-menu-toggle {
    width: 41px;
  }

  .tm-mobile-header-action svg {
    width: 24px;
    height: 24px;
  }

  .tm-contact-panel {
    padding: 18px 16px 8px;
    border-radius: 22px;
  }

  .tm-contact-option {
    grid-template-columns: 32px minmax(0,1fr) auto;
    min-height: 62px;
    padding: 9px 2px;
  }

  .tm-contact-option__icon {
    width: 32px;
    height: 32px;
  }

  .tm-contact-option__content strong {
    font-size: .94rem;
  }

  .tm-contact-option__content small {
    font-size: .75rem;
  }
}


/* ======================================================================
   v1.0.1178 . Kraeftigere Icon-Sprache im mobilen Header und Kontakt-Sheet
   Struktur und mobiles Hauptmenue bleiben unveraendert.
   ====================================================================== */
@media (max-width:1080px) {
  /* Suche und Kontakt erhalten dieselbe visuelle Staerke wie der Burger. */
  .tm-mobile-header-action svg {
    width: 27px;
    height: 27px;
  }

  .tm-mobile-header-action .tm-lucide,
  .tm-mobile-header-action .tm-lucide * {
    stroke-width: 2.35px;
  }

  .tm-contact-option__icon {
    color: #0f172a;
  }

  .tm-contact-option__icon svg {
    width: 25px;
    height: 25px;
  }

  .tm-contact-option::after {
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 800;
  }

  .tm-contact-panel__close {
    color: #0f172a;
    font-weight: 600;
  }
}

@media (max-width:430px) {
  .tm-mobile-header-action svg {
    width: 26px;
    height: 26px;
  }

  .tm-contact-option__icon svg {
    width: 24px;
    height: 24px;
  }
}

/* ======================================================================
   v1.0.1179 . Einheitliche Icon-Sprache fuer mobilen Header/Kontakt
   ====================================================================== */
@media (max-width:1080px) {
  .tm-mobile-header-action {
    width: 46px;
    height: 46px;
    background: transparent;
    color: #0f172a;
  }
  .tm-mobile-header-action:hover,
  .tm-mobile-header-action:focus-visible,
  .tm-mobile-header-action[aria-expanded="true"] {
    background: #f5f5f7;
    color: #0f172a;
  }
  .tm-mobile-header-action svg,
  .tm-mobile-header-action .tm-lucide {
    width: 29px;
    height: 29px;
  }
  .tm-mobile-header-action .tm-lucide,
  .tm-mobile-header-action .tm-lucide * {
    stroke-width: 2.05px;
  }
  .tm-ui-icon {
    display: block;
    overflow: visible;
  }
  .tm-ui-icon path,
  .tm-ui-icon rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.05;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }
  .tm-mobile-header-action--contact .tm-ui-icon {
    width: 28px;
    height: 28px;
  }
  .tm-contact-panel {
    padding: 24px 22px 12px;
    border-radius: 26px;
  }
  .tm-contact-panel__header {
    margin-bottom: 16px;
  }
  .tm-contact-panel__close {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    background: #f5f5f7;
    font-size: 1.55rem;
    font-weight: 400;
  }
  .tm-contact-option {
    grid-template-columns: 48px minmax(0,1fr) 24px;
    gap: 15px;
    min-height: 82px;
    padding: 13px 4px;
  }
  .tm-contact-option__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
  }
  .tm-contact-option__icon .tm-ui-icon {
    width: 32px;
    height: 32px;
  }
  .tm-contact-option--whatsapp .tm-contact-option__icon {
    color: #16a34a;
  }
  .tm-contact-option__content strong {
    font-size: 1.03rem;
    font-weight: 780;
  }
  .tm-contact-option__content small {
    margin-top: 3px;
    color: #64748b;
    font-size: .86rem;
  }
  .tm-contact-option::after {
    width: 24px;
    color: #0f172a;
    font-size: 1.65rem;
    font-weight: 500;
  }
}
@media (max-width:430px) {
  .tm-mobile-header-action svg,
  .tm-mobile-header-action .tm-lucide { width: 27px; height: 27px; }
  .tm-contact-panel { padding: 20px 18px 10px; }
  .tm-contact-option { grid-template-columns: 42px minmax(0,1fr) 22px; gap: 12px; min-height: 72px; padding: 10px 2px; }
  .tm-contact-option__icon { width: 42px; height: 42px; }
  .tm-contact-option__icon .tm-ui-icon { width: 29px; height: 29px; }
  .tm-contact-option__content strong { font-size: .98rem; }
  .tm-contact-option__content small { font-size: .8rem; }
}
