/* sport-stats.de — static rebuild of the WordPress (Astra + Elementor) site, same look (2026-11-07).
   Colours and sizes from the old Elementor CSS: gradient #FF7A5C → #FFB48F, headings #FF7A5C, text #333,
   highlights #ff0000, footer #f5a567. Roboto is served from this site (no Google servers). */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/roboto.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/roboto-italic.woff2") format("woff2");
}

:root {
  --orange: #FF7A5C;
  --peach: #FFB48F;
  --gradient: linear-gradient(90deg, #FF7A5C 0%, #FFB48F 100%);
  --text: #333333;
  --heading-grey: #515151;
  --red: #ff0000;
  --footer: #f5a567;
  --grey-card: #f4f4f4;
  --shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  --system: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 400 15px/1.65 "Roboto", var(--system); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--footer); text-decoration: none; }
a:hover { text-decoration: underline; }
.hl { color: var(--red); }

/* ---------- Header: the site name ---------- */

.site-header { padding: 14px 36px 0; }
.site-title { font: 400 38px/1.1 var(--system); color: #222; text-decoration: none; }
.site-title:hover { text-decoration: none; }
.home .site-header { background: var(--gradient); }

/* ---------- Main page ---------- */

.hero {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
}
.hero h1 { margin: 0 auto 1rem; max-width: 1140px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; line-height: 1.2; }
.hero .lede { margin: 0 0 1.8rem; font-weight: 700; font-size: 14px; }
.hero .note { margin: 1.4rem 0 0; font-size: 14px; color: #fff; }
.badge { display: inline-block; }
.badge img { width: 150px; height: auto; margin: 0 auto; }

.cards { max-width: 1204px; margin: 0 auto; padding: 0 0 1rem; }
.card {
  margin: 2rem;
  padding: 3rem 1.5rem;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.card.grey { background: var(--grey-card); }
.card h2 { margin: 0 0 1.2rem; color: var(--orange); font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.25; }
.card p { margin: 0 0 1rem; font-size: 14px; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; text-align: left; }
.features h3 { margin: 0 0 .9rem; font-size: 25px; font-weight: 500; line-height: 1.2; color: var(--text); }
.features p { margin: 0 0 1rem; }

/* Slideshow: one picture at a time, 5 s, arrows and dots (like the Elementor image carousel) */
.carousel { position: relative; max-width: 768px; margin: 2rem auto 0; }
.carousel-viewport { overflow: hidden; border-radius: 12px; }
.carousel-track { display: flex; margin: 0; padding: 0; list-style: none; transition: transform .5s ease; }
.carousel-track li { flex: 0 0 100%; }
.carousel-track img { border-radius: 12px; width: 100%; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; background: none; cursor: pointer;
  color: rgba(0, 0, 0, .25); font-size: 34px; line-height: 1;
}
.carousel-arrow:hover { color: rgba(0, 0, 0, .6); }
.carousel-arrow.prev { left: -120px; }
.carousel-arrow.next { right: -120px; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; padding-top: 14px; }
.carousel-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #000; opacity: .2; cursor: pointer; }
.carousel-dots button[aria-current="true"] { opacity: 1; }

.cta { background: var(--gradient); color: #fff; box-shadow: none; }
.cta h2 { color: #fff; }
.cta p { margin-bottom: 1.8rem; }

/* ---------- Text pages (imprint, privacy) ---------- */

.text-page { max-width: 1240px; margin: 0 auto; padding: 0 50px 1.5rem; font: 400 15px/1.75 var(--system); }
.text-page h1 { margin: 10px 0 20px; font: 400 clamp(34px, 4.4vw, 56px)/1.1 var(--system); color: var(--heading-grey); }
.text-page h2 { margin: 1.4em 0 .5em; font: 400 32px/1.15 var(--system); color: var(--heading-grey); }
.text-page h3 { margin: 1em 0 .6em; font: 400 28px/1.2 var(--system); color: var(--heading-grey); }
.text-page h4 { margin: 1em 0 .4em; font: 400 26px/1.2 var(--system); color: var(--heading-grey); }
.text-page p { margin: 0 0 .9em; }
.text-page.imprint h1 { font-size: 30px; line-height: 1.25; margin-bottom: 18px; }
.text-page em { color: #888; }
.text-page.privacy em { color: var(--text); }

/* ---------- Footer ---------- */

.site-footer { background: var(--footer); color: #fff; text-align: center; padding: 2.2rem 1rem 2.4rem; font: 400 14px/1.6 var(--system); }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 1.2rem; }
.site-footer nav a { color: rgba(255, 255, 255, .72); }
.site-footer nav a:hover { color: #fff; }
.site-footer p { margin: 0; }

/* ---------- Phone and tablet ---------- */

@media (max-width: 1060px) {
  .carousel-arrow.prev { left: -40px; }
  .carousel-arrow.next { right: -40px; }
}
@media (max-width: 767px) {
  .site-header { padding: 12px 20px 0; }
  .site-title { font-size: 28px; }
  .card { margin: 1.4rem 1rem; padding: 2.2rem 1.2rem; }
  .features { grid-template-columns: 1fr; }
  .features h3 { font-size: 22px; }
  .carousel { margin: 1.5rem -1.2rem 0; }
  .carousel-arrow { display: none; }
  .text-page { padding: 0 20px 1.5rem; }
  .text-page h2 { font-size: 26px; }
  .text-page h3 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { transition: none; }
}
