/* thrpy Website – Seitenstile
   Reihenfolge der Stylesheets in jeder Seite:
   1. /assets/ds/tokens.css  (Design-System-Tokens, nicht von Hand ändern)
   2. /assets/ds/bundle.css  (Platzhalter für die th-*-Komponenten)
   3. /assets/css/site.css   (diese Datei)
   Farben, Schriften, Abstände kommen immer aus den Tokens (var(--…)). */

@font-face {
  font-family: "Roboto";
  src: url("/assets/ds/fonts/roboto-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface-page); color: var(--text-default); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--text-link-on-page); }
a:hover { color: var(--text-link-on-page); }
h1, h2, h3 { text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.on-brand :focus-visible { outline-color: var(--focus-ring-on-brand); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-full); background: var(--surface-card); color: var(--text-link); font: var(--text-button); box-shadow: var(--elev-2); }
.skip-link:focus { top: 12px; }

@media (max-width: 767px) {
  .display { font-size: 40px; line-height: 46px; }
  .h1 { font-size: 32px; line-height: 40px; }
  .h2 { font-size: 30px; line-height: 38px; }
  .lead { font-size: 18px; line-height: 28px; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--surface-card); border-bottom: 1px solid var(--border-subtle); font-family: var(--font-sans); color: var(--text-default); }
.site-header.is-mobile-open { z-index: 50; }
.hdr-bar { max-width: 1200px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr-logo { display: inline-flex; flex-shrink: 0; }
.hdr-logo img { height: 52px; width: auto; display: block; }
.hdr-nav { display: flex; align-items: center; gap: 2px; }
.hdr-cta { display: flex; flex-shrink: 0; }
.nav-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-link-on-page); font: var(--text-button); text-decoration: none; cursor: pointer; }
.nav-btn svg { transition: transform 200ms ease; }
.nav-btn:hover, .nav-btn.is-active, .nav-btn[aria-expanded="true"] { background: var(--surface-subtle); }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-mob { display: none; }
.hdr-burger { align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-default); cursor: pointer; }
.hdr-burger .ico-close, .hdr-burger[aria-expanded="true"] .ico-open { display: none; }
.hdr-burger[aria-expanded="true"] .ico-close { display: block; }

.mega { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface-card); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); box-shadow: var(--elev-2); animation: mega-in .2s ease-out; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-in { max-width: 1200px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 32px) 36px; display: flex; gap: 48px; }
.mega-grid { flex: 1 1 auto; min-width: 0; display: grid; align-content: start; gap: 8px 24px; }
.mega-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-item { display: flex; align-items: flex-start; gap: 16px; padding: 14px 16px; border-radius: var(--radius-lg); text-decoration: none; }
.mega-item:hover, .mega-item[aria-current="page"] { background: var(--surface-subtle); }
.mega-ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-subtle); color: var(--teal-800); display: flex; align-items: center; justify-content: center; }
.mega-txt { display: flex; flex-direction: column; gap: 2px; }
.mega-t { font: 600 16px/24px var(--font-sans); color: var(--text-default); }
.mega-d { font: 400 14px/20px var(--font-sans); color: var(--text-secondary); }
.mega-box { flex: 0 0 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface-subtle); }
.mega-box-txt { display: flex; flex-direction: column; gap: 6px; }
.mega-box-t { font: 600 18px/26px var(--font-display); color: var(--text-default); }
.mega-box-d { font: 400 14px/20px var(--font-sans); color: var(--text-secondary); }

.nav-mob-panel { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 73px); height: calc(100dvh - 73px); display: flex; flex-direction: column; background: var(--surface-card); border-top: 1px solid var(--border-subtle); }
.mob-nav { flex: 1 1 auto; overflow-y: auto; padding: 4px 16px 16px; display: flex; flex-direction: column; }
.mob-acc { border-bottom: 1px solid var(--border-subtle); }
.mob-acc-btn { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; background: none; font: 600 18px/28px var(--font-sans); color: var(--text-default); cursor: pointer; }
.mob-acc-btn svg { color: var(--text-link); transition: transform 200ms ease; }
.mob-acc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mob-acc-panel { display: flex; flex-direction: column; gap: 2px; padding: 0 0 14px; }
.mob-link { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); font: 500 16px/24px var(--font-sans); color: var(--text-link-on-page); text-decoration: none; }
.mob-link-strong { font-weight: 600; }
.mob-link:hover, .mob-link[aria-current="page"] { background: var(--surface-subtle); }
.mob-top { min-height: 56px; display: flex; align-items: center; border-bottom: 1px solid var(--border-subtle); font: 600 18px/28px var(--font-sans); color: var(--text-default); text-decoration: none; }
.mob-cta { flex-shrink: 0; padding: 16px 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; border-top: 1px solid var(--border-subtle); background: var(--surface-card); }
.mob-cta th-button { width: 100%; }
.mob-cta p { margin: 0; font: 400 14px/20px var(--font-sans); color: var(--text-muted); }

