/* Base reset and theme for anoninvest.de */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  --accent: #127fbf;
  --accent2: #0b6b99;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #0f172a;
  --text: #e5e7eb;
  --muted: #cbd5e1;
  --border: #243244;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --accent: #38bdf8;
  --accent2: #7dd3fc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

img {
  max-width: 100%;
  display: block;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-bottom: 2.5rem;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 10;
}

nav {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 0.15rem;
  transition: color 0.12s ease, transform 0.12s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent2);
  transition: width 0.18s ease;
}

nav a:hover {
  color: var(--accent2);
  transform: translateY(-1px);
}

nav a:hover::after {
  width: 100%;
}

.theme-toggle {
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: translateY(0);
}

.theme-toggle__icon {
  font-size: 1.1rem;
}

.language-chooser,
.hero,
.page-intro,
article {
  background: var(--surface);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 2rem 2.25rem;
  margin-bottom: 2.25rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.25rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
}

.hero-text p {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #f9fafb;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.19);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.hero-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.hero-cta:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

main h2 {
  font-size: 1.3rem;
  margin: 1.7rem 0 0.6rem;
}

main h3 {
  font-size: 1.1rem;
  margin: 1.3rem 0 0.4rem;
}

main p {
  margin-bottom: 0.8rem;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.faq {
  margin-top: 2rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: 1.25rem;
}

.faq-item {
  background: color-mix(in srgb, var(--surface) 96%, var(--bg));
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
}

.faq-item h3 {
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}

.language-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.language-cards .card {
  display: block;
  padding: 1.4rem 1.5rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 96%, var(--bg));
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.language-cards .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  color: var(--muted);
}

footer .muted {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  body {
    padding: 1.1rem 1.2rem 2.2rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  header {
    justify-content: space-between;
  }
}

