/* =========================================================
   BIRCHMEIER GRUPPE – SUPERIOR CYCLING TEAM
   Responsive CSS – Desktop / Tablet / Mobile
   ========================================================= */

:root {
  --bg: #070a0d;
  --bg2: #0c1116;
  --panel: #10171e;
  --panel2: #151e27;

  --text: #f5f7f9;
  --muted: #a8b2bd;

  --accent: #d6ff17;
  --accent2: #9fca00;

  --line: rgba(255,255,255,.10);
  --line-strong: rgba(214,255,23,.30);

  --radius: 22px;
  --shadow: 0 20px 60px rgba(0,0,0,.30);

  --max: 1220px;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;

  color: var(--text);

  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(214,255,23,.09),
      transparent 26rem
    ),
    radial-gradient(
      circle at 0% 35%,
      rgba(255,255,255,.035),
      transparent 30rem
    ),
    var(--bg);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.6;
  font-weight: 600;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
}

table {
  max-width: 100%;
}

iframe {
  max-width: 100%;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

body::before {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;

  opacity: .025;

  background-image:
    linear-gradient(
      135deg,
      #fff 1px,
      transparent 1px
    );

  background-size: 36px 36px;

  z-index: -1;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
  width: min(
    var(--max),
    calc(100% - 40px)
  );

  margin-left: auto;
  margin-right: auto;

  min-width: 0;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;

  z-index: 1000;

  background: rgba(7,10,13,.90);

  backdrop-filter:
    blur(20px)
    saturate(1.2);

  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 82px;

  display: flex;
  align-items: center;

  gap: 20px;

  min-width: 0;
}

.brand {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 12px;

  text-decoration: none;

  font-weight: 900;
  letter-spacing: .04em;
}

.brand img {
  width: auto;
  height: 52px;

  max-width: 175px;

  object-fit: contain;
}

.brand span {
  font-size: .76rem;
  white-space: nowrap;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navlinks {
  margin-left: auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 16px;

  min-width: 0;
}

.navlinks a {
  position: relative;

  padding: 10px 0;

  color: #d8dee4;

  text-decoration: none;

  font-size: .76rem;
  font-weight: 900;

  letter-spacing: .04em;

  white-space: nowrap;

  transition: color .2s ease;
}

.navlinks a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 100%;
  bottom: 4px;

  height: 2px;

  background: var(--accent);

  transition: right .2s ease;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--accent);
}

.navlinks a:hover::after,
.navlinks a.active::after {
  right: 0;
}

.menu-btn {
  display: none;

  width: 44px;
  height: 44px;

  flex: 0 0 44px;

  border: 1px solid var(--line);

  background: #10161c;

  color: #fff;

  border-radius: 12px;

  font-size: 1.35rem;

  cursor: pointer;
}


/* =========================================================
   MAIN
   ========================================================= */

main {
  width: 100%;
  max-width: 100%;

  min-height: 65vh;

  overflow: hidden;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 78vh;

  display: grid;
  align-items: end;

  position: relative;

  overflow: hidden;

  border-bottom: 1px solid var(--line);

  background:
    linear-gradient(
      90deg,
      rgba(7,10,13,.96) 0%,
      rgba(7,10,13,.52) 48%,
      rgba(7,10,13,.28) 100%
    ),
    linear-gradient(
      0deg,
      rgba(7,10,13,.82),
      transparent 45%
    ),
    url("start2026welcome.png")
    center / cover no-repeat;
}

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      115deg,
      transparent 0 55%,
      rgba(214,255,23,.08) 55.2%,
      transparent 55.5%
    );

  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;

  padding: 110px 0 105px;
}

.eyebrow {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  color: var(--accent);

  font-size: .72rem;

  font-weight: 950;

  letter-spacing: .18em;

  text-transform: uppercase;
}

.eyebrow::before {
  content: "";

  width: 26px;
  height: 2px;

  background: var(--accent);

  flex: 0 0 26px;
}

.hero h1 {
  margin: 20px 0 26px;

  max-width: 900px;

  font-size:
    clamp(
      3.6rem,
      9vw,
      8.5rem
    );

  line-height: .82;

  letter-spacing: -.075em;

  text-transform: uppercase;
}

