:root {
  --bg: #0f0f0f;
  --surface: #191919;
  --text: #f4f4f4;
  --muted: #bdbdbd;
  --accent: #b61f24;
  --max: 1180px;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-padding-top: 6rem; }
main [id] { scroll-margin-top: 6rem; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .7rem 1rem;
  border: 2px solid var(--accent);
  border-radius: .5rem;
  background: #111;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }
.skip-target { outline: none; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(15,15,15,.96); border-bottom: 1px solid #2b2b2b; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; line-height: 1.05; }
.brand-logo { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; object-fit: cover; object-position: center; display: block; }
.brand-copy { display: grid; }
.brand strong { font-size: 1.35rem; letter-spacing: .08em; }
.brand span { color: var(--muted); font-size: .75rem; }
.main-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.main-nav a { text-decoration: none; font-weight: 700; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent); }
.main-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: .35em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: .65rem;
  border: 1px solid #444;
  border-radius: .55rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.nav-toggle-icon {
  position: relative;
  display: block;
  width: 1.45rem;
  height: 1rem;
}
.nav-toggle-icon span {
  position: absolute;
  left: 0;
  top: 50%;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform .22s ease, opacity .16s ease;
}
.nav-toggle-icon span:nth-child(1) { transform: translateY(calc(-50% - .42rem)); }
.nav-toggle-icon span:nth-child(2) { transform: translateY(-50%); }
.nav-toggle-icon span:nth-child(3) { transform: translateY(calc(-50% + .42rem)); }
.nav-toggle.is-open {
  color: var(--accent);
  border-color: rgba(182,31,36,.7);
  background: rgba(182,31,36,.08);
}
.nav-toggle.is-open .nav-toggle-icon span:nth-child(1) { transform: translateY(-50%) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-icon span:nth-child(2) { opacity: 0; transform: translateY(-50%) scaleX(.2); }
.nav-toggle.is-open .nav-toggle-icon span:nth-child(3) { transform: translateY(-50%) rotate(-45deg); }
.hero { padding: 7rem 0 4rem; text-align: center; }
.hero h1 { margin: .2rem 0; font-size: clamp(3rem, 9vw, 7rem); letter-spacing: .06em; }
.hero-title { line-height: .98; text-wrap: balance; }
.hero-title span { display: block; }
.hero-title span + span { margin-top: .08em; }
.hero-eyebrow, .lead { color: var(--muted); }

.home-hero-image {
  display: block;
  width: min(100%, 980px);
  max-height: 520px;
  object-fit: cover;
  margin: 2rem auto 0;
  border-radius: var(--radius);
}
.section { padding: 2.5rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid #2b2b2b; border-radius: var(--radius); padding: 1.5rem; }

/* Subtle Ronin-red interaction accent for cards and trainer panels. */
.card,
.trainer-card {
  position: relative;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card::after,
.trainer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transform: scaleX(.28);
  transform-origin: center;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(182,31,36,.35) 22%, var(--accent) 42% 58%, rgba(182,31,36,.35) 78%, transparent 88%) top / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 0 20%, rgba(182,31,36,.28) 32%, var(--accent) 48% 52%, rgba(182,31,36,.28) 68%, transparent 80%) bottom / 100% 2px no-repeat;
  transition: opacity .2s ease, transform .34s cubic-bezier(.2,.75,.25,1);
}
.card:focus-within,
.trainer-card:focus-within {
  border-color: rgba(182,31,36,.55);
  box-shadow: 0 10px 28px rgba(0,0,0,.26), 0 0 0 1px rgba(182,31,36,.08);
}
.card:focus-within::after,
.trainer-card:focus-within::after {
  opacity: 1;
  transform: scaleX(1);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover,
  .trainer-card:hover {
    transform: translateY(-2px);
    border-color: rgba(182,31,36,.55);
    box-shadow: 0 12px 32px rgba(0,0,0,.28), 0 0 0 1px rgba(182,31,36,.08);
  }
  .card:hover::after,
  .trainer-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  .hero > .lead { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; padding: 1rem; background: #111; }
  .main-nav.is-open { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Compact footer: primary information first, legal links always last. */
.site-footer { margin-top: 4rem; padding: 1.65rem 0 1.1rem; border-top: 1px solid #2b2b2b; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1.6rem; align-items: start; }
.footer-block { display: grid; align-content: start; gap: .3rem; min-width: 0; }
.footer-block strong, .footer-legal strong { color: var(--text); }
.footer-grid a { overflow-wrap: anywhere; }
.footer-grid a:hover, .footer-grid a:focus-visible { color: var(--accent); }
.footer-social-links { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.footer-social .social-link { display: inline-flex; align-items: center; gap: .5rem; width: fit-content; min-height: 2.2rem; text-decoration: none; }
.footer-social .social-icon { display: block; width: 26px; height: 26px; object-fit: contain; flex: 0 0 26px; }
.footer-legal { grid-column: 1 / -1; display: grid; gap: .35rem; padding-top: .75rem; border-top: 1px solid #272727; font-size: .88rem; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: .1rem .95rem; }
.footer-legal-links a { display: inline-flex; align-items: center; min-height: 2rem; text-decoration-thickness: 1px; text-underline-offset: .2em; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-social { grid-column: 1 / -1; }
}


/* Responsive refinement: safe widths, mobile menu motion and compact content rhythm. */
html, body { max-width: 100%; overflow-x: clip; }
img, video, iframe, svg { max-width: 100%; }
h1, h2, h3, p, li, dd, dt, address, a { overflow-wrap: break-word; }
.site-header { transition: transform .28s ease, box-shadow .22s ease; will-change: transform; }
.site-header.is-scrolled-away { transform: translateY(calc(-100% - 2px)); }
.home-accent-section h2,
.home-accent-card h2,
.site-accent-card h2,
.site-accent-section h2 { position: relative; padding-bottom: .55rem; }
.home-accent-section h2::after,
.home-accent-card h2::after,
.site-accent-card h2::after,
.site-accent-section h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 3.25rem; height: 3px;
  border-radius: 99px; background: var(--accent);
}
.site-accent-card { border-left: 3px solid rgba(182,31,36,.58); }

/* Desktop home accents: carry the Ronin red through the page without changing the established design. */
.home-content-section {
  position: relative;
  padding: 1.6rem 1.75rem;
  border-left: 3px solid rgba(182,31,36,.58);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(182,31,36,.055), rgba(182,31,36,0) 68%);
}
.home-accent-card { border-top: 2px solid rgba(182,31,36,.42); }

@media (max-width: 760px) {
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  .header-inner { min-height: 68px; gap: .75rem; }
  .brand-logo { width: 44px; height: 44px; flex-basis: 44px; }
  .brand strong { font-size: 1.1rem; }
  .brand span { font-size: .68rem; }
  .hero { padding: 4.4rem 0 2.25rem; }
  .hero h1 { font-size: clamp(2.35rem, 13vw, 4.6rem); line-height: .98; overflow-wrap: normal; }
  .hero-title span { overflow-wrap: normal; word-break: normal; }
  .training-hero h1 { font-size: clamp(2rem, 10vw, 3.35rem); line-height: 1.02; }
  .hero-eyebrow { display: none; }
  .lead { font-size: .98rem; line-height: 1.55; }
  .section { padding: 1.7rem 0; }
  .card { padding: 1.15rem; border-radius: 12px; }
  .grid-2 { gap: .9rem; }

  .main-nav {
    display: flex; top: 68px; padding: .65rem; gap: .2rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-.75rem) scale(.985); transform-origin: top center;
    transition: opacity .2s ease, transform .24s ease, visibility 0s linear .24s;
    border-bottom: 1px solid #2b2b2b; box-shadow: 0 16px 36px rgba(0,0,0,.35);
  }
  .main-nav.is-open {
    display: flex; opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0) scale(1); transition-delay: 0s;
  }
  .main-nav a {
    padding: .72rem .8rem; border-radius: .5rem;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
  }
  .main-nav a:active { transform: scale(.985); background: rgba(182,31,36,.14); }

  .home-content-section {
    position: relative; padding: 1.25rem 1rem; margin-block: .7rem;
    border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0;
    background: linear-gradient(90deg, rgba(182,31,36,.09), rgba(182,31,36,0) 72%);
  }
  .home-content-section p { margin-bottom: .8rem; }
  .home-accent-card { border-left: 3px solid rgba(182,31,36,.8); }
  .site-accent-card { border-left: 3px solid rgba(182,31,36,.8); }
  .site-accent-section {
    position: relative; padding: 1.25rem 1rem; margin-block: .7rem;
    border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0;
    background: linear-gradient(90deg, rgba(182,31,36,.07), rgba(182,31,36,0) 72%);
  }
  .home-hero-image { margin-top: 1.25rem; border-radius: 10px; }
  .site-footer { margin-top: 2.5rem; padding: 1.25rem 0 .85rem; }
  .footer-grid { grid-template-columns: 1fr; gap: .85rem; }
  .footer-social { grid-column: auto; }
  .footer-block { gap: .2rem; }
  .footer-social-links { gap: .2rem .8rem; }
  .footer-legal { padding-top: .65rem; font-size: .82rem; }
  .footer-legal-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .05rem .7rem; }
  .footer-legal-links a { min-height: 2.15rem; }


  /* Fabian: Blocksatz für längere Lesetexte auf Mobilgeräten. */
  .mobile-prose p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  /* Progressive mobile "Weiter lesen" component; without JS, full text stays visible. */
  .js .mobile-read-more.is-collapsible {
    position: relative;
    max-height: 11.5rem;
    overflow: hidden;
  }
  .js .mobile-read-more.is-collapsible:not(.is-expanded)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3.5rem;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(15,15,15,0), rgba(15,15,15,.96));
  }
  .js .home-content-section .mobile-read-more.is-collapsible:not(.is-expanded)::after {
    background: linear-gradient(to bottom, rgba(25,15,16,0), rgba(25,15,16,.98));
  }
  .js .mobile-read-more.is-collapsible.is-expanded { max-height: none; }
  .mobile-read-more-toggle {
    margin-top: .7rem;
    padding: .58rem .85rem;
    border: 1px solid #3a3a3a;
    border-radius: .55rem;
    background: #161616;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .mobile-read-more-toggle:hover,
  .mobile-read-more-toggle:focus-visible {
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(182,31,36,.18);
  }

  .is-reveal-pending { opacity: 0; transform: translateY(16px); }
  .is-reveal-pending.is-revealed {
    opacity: 1; transform: translateY(0);
    transition: opacity .42s ease, transform .46s cubic-bezier(.2,.75,.25,1);
  }
}
@media (max-width: 380px) {
  .container { width: min(calc(100% - .9rem), var(--max)); }
  .card { padding: 1rem; }
  .header-inner { gap: .45rem; }
  .nav-toggle { width: 2.8rem; height: 2.8rem; padding: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .main-nav, .main-nav a, .nav-toggle, .nav-toggle-icon span,
  .is-reveal-pending, .is-reveal-pending.is-revealed {
    transition: none !important; transform: none !important;
  }
  .is-reveal-pending { opacity: 1 !important; }
}


/* JavaScript controls the mobile menu; hidden toggle stays hidden until navigation.js initializes. */
.nav-toggle[hidden] { display: none !important; }
/* Iteration 125: Home offer flow, restrained red accents and reusable CTA links. */
.home-offer-section {
  padding-inline: 1.75rem;
}
.home-offer-section > h2,
.home-trial-section > h2 {
  margin-bottom: 1.15rem;
}
.home-offer-grid .card h3 {
  position: relative;
  padding-bottom: .5rem;
}
.home-offer-grid .card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.4rem;
  height: 2px;
  border-radius: 99px;
  background: rgba(182,31,36,.86);
}
.home-trial-section {
  padding-inline: 1.75rem;
}
.home-trial-card {
  background: linear-gradient(135deg, rgba(182,31,36,.075), rgba(20,20,20,0) 46%), var(--surface);
}
.home-accent-word { color: var(--accent); font-weight: 800; }
.home-trial-more { margin-top: 1.25rem; }
.section-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .65rem 1rem;
  border: 1px solid rgba(182,31,36,.72);
  border-radius: .65rem;
  background: rgba(182,31,36,.08);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.section-cta:hover,
.section-cta:focus-visible {
  border-color: var(--accent);
  background: rgba(182,31,36,.16);
}
@media (hover: hover) and (pointer: fine) {
  .section-cta:hover { transform: translateY(-1px); }
}
@media (max-width: 760px) {
  .home-offer-section,
  .home-trial-section { padding-inline: 1rem; }
  .section-cta { width: 100%; }
}


/* Controlled admin rich-text sizes: fixed allowlist, no arbitrary inline sizing. */
.rich-text-size-small { font-size: .86em; }
.rich-text-size-large { font-size: 1.16em; }
.rich-text-size-xlarge { font-size: 1.34em; }
.rich-text-color-ronin-red { color: var(--accent); }
.rich-text-color-light { color: var(--text); }
.rich-text-color-muted { color: var(--muted); }
