/* Farben wie die Website (web/index.html) */
:root {
  --brand: #EF7F1A;
  --on-brand: #2C1500;
  --accent: #3E5C76;
  --bg: #F6F2EC;
  --card: #FFFFFF;
  --text: #1C1C1E;
  --muted: #5F6368;
  --line: rgba(0, 0, 0, .12);
  --deep: #22323F;
  --green: #2E9E4F;
  --blue: #2F6FD6;
  --red: #D23B30;
  --black: #1C1C1E;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #FF9233;
    --accent: #8DB3D1;
    --bg: #121416;
    --card: #1C1F22;
    --text: #F2F2F7;
    --muted: #A6A9AF;
    --line: rgba(255, 255, 255, .14);
    --deep: #2A3D4E;
    --black: #E8E8EA;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  display: grid; grid-template-rows: auto 1fr auto; height: 100dvh;
}
a { color: var(--accent); }

.top {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--card); border-bottom: 1px solid var(--line); z-index: 3;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 9px; }
.search { position: relative; flex: 1; max-width: 460px; }
.search input {
  width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit;
}
.results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; max-height: 60vh; overflow: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); z-index: 5;
}
.results li button {
  width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; cursor: pointer;
}
.results li button:hover, .results li button:focus { background: var(--bg); outline: none; }
.results small { color: var(--muted); display: block; }
.results .empty { padding: 8px 10px; color: var(--muted); }
.actions { display: flex; align-items: center; gap: 8px; }
.lang { border: 1px solid var(--line); background: none; color: var(--text); border-radius: 8px; padding: 6px 9px; font: inherit; cursor: pointer; }
.cta {
  display: inline-block; background: var(--brand); color: var(--on-brand); font-weight: 650; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.cta.wide { display: block; text-align: center; margin-top: 12px; padding: 12px; }

main { position: relative; min-height: 0; display: grid; grid-template-columns: 1fr 380px; }
#map { min-height: 0; }
.hint {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 2;
  background: var(--deep); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.panel { background: var(--card); border-left: 1px solid var(--line); overflow: auto; padding: 18px; }
.panel h1 { font-size: 22px; margin: 2px 0 8px; line-height: 1.2; }
.panel h2 { font-size: 15px; margin: 18px 0 6px; }
.panel p { margin: 6px 0; }
.kicker { color: var(--muted); font-size: 14px; }
.close { float: right; border: 0; background: var(--bg); color: var(--text); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg); font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rating { color: var(--brand); font-size: 15px; }
.rating span { color: var(--muted); }
.profile { margin: 14px 0; }
.profile figcaption { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.profile svg { width: 100%; height: 90px; display: block; background: var(--bg); border-radius: 10px; }
.profile-numbers { color: var(--muted); font-size: 14px; }
.teaser {
  margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 15px;
}
.teaser:empty { display: none; }
.teaser small { display: block; color: var(--muted); margin-top: 2px; }
.teaser.hazards { border-left: 4px solid #E0A100; }
.more { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--deep); color: #fff; border: 2px solid var(--brand); }
.more h2 { margin-top: 0; color: #fff; }
.app-list { margin: 6px 0 0; padding-left: 20px; }
.app-list li { margin: 3px 0; }
.share-button { border: 1px solid var(--line); background: none; color: var(--accent); border-radius: 999px; padding: 8px 14px; font: inherit; cursor: pointer; }

.bottom { padding: 6px 16px; font-size: 12px; color: var(--muted); background: var(--card); border-top: 1px solid var(--line); }
.bottom a { color: var(--muted); }

@media (max-width: 760px) {
  .top { flex-wrap: wrap; gap: 8px; }
  .brand span span { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .actions .cta { padding: 6px 12px; font-size: 14px; }
  main { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .panel { border-left: 0; border-top: 1px solid var(--line); max-height: 48dvh; padding: 14px 16px; }
  .panel .intro .app-list, .panel .intro h2 { display: none; }
}