@media (max-width: 960px) {
  .nav-desk { display: none !important; }
  .nav-mob { display: inline-flex; }
}
@media (min-width: 961px) { .nav-mob-panel { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mega { animation: none; } }
html.is-locked { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-brand); color: var(--text-on-brand); font-family: var(--font-sans); }
.ftr-in { max-width: 1200px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 32px) 32px; display: flex; flex-direction: column; gap: 48px; }
.ftr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.ftr-brand { display: flex; flex-direction: column; gap: 16px; }
.ftr-brand img { height: 52px; width: auto; align-self: flex-start; }
.ftr-brand p { margin: 0; max-width: 32ch; font: 400 14px/20px var(--font-sans); }
.ftr-col { display: flex; flex-direction: column; gap: 4px; }
.ftr-col h2 { margin: 0 0 4px; font: 600 16px/24px var(--font-sans); color: var(--text-on-brand); }
.ftr-col a { display: inline-flex; align-items: center; min-height: 44px; font: 400 16px/24px var(--font-sans); color: var(--text-on-brand); text-decoration: none; }
.ftr-col a:hover, .ftr-col a[aria-current="page"] { color: var(--text-on-brand); text-decoration: underline; }
.ftr-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 24px; border-top: 1px solid var(--surface-brand-strong); }
.ftr-legal p { margin: 0; font: 400 14px/20px var(--font-sans); }
.ftr-legal-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.ftr-legal-links a { display: inline-flex; align-items: center; min-height: 44px; font: 400 14px/20px var(--font-sans); color: var(--text-on-brand); }
.ftr-legal-links a:hover { color: var(--text-on-brand); text-decoration-thickness: 2px; }