.hero p {
  max-width: 650px;

  margin: 0 0 22px;

  color: #d8dee5;

  font-size:
    clamp(
      1rem,
      1.8vw,
      1.25rem
    );

  font-weight: 600;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 46px;

  padding: 12px 20px;

  border-radius: 999px;

  background: var(--accent);

  color: #0a0d0f;

  text-decoration: none;

  font-weight: 950;

  letter-spacing: .02em;

  border: 1px solid var(--accent);

  cursor: pointer;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 30px
    rgba(214,255,23,.15);

  background: #e2ff45;
}

.btn:active {
  transform: translateY(0);
}

.btn.ghost {
  background: rgba(255,255,255,.025);

  border-color: var(--line);

  color: #fff;
}

.btn.ghost:hover {
  border-color: var(--line-strong);

  color: var(--accent);

  background: rgba(214,255,23,.05);
}


/* =========================================================
   SECTIONS
   ========================================================= */

section {
  padding: 84px 0;

  width: 100%;
  max-width: 100%;
}

.section-head {
  display: flex;

  justify-content: space-between;

  gap: 30px;

  align-items: end;

  margin-bottom: 32px;
}

.section-head h2,
.page-hero h1 {
  margin: 8px 0 0;

  font-size:
    clamp(
      2.25rem,
      5vw,
      4.6rem
    );

  line-height: .95;

  letter-spacing: -.065em;

  font-weight: 950;
}

.section-head p {
  color: var(--muted);

  max-width: 590px;

  margin: 0;

  font-weight: 600;
}


/* =========================================================
   GENERAL GRIDS
   ========================================================= */

.grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0,1fr));

  gap: 20px;

  min-width: 0;
}

.card {
  min-width: 0;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.018)
    );

  border: 1px solid var(--line);

  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: var(--shadow);
}

.card img {
  width: 100%;

  max-width: 100%;

  aspect-ratio: 1.1;

  object-fit: cover;
}

.card-body {
  padding: 22px;

  min-width: 0;
}

.card h3 {
  margin: 0 0 5px;

  font-size: 1.25rem;

  font-weight: 950;
}

.card p {
  margin: 0;

  color: var(--muted);

  font-weight: 600;
}


/* =========================================================
   RIDERS
   ========================================================= */

.rider-grid {
  display: grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  gap: 18px;

  min-width: 0;
}

.rider-card {
  position: relative;

  min-width: 0;

  min-height: 370px;

  border-radius: 22px;

  overflow: hidden;

  border: 1px solid var(--line);

  text-decoration: none;

  background: #10151a;

  isolation: isolate;

  transition:
    transform .2s ease,
    border-color .2s ease;
}

.rider-card:hover {
  transform: translateY(-4px);

  border-color:
    var(--line-strong);
}

.rider-card img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  max-width: none;

  object-fit: cover;

  object-position: center top;
}

.rider-card::after {
  content: "";

  position: absolute;

  inset: 25% 0 0;

  background:
    linear-gradient(
      transparent,
      rgba(3,5,7,.96)
    );

  z-index: 0;
}

.rider-card span {
  position: absolute;

  z-index: 1;

  bottom: 20px;

  left: 20px;
  right: 15px;

  font-size: 1.18rem;

  font-weight: 950;
}

.rider-card small {
  display: block;

  margin-bottom: 3px;

  color: var(--accent);

  font-size: .68rem;

  letter-spacing: .12em;

  text-transform: uppercase;

  font-weight: 900;
}


/* =========================================================
   STATS
   ========================================================= */

.stats {
  display: grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap: 16px;
}

.stat {
  position: relative;

  min-width: 0;

  overflow: hidden;

  padding: 27px;

  border:
    1px solid var(--line);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      #121a21,
      #0d1319
    );
}

.stat::before {
  content: "";

  position: absolute;

  inset: 0 auto 0 0;

  width: 3px;

  background: var(--accent);
}

.stat b {
  display: block;

  font-size: 2.4rem;

  letter-spacing: -.06em;

  font-weight: 950;
}

.stat span {
  color: var(--muted);

  font-weight: 600;
}


/* =========================================================
   PAGE HERO
   ========================================================= */

.page-hero {
  padding: 90px 0 52px;

  border-bottom: 1px solid var(--line);

  background:
    linear-gradient(
      135deg,
      rgba(214,255,23,.07),
      transparent 45%
    );
}

.page-hero p {
  max-width: 750px;

  color: var(--muted);

  font-weight: 600;
}


/* =========================================================
   CONTENT
   ========================================================= */

