/* My Race Bibs – Website. Eigene Schriften vom eigenen Server, keine externen Dienste. */
@font-face {
  font-family: "RaceBibs Display";
  src: url("fonts/RaceBibsDisplay-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("fonts/WorkSans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #000;
  --text: #fff;
  --muted: #8a8a99;
  --line: rgba(255, 255, 255, 0.12);
  --red: #ff123e;
  --holo: linear-gradient(100deg, #f5d0ff, #c9e7ff 35%, #d8ffe9 60%, #fff3c4 85%);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Fußzeile immer am unteren Rand, auch auf großen Bildschirmen ohne Scrollen */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body > main:not(.hero), body > header { width: 100%; }
body > main { flex: 1; }

a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--muted); }
a:hover { text-decoration-color: var(--text); }

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Schriftzug wie in der App: klein „MY“, darunter groß „RACE BIBS“ */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  line-height: 1;
}
.wordmark .my {
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 15px;
  padding-left: 0.2em;
}
.wordmark .name {
  font-family: "RaceBibs Display", sans-serif;
  font-weight: 900;
  font-size: 46px;
  margin-top: 2px;
  white-space: nowrap;
}

/* Startseite */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0 24px;
}
.hero .icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 32px;
  box-shadow: 0 0 0 1px var(--line);
}
.hero .wordmark .name { font-size: clamp(40px, 11vw, 60px); }
.hero .wordmark .my { font-size: clamp(13px, 3vw, 17px); }
.hero .tagline {
  color: var(--muted);
  font-weight: 500;
  margin: 22px 0 0;
}
.hero .soon {
  margin: 36px 0 0;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 14px;
}
.hero .soon span {
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .contact { margin-top: 40px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.hero .contact a { color: var(--muted); }

/* Rechtstexte */
.page-head { padding-top: 28px; }
.logo { display: inline-block; line-height: 0; }
.logo svg { display: block; }
h1 {
  font-family: "RaceBibs Display", sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1.15;
  margin: 40px 0 20px;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 4px;
}
h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
p { margin: 0 0 10px; color: rgba(255, 255, 255, 0.85); }
.stand { color: var(--muted); font-size: 13px; margin-top: 32px; }

footer {
  margin-top: 56px;
  padding: 20px 0 36px;
  font-size: 15px;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: center;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.hero + footer { margin-top: 0; }

/* Schimmer wie in der App: ein zarter Holo Streifen zieht einmal über den Schriftzug */
.hero .wordmark span {
  background-image:
    linear-gradient(106deg,
      rgba(255,255,255,0) 40%,
      rgba(201,234,249,.45) 44%,
      rgba(190,164,255,.45) 48%,
      rgba(130,251,230,.45) 51%,
      rgba(253,175,221,.45) 54%,
      rgba(255,235,173,.45) 57%,
      rgba(255,255,255,0) 60%),
    linear-gradient(#fff, #fff);
  background-size: 250% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.6s ease-in-out 0.7s 1 both;
}
@keyframes shimmer {
  from { background-position: 100% 0, 0 0; }
  to   { background-position: 0% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .wordmark span { animation: none; }
}

/* Mac und großes iPad: etwas größer als am Handy, aber ruhig */
@media (min-width: 900px) {
  body { font-size: 16px; }
  .wrap { max-width: 680px; }
  .hero .icon { width: 108px; height: 108px; border-radius: 24px; margin-bottom: 34px; }
  .hero .wordmark .name { font-size: 68px; }
  .hero .wordmark .my { font-size: 19px; }
  .hero .tagline { font-size: 18px; margin-top: 24px; }
  .hero .soon { font-size: 15px; padding: 13px 26px; margin-top: 40px; }
  .hero .contact { font-size: 16px; margin-top: 44px; }
  .page-head { padding-top: 36px; }
  .logo svg { width: 56px; height: 56px; }
  h1 { font-size: 30px; margin-top: 44px; }
  h2 { font-size: 16px; }
  footer { font-size: 15px; }
}
