/* IBPM – Gestaltung nach dem Vorbild maxx-adrenalin.de
   Farben: Rot #df2a27, Dunkelblau #232e61, Text #252525, Fast-Schwarz #111
   Schriften: Teko (Überschriften, Großbuchstaben) und Inter (Fließtext, Menü) */
/* Schriften lokal eingebunden (keine Verbindung zu Google-Servern, datenschutzfreundlich) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Teko"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/teko-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Teko"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/teko-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Teko"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/teko-latin-700-normal.woff2") format("woff2"); }
:root {
  --red: #df2a27;
  --red-dark: #b81f1d;
  --blue: #232e61;
  --blue-dark: #1a2349;
  --orange: #ff8800;
  --text: #252525;
  --dark: #111111;
  --grey: #f2f2f4;
  --border: #e2e3e8;
  --white: #ffffff;
  --radius: 4px;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: "Teko", sans-serif; font-weight: 700; line-height: 1.05; margin: 0 0 .4em; text-transform: uppercase; letter-spacing: .01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; }
.muted { color: rgba(255,255,255,.7); font-size: .9rem; }

/* Topbar */
.topbar { background: var(--dark); color: rgba(255,255,255,.75); font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 32px; gap: 12px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }

/* Header */
.site-header { background: var(--blue); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand-logo { display: block; background: #fff; border-radius: var(--radius); padding: 4px 8px; }
.brand-logo img { height: 56px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 1rem "Inter", sans-serif; color: #fff; text-decoration: none;
  background: none; border: 0; padding: 10px 12px; cursor: pointer; border-radius: var(--radius);
}
.nav-link:hover, .nav-item.active > .nav-link { color: var(--red); }
.caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; }
.sub-menu {
  list-style: none; pointer-events: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border-top: 3px solid var(--red); box-shadow: 0 10px 30px rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.sub-menu a { display: block; padding: 9px 18px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.sub-menu a:hover { background: var(--grey); color: var(--red); }
.has-sub:hover > .sub-menu, .has-sub.open > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-block; font: 700 14px/1.25 "Inter", sans-serif; text-transform: uppercase; text-decoration: none; text-align: center;
  padding: 14px 24px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: .15s ease; color: #fff;
}
.btn-red { background: var(--red); }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-blue { background: var(--blue); border-color: rgba(255,255,255,.35); }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: #e67700; color: #fff; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--blue); }
.btn-small { padding: 8px 14px; font-size: 12px; }

/* Hero */
.hero, .page-hero { position: relative; color: #fff; background-color: var(--dark); overflow: hidden; isolation: isolate; }
.hero::after, .page-hero::after {
  /* Zielflaggen-Muster als Akzent, nur wenn kein Foto/Video hinterlegt ist */
  content: ""; position: absolute; right: -60px; top: -60px; width: 420px; height: 420px; opacity: .08; transform: rotate(18deg);
  background: repeating-conic-gradient(#fff 0 25%, transparent 0 50%) 0 0 / 70px 70px; pointer-events: none;
}
.has-media::after { display: none; }
/* Hintergrund-Foto/-Video, stark abgedunkelt (Stärke im Admin einstellbar) */
.bg-media { position: absolute; inset: 0; z-index: -2; }
.bg-media video, .bg-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-media .bg-still { display: none; }
.bg-dim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(17,17,17,var(--dim)) 0%, rgba(17,17,17,calc(var(--dim) * .75)) 60%, rgba(17,17,17,calc(var(--dim) * .55)) 100%),
  linear-gradient(0deg, rgba(17,17,17,calc(var(--dim) * .6)) 0%, transparent 40%); }
@media (prefers-reduced-motion: reduce) {
  .bg-media video { display: none; }
  .bg-media .bg-still { display: block; }
}
.hero-inner { padding: 110px 20px 120px; position: relative; z-index: 1; }
.kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; color: #fff; margin: 0 0 12px; }
.kicker.dark { color: var(--red); font-weight: 700; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 6.5rem); line-height: .92; margin-bottom: 18px; }
.hero-sub { font-family: "Teko", sans-serif; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; margin: 0 0 6px; max-width: 760px; }
.hero-slogan { text-transform: uppercase; font-size: .9rem; letter-spacing: .06em; margin: 0 0 34px; color: rgba(255,255,255,.85); }
.hero-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 164px)); gap: 8px; }
.hero-buttons .btn { padding: 8px 8px; min-height: 38px; font-size: 11.5px; line-height: 1.15; text-align: center; letter-spacing: 0; hyphens: auto; -webkit-hyphens: auto; display: flex; align-items: center; justify-content: center; }
.page-hero { padding: 90px 0 70px; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); }
.page-hero-small { padding: 60px 0 40px; }
.page-hero .lead { font-size: 1.15rem; max-width: 760px; }
.page-hero .wrap { position: relative; z-index: 1; }