.content-wrap {
  padding: 54px 0 90px;

  min-width: 0;
}


/* =========================================================
   LEGACY CONTENT
   ========================================================= */

.legacy {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  overflow: hidden;

  padding:
    clamp(
      20px,
      4vw,
      50px
    );

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.015)
    );

  border: 1px solid var(--line);

  border-radius: var(--radius);

  box-shadow: var(--shadow);

  color: #f5f7f9;

  font-weight: 600;
}

.legacy table {
  width: 100% !important;

  max-width: 100% !important;

  border-collapse: collapse !important;

  background: transparent !important;

  color: inherit !important;

  table-layout: fixed;
}

.legacy td,
.legacy th {
  max-width: 100% !important;

  color: inherit !important;

  border-color:
    var(--line) !important;

  overflow-wrap: anywhere;
}

.legacy a {
  color: var(--accent) !important;

  font-weight: 900;
}

.legacy p {
  max-width: 100%;

  overflow-wrap: anywhere;

  font-weight: 600;
}

.legacy pre {
  max-width: 100% !important;

  white-space: pre-wrap !important;

  overflow-wrap: anywhere !important;

  word-break: break-word !important;

  font-family:
    Verdana,
    Arial,
    sans-serif !important;

  font-size: 1rem !important;

  line-height: 1.65 !important;

  color: #f5f7f9 !important;

  background: transparent !important;

  margin: 0 !important;
}

.legacy center {
  display: block;

  max-width: 100%;
}

.legacy font {
  font-family: inherit !important;

  color: inherit !important;

  font-weight: inherit !important;
}


/* =========================================================
   LEGACY IMAGES
   ========================================================= */

.legacy img {
  display: inline-block;

  max-width: 100% !important;

  height: auto !important;

  object-fit: contain;

  vertical-align: middle;
}

.legacy img[width],
.legacy img[height] {
  max-width: 100% !important;

  height: auto !important;
}


/* Kleine historische Logos */

.legacy img[src*="tigra"],
.legacy img[src*="moebel"],
.legacy img[src*="willora"] {
  width: auto !important;

  max-width: 105px !important;

  max-height: 95px !important;

  height: auto !important;

  margin: 4px;
}


/* Eric-Bilder */

.legacy img[src*="eg2"],
.legacy img[src*="eg22"] {
  width: auto !important;

  max-width:
    min(220px,45vw) !important;

  max-height: 230px !important;

  height: auto !important;

  margin: 6px;
}


/* WS Cycling Logo */

.legacy img[src*="WScycling"] {
  width: auto !important;

  max-width: 130px !important;

  max-height: 145px !important;

  height: auto !important;
}


/* Social Icons */

.legacy img[src*="facebook"],
.legacy img[src*="instagram"],
.legacy img[src*="youtube"] {
  width: 58px !important;

  height: 58px !important;

  max-width: 58px !important;

  object-fit: contain;

  margin: 0 auto;
}


/* =========================================================
   SPONSORS
   ========================================================= */

.sponsor-grid {
  display: grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  gap: 16px;
}

.sponsor {
  min-height: 130px;

  padding: 20px;

  border: 1px solid var(--line);

  border-radius: 18px;

  background: #10161c;

  display: grid;

  place-items: center;
}

.sponsor img {
  max-width: 100%;

  max-height: 72px;

  object-fit: contain;
}


/* =========================================================
   FACEBOOK
   ========================================================= */

.facebook-box {
  min-height: 520px;

  display: grid;

  place-items: center;

  padding: 12px;

  overflow: hidden;

  background: #10161c;

  border: 1px solid var(--line);

  border-radius: 24px;
}

.facebook-box iframe {
  width: min(500px,100%);

  height: 500px;

  border: 0;

  background: #fff;
}


/* =========================================================
   RIDER PROFILE
   ========================================================= */

.profile-grid {
  display: grid;

  grid-template-columns:
    minmax(280px,.75fr)
    minmax(0,1.25fr);

  gap: 24px;

  align-items: start;

  width: 100%;
  max-width: 100%;

  min-width: 0;
}

.profile-grid > * {
  min-width: 0;

  max-width: 100%;
}


/* FOTO */

.profile-photo {
  width: 100%;

  max-width: 100%;

  min-width: 0;

  padding: 12px;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.015)
    );

  border: 1px solid var(--line);

  border-radius: var(--radius);
}

