:root {
  --tb-blue: #e30613;
  --tb-blue-dark: #c80410;
  --tb-gold: #d2a84a;
  --tb-red: #9c2f1a;
  --tb-green: #1f6b45;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1e2430;
  --muted: #5f6b7a;
  --border: #dbe2ec;
  --accent-soft: #f7f4ee;
  --link: #0b4f6c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(210, 168, 74, 0.14), transparent 24%),
    linear-gradient(180deg, #f7f4ee 0%, var(--bg) 34%, #eef2f8 100%);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: linear-gradient(120deg, var(--tb-blue), var(--tb-blue-dark));
  color: #fff;
  border-bottom: 4px solid var(--tb-gold);
  padding: 0.95rem 0 0.72rem;
}

.site-main,
.site-footer,
.site-header > * {
  width: min(1320px, 94vw);
  margin: 0 auto;
}

.site-brand {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.site-brand h1 {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
  letter-spacing: 0.01em;
}

.site-brand p {
  margin: 0.2rem 0 0;
  color: #d8e4f3;
}

.primary-nav {
  display: flex;
  gap: 0.22rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  align-items: center;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 0.45rem 0.62rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  font-size: 0.88rem;
}

.primary-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.primary-nav a.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--tb-blue-dark);
}

.nav-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nav-auth__user {
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
}

.nav-auth__logout {
  width: auto;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--tb-blue-dark);
}

.status-success {
  color: var(--tb-green);
  font-weight: 700;
}

.status-error {
  color: var(--tb-red);
  font-weight: 700;
}

.site-main {
  padding: 1rem 0 2rem;
}

.site-footer {
  padding: 0.2rem 0 2rem;
  color: var(--muted);
}

.footer-legal {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}

.footer-legal h2 {
  margin-top: 0.5rem;
}

.footer-legal p {
  margin: 0;
  line-height: 1.5;
}

.page-shell {
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: 0 8px 20px rgba(11, 47, 87, 0.08);
}

.section-title,
h2,
h3 {
  margin-top: 0;
  color: var(--tb-blue);
}

.muted {
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.hero-copy {
  display: grid;
  gap: 0.8rem;
}

.hero-copy .lead {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.hero-stats {
  display: grid;
  gap: 0.8rem;
}

.hero-stat {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8 0%, #f4efe5 100%);
  border: 1px solid #eadfcd;
}

.hero-stat strong {
  display: block;
  font-size: 1.3rem;
  color: var(--tb-red);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.badge-card {
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(70, 50, 30, 0.18);
  box-shadow: none;
  min-height: 0;
}

.badge-card h3 {
  margin: 0 0 0.2rem;
  font-size: 0.84rem;
  line-height: 1.15;
  color: #4f2f1b;
}

.badge-card p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.2;
  color: #111;
}

.badge-card--general {
  background: #e5dfd0;
}

.badge-card--century {
  background: #efd6a5;
}

.badge-card--map {
  background: #c7deef;
}

.badge-card--nature {
  background: #b9d9b1;
}

.badge-card--war {
  background: #d7cbc0;
}

.badge-card--water {
  background: #bcd8c5;
}

.badge-card--tree {
  background: #d7e9bb;
}

.badge-card--nepomuk {
  background: #d7d0ec;
}

.badge-card--cross {
  background: #e4c9b2;
}

.badge-card--morbid {
  background: #d9c8cf;
}

.badge-card--buescheme {
  background: #d8d1a7;
}

[data-game-badges],
[data-account-game-badges] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.45rem;
}

.entry-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 247, 251, 0.94));
  box-shadow: 0 8px 20px rgba(11, 47, 87, 0.06);
}

.entry-card h3 {
  margin-bottom: 0.5rem;
}

.entry-card p {
  margin: 0.35rem 0 0.8rem;
}

.entry-card a {
  font-weight: 700;
}

.game-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.game-round-card {
  display: grid;
  gap: 0.9rem;
}

.game-image-viewer {
  display: grid;
  gap: 0.5rem;
}

.game-difficulty-map {
  height: 320px;
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.game-image-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #eef2f8;
  min-height: 320px;
  touch-action: none;
}

.game-image {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  display: block;
  transform-origin: center center;
  user-select: none;
  touch-action: none;
  will-change: transform;
}

.game-image-viewport.is-zoom-enabled {
  cursor: zoom-in;
}

.game-image-viewport.is-zoomed {
  cursor: grab;
}

.game-image-viewport.is-dragging {
  cursor: grabbing;
}

.game-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.game-controls {
  display: grid;
  gap: 0.55rem;
}

.game-points-info {
  margin: 0;
  font-weight: 700;
  color: var(--tb-blue);
}

