/* ---------- FONT ---------- */
/* bricolage-grotesque-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/font/bricolage-grotesque-v9-latin-regular.eot');
  src: url('/assets/font/bricolage-grotesque-v9-latin-regular.eot?#iefix') format('embedded-opentype'),
       url('/assets/font/bricolage-grotesque-v9-latin-regular.woff2') format('woff2'),
       url('/assets/font/bricolage-grotesque-v9-latin-regular.woff') format('woff'),
       url('/assets/font/bricolage-grotesque-v9-latin-regular.ttf') format('truetype'),
       url('/assets/font/bricolage-grotesque-v9-latin-regular.svg#BricolageGrotesque') format('svg');
}

/* --- body / html: start oben, safe-area, scrollable --- */
html, body {
  min-height: 100vh;               /* sicherstellen, dass Viewport korrekt ist */
  height: auto;
  font-family: 'Bricolage Grotesque', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  background: linear-gradient(90deg, #330000, #bb0000, #330000);
  background-size: cover;
  /* background-attachment: fixed;  // optional: mobile performance vermeiden */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;     /* oben anfangen - verhindert, dass die Überschrift 'rausfliegt' */
  text-align: center;
  padding-top: env(safe-area-inset-top, 16px); /* Rücksicht auf Notch / Statusbar */
  overflow-y: auto;                /* sorgt dafür, dass bei großem Inhalt gescrollt werden kann */
}

/* --- main: etwas Abstand zum oberen Rand --- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem; /* weniger horizontales Padding auf kleinen Geräten */
  line-height: 1.6;
}

/* --- Überschrift: responsive, weniger Padding --- */
h1 {
  font-size: clamp(1.6rem, calc(3vw + 0.8rem), 3rem); /* etwas konservativer Minimum und mittlerer Formel */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
  padding: 0.75rem 1rem;   /* kleineres Padding, damit nichts aus dem Viewport ragt */
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* --- Paragraphen: min font-size realistischer machen --- */
p {
  font-size: clamp(0.9rem, calc(1vw + 0.6rem), 1.4rem);
  text-align: center;
  padding: 0.6rem 0.6rem;
}

/* --- Extra: kleine Geräte weiter anpassen --- */
@media (max-width: 420px) {
  h1 {
    font-size: clamp(1.4rem, calc(4vw + 0.6rem), 2rem);
    padding: 0.5rem 0.5rem;
    line-height: 1.15;
  }

  main {
    padding: 1rem;
  }
}