.profile-photo img {
  display: block;

  width: 100% !important;

  max-width: 100% !important;

  height: auto !important;

  object-fit: contain;

  border-radius: 16px;
}


/* PROFILBOX */

.profile-card {
  width: 100%;

  max-width: 100%;

  min-width: 0;

  min-height: 100%;

  overflow: hidden;

  word-wrap: break-word;

  overflow-wrap: anywhere;
}

.profile-card * {
  max-width: 100%;

  overflow-wrap: anywhere;
}


/* =========================================================
   SHOP
   ========================================================= */

.shop-layout {
  display: grid;

  grid-template-columns:
    minmax(0,1fr)
    minmax(280px,340px);

  gap: 24px;

  align-items: start;

  min-width: 0;
}

.shop-products {
  display: grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap: 18px;

  min-width: 0;
}

.shop-product {
  position: relative;

  min-width: 0;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      #131b22,
      #0d1318
    );

  border: 1px solid var(--line);

  border-radius: 22px;
}

.shop-product-media {
  aspect-ratio: 1 / 1;

  display: grid;

  place-items: center;

  padding: 22px;

  background: #0a0f13;
}

.shop-product-media img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.shop-product-body {
  padding: 20px;

  min-width: 0;
}

.shop-product h2 {
  margin: 0 0 7px;

  font-size: 1.2rem;

  line-height: 1.05;

  font-weight: 950;
}

.shop-desc {
  min-height: 45px;

  margin: 0;

  color: var(--muted);

  font-size: .9rem;
}

.shop-price {
  margin: 13px 0;

  color: var(--accent);

  font-size: 1.1rem;

  font-weight: 950;
}

.shop-controls {
  display: grid;

  grid-template-columns:
    minmax(0,1fr)
    92px;

  gap: 10px;
}

.shop-controls select,
.shop-controls input,
.order-form input,
.order-form textarea {
  width: 100%;

  min-width: 0;

  border: 1px solid var(--line);

  background: #080d11;

  color: #fff;

  border-radius: 10px;

  padding: 10px;
}

.cart {
  position: sticky;

  top: 104px;

  min-width: 0;

  padding: 22px;

  background:
    linear-gradient(
      145deg,
      #151e25,
      #0d1318
    );

  border:
    1px solid var(--line-strong);

  border-radius: 22px;

  box-shadow: var(--shadow);
}

.cart-list {
  display: grid;

  gap: 9px;

  margin: 15px 0;
}

.cart-line {
  display: flex;

  justify-content: space-between;

  gap: 12px;

  font-size: .86rem;

  padding-bottom: 9px;

  border-bottom:
    1px solid var(--line);
}

.cart-total {
  display: flex;

  justify-content: space-between;

  padding: 14px 0;

  border-top:
    1px solid var(--line);

  font-size: 1.2rem;

  font-weight: 950;
}

.order-form {
  display: grid;

  gap: 11px;

  margin-top: 18px;
}

.order-form textarea {
  min-height: 85px;

  resize: vertical;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  border-top:
    1px solid var(--line);

  padding: 44px 0;

  color: var(--muted);

  font-size: .9rem;

  background: #06080a;
}

.footer-row {
  display: flex;

  justify-content: space-between;

  gap: 25px;

  flex-wrap: wrap;

  min-width: 0;
}

.footer b {
  color: #fff;

  font-weight: 950;
}

.footer a {
  color: #fff;

  text-decoration: none;

  font-weight: 800;
}