/* Sections */
.section { padding: 80px 0; }
.section-blue { background: var(--blue); color: #fff; }
.section-grey { background: var(--grey); }
.section-red { background: var(--red); color: #fff; padding: 50px 0; }
.section-title { font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--text); }
.section-title.light { color: #fff; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; }
.align-center { align-items: center; }
.content h3 { font-size: 1.9rem; margin-top: 1.2em; }
.content ul { padding-left: 1.2em; }
.content li { margin: .25em 0; }
.content.narrow { max-width: 860px; }
.about-visual .logo-visual { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.about-visual .photo { border-radius: var(--radius); }

/* Leitsprüche direkt unter dem Schriftzug "IBPM Racing Series" */
.hero h1 { margin-bottom: 14px; }
.hero-claims { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 24px; }
.hero-claims p { margin: 0; font-family: "Teko", sans-serif; text-transform: uppercase; font-weight: 600; line-height: 1; letter-spacing: .02em; }
.claim-1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: #fff; padding-left: 14px; border-left: 5px solid var(--red); }
.claim-2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: #fff; background: var(--red); padding: 7px 16px 3px; border-radius: var(--radius); transform: skewX(-8deg); }
.seo-text { background: #fff; border-top: 1px solid var(--border); }
.seo-text .section-title { font-size: clamp(2rem, 4vw, 2.6rem); }
.termin.termin-jahr { background: var(--blue); color: #fff; border-left-color: var(--orange); }
.termin.termin-jahr .termin-date { color: #fff; }
.termin.termin-jahr .termin-place span { color: rgba(255,255,255,.75); }

/* Klassen-Kacheln */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 30px; }
.tile { display: flex; flex-direction: column; color: #fff; text-decoration: none; }
.tile-img {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red) 0%, #8f1412 100%); background-size: cover; background-position: center;
  transition: transform .2s ease; position: relative; overflow: hidden;
}
.tile:hover .tile-img { transform: translateY(-4px); }
.tile-badge { font-family: "Teko", sans-serif; font-size: 2.6rem; font-weight: 700; text-transform: uppercase; text-align: center; padding: 0 10px; line-height: 1; }
.tile-title { font-family: "Teko", sans-serif; font-size: 1.6rem; font-weight: 600; text-transform: uppercase; color: var(--red); margin-top: 12px; }
.tile:hover .tile-title { color: #fff; }
.tile-text { font-size: .92rem; color: rgba(255,255,255,.8); }

/* Karten */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h2 { font-size: 2rem; }
.card-dark { background: var(--dark); color: #fff; border: 0; border-top: 4px solid var(--red); }
.card-dark .btn { margin-top: 10px; }
.contact-grid { grid-template-columns: 1fr 1fr; margin-top: 30px; }

/* Termine */
.termine { display: grid; gap: 10px; margin: 26px 0 30px; }
.termin { display: grid; grid-template-columns: 240px 1fr auto; gap: 20px; align-items: center; background: #fff; border-left: 5px solid var(--red); padding: 16px 22px; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.termin-date { font-family: "Teko", sans-serif; font-size: 1.6rem; font-weight: 600; color: var(--blue); }
.termin-place { font-weight: 700; }
.termin-place span { display: block; font-weight: 400; font-size: .9rem; color: #666; }
.termin-vorbei { border-left-color: #b9bcc8; background: #f7f7f9; box-shadow: none; }
.termin-vorbei .termin-date { color: #8a8fa3; text-decoration: line-through; text-decoration-color: rgba(223,42,39,.6); text-decoration-thickness: 2px; }
.termin-vorbei .termin-place { color: #666; }
.termin-place .termin-spruch { font-style: italic; color: #777; }
.termin-live { border-left-color: var(--red); box-shadow: 0 0 0 2px rgba(223,42,39,.25), 0 6px 18px rgba(223,42,39,.15); }
.termin-live .termin-spruch { color: var(--red); font-style: normal; font-weight: 600; }
.btn-ghost-dark { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-ghost-dark:hover { background: var(--blue); color: #fff; }
.termin-flag { font-size: 1.8rem; line-height: 1; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 4px; vertical-align: middle; animation: livePulse 1.2s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .25; } }

.cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta h2 { font-size: clamp(2.2rem, 4vw, 3rem); margin: 0; }
.cta p { margin: 4px 0 0; }

/* Ergebnisse */
.erg-bar { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; margin: 10px 0 30px; padding-bottom: 18px; border-bottom: 2px solid var(--border); }
.erg-year label { display: block; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.erg-year select { font: 600 1.4rem "Teko", sans-serif; padding: 4px 34px 2px 12px; border: 2px solid var(--blue); border-radius: var(--radius); color: var(--blue); background: #fff; }
.erg-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.erg-tabs a { padding: 12px 20px; border-radius: var(--radius); background: var(--grey); color: var(--text); text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: .85rem; }
.erg-tabs a.active, .erg-tabs a:hover { background: var(--red); color: #fff; }
.erg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.erg-card { background: var(--blue); color: #fff; padding: 24px; border-radius: var(--radius); border-top: 4px solid var(--red); scroll-margin-top: 120px; }
.erg-card h3 { font-size: 2.2rem; margin-bottom: 0; }
.erg-card p { margin: 0 0 14px; color: rgba(255,255,255,.75); }
.erg-card .btn { margin: 4px 6px 0 0; }
.erg-class { margin-bottom: 30px; scroll-margin-top: 120px; }
.erg-class h3 { font-size: 2rem; color: var(--blue); border-left: 5px solid var(--red); padding-left: 12px; }
.erg-races { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.erg-races a { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-weight: 700; text-decoration: none; }
.erg-races a:hover { border-color: var(--red); color: var(--red); }
.erg-empty { background: var(--grey); padding: 20px; border-radius: var(--radius); }

/* Dritte Menü-Ebene (seitlich aufklappend) */
.has-sub2 { position: relative; }
.has-sub2 > a { display: flex !important; justify-content: space-between; align-items: center; gap: 12px; }
.caret-r { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 6px solid currentColor; }
.sub-sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 100%; top: -8px; min-width: 220px; background: #fff; border-left: 3px solid var(--red); box-shadow: 0 10px 30px rgba(0,0,0,.2); display: none; }
.has-sub2:hover > .sub-sub, .has-sub2:focus-within > .sub-sub { display: block; }
.sub-sub.flip { left: auto; right: 100%; border-left: 0; border-right: 3px solid var(--red); }

/* Footer */
.site-footer { background: var(--dark); color: #fff; }
.footer-claim { background: var(--blue); padding: 34px 0; }
.footer-claim .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-claim h2 { margin: 0; font-size: 2.4rem; }
.social { display: flex; gap: 16px; }
.social a { color: #fff; font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--red); }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 36px; padding: 50px 20px 30px; }
.footer-cols h3 { font-size: 1.6rem; color: var(--red); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 6px 0; }
.footer-cols a { color: #fff; text-decoration: none; }
.footer-cols a:hover { color: var(--red); }
.footer-logo { width: 220px; margin-bottom: 14px; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .85rem; color: rgba(255,255,255,.6); }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.3rem; box-shadow: 0 4px 12px rgba(0,0,0,.3); z-index: 40; }
.to-top:hover { background: var(--red-dark); color: #fff; }

/* Mobil */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blue);
    flex-direction: column; align-items: stretch; padding: 10px 20px 22px; gap: 10px; border-top: 1px solid rgba(255,255,255,.1);
    max-height: calc(100vh - 84px); overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px 4px; font-size: 1.05rem; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; background: rgba(255,255,255,.06); border-top: 0; }
  .has-sub:hover > .sub-menu { display: none; }
  .has-sub.open > .sub-menu { display: block; }
  .sub-menu a { color: #fff; }
  .sub-menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .sub-sub { display: block; position: static; box-shadow: none; background: transparent; border: 0; padding: 0 0 4px 14px; min-width: 0; }
  .sub-sub.flip { border: 0; }
  .caret-r { display: none; }
  .sub-sub a { font-size: .9rem; opacity: .85; }
  .hero-buttons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-2, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .brand-logo img { height: 44px; }
  .header-inner { min-height: 70px; }
  .hero-inner { padding: 70px 20px 80px; }
  .hero-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .hero-buttons .btn { font-size: 11px; min-height: 36px; }
  .section { padding: 56px 0; }
  .termin { grid-template-columns: 1fr; gap: 6px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .footer-cols { grid-template-columns: 1fr; }
  .topbar-inner span { font-size: .75rem; }
}

.erg-filter { margin: -6px 0 22px; font-size: .95rem; }
.erg-filter a { color: var(--red); font-weight: 700; }

/* ---------------------------------------------------------------- Fahrerprofile */
.driver-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; align-items: center; }
.driver-tabs a { padding: 10px 18px; border: 2px solid var(--blue); border-radius: var(--radius); color: var(--blue); text-decoration: none; font: 600 1.25rem/1 "Teko", sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.driver-tabs a.active, .driver-tabs a:hover { background: var(--blue); color: #fff; }
.driver-tabs .driver-add { margin-left: auto; background: var(--red); border-color: var(--red); color: #fff; }
.driver-tabs .driver-add:hover { background: var(--red-dark); border-color: var(--red-dark); }
.driver-group { margin-bottom: 56px; }
.driver-group .count { font-size: 1.2rem; color: #888; font-weight: 400; margin-left: 8px; }
.driver-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.driver-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.driver-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.35); color: var(--text); }
.driver-photo { position: relative; aspect-ratio: 4/5; background: linear-gradient(135deg, var(--blue), var(--dark)); display: block; overflow: hidden; }
.driver-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.driver-card:hover .driver-photo img { transform: scale(1.05); }
.driver-nr { position: absolute; left: 0; bottom: 0; background: var(--red); color: #fff; font: 700 2.4rem/1 "Teko", sans-serif; padding: 8px 14px 2px; min-width: 64px; text-align: center; }
.driver-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.driver-class { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.driver-info strong { font: 600 1.6rem/1.05 "Teko", sans-serif; text-transform: uppercase; }
.driver-track { font-size: .85rem; color: #666; }
.empty { color: #666; }
.driver-cta .cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.driver-cta h2 { font-size: 2.6rem; margin: 0; color: #fff; }
.driver-cta p { margin: 0; flex: 1; min-width: 240px; }
.driver-hero { background: var(--blue); color: #fff; padding: 50px 0; }
.driver-hero-inner { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 50px; align-items: end; }
.driver-hero-photo { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--dark); border-bottom: 6px solid var(--red); }
.driver-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.back-link { color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem; }
.back-link:hover { color: #fff; }
.driver-big-nr { font: 700 clamp(5rem, 12vw, 9rem)/.8 "Teko", sans-serif; color: var(--red); margin: 20px 0 0; }
.driver-hero h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); color: #fff; margin: 0 0 12px; }
.driver-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.driver-meta span { background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: var(--radius); font-size: .92rem; }
.driver-meta span:first-child { background: var(--red); font-weight: 700; }
.driver-qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.qa { background: var(--grey); border-left: 5px solid var(--red); padding: 24px 26px; border-radius: var(--radius); }
.qa h2 { font-size: 1.7rem; color: var(--blue); }
.qa p { margin: 0; }
.driver-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.driver-pager a { font: 600 1.3rem "Teko", sans-serif; text-transform: uppercase; text-decoration: none; color: var(--blue); }
.driver-pager a:hover { color: var(--red); }
/* Formular */
.driver-form-wrap { max-width: 860px; }
.ff-step { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 24px 22px; margin: 0 0 22px; }
.ff-step legend { font: 600 1.6rem/1 "Teko", sans-serif; text-transform: uppercase; color: var(--blue); padding: 0 8px; display: flex; align-items: center; gap: 10px; }
.ff-step legend span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.2rem; padding-top: 3px; }
.class-pick { display: flex; flex-wrap: wrap; gap: 12px; }
.class-pick label { cursor: pointer; }
.class-pick input { position: absolute; opacity: 0; }
.class-pick span { display: block; padding: 16px 28px 12px; border: 2px solid var(--border); border-radius: var(--radius); font: 700 2rem/1 "Teko", sans-serif; text-transform: uppercase; color: var(--blue); transition: .15s; }
.class-pick input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.class-pick input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.class-pick.has-error span { border-color: var(--red); }
.ff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.ff { display: flex; flex-direction: column; gap: 5px; }
.ff.full { grid-column: 1 / -1; }
.ff label { font-weight: 700; font-size: .88rem; }
.ff input[type=text], .ff input[type=email], .ff textarea { font: 400 1rem "Inter", sans-serif; padding: 12px 13px; border: 1px solid #c9cbd3; border-radius: var(--radius); width: 100%; }
.ff input:focus, .ff textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.ff small { color: #777; font-size: .8rem; }
.ff.has-error input, .ff.has-error textarea { border-color: var(--red); }
.ff-error { color: var(--red); font-weight: 700; font-size: .85rem; margin: 4px 0 0; }
.ff-msg { background: #fdecea; border: 1px solid #f3c2bf; border-left: 6px solid var(--red); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 26px; color: #8a1c1a; font-weight: 500; scroll-margin-top: 110px; outline: none; }
.ff-msg[hidden] { display: none; }
.ff-msg strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.ff-msg ul { margin: 0 0 8px; padding-left: 20px; }
.ff-msg li { margin: 3px 0; }
.ff-msg a { color: #8a1c1a; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.ff-msg small { color: #a04a46; }
.ff-error[hidden] { display: none; }
.ff-error::before { content: "⚠ "; }
[data-req] { scroll-margin-top: 120px; }
.consent.has-error { background: #fdecea; border-radius: var(--radius); padding: 10px 12px; }
.consent.has-error input { outline: 2px solid var(--red); outline-offset: 1px; }
.ff.has-error label { color: var(--red); }
.req { color: var(--red); }
.photo-drop { display: flex; align-items: center; gap: 18px; cursor: pointer; border: 2px dashed #c9cbd3; border-radius: var(--radius); padding: 16px; position: relative; }
.photo-drop:hover { border-color: var(--blue); }
.photo-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-drop:focus-within { outline: 3px solid var(--blue); }
.photo-preview { width: 96px; height: 120px; flex: none; border-radius: var(--radius); background: var(--grey) center/cover no-repeat; display: grid; place-items: center; }
.photo-preview:empty::after { content: "📷"; font-size: 2rem; opacity: .5; }
.photo-preview.has { background-color: transparent; }
.photo-preview.has::after { content: none; }
.photo-text b { display: block; font-size: 1.05rem; color: var(--blue); }
.photo-text small { color: #666; }
.photo-ok { color: #1e7a3c; font-weight: 700; margin: 0 0 10px; }
.photo-pick.has-error .photo-drop { border-color: var(--red); }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.btn-big { font-size: 1rem; padding: 18px 34px; margin-top: 18px; }
.ff-note { color: #777; font-size: .85rem; margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.driver-thanks { background: var(--grey); border-left: 6px solid var(--red); padding: 36px; border-radius: var(--radius); }
.driver-thanks .ok { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #1e7a3c; color: #fff; font-size: 1.6rem; margin-bottom: 14px; }
@media (max-width: 760px) {
  .driver-tabs .driver-add { margin-left: 0; }
  .driver-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .driver-info strong { font-size: 1.3rem; }
  .driver-nr { font-size: 1.9rem; }
  .driver-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .driver-hero-photo { max-width: 320px; }
  .ff-grid { grid-template-columns: 1fr; }
  .ff-step { padding: 14px 14px 18px; }
  .class-pick span { padding: 12px 18px 8px; font-size: 1.6rem; }
}

/* ---------------------------------------------------------------- IBPM in der Presse (kompakt, viele Berichte) */
.press-wrap { max-width: 900px; }
.press-year + .press-year { margin-top: 30px; }
.press-year .section-title { font-size: clamp(1.6rem, 3vw, 2rem); border-bottom: 2px solid var(--red); padding-bottom: 2px; margin: 0 0 10px; }
.press-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.press-link { display: flex; gap: 14px; align-items: center; background: var(--grey); border-radius: var(--radius); padding: 8px 14px 8px 10px; color: inherit; text-decoration: none; border-left: 3px solid transparent; transition: border-color .15s, background .15s; }
.press-link:hover, .press-link:focus-visible { border-left-color: var(--red); background: #e9eaef; }
/* Briefmarke mit gezacktem Rand */
.press-stamp { flex: none; width: 56px; height: 56px; padding: 4px; background: radial-gradient(circle, transparent 2px, #fff 2.4px) -3px -3px / 6px 6px; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.18)); transform: rotate(-2deg); transition: transform .2s; }
.press-link:hover .press-stamp { transform: rotate(0deg) scale(1.06); }
.press-stamp img { display: block; width: 100%; height: 100%; object-fit: cover; }
.press-stamp.no-img > span { display: grid; place-items: center; width: 100%; height: 100%; background: var(--blue); font-size: 1.3rem; }
.press-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.press-meta { font-size: .74rem; color: #666; text-transform: uppercase; letter-spacing: .03em; }
.press-meta b { color: var(--red); }
.press-title { font: 600 1.18rem/1.1 "Teko", sans-serif; text-transform: uppercase; color: var(--blue); }
.press-text { color: #555; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.press-more { flex: none; font-weight: 700; font-size: .8rem; color: var(--blue); align-self: center; white-space: nowrap; }
.press-link > .press-more { margin-left: auto; }
.press-pos { color: #666; font-size: .9rem; margin: 0 0 14px; }
.press-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.press-pager .btn { font-size: .85rem; padding: 12px 20px; }
.btn-outline-dark { border: 2px solid var(--blue); color: var(--blue); background: transparent; }
.btn-outline-dark:hover { background: var(--blue); color: #fff; }
.press-pages { margin-left: auto; color: #777; font-size: .85rem; }
@media (max-width: 600px) {
  .press-link { padding: 8px 10px; gap: 10px; }
  .press-stamp { width: 48px; height: 48px; }
  .press-title { font-size: 1.08rem; }
  .press-text, .press-link > .press-more { display: none; }
  .press-pager .btn { width: 100%; text-align: center; }
  .press-pages { margin: 0 auto; }
}

/* Foto per Drag & Drop / Einfügen */
.photo-drop.drag-over { border-color: var(--red); background: #fdf1f0; }
.drop-pc { display: block; color: #888; margin-top: 2px; }
.drop-msg { display: block; font-size: .85rem; font-weight: 700; color: #1e7a3c; margin-top: 4px; }
.drop-msg:empty { display: none; }
.drop-msg.bad { color: var(--red); }
@media (hover: none) { .drop-pc { display: none; } }

/* Fahrerprofil: zwei Fotos (Motorrad Pflicht, Fahrerbild optional) */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-label { font-weight: 700; margin: 0 0 6px; }
.photo-label small { font-weight: 400; color: #777; }
.photo-preview-round { width: 96px; height: 96px; border-radius: 50%; }
.photo-grid .photo-pick { display: flex; flex-direction: column; }
.photo-grid .photo-drop { align-items: flex-start; flex: 1; }
@media (max-width: 760px) { .photo-grid { grid-template-columns: 1fr; } }
.driver-portrait { display: block; overflow: hidden; width: 240px; height: 240px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); margin: 18px 0 -6px; }
@media (max-width: 900px) { .driver-portrait { width: 190px; height: 190px; } }
@media (max-width: 420px) { .driver-portrait { width: 160px; height: 160px; } }

/* Fahrerprofil: Links zu Webseite & Social Media */
.driver-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.driver-links a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; font-size: .88rem; font-weight: 600; transition: .15s; }
.driver-links a:hover, .driver-links a:focus-visible { background: #fff; color: var(--blue); border-color: #fff; }
.driver-links .dl-instagram:hover { color: #c13584; }
.driver-links .dl-facebook:hover { color: #1877f2; }
.driver-links .dl-youtube:hover { color: #ff0000; }
.ff-step legend .opt, .opt { font: 400 .8rem "Inter", sans-serif; color: #888; text-transform: none; letter-spacing: 0; }
.ff-intro { margin: 0 0 14px; color: #555; font-size: .92rem; }

.driver-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Gewählter Bildausschnitt (Verschieben + Zoom) */
img[data-fpos] { object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); transform-origin: var(--fx, 50%) var(--fy, 50%); transform: scale(var(--fz, 1)); }
.driver-card:hover .driver-photo img[data-fpos] { transform: scale(calc(var(--fz, 1) * 1.05)); }

/* Rahmen zum Ausschnitt-Wählen */
.crop { margin-top: 14px; }
.crop[hidden] { display: none; }
.crop-title { font-weight: 700; margin: 0 0 6px; font-size: .9rem; }
.crop-frame { position: relative; overflow: hidden; background: #1a1a1a; cursor: grab; touch-action: none; user-select: none; outline-offset: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 6px 16px -8px rgba(0,0,0,.4); }
.crop-frame.dragging { cursor: grabbing; }
.crop-frame img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.crop-rect .crop-frame { width: 200px; aspect-ratio: 4 / 5; border-radius: 4px; }
.crop-round .crop-frame { width: 170px; height: 170px; border-radius: 50%; }
.crop-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.crop-tools label { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; margin: 0; }
.crop-tools input[type=range] { width: 130px; accent-color: #232e61; }
.crop-reset { background: none; border: 1px solid #c9cbd3; border-radius: 4px; padding: 4px 10px; font-size: .8rem; cursor: pointer; }
.crop-reset:hover { border-color: #232e61; }
.crop-hint { display: block; color: #777; font-size: .8rem; margin-top: 4px; max-width: 360px; }

.klasse-inaktiv { display: inline-block; margin-top: 14px; background: rgba(255,255,255,.12); border-left: 4px solid var(--orange); padding: 10px 14px; border-radius: var(--radius); font-size: .95rem; }
.klasse-inaktiv a { color: #fff; text-decoration: underline; }

.erg-old { display: block; margin-top: 8px; font-size: .88rem; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.erg-old:hover { color: var(--red); }

/* ---------------------------------------------------------------- FAQ */
.faq-wrap { max-width: 900px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--grey); border-radius: var(--radius); border-left: 4px solid transparent; transition: border-color .15s, background .15s; }
.faq-item[open] { border-left-color: var(--red); background: #fff; box-shadow: 0 10px 28px -16px rgba(0,0,0,.35); }
.faq-item summary { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--red); }
.faq-item summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.faq-q { flex: 1; font: 600 1.45rem/1.15 "Teko", sans-serif; text-transform: uppercase; color: var(--blue); transition: color .15s; }
.faq-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); position: relative; transition: transform .25s, background .15s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #fff; transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.faq-item[open] .faq-icon { background: var(--red); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 22px 20px; color: #333; }
.faq-a > :first-child { margin-top: 0; }
.faq-a ul { margin: 6px 0 12px; }
.faq-cta { margin-top: 34px; padding: 22px 24px; background: var(--blue); color: #fff; border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.faq-cta p { margin: 0 auto 0 0; }
.faq-cta .btn { margin: 0; }
@media (max-width: 600px) {
  .faq-item summary { padding: 14px 16px; gap: 12px; }
  .faq-q { font-size: 1.25rem; }
  .faq-a { padding: 0 16px 16px; }
  .faq-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .faq-cta p { margin: 0; }
}

/* Knöpfe unter dem Text einer Inhaltsseite */
.page-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; padding-top: 26px; border-top: 1px solid var(--border); }
.page-buttons .btn { margin: 0; }
@media (max-width: 600px) { .page-buttons .btn { flex: 1 1 100%; text-align: center; } }
.page-buttons.narrow { max-width: 860px; }

/* ---------------------------------------------------------------- Reglement 1:1 aus den PDFs */
.reg-doc { font-size: .98rem; line-height: 1.55; color: #222; }
.reg-doc p { margin: 0 0 .9em; }
.reg-head { text-align: center; margin: 0 0 30px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.reg-head p { margin: 0 0 .4em; }
.reg-sec { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 6px; margin: 0 0 22px; }
.reg-sec .reg-nr { font-weight: 700; padding-top: 1px; }
.reg-sub .reg-nr { font-weight: 400; }
.reg-sub { margin-top: -6px; }
.reg-doc h3, .reg-doc h4 { font: 700 1rem/1.4 "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: #222; margin: 0 0 .25em; }
.reg-doc h4 { margin-top: .9em; }
.reg-body > h4:first-child { margin-top: 0; }
.reg-body > h3 + h4 { margin-top: 0; }
.reg-center { text-align: center; }
.reg-lines { margin-top: -.6em; }
.reg-dash { list-style: none; padding: 0; margin: -.5em 0 .9em; }
.reg-dash li { position: relative; padding-left: 18px; }
.reg-dash li::before { content: "–"; position: absolute; left: 0; }
.reg-table-wrap { overflow-x: auto; margin: -.4em 0 1.2em; }
.reg-table { border-collapse: collapse; min-width: 300px; }
.reg-table th, .reg-table td { padding: 2px 22px 2px 0; text-align: left; font-weight: 400; white-space: nowrap; }
.reg-table th { font-weight: 400; }
.reg-list { list-style: none; padding: 0; margin: 0; }
.reg-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); margin: 0 0 1em; }
.reg-doc mark { background: #fff200; color: inherit; padding: 0 1px; }
.reg-doc del { text-decoration: line-through; }
.reg-foot { text-align: center; font-size: .8rem; color: #666; margin-top: 34px !important; padding-top: 14px; border-top: 1px solid var(--border); }
@media (max-width: 600px) {
  .reg-doc { font-size: .95rem; }
  .reg-sec { grid-template-columns: 38px minmax(0, 1fr); }
  .reg-list li { grid-template-columns: 30px minmax(0, 1fr); }
  .reg-doc p { hyphens: auto; -webkit-hyphens: auto; }
}
