*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --eu-blue: #003399;
  --eu-gold: #FFCC00;
  --bg: #F7F6F2;
  --text: #1A1A2E;
  --muted: #6B6B80;
  --card-bg: #ffffff;
  --border: rgba(0,51,153,0.12);
}

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,51,153,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,51,153,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── Language switcher ── */
.lang-switch {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.lang-switch a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 100px;
  transition: background 0.15s, color 0.15s;
}

.lang-switch a:hover {
  background: rgba(0,51,153,0.07);
  color: var(--eu-blue);
}

.lang-switch a.active {
  background: rgba(0,51,153,0.1);
  color: var(--eu-blue);
}

.lang-switch .divider-v {
  width: 1px;
  height: 14px;
  background: var(--border);
  margin: 0 2px;
}

/* Inline SVG flags */
.flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.15);
  vertical-align: middle;
}

/* ── Decorative star ring ── */
.star-ring {
  position: fixed;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  animation: slowspin 60s linear infinite;
}

@keyframes slowspin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Main layout ── */
main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  width: 100%;
  animation: fadeup 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeup {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ── */
.logo-wrap {
  margin-bottom: 2.5rem;
  animation: fadeup 0.9s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo {
  max-height: 64px;
  width: auto;
  display: block;
}

.logo-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 20px;
  border: 1.5px dashed rgba(0,51,153,0.3);
  border-radius: 8px;
  color: var(--eu-blue);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.6;
  letter-spacing: 0.04em;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eu-blue);
  background: rgba(0,51,153,0.07);
  border: 1px solid rgba(0,51,153,0.15);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 2rem;
  animation: fadeup 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--eu-gold);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Typography ── */
h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  animation: fadeup 0.9s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

h1 em {
  font-style: italic;
  color: var(--eu-blue);
}

.slogan {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  animation: fadeup 0.9s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slogan strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Gold divider ── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--eu-gold);
  border-radius: 2px;
  margin: 0 auto 3rem;
  animation: fadeup 0.9s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Card ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  width: 100%;
  animation: fadeup 0.9s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.card p strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Pills ── */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 1.75rem;
  animation: fadeup 0.9s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pill {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--eu-blue);
  background: rgba(0,51,153,0.06);
  border: 1px solid rgba(0,51,153,0.13);
  border-radius: 100px;
  padding: 5px 14px;
}

/* ── Impressum ── */
.impressum-wrap {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
  padding: 5rem 0 3rem;
  animation: fadeup 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--eu-blue);
  text-decoration: none;
  margin-bottom: 2rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.back-link:hover { opacity: 1; }

.impressum-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 3rem;
}

.impressum-card h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.impressum-card section {
  margin-bottom: 1.75rem;
}

.impressum-card section:last-child { margin-bottom: 0; }

.impressum-card h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.impressum-card p,
.impressum-card address {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  font-style: normal;
}

.impressum-card a {
  color: var(--eu-blue);
  text-decoration: none;
}

.impressum-card a:hover { text-decoration: underline; }

.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
  animation: fadeup 0.9s 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

footer a {
  color: var(--eu-blue);
  text-decoration: none;
  opacity: 0.7;
}

footer a:hover { opacity: 1; }

@media (max-width: 480px) {
  .card,
  .impressum-card { padding: 1.5rem; }
  .lang-switch { top: 0.75rem; right: 0.75rem; }
}
