:root {
  --bg: #14151a;
  --surface: #1c1e24;
  --surface-raised: #24262e;
  --ink: #ece9e1;
  --ink-dim: #9a9a9a;
  --line: #33353d;
  --accent: #3f7d72;
  --accent-soft: rgba(63, 125, 114, 0.18);
  --error: #c1655a;

  --font-display: "Newsreader", serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
}

.hidden { display: none !important; }

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(20, 21, 26, 0.9);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.brand:hover { opacity: 0.8; }

.brand-mark { color: var(--accent); font-size: 14px; }

.auth-area { display: flex; gap: 10px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  gap: 6px 22px;
  padding: 22px 24px 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-dim);
}

.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }

.site-footer a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover { color: var(--accent); }

.footer-sep { opacity: 0.4; }

@media (max-width: 640px) {
  .site-footer { flex-direction: column; gap: 10px; text-align: center; }
  .site-footer nav { gap: 8px 16px; }
}

.btn {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn:hover { border-color: var(--accent); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0e1512;
  font-weight: 500;
}

.btn-primary:hover { background: #4d9184; }

.btn-ghost { color: var(--ink-dim); }

/* Layout */
main#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.view { animation: fade-in 0.35s ease; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  padding: 120px 0 60px;
  max-width: 640px;
}

.hero-globe {
  width: 220px;
  height: 220px;
  margin: 0 auto 24px;
}

.globe-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.globe-outline {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.globe-lat,
.globe-lat-line {
  fill: none;
  stroke: var(--line);
  stroke-width: 0.75;
  opacity: 0.7;
}

.globe-meridian {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  transform-origin: 100px 100px;
  transform-box: fill-box;
  animation: globe-spin 6s linear infinite;
}

.globe-meridian.m1 { animation-delay: 0s; }
.globe-meridian.m2 { animation-delay: -1s; }
.globe-meridian.m3 { animation-delay: -2s; }
.globe-meridian.m4 { animation-delay: -3s; }
.globe-meridian.m5 { animation-delay: -4s; }
.globe-meridian.m6 { animation-delay: -5s; }

@keyframes globe-spin {
  0%   { transform: scaleX(1);    opacity: 0.85; }
  50%  { transform: scaleX(0.02); opacity: 0.2; }
  100% { transform: scaleX(1);    opacity: 0.85; }
}

.hero-globe-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  font-style: italic;
  text-align: center;
  margin: 0 0 36px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.25;
  margin: 0 0 20px;
}

.hero-sub {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.section-head {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-map {
  width: 100%;
  height: 360px;
  margin: 4px 0 28px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
}

.share-category-btn {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 20px;
  color: var(--ink);
  white-space: nowrap;
  margin-bottom: 2px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  margin: 0;
}

.status-text {
  font-family: var(--font-mono);
  color: var(--ink-dim);
  padding: 100px 0;
  text-align: center;
  font-size: 14px;
}

.error-text { color: var(--error); }

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  padding: 8px;
  border: 1px solid #4a4c54;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 -1px 0 rgba(0, 0, 0, 0.55) inset,
    0 8px 18px rgba(0, 0, 0, 0.5);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  border: 1px solid #16171b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) inset;
}

.category-card:hover img { transform: scale(1.04); }

.category-card .plaque {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 16px 12px 10px;
  background: linear-gradient(to top, rgba(10,11,14,0.92), rgba(10,11,14,0));
}

.category-card .plaque-name {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 4px;
}

.category-card .plaque-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.category-card.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Thumb grid */
.back-btn { margin-top: 32px; }

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.thumb {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid #4a4c54;
  overflow: hidden;
  cursor: pointer;
  border-radius: 3px;
  padding: 5px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 -1px 0 rgba(0, 0, 0, 0.55) inset,
    0 4px 10px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease;
}

.thumb:hover { transform: translateY(-2px); }

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid #16171b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) inset;
}

.thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 10px;
}

.geo-pin {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 13px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.96);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 60px 20px 24px;
  z-index: 100;
}

.lightbox-inner {
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  margin: auto;
}

.lightbox-inner img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  background: var(--surface);
  padding: 13px;
  border: 1px solid #4a4c54;
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(0, 0, 0, 0.55) inset,
    0 15px 40px rgba(0, 0, 0, 0.55);
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.lightbox-inner img.zoomed {
  transform: scale(2.2);
  cursor: zoom-out;
  position: relative;
  z-index: 5;
}

.lightbox-photo-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  text-align: center;
  margin: 4px 0 0;
  max-width: 80vw;
}

.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
}

.lightbox-info-keywords {
  color: var(--ink-dim);
  max-width: 280px;
  white-space: normal;
  line-height: 1.4;
}

.lightbox-info-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  overflow: hidden;
  max-width: 82vw;
}

