/* TyreSoft – Kopfzeile (Redesign 2026). Farben wie global.scss: #1E364D / #28C386 */
.tsh {
    position: sticky; top: 0; z-index: 1030;
    background: #1E364D; color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-family: 'Montserrat', sans-serif;
    transition: box-shadow .3s ease, background-color .3s ease;
}
.tsh.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); background: rgba(30, 54, 77, .97); }
.tsh *, .tsh *::before, .tsh *::after { box-sizing: border-box; }
.tsh a { text-decoration: none; }
.tsh__inner { display: flex; align-items: center; height: 80px; gap: 24px; transition: height .3s ease; }
.tsh.is-scrolled .tsh__inner { height: 68px; }

.tsh__logo { display: flex; align-items: center; flex: 0 0 auto; padding-right: 8px; }
.tsh__logo img { height: 36px; width: auto; display: block; }

/* ---------- Navigation ---------- */
.tsh__nav { flex: 1 1 auto; display: flex; justify-content: center; }
.tsh__menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.tsh__item { position: relative; }
.tsh__link {
    position: relative; display: flex; align-items: center; gap: 6px; height: 80px; padding: 0 14px;
    color: rgba(255, 255, 255, .86); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    background: none; border: 0; cursor: pointer; transition: color .2s ease, height .3s ease; white-space: nowrap;
}
.tsh.is-scrolled .tsh__link { height: 68px; }
.tsh__link::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 0;
    background: #28C386; transform: scaleX(0); transition: transform .25s ease;
}
.tsh__link:hover, .tsh__item:focus-within > .tsh__link { color: #fff; }
.tsh__link:hover::after, .tsh__item.is-active > .tsh__link::after { transform: scaleX(1); }
.tsh__item.is-active > .tsh__link { color: #fff; }
.tsh__caret { width: 10px; height: 10px; transition: transform .25s ease; opacity: .8; }
.tsh__new { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 10px; background: #28C386; color: #fff; }

/* Dropdown (Lösungen) */
.tsh__drop {
    position: absolute; top: calc(100% - 6px); left: 50%; width: 560px; padding: 14px;
    background: #fff; border: 1px solid #BAC1CC; border-radius: 20px; box-shadow: 0 24px 50px -20px rgba(30, 54, 77, .45);
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.tsh__drop::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.tsh__item--drop:hover .tsh__drop, .tsh__item--drop:focus-within .tsh__drop, .tsh__item--drop.is-open .tsh__drop {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.tsh__item--drop:hover .tsh__caret, .tsh__item--drop.is-open .tsh__caret { transform: rotate(180deg); }
.tsh__sub { display: flex; gap: 12px; padding: 12px; border-radius: 12px; color: #1E364D; transition: background-color .2s ease; }
.tsh__sub:hover { background: #F3FAFF; color: #1E364D; }
.tsh__sub i {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: rgba(40, 195, 134, .12); color: #28C386; font-style: normal;
}
.tsh__sub b { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.tsh__sub small { display: block; font-size: 12px; line-height: 1.45; color: #8490A1; margin-top: 2px; font-weight: 500; }

/* ---------- Rechts: CTA + Sprache ---------- */
.tsh__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.tsh__cta {
    display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    transition: background-color .2s ease, border-color .2s ease; white-space: nowrap;
}
.tsh__cta svg { color: #28C386; transition: color .2s ease; }
.tsh__cta:hover { background: #28C386; border-color: #28C386; color: #fff; }
.tsh__cta:hover svg { color: #fff; }

.tsh__lang { position: relative; }
.tsh__lang-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 10px; background: none; border: 0; border-radius: 8px;
    color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; cursor: pointer; font-family: inherit;
}
.tsh__lang-btn:hover { background: rgba(255, 255, 255, .08); }
.tsh__lang-list {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; list-style: none; margin: 0; padding: 8px;
    background: #fff; border: 1px solid #BAC1CC; border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(30, 54, 77, .45);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.tsh__lang.is-open .tsh__lang-list, .tsh__lang:focus-within .tsh__lang-list { opacity: 1; visibility: visible; transform: none; }
.tsh__lang-list a { display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 8px; color: #1E364D; font-size: 14px; font-weight: 600; }
.tsh__lang-list a span { color: #8490A1; font-weight: 700; font-size: 12px; }
.tsh__lang-list a:hover { background: #F3FAFF; color: #1E364D; }
.tsh__lang-list a.is-current { color: #008853; }

/* Hamburger */
.tsh__burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; border-radius: 8px; }
.tsh__burger span { display: block; height: 2px; margin: 6px 0; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.tsh.is-menu-open .tsh__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.tsh.is-menu-open .tsh__burger span:nth-child(2) { opacity: 0; }
.tsh.is-menu-open .tsh__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Tablet / Mobil ---------- */
@media (max-width: 1199px) {
    .tsh__link { padding: 0 10px; letter-spacing: .03em; }
    .tsh__link::after { left: 10px; right: 10px; }
    .tsh__cta { padding: 0 14px; }
}
@media (max-width: 991px) {
    .tsh__inner { height: 68px; gap: 8px; }
    .tsh__logo img { height: 30px; }
    .tsh__burger { display: block; order: 3; }
    .tsh__actions { margin-left: auto; }
    .tsh__cta { display: none; }
    .tsh__nav {
        position: fixed; left: 0; right: 0; top: 68px; bottom: 0; display: block; overflow-y: auto;
        background: #1E364D; padding: 12px 16px 32px; border-top: 1px solid rgba(255, 255, 255, .08);
        opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease, visibility .25s;
    }
    .tsh.is-menu-open .tsh__nav { opacity: 1; visibility: visible; transform: none; }
    .tsh__menu { flex-direction: column; align-items: stretch; gap: 0; }
    .tsh__link, .tsh.is-scrolled .tsh__link { height: auto; padding: 16px 4px; font-size: 15px; justify-content: space-between; width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .tsh__link::after { display: none; }
    .tsh__item.is-active > .tsh__link { color: #28C386; }
    .tsh__drop {
        position: static; width: auto; transform: none; opacity: 1; visibility: visible; display: none;
        grid-template-columns: 1fr; margin: 10px 0 14px; padding: 8px; box-shadow: none;
    }
    .tsh__item--drop:hover .tsh__drop, .tsh__item--drop:focus-within .tsh__drop { transform: none; }
    .tsh__item--drop.is-open .tsh__drop { display: grid; transform: none; }
    .tsh__item--drop:hover .tsh__caret { transform: none; }
    .tsh__item--drop.is-open .tsh__caret { transform: rotate(180deg); }
    .tsh__mobile-cta { display: flex !important; justify-content: center; width: 100%; margin-top: 24px; height: 52px; background: #28C386; border-color: #28C386; }
    .tsh__mobile-cta svg { color: #fff; }
    body.tsh-lock { overflow: hidden; }
}
@media (min-width: 992px) { .tsh__mobile-cta { display: none !important; } }

/* Fokus nur bei Tastaturbedienung */
.tsh button:focus, .tsh a:focus { outline: none; }
.tsh button:focus-visible, .tsh a:focus-visible { outline: 2px solid #28C386; outline-offset: 2px; border-radius: 6px; }

/* reCAPTCHA: schwebendes Badge ausblenden – der Pflichthinweis steht bei jedem Formular mit reCAPTCHA */
.grecaptcha-badge { visibility: hidden !important; }
.ts-recaptcha { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: #8490A1; }
.ts-recaptcha a { color: #1E364D; text-decoration: underline; }
.ts-recaptcha a:hover { color: #008853; }

/* Blog-Karten: Abstand zwischen Kurzbeschreibung und Link */
.blog__card .title p { margin-bottom: 14px; }
