/* BauGenie v0.64 – eindeutige Korrekturen nach der historischen Hauptkaskade */
.hero-co2-card .co2-reference-card b,
.hero-co2-card .co2-reference-card small {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero-co2-card .co2-reference-card strong {
  white-space: nowrap;
}

.tool-focus-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 112px;
  padding: 15px;
  text-align: center;
}

.tool-focus-grid .tool-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 40px;
  height: 27px;
  margin: 0 auto 2px;
  padding: 0 9px;
  border: 1px solid #e4c35d;
  border-radius: 999px;
  background: #fff6d8;
  color: var(--navy);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.tool-focus-grid button > b,
.tool-focus-grid button > span:not(.tool-badge) {
  grid-column: auto;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
}

.tool-focus-grid button > b {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.25;
}

.tool-focus-grid button > span:not(.tool-badge) {
  margin-top: 1px;
}

.focus-navigation {
  position: sticky;
  top: 77px;
  z-index: 26;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid #d4e2de;
  border-radius: 10px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 7px 18px rgba(16,42,67,.09);
  backdrop-filter: blur(9px);
}

.focus-navigation[hidden] {
  display: none !important;
}

.focus-navigation .focus-back {
  position: static;
  flex: none;
  min-height: 36px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  box-shadow: none;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.focus-quick-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 1px 2px 3px;
  scrollbar-width: thin;
  scrollbar-color: #a9c2bc transparent;
}

.focus-quick-switch > span {
  flex: none;
  margin: 0 2px 0 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.focus-quick-switch button {
  flex: none;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #cfddd9;
  border-radius: 999px;
  background: #f7faf9;
  color: var(--navy);
  font: inherit;
  font-size: 9px;
  font-weight: 780;
  white-space: nowrap;
  cursor: pointer;
}

.focus-quick-switch button:hover,
.focus-quick-switch button:focus-visible {
  border-color: #d6aa3b;
  background: #fff8e5;
}

.focus-quick-switch button.active {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: #fff;
}

body.pwa-standalone .focus-navigation {
  display: none !important;
}

@media (max-width: 820px) {
  .focus-navigation { top: 69px; }
  .focus-quick-switch > span { display: none; }
}

@media (max-width: 560px) {
  .focus-navigation {
    margin-left: -4px;
    margin-right: -4px;
    padding: 7px;
  }
  .focus-navigation .focus-back { padding-inline: 9px; }
  .tool-focus-grid button { min-height: 104px; }
}

@media print {
  .focus-navigation { display: none !important; }
}
