:root {
  --fg: #111827;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;

  /* Höhe des Footers bequem anpassbar */
  --footer-height: 220px;
  /* Hintergrundbild etwas nach unten verschoben */
  --bg-pos-y: 60%;
}

[data-theme="dark"] {
  --fg: #e6eef8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: system-ui, Arial, sans-serif;
  color: var(--fg);

  /* 100vh-Layout mit Header, Main, Footer */
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Hintergrundbild über gesamte Seite (auch unter dem Footer) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('köln.jpg') center var(--bg-pos-y) / cover no-repeat;
  z-index: 0;
}

/* leichte Abdunklung */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

/* Header */
header {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h2 { font-size: 1.2rem; }
header a.logo { color: white; text-decoration: none; }
header a.logo:hover { text-decoration: underline; }

nav { display: flex; gap: 16px; }
nav a { color: white; text-decoration: none; font-size: 0.95rem; }
nav a:hover { text-decoration: underline; }

/* Main */
main {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 16px;
  min-height: 0;
}

/* Card */
.card {
  max-width: 700px;
  width: 100%;
  border-radius: 12px;
  padding: 28px;
  background: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(2,6,23,0.3);
  position: relative;
  z-index: 3;
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp .8s forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

h1 { margin-bottom: 16px; }
p { line-height: 1.5; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 3;
  height: var(--footer-height);
  background: rgba(29,78,216,0.9); /* halbtransparent */
  backdrop-filter: blur(8px);
  color: white;
  padding: 24px 20px;
  font-size: 0.9rem;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.3);
  display: block;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-section h4 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section p {
  margin: 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 16px;
  opacity: 0.85;
}

/* Footer-Links klar weiß darstellen */
.footer-section a,
.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.footer-section a:hover,
.footer-link:hover {
  color: #d1d5db; /* leicht hellgrau beim Hover */
}

/* Buttons */
button.theme-btn {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button.theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

button.theme-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
/* Impressum-Seite mit Scroll im Card-Bereich */
.impressum-card {
  text-align: left;
  max-width: 800px;
  width: 100%;
  height: 60vh; /* Höhe der Box (anpassbar) */
  background: rgba(255,255,255,0.08);
  padding: 32px;
  border-radius: 12px;
  line-height: 1.6;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* <<< Hier wird gescrollt */
  scrollbar-width: thin; /* schmale Scrollbar in Firefox */
  scrollbar-color: rgba(255,255,255,0.4) transparent;
}

/* Scrollbar-Stil für Chrome/Safari/Edge */
.impressum-card::-webkit-scrollbar {
  width: 8px;
}
.impressum-card::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.4);
  border-radius: 4px;
}

.impressum-card h1 {
  text-align: center;
  margin-bottom: 24px;
  color: #ffffff;
}

.impressum-card p {
  margin-bottom: 14px;
}

.impressum-card strong {
  color: #ffffff;
}

.impressum-card .last-update {
  text-align: right;
  color: #d1d5db;
  font-size: 0.9rem;
}

