body.tm-search-open { overflow: hidden; }
.tm-header-actions { display:flex; align-items:center; justify-self:end; gap:10px; }
.tm-search-trigger { display:inline-flex; width:46px; height:46px; align-items:center; justify-content:center; border:1px solid var(--tm-border); border-radius:999px; background:#fff; color:var(--tm-text); cursor:pointer; transition:.18s ease; }
.tm-search-trigger:hover,.tm-search-trigger:focus-visible { color:var(--tm-primary); border-color:rgba(37,99,235,.35); box-shadow:0 10px 28px rgba(15,23,42,.08); }
.tm-search-trigger svg,.tm-search-submit svg { width:21px; height:21px; }
.tm-search-overlay[hidden] { display:none; }
.tm-search-overlay { position:fixed; inset:0; z-index:20000; padding:clamp(22px,6vh,70px) 20px; background:rgba(15,23,42,.54); backdrop-filter:blur(14px); opacity:0; transition:opacity .18s ease; overflow-y:auto; }
.tm-search-overlay.is-open { opacity:1; }
.tm-search-dialog { width:min(900px,100%); margin:0 auto; padding:clamp(22px,4vw,38px); border:1px solid rgba(255,255,255,.7); border-radius:30px; background:#fff; box-shadow:0 30px 100px rgba(15,23,42,.25); transform:translateY(-12px); transition:transform .22s ease; }
.tm-search-overlay.is-open .tm-search-dialog { transform:translateY(0); }
.tm-search-dialog__header { display:flex; justify-content:space-between; gap:20px; margin-bottom:22px; }
.tm-search-dialog__eyebrow { color:var(--tm-primary); font-size:.78rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.tm-search-dialog h2 { margin-top:5px; font-size:clamp(2rem,5vw,3.4rem); }
.tm-search-close { width:44px; height:44px; border:0; border-radius:999px; background:#f1f5f9; cursor:pointer; font-size:1.5rem; }
.tm-live-search { position:relative; }
.tm-search-field { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:7px 7px 7px 18px; border:1px solid var(--tm-border); border-radius:18px; background:#fff; box-shadow:0 12px 36px rgba(15,23,42,.06); }
.tm-search-field:focus-within { border-color:rgba(37,99,235,.55); box-shadow:0 0 0 4px rgba(37,99,235,.1); }
.tm-search-field input { width:100%; min-height:48px; border:0; outline:0; background:transparent; color:var(--tm-text); font:inherit; font-size:1.06rem; }
.tm-search-submit { display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; border:0; border-radius:13px; background:var(--tm-primary); color:#fff; cursor:pointer; }
.tm-search-hint { margin:10px 3px 0; color:#64748b; font-size:.84rem; }
.tm-search-status { min-height:24px; margin:14px 3px 6px; color:#64748b; font-size:.9rem; }
.tm-search-results { display:grid; gap:8px; }
.tm-search-result { position:relative; display:grid; gap:5px; padding:15px 48px 15px 16px; border:1px solid var(--tm-border); border-radius:16px; background:#fff; transition:.16s ease; }
.tm-search-result:hover,.tm-search-result:focus-visible { border-color:rgba(37,99,235,.3); background:#f8fbff; transform:translateY(-1px); outline:none; }
.tm-search-result__meta { display:flex; gap:10px; flex-wrap:wrap; color:var(--tm-primary); font-size:.76rem; font-weight:800; text-transform:uppercase; letter-spacing:.045em; }
.tm-search-result__terms { color:#64748b; font-weight:650; text-transform:none; letter-spacing:0; }
.tm-search-result__title { color:var(--tm-text); font-size:1.08rem; line-height:1.2; }
.tm-search-result__excerpt { color:#64748b; font-size:.9rem; line-height:1.45; }
.tm-search-result__arrow { position:absolute; right:17px; top:50%; color:var(--tm-primary); font-size:1.25rem; transform:translateY(-50%); }
.tm-search-all[hidden] { display:none !important; }
.tm-search-all { display:flex; justify-content:center; margin-top:14px; padding:13px; border-radius:14px; background:#eff6ff; color:var(--tm-primary); font-weight:800; }
.tm-mobile-search { margin-bottom:12px; }
.tm-mobile-search .tm-search-field { border-radius:20px; }
.tm-mobile-search .tm-search-results { margin-top:8px; }
.tm-mobile-search .tm-search-result { padding-block:12px; }
.tm-mobile-search .tm-search-result__excerpt { display:none; }
@media (max-width:1080px) { .tm-header-actions { display:none; } }
@media (max-width:600px) { .tm-search-overlay { padding:12px; } .tm-search-dialog { padding:20px 16px; border-radius:24px; } .tm-search-dialog h2 { font-size:2rem; } .tm-search-hint { display:none; } }
@media (prefers-reduced-motion:reduce) { .tm-search-overlay,.tm-search-dialog,.tm-search-result,.tm-search-trigger { transition:none; } }
.tm-search-answer{display:grid;gap:7px;padding:18px;border:1px solid rgba(37,99,235,.28);border-radius:18px;background:linear-gradient(135deg,#eff6ff 0%,#fff 72%);box-shadow:0 12px 30px rgba(37,99,235,.07)}
.tm-search-answer__label{width:max-content;padding:4px 9px;border-radius:999px;background:#dbeafe;color:var(--tm-primary);font-size:.72rem;font-weight:850;letter-spacing:.045em;text-transform:uppercase}
.tm-search-answer__title{color:var(--tm-text);font-size:1.15rem;line-height:1.2}
.tm-search-answer__text{color:#475569;font-size:.94rem;line-height:1.5}
.tm-search-answer__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:5px}
.tm-search-answer__action{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 13px;border-radius:11px;background:var(--tm-primary);color:#fff;font-size:.86rem;font-weight:800}
.tm-search-answer__action:nth-child(n+2){border:1px solid rgba(37,99,235,.22);background:#fff;color:var(--tm-primary)}
.tm-mobile-search .tm-search-answer{padding:14px}.tm-mobile-search .tm-search-answer__text{font-size:.88rem}.tm-mobile-search .tm-search-answer__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}

/* v1.0.1174: Im leeren mobilen Suchzustand keinen Platz reservieren. */
@media (max-width: 1080px) {
  .tm-mobile-search .tm-search-status:empty,
  .tm-mobile-search .tm-search-results:empty {
    display: none;
  }
}


/* ======================================================================
   v1.0.1177 . Ruhigere Suche im Stil des mobilen Headers
   ====================================================================== */
.tm-search-trigger {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.tm-search-trigger:hover,
.tm-search-trigger:focus-visible {
  color: var(--tm-primary);
  border-color: transparent;
  background: #f5f5f7;
  box-shadow: none;
}
.tm-search-dialog {
  border: 0;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(15,23,42,.18);
}
.tm-search-close {
  background: #f5f5f7;
  color: #0f172a;
}
.tm-search-field {
  gap: 0;
  min-height: 58px;
  padding: 0 8px 0 18px;
  border: 0;
  border-radius: 15px;
  background: #f5f5f7;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.045);
  transition: background .18s ease, box-shadow .18s ease;
}
.tm-search-field:focus-within {
  border-color: transparent;
  background: #f2f2f4;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.12);
}
.tm-search-field input {
  min-height: 58px;
  padding: 0;
  font-size: 1rem;
}
.tm-search-submit {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: transparent;
  color: #0f172a;
  transition: color .18s ease, background .18s ease;
}
.tm-search-submit:hover,
.tm-search-submit:focus-visible {
  background: rgba(15,23,42,.055);
  color: var(--tm-primary);
  outline: none;
}
.tm-search-submit svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.7;
}
@media (max-width:600px) {
  .tm-search-overlay { padding: 10px; }
  .tm-search-dialog { padding: 20px 16px 18px; border-radius: 22px; }
  .tm-search-dialog__header { margin-bottom: 18px; }
  .tm-search-dialog h2 { font-size: 1.9rem; }
  .tm-search-field { min-height: 56px; border-radius: 14px; }
  .tm-search-field input { min-height: 56px; font-size: .98rem; }
  .tm-search-submit { width: 44px; height: 44px; }
}

/* ======================================================================
   v1.0.1179 . Suche: ruhige, hochwertige Proportionen
   ====================================================================== */
.tm-search-dialog {
  width: min(100%, 760px);
  padding: 30px 32px 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(15,23,42,.20);
}
.tm-search-dialog__header {
  align-items: flex-start;
  margin-bottom: 26px;
}
.tm-search-dialog__eyebrow {
  margin-bottom: 7px;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .085em;
}
.tm-search-dialog h2 {
  max-width: 620px;
  font-size: clamp(2rem,4.2vw,2.7rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.tm-search-close {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #0f172a;
  font-size: 1.75rem;
  font-weight: 400;
}
.tm-search-field {
  min-height: 74px;
  padding: 0 17px 0 24px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #f8fafc;
  box-shadow: none;
}
.tm-search-field:focus-within {
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.07);
}
.tm-search-field input {
  min-width: 0;
  min-height: 72px;
  padding: 0;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 500;
}
.tm-search-field input::placeholder {
  color: #7c8799;
  opacity: 1;
}
.tm-search-submit {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 999px;
  background: transparent;
  color: #0f172a;
}
.tm-search-submit:hover,
.tm-search-submit:focus-visible {
  background: #eef2f7;
  color: #0f172a;
}
.tm-search-submit svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}
@media (max-width:600px) {
  .tm-search-overlay { padding: 12px; }
  .tm-search-dialog { padding: 24px 20px 22px; border-radius: 24px; }
  .tm-search-dialog__header { margin-bottom: 22px; }
  .tm-search-dialog__eyebrow { font-size: .69rem; }
  .tm-search-dialog h2 { font-size: clamp(1.65rem,7vw,2.05rem); }
  .tm-search-close { width: 42px; height: 42px; flex-basis: 42px; font-size: 1.55rem; }
  .tm-search-field { min-height: 64px; padding: 0 12px 0 18px; border-radius: 17px; }
  .tm-search-field input { min-height: 62px; font-size: .98rem; }
  .tm-search-submit { width: 44px; height: 44px; flex-basis: 44px; }
  .tm-search-submit svg { width: 25px; height: 25px; }
}

/* ======================================================================
   v1.0.1180 . Mobile Suche unter festem Header + ruhiger Fokus + Vorschläge
   ====================================================================== */
.tm-search-field,
.tm-search-field:focus-within {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: none;
}

.tm-search-field:focus-within {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.tm-search-field input,
.tm-search-field input:focus,
.tm-search-field input:focus-visible {
  outline: 0 !important;
  outline-offset: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.tm-search-suggestions {
  margin-top: 24px;
}

.tm-search-suggestions[hidden] {
  display: none !important;
}

.tm-search-suggestions__label {
  display: block;
  margin-bottom: 10px;
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.tm-search-suggestions__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tm-search-suggestions__items button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.tm-search-suggestions__items button:hover,
.tm-search-suggestions__items button:focus-visible {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
  outline: 0;
  transform: translateY(-1px);
}

.tm-search-suggestions__items svg {
  width: 15px;
  height: 15px;
  color: var(--tm-primary);
}

@media (max-width: 1080px) {
  .tm-search-overlay {
    inset: calc(78px + var(--tm-admin-bar-offset, 0px)) 0 0;
    z-index: 9000;
    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);
  }

  .tm-search-dialog {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 24px 22px 22px;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15,23,42,.18);
    transform: translateY(-8px);
  }

  .tm-search-overlay.is-open .tm-search-dialog {
    transform: translateY(0);
  }

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

  .tm-search-dialog__eyebrow {
    margin-bottom: 6px;
    font-size: .72rem;
  }

  .tm-search-dialog h2 {
    max-width: 560px;
    font-size: clamp(1.72rem, 6.7vw, 2.15rem);
    line-height: 1.04;
  }

  .tm-search-close {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    background: #f5f5f7;
  }

  .tm-search-field {
    min-height: 62px;
    padding: 0 10px 0 18px;
    border-radius: 17px;
  }

  .tm-search-field input {
    min-height: 60px;
    font-size: 16px;
    font-weight: 500;
  }

  .tm-search-submit {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .tm-search-submit svg {
    width: 25px;
    height: 25px;
  }

  .tm-search-suggestions {
    margin-top: 20px;
  }

  .tm-search-suggestions__items {
    gap: 7px;
  }

  .tm-search-suggestions__items button {
    min-height: 36px;
    padding: 8px 11px;
    font-size: .78rem;
  }
}

@media (max-width: 430px) {
  .tm-search-overlay {
    padding-inline: 10px;
  }

  .tm-search-dialog {
    padding: 22px 18px 20px;
    border-radius: 22px;
  }

  .tm-search-dialog h2 {
    font-size: clamp(1.68rem, 8vw, 2rem);
  }

  .tm-search-field {
    min-height: 60px;
    padding-left: 16px;
  }

  .tm-search-field input {
    min-height: 58px;
  }
}
