:root {
  color-scheme: dark;
  --bg: #07101f;
  --surface: rgba(17, 29, 51, 0.78);
  --surface-strong: #14213a;
  --text: #f7f9fc;
  --muted: #a9b5c8;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #67d4ff;
  --accent-2: #8b7cff;
  --success: #7ce5ae;
  --warning: #ffd27c;
  --danger: #ff9c9c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --content: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% -10%, rgba(103, 212, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(139, 124, 255, 0.14), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body[data-theme="flybuddy"] { --accent: #66d9ff; --accent-2: #4f83ff; }
body[data-theme="zeitpilot"] { --accent: #7ce5ae; --accent-2: #3aa8ff; }
body[data-theme="scanbuddy"] { --accent: #b89cff; --accent-2: #627dff; }
body[data-theme="seniorenbuddy"] { --accent: #ffd27c; --accent-2: #ff8e7a; }

a { color: inherit; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 31, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(calc(100% - 40px), var(--content));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  color: var(--text);
  font-weight: 780;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.language-switch button {
  min-width: 39px;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
}

.language-switch button.active {
  background: var(--text);
  color: var(--bg);
}

main { overflow: hidden; }

.container {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  min-height: 650px;
  padding: 92px 0;
}

.hero-copy { min-width: 0; max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
  content: "";
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7.4vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero p {
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.6;
}

.gradient-text {
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  background-clip: text;
  color: transparent;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.hero-art::before {
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 24%, transparent), transparent 64%);
  content: "";
}

.app-icon {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 31%;
  object-fit: cover;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--text); color: var(--bg); }
.button-secondary { border-color: var(--line); background: rgba(255, 255, 255, 0.045); }

.section { padding: 96px 0; }
.section-compact { padding: 64px 0; }

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading h2,
.page-intro h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading p,
.page-intro p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.065);
  font-size: 22px;
}

.card h2, .card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.card p { margin-bottom: 0; color: var(--muted); font-size: 0.96rem; }

.app-card { display: flex; min-height: 300px; flex-direction: column; }
.app-card .mini-icon { width: 74px; height: 74px; margin-bottom: 30px; border-radius: 22px; object-fit: cover; }
.app-card .button { align-self: flex-start; margin-top: auto; padding-top: 9px; padding-bottom: 9px; min-height: 44px; }

.banner {
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: var(--radius-xl);
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 52%),
    var(--surface);
  box-shadow: var(--shadow);
}

.banner h2 { max-width: 760px; margin-bottom: 15px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; letter-spacing: -0.045em; }
.banner p { max-width: 760px; margin-bottom: 0; color: var(--muted); }

.page-intro { max-width: 820px; padding: 92px 0 52px; }
.page-intro h1 { font-size: clamp(3rem, 6vw, 5rem); }
.page-intro .updated { color: var(--accent); font-size: 0.92rem; font-weight: 700; }

.content-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 60px;
  align-items: start;
  padding-bottom: 100px;
}

.aside-nav {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 6px;
}

.aside-nav a { padding: 8px 11px; border-radius: 10px; color: var(--muted); font-size: 14px; text-decoration: none; }
.aside-nav a:hover { background: rgba(255,255,255,.06); color: var(--text); }

.prose section, .faq-list details {
  margin-bottom: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
}

.prose h2 { margin-bottom: 12px; font-size: 1.35rem; letter-spacing: -0.025em; }
.prose h3 { margin: 22px 0 8px; font-size: 1rem; }
.prose p:last-child, .prose ul:last-child { margin-bottom: 0; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--accent); }
.prose ul { padding-left: 22px; }

.notice { border-color: color-mix(in srgb, var(--warning) 35%, var(--line)) !important; background: color-mix(in srgb, var(--warning) 7%, transparent) !important; }

.faq-list { display: grid; gap: 12px; }
.faq-list details { margin-bottom: 0; padding: 0; overflow: hidden; }
.faq-list summary { padding: 22px 24px; cursor: pointer; font-weight: 730; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { float: right; color: var(--accent); content: "+"; font-size: 1.3rem; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0; padding: 0 24px 24px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}
.footer-links { display: flex; gap: 16px; margin-left: auto; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

[data-lang-block] { display: none; }
html[lang="de"] [data-lang-block="de"],
html[lang="en"] [data-lang-block="en"] { display: block; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 72px 0; text-align: center; }
  .hero-copy { margin: 0 auto; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; min-height: 260px; }
  .app-icon { width: 220px; }
  .actions { justify-content: center; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: 1fr; gap: 28px; }
  .aside-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { width: min(calc(100% - 28px), var(--content)); min-height: 64px; gap: 10px; }
  .brand span { display: none; }
  .brand img { width: 36px; height: 36px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px; font-size: 13px; }
  .container, .footer-inner { width: min(calc(100% - 28px), var(--content)); }
  .hero { gap: 28px; padding: 50px 0 70px; }
  .hero-art { min-height: 230px; }
  .app-icon { width: 190px; }
  h1 { font-size: clamp(3rem, 17vw, 4.7rem); }
  .section { padding: 70px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .app-card { min-height: 0; }
  .page-intro { padding: 62px 0 36px; }
  .aside-nav { display: none; }
  .prose section { padding: 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { margin-left: 0; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
