.tc-site-header {
  position: relative;
  z-index: 100;
  color: var(--tc-white);
  background:
    radial-gradient(circle at 92% 0%, rgba(255,255,255,.12), transparent 28%),
    linear-gradient(135deg, var(--tc-brand-dark), var(--tc-brand));
}

.tc-site-header--inner {
  background: var(--tc-brand);
  box-shadow: 0 2px 0 rgba(7,59,61,.12);
}

.tc-site-header--home {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
  box-shadow: none;
}

.tc-site-header--home::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 24, 26, .72), rgba(3, 24, 26, .08));
  pointer-events: none;
}

body.page-strom .tc-site-header--inner { background: linear-gradient(110deg,#1267b2,#0b4178); }
body.page-gas .tc-site-header--inner { background: linear-gradient(110deg,#a75b08,#784006); }
body.page-versicherungen .tc-site-header--inner { background: linear-gradient(110deg,#22539b,#173a72); }
body.page-auto-fahrzeuge .tc-site-header--inner { background: linear-gradient(110deg,#23783c,#17592c); }
body.page-vorsorge-versicherungen .tc-site-header--inner { background: linear-gradient(110deg,#a75b68,#713943); }
body.page-krankenversicherungen .tc-site-header--inner { background: linear-gradient(110deg,#247ca5,#155774); }
body.page-sachversicherungen .tc-site-header--inner { background: linear-gradient(110deg,#315f72,#1d4658); }
body.page-dsl .tc-site-header--inner { background: linear-gradient(110deg,#3e70aa,#274b79); }
body.page-mobilfunk .tc-site-header--inner { background: linear-gradient(110deg,#704caf,#4d2e7c); }
body.page-handytarife-5gb .tc-site-header--inner { background: linear-gradient(110deg,#2284a5,#176b87); }
body.page-handytarife-15gb .tc-site-header--inner { background: linear-gradient(110deg,#6460bd,#46428d); }
body.page-handytarife-50gb .tc-site-header--inner { background: linear-gradient(110deg,#c36334,#913d1d); }
body.page-handytarife-unlimited .tc-site-header--inner { background: linear-gradient(110deg,#4c398d,#2c1d61); }
body.page-tarife-fur-junge-leute .tc-site-header--inner { background: linear-gradient(110deg,#c5547a,#923451); }
body.page-prepaid-tarife .tc-site-header--inner { background: linear-gradient(110deg,#1b806f,#10594e); }
body.page-reise .tc-site-header--inner { background: linear-gradient(110deg,#21838a,#125b60); }
body.page-mietwagen .tc-site-header--inner { background: linear-gradient(110deg,#98543a,#69331f); }
body.page-girokonto .tc-site-header--inner { background: linear-gradient(110deg,#34745b,#1d4c39); }

.tc-header-shell {
  width: min(calc(100% - 24px), var(--tc-container));
  margin-inline: auto;
  padding-block: 14px 16px;
}

.tc-header-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.tc-menu-toggle,
.tc-drawer__close {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: inherit;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}

.tc-menu-toggle__icon { display: grid; width: 19px; gap: 4px; }
.tc-menu-toggle__icon span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.tc-menu-toggle[aria-expanded="true"] .tc-menu-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tc-menu-toggle[aria-expanded="true"] .tc-menu-toggle__icon span:nth-child(2) { opacity: 0; }
.tc-menu-toggle[aria-expanded="true"] .tc-menu-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.tc-brand { min-width: 0; text-align: center; }
.tc-brand .custom-logo-link { display: inline-flex; align-items: center; }
.tc-brand .custom-logo { width: auto; max-width: 178px; max-height: 42px; }
.tc-brand__text { color: var(--tc-white); font-size: clamp(1.55rem, 7vw, 2rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; text-decoration: none; }
.tc-brand__text span { color: var(--tc-accent); }

.tc-all-comparisons { display: grid; justify-items: center; color: inherit; text-decoration: none; }
.tc-all-comparisons svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.tc-all-comparisons span { display: none; }

.tc-search {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  margin-top: 14px;
  padding: 5px 5px 5px 16px;
  border-radius: 999px;
  background: var(--tc-white);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.tc-search__icon { width: 22px; color: var(--tc-muted); fill: none; stroke: currentColor; stroke-width: 1.8; }
.tc-search input { width: 100%; min-width: 0; height: 42px; padding: 0 10px; color: var(--tc-ink); border: 0; outline: 0; background: transparent; }
.tc-search input::placeholder { color: #738083; opacity: 1; }
.tc-search button { display: inline-flex; min-width: 44px; height: 42px; padding-inline: 13px; align-items: center; justify-content: center; color: var(--tc-white); border: 0; border-radius: 999px; background: var(--tc-brand); font-size: 0; font-weight: 700; line-height: 1; cursor: pointer; }
.tc-search button span { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; transform: translateY(-1px); }
.tc-search button:hover { background: var(--tc-brand-dark); }

.tc-quick-nav { margin-top: 14px; overflow: hidden; }
.tc-quick-menu { display: flex; gap: 8px; margin: 0; padding: 0 0 3px; overflow-x: auto; list-style: none; scrollbar-width: none; }
.tc-quick-menu::-webkit-scrollbar { display: none; }
.tc-quick-menu li { flex: 0 0 auto; }
.tc-quick-menu a { display: block; padding: 9px 14px; color: var(--tc-white); border: 1px solid rgba(255,255,255,.34); border-radius: 999px; font-size: var(--tc-step--1); font-weight: 700; line-height: 1.2; text-decoration: none; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.tc-quick-menu a:hover, .tc-quick-menu .current-menu-item > a { color: var(--tc-brand-dark); border-color: var(--tc-white); background: var(--tc-white); }

.tc-drawer { position: fixed; z-index: 1000; inset: 0; }
.tc-drawer[hidden] { display: none; }
.tc-drawer__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(4,25,27,.58); backdrop-filter: blur(3px); }
.tc-drawer__panel { position: relative; width: min(88vw, 390px); height: 100%; padding: 20px; overflow-y: auto; color: var(--tc-ink); background: var(--tc-white); box-shadow: var(--tc-shadow); animation: tc-drawer-in .22s ease-out; }
.tc-drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--tc-line); }
.tc-drawer__head strong { font-size: var(--tc-step-1); }
.tc-drawer__close { color: var(--tc-ink); border-color: var(--tc-line); background: var(--tc-surface); font-size: 28px; line-height: 1; }
.tc-primary-menu { margin: 12px 0 0; padding: 0; list-style: none; }
.tc-primary-menu a { display: flex; min-height: 50px; align-items: center; color: var(--tc-ink); border-bottom: 1px solid var(--tc-line); font-weight: 700; text-decoration: none; }
.tc-primary-menu .sub-menu { margin: 0; padding-left: 18px; list-style: none; }
.tc-primary-menu .sub-menu a { min-height: 44px; color: var(--tc-muted); font-size: var(--tc-step--1); }
.tc-primary-menu .menu-item-has-children{position:relative}.tc-primary-menu .menu-item-has-children>a{padding-right:48px}.tc-primary-menu .sub-menu{display:none;padding:4px 0 8px 18px;border-bottom:1px solid var(--tc-line)}.tc-primary-menu .is-submenu-open>.sub-menu{display:block}.tc-primary-menu .sub-menu a{min-height:40px;border-bottom:0}.tc-submenu-toggle{position:absolute;right:0;top:5px;display:grid;width:40px;height:40px;padding:0;place-items:center;color:var(--tc-brand);border:0;border-radius:10px;background:var(--tc-surface);font-size:22px;font-weight:700;cursor:pointer}.tc-submenu-toggle:hover{background:#e7f2f1}

@keyframes tc-drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }

@media (min-width: 768px) {
  .tc-header-shell { width: min(calc(100% - 48px), var(--tc-container)); padding-block: 18px 14px; }
  .tc-header-top { grid-template-columns: 52px minmax(180px, 240px) minmax(320px, 1fr) auto; gap: 18px; padding: 10px 0; }
  .tc-brand { text-align: left; }
  .tc-search { grid-column: 3; grid-row: 1; margin-top: 0; }
  .tc-all-comparisons { grid-column: 4; grid-row: 1; min-width: 92px; }
  .tc-all-comparisons span { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; }
  .tc-quick-nav { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); }
  .tc-quick-menu { justify-content: center; }
  .tc-quick-menu a { padding-inline: 16px; }
}

@media (min-width: 1024px) {
  .tc-site-header--inner .tc-header-shell { padding-block: 12px 10px; }
  .tc-site-header--inner .tc-search { min-height: 48px; }
  .tc-site-header--inner .tc-search input,
  .tc-site-header--inner .tc-search button { height: 38px; }
  .tc-site-header--inner .tc-quick-nav { margin-top: 10px; padding-top: 9px; }
  .tc-site-header--inner .tc-quick-menu a { padding-block: 7px; }
}

@media (min-width: 1024px) {
  .tc-search button { min-width: 104px; font-size: var(--tc-step--1); }
  .tc-search button span { margin-left: 7px; font-size: 18px; }
}
