* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
}

body {
  overflow: hidden;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.brand-gradient {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}

.brand-gradient-one {
  width: 720px;
  height: 720px;
  top: -260px;
  right: -220px;
  background:
    radial-gradient(circle at 30% 28%, rgba(237,25,68,.38), transparent 28%),
    radial-gradient(circle at 56% 42%, rgba(212,14,140,.28), transparent 34%),
    radial-gradient(circle at 70% 58%, rgba(78,199,234,.28), transparent 40%);
}

.brand-gradient-two {
  width: 560px;
  height: 560px;
  bottom: -260px;
  left: -200px;
  background:
    radial-gradient(circle at 35% 35%, rgba(88,40,115,.28), transparent 35%),
    radial-gradient(circle at 62% 45%, rgba(89,144,240,.24), transparent 42%);
}

.app {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 84px;
  padding: 0 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
}

.insight-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.symbol {
  width: 38px;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.symbol span {
  border-radius: 6px;
  background: var(--heart);
}

.symbol span:nth-child(2),
.symbol span:nth-child(6) { background: var(--hunger); }

.symbol span:nth-child(3),
.symbol span:nth-child(7) { background: var(--harmony); }

.symbol span:nth-child(4),
.symbol span:nth-child(8) { background: var(--vision); }

.symbol span:nth-child(1),
.symbol span:nth-child(5) { transform: scaleY(.55); }

.logotype {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--carbon);
}

body.dark .logotype { color: white; }

.registered {
  font-size: 13px;
  vertical-align: super;
  margin-left: 1px;
}

.tagline {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .02em;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search {
  width: min(520px, 42vw);
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}

.search span {
  color: var(--heart);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .08em;
}

.search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  color: var(--text);
}

.utility-button {
  height: 44px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-solid);
  border-radius: 999px;
  padding: 0 16px;
  box-shadow: var(--shadow-sm);
  transition: .2s ease;
}

.utility-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--heart);
}

.hero {
  padding: 26px 34px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.eyebrow {
  color: var(--heart);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero h1 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 62px);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 980px;
}

.hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-charm {
  width: 190px;
  height: 118px;
  position: relative;
  flex: 0 0 auto;
  opacity: .95;
}

.charm-circle,
.charm-block,
.charm-pill {
  position: absolute;
  background: linear-gradient(135deg, var(--heart), var(--harmony) 45%, var(--calm));
}

.charm-circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  right: 84px;
  top: 16px;
}

.charm-block {
  width: 80px;
  height: 80px;
  border-radius: 8px 44px 8px 44px;
  right: 30px;
  top: 24px;
}

.charm-pill {
  width: 46px;
  height: 98px;
  border-radius: 999px;
  right: 0;
  top: 10px;
}

.workspace {
  flex: 1;
  min-height: 0;
  padding: 0 34px 16px;
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr) 385px;
  gap: 18px;
}

.filter-panel,
.map-panel,
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
}

.filter-panel {
  padding: 22px;
  overflow: auto;
}

.filter-panel h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -.04em;
}

.filter-panel section {
  margin-bottom: 24px;
}

.filter-panel h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.filter-list {
  display: grid;
  gap: 9px;
}

.filter-chip {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 13px;
  transition: .2s ease;
}

.filter-chip:hover {
  transform: translateX(4px);
  border-color: var(--heart);
}

.filter-chip.active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--heart), var(--harmony));
}

.metric-card {
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(211,12,85,.14), rgba(78,199,234,.14)),
    var(--surface-solid);
  border: 1px solid var(--line);
}

.metric-card strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  color: var(--heart);
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

footer {
  padding: 0 34px 12px;
  text-align: right;
  color: var(--muted);
  font-size: 11px;
}

body.presentation .filter-panel,
body.presentation .detail-panel,
body.presentation .toolbar {
  display: none;
}

body.presentation .workspace {
  grid-template-columns: 1fr;
}

body.presentation .hero {
  padding-bottom: 12px;
}

/* Official logo image */
.insight-logo {
  width: 164px;
  height: auto;
  display: block;
  object-fit: contain;
}

.insight-lockup {
  gap: 18px;
}

.logotype {
  font-size: 30px;
}

/* Presentation mode safety exit */
.exit-presentation-button {
  position: fixed;
  right: 22px;
  top: 22px;
  z-index: 9999;
  display: none;
  height: 44px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 0 18px;
  color: white;
  background: linear-gradient(135deg, var(--heart), var(--harmony));
  box-shadow: var(--shadow-lg);
}

body.presentation .exit-presentation-button {
  display: inline-flex;
  align-items: center;
}

body.presentation::after {
  content: "ESC zum Beenden";
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: 9998;
  color: var(--muted);
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

@media (max-width: 720px) {
  .insight-logo {
    width: 132px;
  }
}

.language-toggle{height:44px;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--surface-solid);box-shadow:var(--shadow-sm)}
.lang-button{min-width:42px;height:34px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-weight:900;letter-spacing:.04em}
.lang-button.active{color:white;background:linear-gradient(135deg,var(--heart),var(--harmony))}
