:root {
  --bg-primary: #050a13;
  --bg-card: #09111f;
  --bg-surface: #111c2e;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-red: #f43f5e;
  --accent-yellow: #f59e0b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --radius: 12px;
  --font: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  background: #050a13;
  background-image:
    linear-gradient(rgba(17, 30, 49, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 30, 49, 0.18) 1px, transparent 1px),
    radial-gradient(circle at 50% -15%, #10243e 0%, #050a13 48%);
  background-size: 64px 64px, 64px 64px, auto;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #07080e; }
::-webkit-scrollbar-thumb { background: #1a1d2e; border-radius: 5px; border: 2px solid #07080e; }
::-webkit-scrollbar-thumb:hover { background: #00d2ff; }

a { color: var(--accent-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-primary); }

/* Header */
header {
  min-height: 70px;
  padding: 12px clamp(18px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(4, 9, 17, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 10px 34px rgba(0,0,0,0.24);
}

.logo {
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.15);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Main Container */
main { flex: 1; padding: 0 clamp(16px, 3vw, 34px) 40px; max-width: 1480px; margin: 0 auto; width: 100%; }

.nav-pill {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}
.nav-pill:hover { 
  background: rgba(255,255,255,0.08); 
  color: #fff; 
  transform: translateY(-2px); 
  box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
  border-color: rgba(255,255,255,0.2); 
}
.nav-pill.active { 
  background: #22d3ee;
  border-color: transparent; 
  color: #fff; 
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4); 
}

/* Forms & UI Elements */
.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  width: 100%;
}
.search-input {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  padding: 18px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  width: 100%;
  max-width: 600px;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.3);
}
.search-input:focus { 
  outline: none; 
  border-color: #00d2ff; 
  box-shadow: inset 0 0 10px rgba(0,210,255,0.1), 0 0 30px rgba(0, 210, 255, 0.3); 
  background: rgba(0, 210, 255, 0.05); 
}

.btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn:hover { 
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.1));
  transform: translateY(-2px);
  border-color: #00d2ff;
  box-shadow: 0 8px 20px rgba(0,210,255,0.3);
}

/* Footer / Legal */
footer {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(0deg, #07080e, transparent);
  margin-top: 60px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.3), rgba(247, 37, 133, 0.3), transparent);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

footer a { 
  color: var(--text-secondary); 
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
footer a:hover { 
  color: #00d2ff; 
  text-shadow: 0 0 10px rgba(0,210,255,0.5);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--bg-surface);
  line-height: 1.6;
}
.legal-content h1, .legal-content h2 { color: var(--text-primary); margin-top: 0; }
.legal-content p { color: var(--text-secondary); }

/* Language Switcher (3 Sprachen mit SVG-Flaggen) */
.lang-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s;
  opacity: 0.55;
  filter: grayscale(0.7);
}

.lang-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-btn:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.08);
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

.lang-btn.active {
  opacity: 1;
  filter: grayscale(0);
  border-color: #00d2ff;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

[data-i18n] { transition: opacity 0.2s; }
