@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/montserrat-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/montserrat-latin-700.woff2') format('woff2');
}

:root {
  --text: #111;
  --muted: #555;
  --line: #ddd;
  --bg: #fff;
  --box: #f4f4f4;
  --black: #130504;
  --yellow: #f5d000;
  --bar-bg: #fff;
  --bar-fg: var(--black);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.25; hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: 1.75rem; }
h2 { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
h3 { margin-top: 2rem; }

/* Leiste oben: weiß, gelber Stern fliegt von links herein */
.bar {
  container-type: inline-size; /* 100cqw = Breite der Leiste ohne Scrollbalken */
  background: var(--bar-bg);
  border-bottom: 1px solid var(--line);
  color: var(--bar-fg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
}
/* Der Stern sitzt direkt links vom Schriftzug, der Schriftzug beginnt bündig mit dem Text darunter
   (Textspalte: max. 46rem, mittig, 1rem Innenabstand). Die Speedlines füllen den Rest bis zum linken Rand. */
.star-box {
  position: relative;
  flex-shrink: 0;
  width: max(9.5rem, calc((100cqw - 46rem) / 2 - 0.25rem));
  height: 120px;
  overflow: hidden;
}
.star-box .star {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-width: none;
}

/* RCC-Schriftzug (CSS unverändert übernommen) */
.rcc {
  font-family: 'Montserrat', sans-serif;
  font-kerning: normal;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.rcc .logo {
  font-size: 102px;
  font-weight: 700;
  margin-left: -0.072em;
}
.rcc .k-rc { letter-spacing: -0.025em; }
.rcc .k-cc { letter-spacing: -0.040em; }
.rcc .tagline {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.035em;
  margin-top: -0.10em;
  margin-right: -0.035em;
}

/* Menüpunkte mit Hintergrund, damit sie auf den Streifen lesbar bleiben */
nav {
  padding-right: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}
nav a {
  background: var(--bar-bg);
  padding: 0.2rem 0.5rem;
  text-decoration: none;
}
nav a:hover, nav a:focus-visible { background: var(--bar-fg); color: var(--bar-bg); }

/* Startansicht */
.start { padding-top: 1.5rem; }
.start .lead { font-size: 1.6rem; margin: 0.5rem 0; }

dl.facts { margin: 1.5rem 0; }
dl.facts dt { font-weight: 700; }
dl.facts dd { margin: 0 0 0.75rem; }

.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--bg); color: var(--text); }
.button.secondary { background: var(--bg); color: var(--text); }
.button.secondary:hover { background: var(--text); color: var(--bg); }

/* Eingebettete Inhalte (Zwei-Klick-Lösung) */
.embed {
  background: var(--box);
  border: 1px solid var(--line);
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.embed iframe { display: block; max-width: 100%; border: 0; }

ul.plain { padding-left: 1.2rem; }

footer {
  margin-top: 4rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
footer a { margin-right: 1rem; }

@media (max-width: 30rem) {
  body { font-size: 0.95rem; line-height: 1.5; }
  /* Stern und Schriftzug oben, Menü als eigene Zeile darunter */
  .bar { padding: 0.5rem 0; }
  .brand { gap: 0.6rem; }
  .star-box { width: 6rem; height: 64px; }
  .rcc .logo { font-size: 60px; }
  .rcc .tagline { font-size: 9.4px; }
  nav { flex-basis: 100%; justify-content: space-between; padding: 0 1rem; font-size: 0.85rem; }
  nav a { padding: 0.15rem 0.4rem; }
  nav a:first-child { margin-left: -0.4rem; }
  nav a:last-child { margin-right: -0.4rem; }
  .start .lead { font-size: 1.3rem; }
  dl.facts { margin: 1rem 0; }
  dl.facts dd { margin-bottom: 0.5rem; }
  .button { padding: 0.6rem 1rem; }
}
