/* filepath: c:\Users\fusio\Desktop\Neuer Ordner\Yokai1\css\global.css */
/* ====== Global Reset & Box Sizing ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ====== Root Variables (Angepasst von Yokai2) ====== */
:root {
  /* Farben - Beibehalten oder an Yokai1 anpassen */
  --primary: #fb62987d; /* Hauptfarbe aus start.css */
  --complementary: #46b06bc7; /* Komplementärfarbe aus start.css */
  --complementary-hover: #4eb472c6; /* Hover-Farbe aus start.css */
  --complementary-solid: #46b06b; /* Solide Komplementärfarbe */
  --secondary: #121112;
  --accent: #161515;
  --text: #ffffff; /* Standardtextfarbe */
  --background: linear-gradient(100deg, rgba(120, 40, 67, 0.927), #dd5685ef); /* Hintergrund aus start.css */
  --star-color: #FFD700; /* Sternfarbe */

  /* Layout */
  --container-max-width: 1200px;
  --radius: 12px; /* Radius aus start.css */

  /* Übergänge */
  --transition: 0.3s ease;

  /* Glass Effekt (aus start.css) */
  --glass: rgba(255, 255, 255, 0.12);
  --blur: blur(12px);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ====== Base Elements ====== */
html, body {
  min-height: 100vh; /* Mindesthöhe sicherstellen */
  margin: 0;
  padding: 0;
  font-family: 'Space Grotesk', 'Roboto', Arial, sans-serif; /* Schriftarten aus index.html */
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden; /* Horizontales Scrollen verhindern */
}

body {
  display: flex;
  flex-direction: column;
}

/* ====== Layout ====== */
.container {
  flex: 1 0 auto; /* Lässt den Container wachsen, aber nicht schrumpfen */
  display: flex;
  flex-direction: column;
  align-items: center; /* Zentriert den Inhalt horizontal */
  justify-content: center; /* Zentriert den Inhalt vertikal (wenn möglich) */
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto; /* Zentriert den Container selbst */
  padding: 20px; /* Standard-Padding */
}

.content {
  /* Stile für .content können hier oder spezifischer definiert werden */
  width: 100%;
  max-width: 600px; /* Beispiel-Maximalbreite, anpassen nach Bedarf */
  text-align: center;
  padding: 25px 35px;
  margin: 20px auto; /* Abstand oben/unten und zentriert */
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius);
  border: var(--border);
  box-shadow: var(--shadow), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

/* ====== Typography ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Pacifico', cursive; /* Hauptüberschrift-Schriftart */
  margin-bottom: 0.75em;
  color: var(--text); /* Standardtextfarbe für Überschriften */
}

h1 { font-size: 3em; }
h2 { font-size: 2em; }
/* Weitere Überschriften nach Bedarf */

p {
  margin-bottom: 1.5em;
  font-family: 'Roboto', sans-serif; /* Fließtext-Schriftart */
  font-size: 1.1em; /* Leicht größere Schrift für Lesbarkeit */
}

a {
  color: var(--complementary-solid); /* Standard-Linkfarbe */
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--complementary-hover);
  text-decoration: underline;
}

a.button:hover {
  color: #ffffff; /* Behält die weiße Textfarbe bei */
  text-decoration: none; /* Keine Unterstreichung */
}

/* ====== Buttons (Basisstile) ====== */
.button {
  display: inline-block;
  padding: 16px 32px;
  background-color: var(--complementary);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 1.2em;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15),
              0 1px 3px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.button:hover {
  transform: translateY(-3px) scale(1.02);
  background-color: var(--complementary-hover);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2),
              0 3px 6px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* ====== Images ====== */
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}

/* ====== Footer (Basis-Layout) ====== */
.footer {
  flex-shrink: 0; /* Verhindert, dass der Footer schrumpft */
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  margin-top: auto; /* Schiebt den Footer nach unten */
  padding: 15px 0;
  text-align: center;
}

/* ====== Accessibility ====== */
:focus-visible {
  outline: 3px solid var(--complementary-solid);
  outline-offset: 2px;
  border-radius: 2px; /* Optional: leichter Radius für den Fokusring */
}
