/* Website der Erde-App – Farben wie in der App (www/style.css), dunkel als Standard, hell per Systemeinstellung */
:root {
  --bg: #05070d;
  --surface: #101724;
  --line: rgba(255, 255, 255, 0.12);
  --text: #e8edf6;
  --muted: #97a3b8;
  --accent: #ffcc33;
  --accent-2: #4fc3f7;
  --link: #4fc3f7;
  --primary: #1e88e5;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --line: rgba(0, 0, 0, 0.12);
    --text: #16202e;
    --muted: #5a6577;
    --link: #1565c0;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 16px; z-index: 10; }

/* Kopf */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1040px; margin: 0 auto; padding: 14px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; min-height: 44px; }
.brand img { border-radius: 10px; }
.lang { display: flex; gap: 4px; }
.lang a, .lang span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted);
}
.lang span { color: var(--text); background: var(--surface); border: 1px solid var(--line); }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px 40px; }

/* Startseite */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 24px 0 40px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.01em; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: 12px; background: var(--primary); color: #fff; font-weight: 600; text-decoration: none;
}
.store.off { background: var(--surface); color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.small { font-size: 14px; color: var(--muted); }
.phones { display: flex; gap: 14px; justify-content: center; align-items: flex-start; }
.phones img {
  width: 46%; max-width: 230px; border-radius: 26px; border: 6px solid #1b2333;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.phones img:nth-child(2) { margin-top: 40px; }

.features h2, .band h2 { font-size: 24px; margin: 8px 0 16px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.card .ico { font-size: 26px; line-height: 1; }
.card h3 { font-size: 17px; margin: 10px 0 4px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.band { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.band p { margin: 0 0 10px; }

/* Textseiten */
.page { max-width: 720px; margin: 0 auto; padding-top: 8px; }
.page h1 { font-size: 32px; line-height: 1.2; margin: 8px 0 10px; }
.page h2 { font-size: 20px; margin: 32px 0 8px; }
.page h3 { font-size: 16px; margin: 20px 0 6px; }
.page p, .page li { font-size: 16px; }
.page .lead { font-size: 18px; }
.meta { font-size: 14px; color: var(--muted); }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0 16px; display: block; overflow-x: auto; }
.page th, .page td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.page th { color: var(--muted); font-weight: 600; font-size: 14px; }
#TableOfContents { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 16px; margin: 16px 0; }
#TableOfContents ul { padding-left: 18px; margin: 8px 0; }
#TableOfContents li { font-size: 15px; margin: 4px 0; }
.note { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 14px; }

/* Fuss */
.foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 20px 16px 32px; text-align: center; color: var(--muted); font-size: 14px; }
.foot .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-bottom: 6px; }
.foot .links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 8px; }
  .phones img { width: 44%; }
}
