@font-face {
  font-family: "GeoSansLight";
  src: url("../fonts/GeosansLight.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

:root {
  --bg-overlay: rgba(5, 20, 30, 0.28);
  --card-bg: rgba(255, 255, 255, 0.12);
  --card-border: rgba(255, 255, 255, 0.18);
  --tile-bg: rgba(13, 32, 52, 0.38);
  --text-light: #f7f7f7;
  --text-dark: #0f172a;
  --gold: #f7d553;
  --gold-strong: #f1b91d;
  --home-accent: #fffb33;
}

html, body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  font-family: "GeoSansLight", Arial, sans-serif;
  color: var(--text-light);
}

html {
  background-color: #08141e;
  overscroll-behavior-y: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #08141e;
}

/* Bild und Abdunklung bleiben gemeinsam hinter dem scrollenden Inhalt.
   Die große Viewport-Höhe verhindert Größenwechsel durch mobile Browserleisten. */
.background-overlay {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  height: 100lvh;
  background-color: #08141e;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../pics/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  transform: translateZ(0);
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, 92vw);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 90px 20px 72px;
  isolation: isolate;
}

.brand-logo {
  position: absolute;
  top: 18px;
  left: 0;
  width: clamp(180px, 22vw, 300px);
  height: auto;
  z-index: 2;
  display: block;
}

.hero {
  width: 100%;
  margin-bottom: 28px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: var(--text-light);
  font-weight: var(--page-title-weight, 600);
  font-size: var(--page-title-size, clamp(2rem, 3.6vw, 3.5rem));
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: var(--page-title-size, clamp(1.75rem, 7.5vw, 2.4rem));
  }
}

/* Gemeinsamer Home-Button für die Unterseiten */
.hero--with-home {
  position: relative;
  padding-inline: 56px;
}

.home-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(8, 28, 43, 0.18);
  color: rgba(247, 247, 247, 0.8);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.home-link:hover,
.home-link:focus-visible {
  color: var(--home-accent);
  background: rgba(8, 28, 43, 0.4);
  border-color: rgba(255, 251, 51, 0.45);
}

.home-link:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .home-link {
    transition: none;
  }
}

img {
  max-width: 100%;
  display: block;
}

button, a {
  font: inherit;
}

.footer-links {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: clamp(0.8rem, 1vw, 1.1rem);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus,
.footer-links a:active {
  color: var(--text-light);
  text-decoration: none;
}