/* ---------- Bausteine der Seiten ---------- */
.brand-link { color: var(--text-on-brand); font: 600 16px/24px var(--font-sans); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.brand-link:hover { color: var(--text-on-brand); text-decoration-thickness: 2px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.chev { transition: transform 200ms ease; }
details[open] .chev { transform: rotate(180deg); }
.crumb a { color: var(--text-link-on-page); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.rel-card { transition: box-shadow .2s ease, transform .2s ease; }
.rel-card:hover { box-shadow: var(--elev-2); transform: translateY(-2px); }
.rel-arrow { transition: transform .2s ease; }
.rel-card:hover .rel-arrow, .pillar:hover .rel-arrow { transform: translateX(3px); }
.pillar { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.pillar:hover { box-shadow: var(--elev-2); transform: translateY(-2px); border-color: var(--teal-300); }
@media (prefers-reduced-motion: reduce) { .rel-card, .pillar, .rel-arrow { transition: none; } .rel-card:hover, .pillar:hover { transform: none; } }

/* Video-Vorschau auf der Startseite */
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--slate-900); }

/* ---------- Karussell im Hero der Startseite ---------- */
.car-slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; opacity: 0; transition: opacity .9s ease; }
.car-slide.is-active { opacity: 1; }
.car-pill { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -14px rgba(23, 28, 38, .55); }
.car-dot { position: relative; display: block; flex-shrink: 0; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 9999px; background: rgba(255, 255, 255, .45); cursor: pointer; overflow: hidden; transition: width .5s cubic-bezier(.65, 0, .35, 1), background-color .3s ease; }
.car-dot::after { content: ""; position: absolute; inset: -18px -4px; }
.car-dot:hover { background: rgba(255, 255, 255, .85); }
.car-dot.is-active { width: 38px; background: rgba(255, 255, 255, .25); }
.car-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: #fff; animation: car-fill 5s linear forwards; }
.car-paused .car-fill { animation-play-state: paused; }
@keyframes car-fill { to { width: 100%; } }
.car-label { grid-area: 1 / 1; font: 600 14px/20px var(--font-sans); letter-spacing: .01em; color: #fff; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.car-label.is-active { opacity: 1; transform: none; }
.car-stopped .car-fill { animation-play-state: paused; }
.car-toggle { position: relative; flex-shrink: 0; width: 40px; height: 40px; padding: 0; border-radius: var(--radius-full); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s ease; }
.car-toggle[hidden] { display: none; }
.car-toggle::after { content: ""; position: absolute; inset: -3px; }
.car-toggle:hover { background: rgba(255, 255, 255, .22); }
.car-icon-play, .car-stopped .car-icon-pause { display: none; }
.car-stopped .car-icon-play { display: block; }
@media (prefers-reduced-motion: reduce) { .car-slide, .car-label, .car-dot, .car-toggle { transition: none; } }

/* ---------- Nach oben, Sticky-CTA, Einwilligung ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 35; width: 52px; height: 52px; border-radius: 9999px; background: var(--surface-card); color: var(--teal-800); border: 1px solid var(--border-subtle); box-shadow: var(--elev-2); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .25s ease, transform .25s ease, background-color .2s ease; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--surface-subtle); color: var(--teal-900); }
.sticky-mob { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; }
.consent-wrap { position: fixed; left: 16px; right: 16px; bottom: 24px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.consent-wrap th-consent-banner { width: 640px; pointer-events: auto; }
@media (max-width: 767px) {
  .sticky-mob { display: block; }
  .to-top { right: 16px; bottom: 132px; }
  .consent-wrap { bottom: 16px; }
}

/* ---------- Vergleichstabellen (Vergleichsseiten, Preise) ---------- */
.cmp { width: 100%; border-collapse: collapse; font-family: var(--font-sans); }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-subtle); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font: 600 15px/20px var(--font-sans); color: var(--text-default); background: var(--slate-50); }
.cmp thead th.us { background: var(--teal-800); color: var(--text-on-brand); }
.cmp tbody th { font: 600 16px/24px var(--font-sans); color: var(--text-default); width: 26%; }
.cmp.plans tbody th { width: 50%; }
.cmp td { font: 400 15px/22px var(--font-sans); color: var(--text-secondary); }
.cmp td.us { background: var(--surface-subtle); color: var(--text-default); font-weight: 500; }
.cmp td.c, .cmp thead th.c { text-align: center; }
.cell { display: flex; align-items: flex-start; gap: 10px; }
.cell svg { flex-shrink: 0; margin-top: 1px; }
.cell-c { justify-content: center; }
.cmp .src { color: var(--text-link); font-size: 14px; white-space: nowrap; }
@media (max-width: 767px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tr { border-bottom: 1px solid var(--border-subtle); }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp tbody th { width: auto; padding: 16px 16px 4px; border: 0; }
  .cmp td { border: 0; padding: 8px 16px; }
  .cmp td.us { margin: 0 12px 12px; border-radius: var(--radius-sm); }
  .cmp td::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 13px/18px var(--font-sans); letter-spacing: .02em; color: var(--text-muted); }
  .cmp td.us::before { color: var(--teal-900); }
  .cmp td.c { text-align: left; }
  .cmp.plans tbody th { width: auto; grid-column: 1 / -1; padding: 14px 4px 2px; }
  .cmp.plans tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 14px; }
  .cmp.plans td, .cmp.plans td.us { margin: 0; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--slate-50); }
  .cmp.plans td.us { background: var(--surface-subtle); }
  .cmp.plans td::before { display: inline; margin: 0; }
  .cmp.plans td .cell { justify-content: flex-end; }
}

/* ---------- Textseiten (Impressum, AGB, Datenschutz) ---------- */
.prose { max-width: var(--prose); display: flex; flex-direction: column; gap: 16px; font: var(--text-body); color: var(--text-secondary); }
.prose h2 { margin: 24px 0 0; font: var(--text-h3); color: var(--text-default); }
.prose h3 { margin: 12px 0 0; font: 600 18px/26px var(--font-sans); color: var(--text-default); }
.prose p, .prose ul { margin: 0; }
.prose ul { padding-left: 1.25em; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: var(--text-default); font-weight: 600; }
.prose a { color: var(--text-link); overflow-wrap: anywhere; }
.prose code { font-size: 15px; padding: 1px 6px; border-radius: 6px; background: var(--slate-100); color: var(--text-default); }
.prose .quote { padding: 20px 24px; border-radius: var(--radius-lg); background: var(--surface-subtle); color: var(--text-default); display: flex; flex-direction: column; gap: 10px; }
.prose .box { padding: 20px 24px; border-radius: var(--radius-lg); background: var(--surface-card); border: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 6px; }

/* FAQ-Seite: Sprungmarken */
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.faq-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius-full); border: 1px solid var(--border-chip); background: var(--surface-card); color: var(--text-link-on-page); font: var(--text-tag); text-decoration: none; }
.faq-jump a:hover { background: var(--surface-subtle); }
.btn-plain { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border-radius: var(--radius-full); border: 2px solid var(--action-primary); background: var(--surface-card); color: var(--action-primary); font: var(--text-button); cursor: pointer; }
.btn-plain:hover { background: var(--surface-subtle); color: var(--action-primary-hover); }
