:root {
  --bg: #1c1915;
  --text: #f0ebe4;
  --text-light: rgba(240,235,228,0.5);
  --text-muted: rgba(240,235,228,0.3);
  --accent: #c4a06a;
  --font-heading: 'Cardo', Georgia, serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  padding: 3rem 2rem;
  overflow-x: hidden;
}

/* ---- Fade-in Animation ---- */
.anim {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.anim-1 { animation-delay: 0.1s; }
.anim-2 { animation-delay: 0.4s; }
.anim-3 { animation-delay: 0.7s; }
.anim-4 { animation-delay: 1.0s; }
.anim-5 { animation-delay: 1.2s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Language Dropdown ---- */
.lang-dropdown {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 100;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.4s forwards;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--text-muted);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: var(--text-light);
}

.lang-toggle svg {
  transition: transform 0.3s;
}

.lang-dropdown.open .lang-toggle svg {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #2a2520;
  border: 1px solid var(--text-muted);
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-menu button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  padding: 8px 20px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.lang-menu button:hover {
  background: rgba(240,235,228,0.05);
  color: var(--text);
}

.lang-menu button.active {
  color: var(--accent);
}

/* ---- Container ---- */
.container {
  text-align: center;
  max-width: 850px;
  width: 100%;
}

/* ---- Logo ---- */
.logo {
  max-width: 240px;
  width: 100%;
  height: auto;
  margin-bottom: 3.5rem;
  opacity: 0.9;
}

/* ---- Headline — BIG ---- */
h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 5rem;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.5rem;
}

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

/* ---- CH Link Button ---- */
.ch-link {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(196,160,106,0.3);
  padding-bottom: 2px;
  margin-bottom: 1rem;
  transition: all 0.3s;
  cursor: pointer;
}

.ch-link:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ---- CH Note ---- */
.ch-note {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}

/* Tooltip */
.tooltip {
  position: fixed;
  background: #2a2520;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  padding: 8px 16px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 200;
  white-space: nowrap;
}

.tooltip.visible {
  opacity: 1;
}

/* ---- Contact ---- */
.contact {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
}

.contact a {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 300;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.contact a:hover {
  color: var(--text);
}

.contact .social {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 400;
}

.contact .social:hover {
  color: var(--accent);
}

/* ---- Footer ---- */
footer {
  position: fixed;
  bottom: 2rem;
  display: flex;
  gap: 1.5rem;
}

footer a {
  color: var(--text-muted);
  font-size: 0.65rem;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--text-light);
}

/* ---- Legal Pages (Impressum, Datenschutz) ---- */
.legal-page {
  justify-content: flex-start;
  align-items: flex-start;
  padding: 4rem 2rem 6rem;
}

.legal-container {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--text);
}

.legal-container h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 2.5rem;
  text-align: left;
}

.legal-container section {
  margin-bottom: 2.5rem;
}

.legal-container h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.legal-container h3 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.legal-container p {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.legal-container ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0.8rem;
}

.legal-container li {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-light);
  padding-left: 1rem;
  position: relative;
}

.legal-container li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.legal-container a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

.legal-container a:hover {
  color: var(--text);
}

.legal-page footer {
  position: relative;
  bottom: 0;
  margin-top: 3rem;
}

/* ---- Tablet ---- */
@media (max-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }

  .logo {
    max-width: 200px;
    margin-bottom: 2.5rem;
  }

  .contact {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
  body {
    padding: 2rem 1.5rem;
  }

  .lang-dropdown {
    position: relative;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
  }

  .lang-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
  }

  .lang-dropdown.open .lang-menu {
    transform: translateX(-50%) translateY(0);
  }

  h1 {
    font-size: 2.5rem;
  }

  .logo {
    max-width: 160px;
    margin-bottom: 2rem;
  }

  .contact {
    gap: 0.8rem;
  }

  .contact a,
  .contact .social {
    font-size: 0.85rem;
  }

  footer {
    position: relative;
    bottom: 0;
    margin-top: 3rem;
  }
}
