/* ===== Tankhandel: Startseiten-Slider + Unterseite ===== */

/* ---------- Abschnitt auf der Startseite ---------- */
.th-teaser { background: #fff; padding: 100px 0 90px; overflow: hidden; }
.th-teaser[hidden] { display: none; }
.th-teaser .section-heading { margin-bottom: 52px; padding: 0 20px; }
.th-teaser .section-heading h2 { font-weight: 600; }
.th-teaser__cta { text-align: center; margin-top: 56px; padding: 0 20px; }
.th-teaser__cta .btn { white-space: nowrap; font-weight: 600; font-size: 14px; padding: 0 34px; }

.th-slider { position: relative; width: 100%; }
.th-slider__track { display: flex; gap: 24px; width: max-content; will-change: transform; animation: th-scroll var(--th-duration, 60s) linear infinite; }
.th-slider:hover .th-slider__track, .th-slider:focus-within .th-slider__track { animation-play-state: paused; }
@keyframes th-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--th-shift, 50%))); } }

.th-slide { position: relative; display: block; flex: 0 0 auto; width: 340px; text-decoration: none; color: inherit; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow-soft, 0 16px 44px rgba(17,24,39,.09)); border: 1px solid rgba(25,95,166,.12); transition: transform .35s ease, box-shadow .35s ease; }
.th-slide:hover, .th-slide:focus-visible { transform: translateY(-4px); box-shadow: 0 22px 54px rgba(25,95,166,.18); }
.th-slide__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e9eff6; }
.th-slide__body { display: block; padding: 16px 20px 18px; }
.th-slide__title { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; color: #111827; }
.th-slide__badge { position: absolute; left: 12px; top: 12px; background: #fff; color: #0F3F70; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 14px rgba(11,46,82,.14); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .th-slider { overflow-x: auto; padding-bottom: 12px; }
  .th-slider__track { animation: none; padding: 0 20px; }
}
@media (max-width: 640px) {
  .th-teaser { padding: 70px 0 64px; }
  .th-teaser .section-heading { margin-bottom: 34px; }
  .th-slide { width: 270px; }
  .th-teaser__cta { margin-top: 38px; }
}

/* ---------- Unterseite ---------- */
.th-page { background: var(--fn-sand, #f1f1f1); padding: 170px 0 120px; }
.th-page .container { max-width: var(--container, 1200px); margin: 0 auto; padding: 0 24px; }
.th-page .section-heading { margin-bottom: 36px; }
.th-page .section-heading h1 { font-size: clamp(28px, 8vw, 56px); line-height: 1.08; font-weight: 600; letter-spacing: -0.036em; color: #111827; margin: 0 0 18px; }
.th-page .section-heading h1 span { color: #195FA6; }
.th-page .section-heading p { color: #566275; font-size: 16px; line-height: 1.75; margin: 0 auto; max-width: 640px; }

.th-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 46px; }
.th-filter button { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 22px; border-radius: 9px; border: 1px solid rgba(25,95,166,.28); background: #fff; color: #195FA6; cursor: pointer; transition: background .2s, color .2s; }
.th-filter button:hover { background: #eaf2fb; }
.th-filter button[aria-pressed="true"] { background: #195FA6; color: #fff; border-color: #195FA6; }

.th-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: stretch; }
@media (max-width: 1020px) { .th-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px) { .th-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .th-page { padding: 130px 0 80px; } }

.th-card { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-soft, 0 16px 44px rgba(17,24,39,.09)); display: flex; flex-direction: column; scroll-margin-top: 130px; border: 1px solid rgba(25,95,166,.10); }
.th-card.is-target { outline: 3px solid #195FA6; outline-offset: 3px; }
.th-card__stage { position: relative; background: #e9eff6; }
.th-card__main { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; border: 0; padding: 0; background: none; }
.th-card__main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.th-card__badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.th-badge { background: #fff; color: #0F3F70; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 14px rgba(11,46,82,.14); }
.th-card__thumbs { display: flex; gap: 8px; padding: 12px 14px 0; overflow-x: auto; }
.th-card__thumb { flex: 0 0 auto; width: 64px; height: 48px; border-radius: 9px; overflow: hidden; border: 2px solid transparent; padding: 0; background: none; cursor: pointer; opacity: .7; }
.th-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-card__thumb[aria-current="true"] { border-color: #195FA6; opacity: 1; }
.th-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.th-card__cat { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #195FA6; }
.th-card__title { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: #111827; margin: 0; }
.th-card__price { font-size: 15px; font-weight: 500; color: #195FA6; line-height: 1.3; }
.th-card__price small { display: block; font-size: 12px; font-weight: 500; color: #6B7280; margin-top: 4px; }
.th-card__specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; padding: 14px 0; border-top: 1px solid rgba(25,95,166,.13); border-bottom: 1px solid rgba(25,95,166,.13); }
.th-card__specs dt { color: #6B7280; }
.th-card__specs dd { margin: 0; color: #111827; font-weight: 500; text-align: right; }
.th-card__text { margin: 0; text-wrap: wrap; color: #566275; font-size: 14.5px; line-height: 1.65; }
.th-card__cta { margin-top: auto; padding-top: 6px; text-align: center; }
.th-card__cta .btn { width: auto; display: inline-flex; justify-content: center; font-weight: 600; font-size: 14px; }

.th-empty { text-align: center; background: #fff; border-radius: 24px; padding: 54px 24px; box-shadow: var(--shadow-soft, 0 16px 44px rgba(17,24,39,.09)); }
.th-empty p { margin: 0 0 22px; color: #566275; line-height: 1.7; }

.th-note { text-align: center; color: #6B7280; font-size: 13px; margin-top: 44px; }

/* Lightbox */
.th-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(8,20,36,.88); display: none; align-items: center; justify-content: center; padding: 24px; }
.th-lightbox.is-open { display: flex; }
.th-lightbox img { max-width: min(1200px, 100%); max-height: 88vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.th-lightbox button { position: absolute; top: 18px; right: 22px; font-size: 34px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* Handy / Touch: Slider von Hand wischen statt automatisch laufen */
.th-slider.is-manual { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 14px; }
.th-slider.is-manual::-webkit-scrollbar { display: none; }
.th-slider.is-manual .th-slider__track { animation: none; transform: none; padding: 0 20px; }
.th-slider.is-manual .th-slide { scroll-snap-align: start; }
.th-slider.is-manual .th-slide:hover, .th-slider.is-manual .th-slide:focus-visible { transform: none; }


.th-card__spec-price { display: block; margin-top: 2px; color: #195FA6; font-weight: 600; }