.game-hint-text {
  margin: 0;
  min-height: 1.4em;
  color: var(--tb-green);
  font-weight: 700;
}

.game-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fffdf8 0%, #f4efe5 100%);
  cursor: pointer;
  width: 100%;
  min-width: 0;
}

.game-option input[type="radio"] {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  flex: 0 0 1.35rem;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #fff;
}

.game-option span {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.25;
}

.game-map {
  min-height: 420px;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.game-layout .game-map {
  min-height: 560px;
}

.game-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.game-hint-map {
  min-height: 280px;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.game-title-reveal,
.game-comment-block {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid #eadfcd;
  background: linear-gradient(180deg, #fffdf8 0%, #f4efe5 100%);
}

.game-title-reveal strong,
.game-title-reveal p,
.game-comment-block p {
  margin: 0;
}

.game-title-reveal p,
.game-comment-block p + p {
  margin-top: 0.45rem;
}

.game-favorite-panel {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  gap: 0.7rem;
}

.game-favorite-panel strong,
.game-favorite-panel p {
  margin: 0;
}

.tree-match-board {
  display: grid;
  gap: 0.8rem;
}

.tree-match-rows {
  display: grid;
  gap: 0.85rem;
}

.tree-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.tree-match-row--header {
  align-items: center;
}

.tree-match-column-title {
  margin: 0;
  color: var(--tb-blue);
  font-weight: 700;
}

.tree-match-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tree-match-card.is-selected {
  border-color: var(--tb-blue);
  box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.18);
}

.tree-match-card.is-linked {
  border-color: #d3b98d;
}

.tree-match-card.is-resolved {
  border-color: #6d9f52;
  background: rgba(171, 214, 149, 0.38);
}

.tree-match-card.is-solution {
  border-color: #9a7b41;
  background: rgba(232, 211, 165, 0.38);
}

.tree-match-card.has-guess {
  border-color: #6e93b7;
}

.tree-match-viewer,
.tree-match-map {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.tree-match-viewer {
  display: block;
}

.tree-match-photo-viewport {
  min-height: 0;
  width: 100%;
  height: 100%;
}

.tree-match-photo {
  width: auto;
  height: auto;
}

.tree-match-map {
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.tree-match-meta-wrap {
  min-height: 3rem;
}

.tree-match-meta {
  display: grid;
  gap: 0.2rem;
}

.tree-match-meta p,
.tree-match-meta strong,
.tree-match-meta a {
  margin: 0;
}

.tree-match-meta__number {
  color: #6d4d1b;
}

.tree-match-meta__link {
  font-weight: 700;
}

.tree-match-meta--solution {
  opacity: 0.92;
}

.game-live-score {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.game-live-score__total,
.game-live-score__entry {
  margin: 0;
}

.game-live-score__list {
  display: grid;
  gap: 0.2rem;
}

.game-live-score__entry--plus {
  color: #216e39;
}

.game-live-score__entry--minus {
  color: #9c2f1a;
}

.game-tree-result-banner {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 2px solid var(--border);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  background: #fff;
}

.game-tree-result-banner--success {
  color: #1d5d2d;
  border-color: #6d9f52;
  background: rgba(171, 214, 149, 0.35);
}

.game-tree-result-banner--error {
  color: #8c1d18;
  border-color: #c96a5e;
  background: rgba(232, 171, 165, 0.35);
}

.game-session-summary {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.game-session-summary h3,
.game-session-summary p {
  margin: 0;
}

.game-session-summary__delta {
  font-size: 1.2rem;
  font-weight: 800;
}

.game-session-summary__delta--plus {
  color: #1d5d2d;
}

.game-session-summary__delta--minus {
  color: #8c1d18;
}

.buescheme-round {
  gap: 1rem;
}

.buescheme-scoreboard {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8 0%, #f4efe5 100%);
}

.buescheme-scoreboard__main,
.buescheme-scoreboard__meta {
  margin: 0;
}

.buescheme-scoreboard__main {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tb-blue);
}

.buescheme-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}

.buescheme-choice-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.7rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
}

.buescheme-choice-card.is-selected {
  border-color: var(--tb-blue);
  box-shadow: 0 0 0 2px rgba(11, 53, 91, 0.12);
}

.buescheme-choice-card--wrong {
  border-color: #c96a5e;
  background: rgba(232, 171, 165, 0.26);
}

.buescheme-choice-card--correct {
  border-color: #6d9f52;
  background: rgba(171, 214, 149, 0.22);
}

.buescheme-choice-card__footer {
  display: grid;
  gap: 0.5rem;
  min-height: 3rem;
  min-width: 0;
}

.buescheme-choice-card__footer p {
  margin: 0;
}

.buescheme-mini-map,
.buescheme-guess-map {
  width: 100%;
  min-height: 230px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.buescheme-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.buescheme-result {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
}

.buescheme-result--success {
  color: #1d5d2d;
  border-color: #6d9f52;
  background: rgba(171, 214, 149, 0.3);
}

.buescheme-result--error {
  color: #8c1d18;
  border-color: #c96a5e;
  background: rgba(232, 171, 165, 0.3);
}

.morbid-round {
  gap: 1rem;
}

.morbid-image-grid,
.morbid-title-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.morbid-image-card,
.morbid-title-card {
  display: grid;
  gap: 0.6rem;
  padding: 0.7rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  min-width: 0;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.morbid-image-card {
  cursor: pointer;
}

.morbid-title-card {
  cursor: pointer;
}

.morbid-image-card.is-selected,
.morbid-title-card.is-selected {
  border-color: #9a7b41;
  box-shadow: 0 0 0 2px rgba(154, 123, 65, 0.18);
}

.morbid-image-card.is-linked,
.morbid-title-card.is-linked {
  border-color: #b89045;
  box-shadow: 0 0 0 2px rgba(184, 144, 69, 0.16);
}

.morbid-image-card--correct,
.morbid-title-card--correct {
  border-color: #6d9f52;
  background: rgba(171, 214, 149, 0.28);
}

.morbid-image-card--wrong,
.morbid-title-card--wrong {
  border-color: #c96a5e;
  background: rgba(232, 171, 165, 0.28);
}

.morbid-image-viewer {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.morbid-image-viewport {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.morbid-image-card__footer,
.morbid-title-card__details {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.morbid-image-card__footer p,
.morbid-image-card__footer strong,
.morbid-title-card strong,
.morbid-title-card__details p {
  margin: 0;
}

.morbid-comment-scroll {
  max-height: 150px;
  overflow: auto;
}

.morbid-comment-scroll p {
  margin: 0;
}

.morbid-mini-map {
  width: 100%;
  min-height: 170px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.badge-card {
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(70, 50, 30, 0.18);
  box-shadow: none;
  min-height: 0;
}

.badge-card h3 {
  margin: 0 0 0.2rem;
  font-size: 0.84rem;
  line-height: 1.15;
  color: #4f2f1b;
}

.badge-card p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.2;
  color: #111;
}

.game-history-item {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.game-history-item strong,
.game-history-item p {
  display: block;
  margin: 0;
}

.game-history-item p + p {
  margin-top: 0.25rem;
}

.info-note {
  border-left: 4px solid var(--tb-gold);
  padding-left: 0.9rem;
}

.search-layout,
.map-layout,
.detail-layout,
.object-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.search-layout {
  grid-template-columns: minmax(300px, 380px) 1fr;
}

.game-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.game-layout > .panel:first-child,
.game-layout > aside {
  min-width: 0;
}

.map-layout {
  grid-template-columns: minmax(270px, 300px) 1fr;
}

.detail-layout,
.object-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 420px);
}

.search-form,
.stack {
  display: grid;
  gap: 0.9rem;
}

label,
.label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 700;
}

select,
textarea,
input,
button {
  width: 100%;
  font: inherit;
}

select,
textarea,
input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem;
  background: #fff;
}

select[multiple] {
  min-height: 18rem;
}

button {
  border: none;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  cursor: pointer;
  background: var(--tb-blue);
  color: #fff;
  font-weight: 700;
}

button:hover {
  opacity: 0.94;
}

a.favorite-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  background: var(--tb-blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

a.favorite-link-button:hover {
  text-decoration: none;
  opacity: 0.94;
}

.button-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.button-danger {
  background: #7f1d1d;
}

.button-danger:hover {
  opacity: 0.96;
}

.results-headline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.photo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.8rem;
  box-shadow: 0 8px 20px rgba(11, 47, 87, 0.06);
}

.photo-card__link {
  display: block;
}

.photo-card__image,
.hero-image img,
.map-popup img {
  width: 100%;
  display: block;
  background: #edf1f6;
  border-radius: 12px;
}

.photo-card__image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card__title {
  margin: 0.8rem 0 0.35rem;
  font-size: 1rem;
}

.photo-card__meta,
.photo-card__hint {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.photo-card__hint--action {
  font-weight: 700;
  color: var(--tb-red);
}

.today-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.today-entry {
  gap: 0.35rem;
  min-width: 0;
}

.today-entry .photo-card {
  padding: 0.65rem;
}

.today-entry .photo-card__image {
  aspect-ratio: 4 / 3;
  max-height: none;
  object-fit: cover;
}

.today-entry .photo-card__title {
  font-size: 0.95rem;
}

.today-entry .photo-card__meta,
.today-entry .photo-card__hint {
  font-size: 0.88rem;
}

.today-entry__reason {
  font-weight: 700;
  color: var(--tb-blue);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .today-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero-image img {
  max-height: 76vh;
  object-fit: contain;
}

.object-hero {
  display: grid;
  gap: 0.8rem;
}

.object-hero img {
  width: 100%;
  display: block;
  max-height: 34rem;
  object-fit: contain;
  border-radius: 14px;
  background: #edf1f6;
}

.detail-facts {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.detail-facts dt {
  font-weight: 700;
  color: var(--tb-red);
}

.detail-facts dd {
  margin: 0 0 0.45rem;
}

[hidden] {
  display: none !important;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-pill {
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: #f1ece5;
  border: 1px solid #d2c5b2;
  font-size: 0.92rem;
}

.plain-comment {
  white-space: pre-wrap;
  margin: 0;
  padding: 0.95rem;
  border-radius: 14px;
  border: 1px solid #e1d8ca;
  background: #fbfaf7;
  font: inherit;
  line-height: 1.55;
}

.comment-block {
  display: grid;
  gap: 0.5rem;
}

.rich-comment {
  display: grid;
  gap: 0.8rem;
  line-height: 1.6;
}

.rich-comment p {
  margin: 0;
}

.rich-comment img {
  display: block;
  max-width: min(100%, 820px);
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.map-canvas,
.mini-map {
  min-height: 42rem;
  border-radius: 14px;
  overflow: hidden;
}

.mini-map {
  min-height: 20rem;
}

.map-popup {
  width: 180px;
}

.map-popup strong {
  display: block;
  margin: 0.5rem 0 0.2rem;
}

.nearby-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.nearby-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.favorite-item {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(11, 47, 87, 0.06);
}

.favorite-control {
  min-width: 220px;
}

.profile-row {
  display: grid;
  justify-items: start;
  gap: 0.18rem;
  text-align: left;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.profile-row strong {
  color: var(--tb-red);
}

.profile-row-wrap {
  display: grid;
  gap: 0.55rem;
}

.around-location {
  background: linear-gradient(180deg, #fffdf8 0%, #f5efe4 100%);
}

.around-result {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.95fr) minmax(260px, 0.9fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.around-result__photo,
.around-result__map,
.around-result__meta {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.around-result__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.around-mini-map {
  min-height: 18rem;
  cursor: pointer;
}

.around-start-map {
  min-height: 16rem;
}

.around-distance-badge {
  margin: 0;
  font-weight: 700;
  color: var(--tb-red);
}

.around-result__meta p {
  margin: 0;
  line-height: 1.45;
}

.around-marker {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.around-marker span {
  display: block;
  line-height: 1;
}

.around-marker--user {
  background: #1f6b45;
}

.around-marker--tour {
  background: #9c2f1a;
}

.around-route-list {
  margin: 0;
  padding-left: 1.2rem;
}

.theme-atlas-card {
  display: grid;
  gap: 1rem;
}

.theme-atlas-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
}

.theme-atlas-body {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 1rem;
  align-items: start;
}

.theme-atlas-text,
.theme-atlas-map-wrap {
  display: grid;
  gap: 0.75rem;
}

.theme-atlas-text h3,
.theme-atlas-map-wrap h3 {
  margin-bottom: 0;
}

.theme-atlas-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.theme-atlas-map {
  min-height: 22rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.tagwissen-controls,
.tagwissen-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.zeitachse-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.zeitachse-chip {
  width: auto;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #d8c8ae;
  background: linear-gradient(180deg, #fffdf8 0%, #f4efe5 100%);
  color: #5a2e18;
  font-weight: 700;
}

.zeitachse-chip.is-active {
  background: #e30613;
  color: #fff;
  border-color: #c80410;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.check-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

ul {
  padding-left: 1.2rem;
}

@media (max-width: 1024px) {
  .hero-grid,
  .search-layout,
  .map-layout,
  .detail-layout,
  .object-layout,
  .around-result,
  .theme-atlas-body {
    grid-template-columns: 1fr;
  }

  .tagwissen-controls,
  .tagwissen-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-brand {
    display: grid;
  }

  .primary-nav {
    gap: 0.35rem;
  }

  .game-difficulty-map {
    height: 280px;
    min-height: 280px;
  }

  .tree-match-row {
    grid-template-columns: 1fr;
  }

  .tree-match-row--header {
    display: none;
  }

  .buescheme-choice-grid {
    grid-template-columns: 1fr;
  }

  .morbid-image-grid,
  .morbid-title-grid {
    grid-template-columns: 1fr;
  }

  .primary-nav a {
    min-width: unset;
    flex: 1 1 auto;
  }
}