.lightbox-info-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  border-right: 1px solid var(--line);
}

.lightbox-info-cell:last-child { border-right: none; }

.lightbox-info-note {
  white-space: normal;
  color: var(--ink-dim);
}

.lightbox-info-name {
  color: var(--ink-dim);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-info-btn {
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.15s ease;
}

.lightbox-info-btn:hover { color: var(--accent); }

.lightbox-info-link {
  color: var(--accent);
  text-decoration: none;
}

.lightbox-info-link:hover { text-decoration: underline; }

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
  z-index: 1;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(28, 30, 36, 0.85);
  color: #fff;
  font-size: 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
  z-index: 5;
}

.lightbox-nav:hover {
  border-color: var(--accent);
  background: rgba(63, 125, 114, 0.25);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 640px) {
  /* Handy: Pfeile unten fest (in der Mitte laegen sie unter der Infobox), zusaetzlich Wischen */
  .lightbox-nav { top: auto; bottom: 16px; transform: none; width: 52px; height: 52px; font-size: 28px; }
  .lightbox-prev { left: 14px; }
  .lightbox-next { right: 14px; }
  .lightbox { padding-bottom: 84px; }
  .lightbox-info-bar { flex-direction: column; max-width: 90vw; width: 100%; }
  .lightbox-info-cell { border-right: none; border-bottom: 1px solid var(--line); justify-content: center; }
  .lightbox-info-cell:last-child { border-bottom: none; }
  /* lange Stichwortliste darf die Seite nicht verbreitern (sonst zoomt das Handy heraus) */
  .lightbox-info-cell { white-space: normal; min-width: 0; text-align: center; }
  .lightbox-info-cell > span { min-width: 0; overflow-wrap: anywhere; }
  .lightbox-info-keywords { max-width: none; }
}

@media (max-width: 640px) {
  .topbar { padding: 16px 20px; }
  main#app { padding: 0 20px 60px; }
  .hero { padding: 70px 0 40px; }
  .hero h1 { font-size: 30px; }
}

/* Sichtbarer Fokus-Rahmen für per Tastatur bedienbare Kacheln/Thumbnails */
.category-card:focus-visible,
.thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip-Link: unsichtbar bis fokussiert, springt Header/Login-Bereich */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: #0e1512;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Suchfeld (Topbar) ---------- */

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 260px;
  max-width: 40vw;
  padding: 9px 34px 9px 14px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
}

.search-input::placeholder { color: var(--ink-dim); }

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
}

.search-clear:hover { color: var(--accent); }

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
}

.breadcrumb-item {
  color: var(--ink-dim);
  text-decoration: none;
}

a.breadcrumb-item:hover { color: var(--accent); text-decoration: underline; }

.breadcrumb-item[aria-current="page"] { color: var(--ink); }

.breadcrumb-sep { color: var(--line); }

/* Kompensiert das zusätzliche Padding oben, da section-head schon eigenen
   Abstand mitbringt — Breadcrumb rückt näher an die Topbar heran. */
.breadcrumb + .section-head { padding-top: 20px; }

/* ---------- Suchergebnis- / Thumb-Zusatzbeschriftung ---------- */

.thumb-breadcrumb {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4px 8px 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-dim);
  background: linear-gradient(to top, rgba(10,11,14,0.85), rgba(10,11,14,0));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 22px;
  background: var(--surface-raised);
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: 12px; }
  .search-input { width: 100%; max-width: none; }
  .search-form { width: 100%; order: 3; }
}

/* ---------- Lose Bilder direkt in einer Kategorie (ohne Unterkategorie) ---------- */

.loose-images-section {
  margin-top: 56px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.loose-images-head {
  padding: 28px 0 20px;
  margin-bottom: 20px;
  border-bottom: none;
}

.loose-images-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  margin: 0;
  color: var(--ink-dim);
}

/* ---------- Orts-Beschreibung (beschreibung.txt) ---------- */

.folder-note {
  max-width: 760px;
  margin: -8px 0 32px;
}

.folder-note-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.92;
  margin: 0 0 6px;
  white-space: pre-line;
}