.footer a:hover {
  color: var(--accent);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

  .navlinks {
    gap: 11px;
  }

  .brand span {
    display: none;
  }

  .rider-grid {
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .cart {
    position: static;
  }
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 850px) {

  .container {
    width: calc(100% - 32px);

    max-width: 100%;
  }

  .nav {
    min-height: 72px;
  }

  .navlinks {
    display: none;

    position: absolute;

    left: 16px;
    right: 16px;

    top: 70px;

    margin: 0;

    padding: 12px;

    flex-direction: column;

    align-items: stretch;

    gap: 3px;

    background:
      rgba(10,14,18,.98);

    border:
      1px solid var(--line);

    border-radius: 16px;

    box-shadow: var(--shadow);
  }

  .navlinks.open {
    display: flex;
  }

  .navlinks a {
    padding: 12px;

    white-space: normal;
  }

  .menu-btn {
    display: block;

    margin-left: auto;
  }

  .grid,
  .shop-products {
    grid-template-columns: 1fr;
  }

  .rider-grid {
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .sponsor-grid {
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .section-head {
    flex-direction: column;

    align-items: flex-start;
  }


  /* =======================================================
     RIDER PROFILE
     ======================================================= */

  .profile-grid {
    display: grid !important;

    grid-template-columns: 1fr !important;

    grid-template-rows:
      auto auto !important;

    width: 100% !important;

    max-width: 100% !important;

    gap: 18px !important;

    align-items: stretch !important;
  }

  .profile-grid > .profile-photo,
  .profile-grid > .profile-card {
    grid-column: 1 / -1 !important;

    width: 100% !important;

    max-width: 100% !important;

    min-width: 0 !important;
  }

  .profile-photo {
    order: 1;

    width: 100% !important;

    max-width: 100% !important;
  }

  .profile-card {
    order: 2;

    width: 100% !important;

    max-width: 100% !important;

    min-width: 0 !important;

    overflow: hidden !important;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 560px) {

  .container {
    width: calc(100% - 24px);

    max-width: 100%;
  }

  .brand img {
    height: 45px;

    max-width: 145px;
  }

  .hero {
    min-height: 74vh;
  }

  .hero-inner {
    padding: 80px 0 70px;
  }

  .hero h1 {
    font-size:
      clamp(
        3rem,
        16vw,
        5.5rem
      );
  }

  section {
    padding: 60px 0;
  }

  .page-hero {
    padding: 60px 0 38px;
  }

  .content-wrap {
    padding: 32px 0 60px;
  }

  .rider-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .sponsor-grid {
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .legacy {
    padding: 14px;

    border-radius: 16px;
  }


  /* Historische Logos */

  .legacy img[src*="tigra"],
  .legacy img[src*="moebel"],
  .legacy img[src*="willora"] {
    max-width: 72px !important;

    max-height: 70px !important;

    margin: 2px;
  }


  /* Eric Bilder */

  .legacy img[src*="eg2"],
  .legacy img[src*="eg22"] {
    display: block;

    width: auto !important;

    max-width: 150px !important;

    max-height: 165px !important;

    margin: 8px auto;
  }


  /* WS Logo */

  .legacy img[src*="WScycling"] {
    max-width: 105px !important;

    max-height: 115px !important;

    margin-left: auto;

    margin-right: auto;
  }


  /* Social Icons */

  .legacy img[src*="facebook"],
  .legacy img[src*="instagram"],
  .legacy img[src*="youtube"] {
    width: 45px !important;

    height: 45px !important;

    max-width: 45px !important;
  }


  /* Rider */

  .profile-grid {
    display: flex !important;

    flex-direction: column !important;

    width: 100% !important;

    max-width: 100% !important;

    gap: 16px !important;
  }

  .profile-grid > .profile-photo,
  .profile-grid > .profile-card {
    width: 100% !important;

    max-width: 100% !important;

    min-width: 0 !important;

    flex: 0 0 auto !important;
  }

  .profile-photo {
    padding: 8px !important;

    order: 1 !important;
  }

  .profile-photo img {
    width: 100% !important;

    max-width: 100% !important;

    height: auto !important;
  }

  .profile-card {
    order: 2 !important;

    padding: 18px !important;

    width: 100% !important;

    max-width: 100% !important;

    min-width: 0 !important;
  }

  .profile-card table {
    width: 100% !important;

    max-width: 100% !important;

    table-layout: fixed !important;
  }

  .shop-controls {
    grid-template-columns:
      minmax(0,1fr)
      78px;
  }

  .footer-row {
    flex-direction: column;

    gap: 18px;
  }


  /* Mobile Buttons */

  .btn {
    min-height: 44px;

    padding:
      11px 17px;

    max-width: 100%;
  }
}


/* =========================================================
   EXTREME SMALL SCREENS
   ========================================================= */

@media (max-width: 380px) {

  .container {
    width: calc(100% - 20px);
  }

  .brand img {
    max-width: 125px;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .profile-card {
    padding: 14px !important;
  }

  .sponsor-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   HARD MOBILE SAFETY
   ========================================================= */

@media (max-width: 850px) {

  html,
  body,
  main,
  section,
  .container,
  .content-wrap,
  .legacy,
  .profile-grid,
  .profile-photo,
  .profile-card {
    max-width: 100% !important;
  }

  table,
  pre,
  td,
  th,
  div {
    max-width: 100%;
  }

  pre {
    white-space: pre-wrap !important;

    overflow-x: hidden !important;
  }

  .legacy {
    overflow-x: hidden !important;
  }

  .profile-card {
    overflow-x: hidden !important;
  }
}


/* =========================================================
   MOBILE RIDER PROFILE
   ========================================================= */

@media (max-width: 700px) {

  html,
  body {
    width: 100%;

    max-width: 100%;

    overflow-x: hidden !important;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;

    max-width: 100%;
  }

  .container {
    width:
      calc(100% - 28px) !important;

    max-width: 100% !important;

    margin-left: auto !important;

    margin-right: auto !important;
  }


  /* Rider Profile */

  .profile-grid {
    display: flex !important;

    flex-direction: column !important;

    width: 100% !important;

    max-width: 100% !important;

    gap: 18px !important;

    align-items: stretch !important;
  }


  /* Foto */

  .profile-photo {
    order: 1 !important;

    width: 100% !important;

    max-width: 100% !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 10px !important;
  }

  .profile-photo img {
    display: block !important;

    width: auto !important;

    max-width:
      min(100%, 300px) !important;

    height: auto !important;

    max-height: 420px !important;

    margin: 0 auto !important;

    object-fit: contain !important;

    border-radius: 14px !important;
  }


  /* Profilbox */

  .profile-card {
    order: 2 !important;

    display: block !important;

    width: 100% !important;

    max-width: 100% !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 20px !important;

    overflow: hidden !important;
  }

  .profile-card * {
    max-width: 100% !important;
  }

  .profile-card h2,
  .profile-card h3,
  .profile-card p {
    max-width: 100% !important;

    overflow-wrap: anywhere !important;

    word-break: normal !important;
  }


  /* Lange URLs */

  .profile-card a {
    overflow-wrap: anywhere !important;

    word-break: break-word !important;
  }


  /* Falls Profile Grid nicht verwendet wird */

  .content-wrap .profile-photo + .profile-card {
    display: block !important;

    width: 100% !important;

    margin-top: 18px !important;
  }


  /* Tabellen */

  .profile-grid table,
  .profile-card table,
  .legacy table {
    width: 100% !important;

    max-width: 100% !important;

    table-layout: fixed !important;
  }

  .profile-grid td,
  .profile-card td,
  .legacy td {
    max-width: 100% !important;

    overflow-wrap: anywhere !important;
  }


  /* Bilder */

  .profile-grid img,
  .profile-card img {
    max-width: 100% !important;

    height: auto !important;
  }


  /* Text */

  .profile-card {
    font-size: .95rem !important;

    line-height: 1.55 !important;
  }

  .profile-card h2 {
    font-size: 1.6rem !important;

    line-height: 1.1 !important;

    margin-top: 0 !important;
  }

  .profile-card h3 {
    font-size: 1.05rem !important;
  }


  /* Zurück-Link / Buttons */

  .profile-card .btn,
  .profile-grid .btn {
    display: inline-flex !important;

    max-width: 100% !important;

    white-space: normal !important;

    text-align: center !important;
  }
}


/* =========================================================
   SEHR KLEINE HANDYS
   ========================================================= */

@media (max-width: 420px) {

  .container {
    width:
      calc(100% - 20px) !important;
  }

  .profile-grid {
    gap: 14px !important;
  }

  .profile-photo {
    padding: 8px !important;
  }

  .profile-photo img {
    max-width: 250px !important;

    max-height: 360px !important;
  }

  .profile-card {
    padding: 16px !important;

    border-radius: 16px !important;
  }

  .profile-card h2 {
    font-size: 1.4rem !important;
  }
}/* ==========================================================
   KLICKSPERRE FÜR DIE 12 EINBETTETEN 2026-FOTOS
   ========================================================== */
a[href*="data:image"], 
a[href*="criterium"], 
a[href*="stayer"], 
a[href*="track"],
.gallery-grid a, 
.gallery-grid-container a {
    pointer-events: none !important; /* Blockiert jeden Klick und Touch im Browser vollständig */
    cursor: default !important;       /* Zeigt den normalen Mauszeiger anstelle der Hand */
}
img[src*="bike"] {
    width: 100% !important;
    max-width: 900px !important;
    height: auto !important;
}

