
*, *::before, *::after {
  box-sizing: border-box;
}

/* Schriftarten */
@font-face {
  font-family: 'Montserrat';
  src: url('/src/assets/fonts/Montserrat/Montserrat-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/src/assets/fonts/Montserrat/Montserrat-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
}

html, body {
  height: 100dvh; /* 'dvh' berechnet die Höhe inkl. dynamischer Browserleisten! */
  overflow: hidden; /* Verhindert das Scrollen der gesamten Seite (verhindert Leisten-Sprünge) */
  margin: 0;
  padding: 0;
  background-color: #000000; 
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  display: flex; /* Flexbox ist bereits drin, perfekt! */
  flex-direction: column;
  align-items: center;
}


/* WICHTIG: Damit es keine hellen Überlagerungen gibt */
html, #root {
  background: transparent !important;
}

/* Verhindert Layout-Sprünge beim Laden der Schrift */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 800px;
  box-sizing: border-box; 
  padding: 40px 40px 0px 40px;
  
  /* NEU: Das macht nur den Inhalt scrollbar, nicht den Body! */
  flex: 1; 
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Sorgt für weiches Scrollen auf iPhones */
}

/* ────────────────────────────── */
/* Navigation & Button Styling    */
/* ────────────────────────────── */
.back-nav {
  text-align: left;
  margin-bottom: 20px;
}

.btn-back {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 0.5rem 1.0rem;
  border-radius: 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.0rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-back:hover {
  transform: scale(1.05);
}

/* Sprachwechsler */
.lang-switch {
  color: #ffffff;
  font-size: 16px;
}

.lang-switch a {
  color: #ffffff;
  text-decoration: underline;
}

.lang-switch a.active {
  font-weight: bold;
  text-decoration: none;
}

/* ────────────────────────────── */
/* Content-Formatierung           */
/* ────────────────────────────── */
.container { text-align: left; }

h2, h3 { 
  color: #ffffff; 
  font-weight: 800; 
}

p { 
  line-height: 1.6; 
  font-weight: 500; 
  color: #ffffff;
}

#legal a { 
  color: #ffffff; 
  text-decoration: underline; 
}

#legal a:hover {
  opacity: 0.8;
}

/* ────────────────────────────── */
/* Fixierter Footer               */
/* ────────────────────────────── */
#legal-footer {
  /* position: fixed; und bottom: 0; SIND JETZT WEG */
  width: 100%; 
  text-align: center; 
  font-family: Arial, sans-serif; 
  line-height: 1.6;
  background-color: #000000;
  
  /* WICHTIG für das Layout: */
  position: relative; /* Wird für den 50px ::before Balken gebraucht */
  flex-shrink: 0; /* Verhindert, dass der Footer gequetscht wird */
  z-index: 10001; 
  
  padding-top: 15px;
  /* env() sorgt dafür, dass iPhones mit Home-Balken unten extra Abstand geben, damit nichts verdeckt wird */
  padding-bottom: calc(15px + env(safe-area-inset-bottom));	
}

/* NEU: Der 50px Verlaufsbalken (Fade-Out) direkt über dem Footer */
#legal-footer::before {
  content: "";
  position: absolute;
  bottom: 100%; /* Platziert den Balken exakt Kante an Kante ÜBER dem Footer-Anfang */
  left: 0;
  width: 100%;
  height: 50px; /* Deine gewünschten 50px Höhe */
  
  /* Erzeugt den Verlauf von Schwarz (unten) nach transparent (oben) */
  background: linear-gradient(to top, #000000, transparent); 
  
  /* Absolut wichtig: Verhindert, dass der Balken Klicks blockiert, 
     falls sich Text oder Links darunter befinden! */
  pointer-events: none; 
}

.footer-copyright {
  color: #ffffff;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 12px;
}

.footer-links {
  color: #ffffff;
  font-size: 14px;
}

.footer-links a {
  display: block; /* Jeder Link bekommt seine eigene, feste Zeile */
  margin: 2px 0;  /* Definierter Abstand statt unvorhersehbarer <br> Sprünge */
  color: #ffffff;
  text-decoration: underline;
}

.footer-links a:hover {
  opacity: 0.8;
}

/* In legalnprivacypage.css */



#legal {
  /* Sicherstellen, dass der Content-Bereich genug Abstand hält */
  margin-bottom: 50px;
}