.folder-note-text.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.folder-note-toggle {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.folder-note-toggle:hover { color: var(--accent-bright); }


/* ---------- 3 DAYS Travelguide ---------- */

:root { --gold: #d4af5f; }

/* Beschreibung und Guide-Karte nebeneinander */
.detail-intro {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.detail-intro .folder-note { flex: 1 1 auto; max-width: 760px; margin: -8px 0 32px; }

.guide { flex: 0 0 320px; margin: -8px 0 32px auto; }

.guide-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px 18px;
  background: var(--surface);
  border: 1px solid #4a4c54;
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--font-body);
  text-align: center;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 -1px 0 rgba(0, 0, 0, 0.55) inset,
    0 8px 18px rgba(0, 0, 0, 0.4);
  transition: border-color 0.15s ease;
}

.guide-banner:hover,
.guide-banner[aria-expanded="true"] { border-color: var(--gold); }

.guide-banner:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.guide-logo { width: 88px; height: 88px; flex: none; }

.guide-banner-text { display: flex; flex-direction: column; gap: 4px; }

.guide-banner-title { font-family: var(--font-display); font-size: 21px; line-height: 1.25; }

.guide-banner-sub { font-size: 14px; color: var(--ink-dim); line-height: 1.5; }

.guide-banner-action {
  margin-top: 4px;
  padding: 9px 18px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-size: 15px;
  color: var(--gold);
  white-space: nowrap;
}

.guide-banner:hover .guide-banner-action,
.guide-banner[aria-expanded="true"] .guide-banner-action {
  background: rgba(212, 175, 95, 0.12);
}

.guide-body {
  max-width: 760px;
  margin: 0 0 48px;
  padding: 8px 0 0;
  font-size: 16px;
  line-height: 1.75;
  animation: fade-in 0.3s ease;
}

.guide-body p { margin: 0 0 16px; }
.guide-body strong { color: var(--ink); font-weight: 600; }
.guide-body em { color: var(--ink-dim); }
.guide-body a { color: var(--gold); }
.guide-body ul { margin: 0 0 16px; padding-left: 20px; }

.guide-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0 8px;
}

.guide-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  margin: 32px 0 16px;
  color: var(--gold);
}

.guide-h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.3;
  margin: 28px 0 10px;
}

.guide-h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 2px solid var(--gold);
}

.guide-figure { margin: 0 0 18px; }

.guide-figure-btn {
  display: block;
  width: 100%;
  padding: 8px;
  background: var(--surface);
  border: 1px solid #4a4c54;
  border-radius: 3px;
  cursor: zoom-in;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 -1px 0 rgba(0, 0, 0, 0.55) inset,
    0 8px 18px rgba(0, 0, 0, 0.45);
}

.guide-figure-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #16171b;
}

.guide-figure figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 8px;
}

.guide-footnote {
  margin-top: 40px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
}

/* Neben der Guide-Karte ist Platz: Beschreibung erst nach 12 Zeilen kürzen */
@media (min-width: 901px) {
  .detail-intro .folder-note-text.clamped { -webkit-line-clamp: 12; }
}

/* Schmalere Bildschirme: Karte unter den Text, wieder als Querleiste */
@media (max-width: 900px) {
  .detail-intro { flex-direction: column; gap: 0; }
  .detail-intro .folder-note { max-width: 760px; }
  .guide { flex: none; width: 100%; max-width: 760px; margin-left: 0; }
  .guide-banner { flex-direction: row; text-align: left; padding: 14px 20px 14px 14px; gap: 18px; }
  .guide-logo { width: 80px; height: 80px; }
  .guide-banner-text { flex: 1; }
  .guide-banner-action { margin-top: 0; }
}

@media (max-width: 640px) {
  .guide-banner { flex-wrap: wrap; gap: 14px; }
  .guide-logo { width: 64px; height: 64px; }
  .guide-banner-text { flex: 1 1 180px; }
  .guide-banner-action { width: 100%; text-align: center; }
  .guide-h2 { font-size: 28px; }
  .guide-h3 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-body { animation: none; }
}


/* ---------- Passende Kategorien in der Suche ---------- */

.search-categories { margin: -8px 0 32px; }

.search-categories-label {
  font-size: 14px;
  color: var(--ink-dim);
  margin: 0 0 12px;
}

.search-categories-list { display: flex; flex-wrap: wrap; gap: 10px; }

.search-category-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease;
}

.search-category-chip:hover { border-color: var(--accent); }
.search-category-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.search-category-name { font-family: var(--font-display); font-size: 19px; }

.search-category-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
}


/* ---------- Guide: Kopfzeile (geöffnet) ---------- */

.guide-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: -8px 0 8px;
  padding: 8px 10px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 3px;
  scroll-margin-top: 90px;
}

.guide-bar-logo { width: 44px; height: 44px; flex: none; }

.guide-bar-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.2;
}

.guide-bar-actions { display: flex; gap: 4px; flex-wrap: wrap; }

.guide-bar-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 7px 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.guide-bar-btn:hover { border-color: var(--gold); color: var(--gold); }
.guide-bar-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.guide-bar-btn:disabled { opacity: 0.6; cursor: wait; }

/* Die Kopfzeile trägt den Titel, die große Überschrift im Guide entfällt */
.guide-body > .guide-h2:first-child { display: none; }

/* Geöffneter Guide: Beschreibung bleibt, Karte verschwindet */
.detail-intro.guide-open .folder-note { max-width: 760px; }

