/* www.tij-autosport.com – Aufbau nach 034motorsport24.de (Kopfleiste, Menüleiste mit Akzentlinie, Kacheln, dunkler Fuß),
   Farben aus dem Tij-Power-Logo: Anthrazit, Grau, Tij-Rot. Schriften wählbar im Admin (Standard Roboto Condensed / Open Sans). */
:root {
  --rot: #e30613; --rot-dunkel: #b9050f; --rot-hell: #ff3b46;
  --nacht: #121417; --nacht2: #1b1f24; --fuss: #0e1013;
  --grau: #f1f2f4; --grau2: #e6e8eb; --linie: #d9dce1; --text: #15181c; --text2: #5a6069; --text-dunkel: #b9bcc4;
  --wrap: 1360px;
  --schrift: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --schrift-titel: 'Roboto Condensed', 'Arial Narrow', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--schrift); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--grau); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot-dunkel); }
a:hover { color: var(--rot); }
h1, h2, h3, h4 { font-family: var(--schrift-titel); line-height: 1.15; hyphens: manual; overflow-wrap: normal; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopf ---------- */
.kopf { position: relative; z-index: 20; }
.kopf-oben { background: var(--nacht); color: #fff; }
.kopf-oben-innen { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; padding-top: 6px; padding-bottom: 6px; }
.marke img { height: 76px; width: auto; }
.kopf-rechts { display: flex; align-items: center; gap: 26px; }
.hotline { display: grid; text-decoration: none; color: #fff; line-height: 1.2; text-align: right; }
.hotline:hover { color: #fff; }
.hotline-label { font-family: var(--schrift-titel); font-size: 13.6px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dunkel); }
.hotline-nr { font-family: var(--schrift-titel); font-size: 16.8px; font-weight: 700; white-space: nowrap; }
.sprachen { display: flex; gap: 8px; }
.sprachen a { display: block; padding: 3px; border: 2px solid transparent; opacity: .55; transition: opacity .15s; line-height: 0; }
.sprachen a:hover { opacity: 1; }
.sprachen a[aria-current] { opacity: 1; border-color: var(--rot); }
.burger { display: none; width: 46px; height: 46px; background: transparent; border: 1px solid #3a3f47; cursor: pointer; padding: 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 3px; background: #fff; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.kopf-nav { background: var(--nacht2); border-bottom: 3px solid var(--rot); }
.kopf-nav-innen { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; }
.menue { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.menue a { display: block; padding: 15px 8px 13px; color: #e9eaec; text-decoration: none; font-family: var(--schrift-titel); font-weight: 600; font-size: 14.5px; letter-spacing: .04em; white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; transition: color .15s, box-shadow .15s; }
.menue li:first-child a { padding-left: 0; }
.menue a:hover { color: #fff; box-shadow: inset 0 -3px 0 #5a5f67; }
.menue a[aria-current] { color: #fff; box-shadow: inset 0 -3px 0 var(--rot); }
.kopf-links { display: flex; align-items: center; gap: 12px; }
.kopf-links.unten { display: none; }
.kopf-link { display: flex; align-items: center; color: #fff; text-decoration: none; font-family: var(--schrift-titel); font-weight: 600; font-size: 15px; letter-spacing: .04em; }
.kopf-link.marke-034 { background: #0f161d; border: 1px solid #39414b; border-bottom: 3px solid #fff200; padding: 7px 12px 5px; transition: border-color .15s; }
.kopf-link.marke-034:hover { border-color: #fff200; }
.kopf-link.marke-034 img { height: 18px; width: auto; }

@media (max-width: 1099px) {
  .burger { display: flex; }
  .kopf-nav { display: none; border-bottom: 0; }
  .kopf.offen .kopf-nav { display: block; border-bottom: 3px solid var(--rot); }
  .kopf-nav-innen { flex-direction: column; padding-top: 8px; padding-bottom: 18px; }
  .menue { flex-direction: column; }
  .menue a, .menue li:first-child a { padding: 13px 0; border-bottom: 1px solid #2c3138; box-shadow: none; white-space: normal; }
  .menue a[aria-current] { color: var(--rot-hell); box-shadow: none; }
  .kopf-links.unten { display: flex; padding-top: 14px; }
}
@media (max-width: 700px) {
  .kopf-oben-innen { min-height: 72px; }
  .marke img { height: 58px; }
  .kopf-rechts { gap: 14px; }
  .hotline-label { display: none; }
  .hotline-nr { font-size: 15px; }
  .kopf-links.oben { display: none; }
}
@media (max-width: 520px) {
  .hotline { display: none; }
  .wrap { padding: 0 18px; }
}

/* ---------- Bühne (Kopffoto) ---------- */
.buehne { position: relative; display: grid; align-items: center; min-height: clamp(360px, 52vh, 600px); color: #fff; background: var(--nacht); overflow: hidden; text-align: center; }
.buehne-bild { position: absolute; inset: 0; }
.buehne-bild img { width: 100%; height: 100%; object-fit: cover; }
.buehne-bild::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 20, 23, .55), rgba(18, 20, 23, .45) 50%, rgba(18, 20, 23, .8)); }
.buehne-text { position: relative; padding-top: 56px; padding-bottom: 56px; display: grid; justify-items: center; gap: 6px; }
.buehne h1 { margin: 0 0 14px; padding: 12px 52px; font-size: clamp(22px, 6vw, 41.6px); font-weight: 700; letter-spacing: .01em; color: #fff; max-width: 100%; background: var(--rot);
  clip-path: polygon(22px 0, 100% 0, calc(100% - 22px) 100%, 0 100%); filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .35)); }
.buehne p { margin: 0 auto 10px; max-width: 760px; font-size: clamp(16px, 1.4vw, 18.4px); font-weight: 700; color: #eceef0; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.buehne .knopf-zeile { justify-content: center; margin-top: 18px; }
.buehne.ohne-foto { min-height: 0; background: var(--nacht) linear-gradient(115deg, transparent 0 62%, rgba(227, 6, 19, .14) 62% 64%, transparent 64% 67%, rgba(227, 6, 19, .1) 67% 68%, transparent 68%); }
.buehne.ohne-foto .buehne-text { padding-top: 48px; padding-bottom: 40px; }
@media (max-width: 600px) {
  .buehne h1 { padding: 10px 22px; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
}

/* ---------- Knöpfe ---------- */
.knopf-zeile { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.knopf { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px 12px; background: var(--rot); color: #fff; text-decoration: none; font-family: var(--schrift-titel); font-weight: 700; font-size: 15.2px; letter-spacing: .04em; border: 2px solid var(--rot); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: #fff; }
.knopf.zweit { background: transparent; color: inherit; border-color: currentColor; }
.knopf.zweit:hover { background: var(--nacht); border-color: var(--nacht); color: #fff; }
.knopf .pfeil svg, .kachel-titel .pfeil svg { width: 16px; height: 16px; display: block; }

/* ---------- Bänder und Inhalt ---------- */
.band { padding: clamp(40px, 5vw, 64px) 0; }
.stil-hell { background: var(--grau); }
.stil-grau { background: var(--grau2); }
.stil-dunkel { background: var(--nacht); color: #e9eaec; }
.karte-weiss { background: #fff; border: 1px solid var(--linie); padding: clamp(24px, 4vw, 48px); max-width: 940px; margin: 0 auto; }
.fliess > :first-child { margin-top: 0; }
.fliess > :last-child { margin-bottom: 0; }
.fliess h2 { font-size: clamp(24px, 2.4vw, 28.8px); font-weight: 700; letter-spacing: .02em; margin: 1.4em 0 .7em; }
.fliess h2::after { content: ''; display: block; width: 56px; height: 3px; background: var(--rot); margin-top: 12px; }
.fliess h3 { font-size: 20px; margin: 1.4em 0 .4em; }
.fliess p { margin: 0 0 1em; }
.fliess ul { margin: 0 0 1em; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.fliess ul li { position: relative; padding-left: 26px; }
.fliess ul li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 12px; height: 3px; background: var(--rot); transform: skewX(-20deg); }
.recht-seite .fliess { font-size: 15px; }
.recht-seite .fliess h2 { font-size: 22px; }
.hinweis-klein { font-size: 13px; color: var(--text2); }
.trenner { border: 0; border-top: 1px solid var(--linie); margin: 32px 0; }
.spalten { display: grid; gap: clamp(20px, 3vw, 36px); align-items: start; }
.spalten.s2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.spalten.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spalten.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spalten > .spalte:first-child { background: #fff; border: 1px solid var(--linie); padding: clamp(24px, 3.4vw, 44px); }
@media (max-width: 900px) { .spalten.s2, .spalten.s3, .spalten.s4 { grid-template-columns: 1fr; } }
.block-bild { margin: 0 0 24px; }
.block-bild img { width: 100%; }
.block-bild.frei img { width: auto; max-width: 100%; }
.block-bild figcaption { font-size: 14px; color: var(--text2); margin-top: 8px; }
.lb-einzel { cursor: zoom-in; display: block; }
.galerie.stapel { display: grid; gap: 16px; }
.galerie.raster { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.galerie a { display: block; background: #fff; border: 1px solid var(--linie); overflow: hidden; cursor: zoom-in; }
.galerie img { width: 100%; transition: transform .4s ease; }
.galerie.raster img { aspect-ratio: 4 / 3; object-fit: cover; }
.galerie a:hover img { transform: scale(1.03); }
@media (max-width: 900px) and (min-width: 560px) { .galerie.stapel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Zwei Fotos neben dem Text (Startseite): nebeneinander, das zweite versetzt – wie die bisherige Seite, statt zwei hochgezogener Riesenkacheln. */
.galerie.stapel.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.galerie.stapel.n2 a:nth-child(2) { margin-top: 48px; }
.spalte:has(> .galerie.stapel.n2) { align-self: center; }

/* ---------- Kacheln (wie die Warengruppen auf 034motorsport24.de) ---------- */
.band-titel { display: flex; align-items: center; gap: 18px; margin: 0 0 6px; font-size: clamp(24px, 2.4vw, 28.8px); font-weight: 700; letter-spacing: .02em; }
.band-titel::after { content: ''; flex: 1; height: 3px; background: linear-gradient(90deg, var(--rot) 0 72px, var(--linie) 72px); }
.band-unter { margin: 0 0 22px; color: var(--text2); }
.kacheln { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kacheln > li:first-child { grid-column: span 2; grid-row: span 2; }
.kachel { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--linie); text-decoration: none; color: inherit; overflow: hidden; }
.kachel-bild { position: relative; flex: 1; min-height: 150px; overflow: hidden; background: var(--nacht); }
.kachel-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.kachel-bild.logo img { object-fit: contain; }
a.kachel:hover .kachel-bild img { transform: scale(1.05); }
.kachel-text { display: grid; gap: 4px; padding: 12px 14px 13px; background: var(--nacht2); color: #fff; border-bottom: 3px solid transparent; transition: border-color .15s; }
a.kachel:hover .kachel-text { border-bottom-color: var(--rot); }
.kachel-titel { display: flex; align-items: center; gap: 8px; font-family: var(--schrift-titel); font-weight: 700; font-style: italic; font-size: 17.6px; letter-spacing: .02em; line-height: 1.2; }
.kachel-unter { font-family: var(--schrift-titel); font-weight: 400; font-size: 13.6px; letter-spacing: .02em; line-height: 1.4; color: var(--text-dunkel); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kacheln > li:first-child .kachel-titel { font-size: 24px; }
@media (max-width: 1000px) { .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kacheln > li:first-child { grid-row: span 1; } .kacheln > li:first-child .kachel-bild { min-height: 240px; } }
@media (max-width: 560px) { .kacheln { grid-template-columns: 1fr; } .kacheln > li:first-child { grid-column: span 1; } .kachel-bild { min-height: 190px; } }

/* ---------- Formular, Karte, Video ---------- */
.formular { display: grid; gap: 16px; max-width: 720px; text-align: left; }
.formular label, .formular legend { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.formular .pflicht { font-weight: 400; color: var(--text2); font-size: 12px; }
.formular input:not([type="checkbox"]), .formular textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--linie); background: #fff; color: var(--text); width: 100%; }
.formular textarea { min-height: 150px; resize: vertical; }
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px rgba(227, 6, 19, .18); }
.feld-gruppe { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.formular-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 560px) { .formular-zwei { grid-template-columns: 1fr; } }
.formular .haken { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.formular .knopf { justify-self: start; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { padding: 12px 16px; margin: 0; font-weight: 600; }
.meldung.ok { background: #e3f6e8; color: #0b6b2a; }
.meldung.fehler { background: #fde8e8; color: #9b1c1c; }
.karte-osm { height: clamp(300px, 36vw, 480px); overflow: hidden; background: var(--grau2); border: 1px solid var(--linie); }
.karte-osm iframe { width: 100%; height: 100%; border: 0; display: block; }
.video { aspect-ratio: 16 / 9; overflow: hidden; background: #111; margin: 24px 0 0; }
.video button { all: unset; cursor: pointer; display: block; position: relative; width: 100%; height: 100%; }
.video button img { width: 100%; height: 100%; object-fit: cover; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .play svg { width: 84px; height: 84px; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Soziale Netzwerke, Fuß ---------- */
.sozial { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.sozial a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #3a3f47; color: #fff; transition: background .15s, border-color .15s; }
.sozial a:hover { background: var(--rot); border-color: var(--rot); color: #fff; }
.sozial svg { width: 21px; height: 21px; }
.fuss { background: var(--fuss); color: var(--text-dunkel); font-size: 14.08px; }
.fuss a { color: #e9eaec; text-decoration: none; }
.fuss a:hover { color: var(--rot-hell); }
.fuss-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; padding-top: 52px; padding-bottom: 40px; }
.fuss h2 { font-size: 15.2px; font-weight: 700; color: #fff; letter-spacing: .05em; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--rot); }
.fuss h2.fuss-folgen { margin-top: 30px; }
.fuss p { margin: 0 0 12px; }
.fuss ul:not(.sozial) { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fuss-leiste { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid #262a30; font-size: 12.8px; }
.fuss-links { display: flex; gap: 18px; align-items: center; }
.fuss-links a { color: var(--text-dunkel); text-decoration: underline; }
.version { color: #7d828b; }
@media (max-width: 860px) { .fuss-raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fuss-raster { grid-template-columns: 1fr; } }

/* ---------- Großansicht ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10, 11, 13, .96); display: grid; grid-template-rows: auto 1fr auto; color: #f5f5f7; opacity: 0; transition: opacity .25s; touch-action: pan-y pinch-zoom; }
.lb.offen { opacity: 1; }
.lb-kopf { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 14px; color: #a1a1a6; }
.lb-flaeche { position: relative; display: grid; place-items: center; overflow: hidden; }
.lb-flaeche img { max-width: 100vw; max-height: calc(100dvh - 110px); width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .2s; }
.lb button { background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.lb button:hover { background: var(--rot); }
.lb button svg { width: 22px; height: 22px; }
.lb-zurueck, .lb-vor { position: absolute; top: 50%; translate: 0 -50%; }
.lb-zurueck { left: 14px; } .lb-vor { right: 14px; }
.lb-fuss { text-align: center; padding: 10px; font-size: 13px; color: #86868b; min-height: 40px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Sicherheitsprüfung der Formulare (Turnstile): unsichtbar, solange nichts zu tun ist */
.cf-turnstile:empty { display: none; }
.meldung.warten:not(.fehler) { background: #eef1f5; color: #1d1d1f; }