/* Keine Beschreibung: Karte als schmale Querleiste statt leerer Fläche */
.detail-intro.no-note { display: block; }
.detail-intro.no-note .guide { width: 100%; max-width: 760px; margin: -8px 0 32px; }
.detail-intro.no-note .guide-banner { flex-direction: row; text-align: left; padding: 12px 20px 12px 12px; gap: 18px; }
.detail-intro.no-note .guide-logo { width: 64px; height: 64px; }
.detail-intro.no-note .guide-banner-text { flex: 1; }
.detail-intro.no-note .guide-banner-action { margin-top: 0; }

@media (max-width: 640px) {
  .guide-toolbar { flex-wrap: wrap; }
  .guide-bar-title { flex: 1 1 150px; }
  .guide-bar-actions { width: 100%; justify-content: space-between; }
  .guide-bar-btn { flex: 1; padding: 8px 6px; border-color: var(--line); }
}

.guide-print-header { display: none; }

@media print {
  @page { size: A4; margin: 16mm 14mm; }

  body.printing-guide { background: #fff !important; color: #111 !important; }

  body.printing-guide .topbar,
  body.printing-guide .site-footer,
  body.printing-guide .skip-link,
  body.printing-guide .breadcrumb,
  body.printing-guide .back-btn,
  body.printing-guide .section-head,
  body.printing-guide .detail-map,
  body.printing-guide .detail-intro,
  body.printing-guide .guide-toolbar,
  body.printing-guide #thumb-grid,
  body.printing-guide .lightbox,
  body.printing-guide .toast { display: none !important; }

  body.printing-guide main#app { max-width: none; padding: 0; }
  body.printing-guide .view { animation: none; }

  body.printing-guide .guide-print-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #999;
  }
  /* Gold-Logo auf Weiß kräftiger darstellen */
  body.printing-guide .guide-print-header img { filter: brightness(0.75) saturate(1.3); }
  body.printing-guide .guide-print-title { font-family: var(--font-display); font-size: 20pt; margin: 0 0 4px; color: #111; }
  body.printing-guide .guide-print-url { font-family: var(--font-mono); font-size: 8pt; margin: 0; color: #555; word-break: break-all; }

  body.printing-guide .guide-body > .guide-h2:first-child { display: block; }
  body.printing-guide .guide-body { max-width: none; font-size: 11pt; line-height: 1.55; color: #111; }
  body.printing-guide .guide-body strong { color: #111; }
  body.printing-guide .guide-body em,
  body.printing-guide .guide-figure figcaption,
  body.printing-guide .guide-footnote { color: #444; }
  body.printing-guide .guide-h2 { color: #8a6a1f; }
  body.printing-guide .guide-h4 { border-left-color: #b8923a; }
  body.printing-guide .guide-body hr { display: none; }
  /* Jeder Tag ab Tag 2 beginnt auf einer neuen Seite */
  body.printing-guide .guide-h3 ~ .guide-h3 { break-before: page; margin-top: 0; }
  body.printing-guide .guide-h2 + p,
  body.printing-guide .guide-h4 { break-after: avoid; }

  body.printing-guide .guide-figure { break-inside: avoid; margin-bottom: 10pt; }
  body.printing-guide .guide-figure-btn {
    padding: 0; border: none; box-shadow: none; background: none;
  }
  body.printing-guide .guide-figure img {
    width: auto; max-width: 100%; max-height: 78mm; border: none; margin: 0 auto;
  }
}

/* Karten im 3 DAYS Travelguide */
.guide-map-wrap { margin: 6px 0 22px; }
.guide-map { height: 360px; border: 1px solid var(--line, #333); border-radius: 2px; background: #1b1b1b; }
.guide-map-wrap figcaption { font-size: 12px; opacity: .7; margin-top: 6px; }
.guide-pin span {
  display: block; width: 26px; height: 26px; line-height: 22px; text-align: center;
  border-radius: 50%; background: #c8a24a; color: #111; font: 700 12px/22px sans-serif;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); box-sizing: border-box;
}
@media print { .guide-map { height: 300px; page-break-inside: avoid; } }

/* Kapitel in einer Galerie */
.kapitel-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
}
.kapitel-chip {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.kapitel-chip:hover,
.kapitel-chip:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.kapitel-kopf {
  grid-column: 1 / -1;
  margin: 26px 0 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.kapitel-kopf:first-of-type { margin-top: 8px; }
.kapitel-kopf h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.kapitel-zahl { font-family: var(--font-body); font-size: 13px; color: var(--ink-dim); font-weight: 400; }
.kapitel-kopf p { margin: 6px 0 0; color: var(--ink-dim); max-width: 70ch; font-size: 15px; line-height: 1.5; }

/* Eigenständiger Führer (link: in 3days.md): ohne 3-DAYS-Logo */
.guide.extern .guide-logo { display: none; }
