/* Kaffeespezialitäten – nur auf /kaffee-spezialitaeten und /en/coffee-specialties geladen.
   ---------- (/kaffee-spezialitaeten, /en/coffee-specialties) ---------- */
.guide > header, .guide > main, .guide > footer { width: min(1080px, calc(100% - 32px)); }
.guide .site-links a[aria-current="page"] { color: var(--accent); font-weight: 650; }
.guide .lang a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.guide-intro { padding: clamp(14px, 3vw, 36px) 0 0; }
.guide h1 { margin: 18px 0 16px; font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.guide h1 em { color: var(--accent); font-style: italic; font-weight: 500; }
.guide .lede { max-width: 56ch; color: var(--muted); }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.guide-toc a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font-size: .88rem; font-weight: 650; text-decoration: none; }
.guide-toc a:hover { border-color: var(--accent); color: var(--accent); }

/* Bildergalerie: waagrecht scrollbar, Bilder unterschiedlich hoch wie eine Fotowand */
.guide-gallery { margin: 34px 0 0; }
.guide-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.guide-shot { margin: 0; scroll-snap-align: start; }
.guide-shot a { display: block; overflow: hidden; border-radius: 18px; background: var(--soft); }
.guide-shot img { display: block; width: 100%; height: 300px; object-fit: cover; transition: transform .35s ease; }
.guide-shot:nth-child(even) img { height: 240px; margin-top: 30px; }
.guide-shot a:hover img { transform: scale(1.04); }
.guide-shot figcaption { margin-top: 8px; color: var(--text); font-size: .86rem; font-weight: 600; line-height: 1.35; }
.guide-shot figcaption small { display: block; color: var(--muted); font-size: .74rem; font-weight: 500; }

/* Gruppen und Getränkekarten */
.drink-group, .price-stats, .knowledge { margin-top: clamp(44px, 7vw, 72px); scroll-margin-top: 16px; }
.drink-group-head { max-width: 62ch; margin-bottom: 18px; }
.drink-group-head h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.drink-group-head p { margin: 0; }
.drink-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.drink-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  scroll-margin-top: 16px;
}
.drink-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(166 90 46 / 18%), var(--shadow); }
.drink-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 0; }
.drink-card h3 { margin: 0; color: var(--text); font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.drink-origin { margin: 0; color: var(--accent); font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.drink-text { margin: 0; font-size: .95rem; }
.drink-recipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 0; }
.drink-recipe div { padding: 8px 12px; border-radius: 12px; background: var(--soft); }
.drink-recipe dt { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.drink-recipe dd { margin: 0; color: var(--text); font-size: .88rem; font-weight: 600; line-height: 1.35; }
.drink-live { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; color: var(--muted); font-size: .86rem; }
.drink-live[hidden], .drink-photos[hidden], .drink-map[hidden] { display: none; }
.drink-live-rating strong { color: var(--text); font-size: 1rem; }
.drink-live-rating { color: #b98a3f; }
.drink-live-price { color: var(--accent); font-weight: 750; }
.drink-live-cheap { flex-basis: 100%; font-size: .8rem; }
.drink-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.drink-photo { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--soft); }
.drink-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.drink-photo:hover img { transform: scale(1.06); }
.drink-map { margin-top: auto; padding-top: 4px; font-size: .9rem; font-weight: 650; text-decoration: none; }
.drink-map:hover { text-decoration: underline; }

/* Preisstatistik */
.price-table-wrap {
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(135deg, #593826, #8a6140 50%, #4a2b1c);
  box-shadow: 0 18px 40px rgb(30 18 10 / 28%);
}
.price-table-board {
  padding: clamp(14px, 3vw, 26px) clamp(14px, 3vw, 30px) clamp(16px, 2.4vw, 22px);
  border: 1px solid rgb(189 176 145 / 35%);
  border-radius: 8px;
  background:
    repeating-linear-gradient(178deg, transparent 0 34px, rgb(245 237 219 / 2.5%) 34px 35px),
    radial-gradient(circle at center, #171717 0%, #040404 85%);
  color: #f5eddb;
}
.price-board-heading { margin: 0; color: #f5eddb; font-family: "Dancing Script", "Snell Roundhand", cursive; font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 400; line-height: 1.15; text-align: center; }
.price-board-lead { margin: 2px 0 14px; padding-bottom: 14px; border-bottom: 1.5px dashed rgb(245 237 219 / 55%); color: #c7c2b2; font-size: .8rem; text-align: center; }
.price-table-scroll { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 6px 10px; border-bottom: 0; text-align: left; vertical-align: baseline; }
.price-table thead th { padding-bottom: 8px; color: #c7c2b2; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.price-table .col-drink { color: #f5eddb; font-family: "Dancing Script", "Snell Roundhand", cursive; font-size: 1.6rem; font-weight: 400; line-height: 1.2; white-space: nowrap; }
.price-table thead .col-drink { font-family: inherit; font-size: .68rem; font-weight: 700; }
.price-table .col-drink a { color: inherit; text-decoration: none; }
.price-table .col-drink a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.price-table tbody .col-drink::after { content: ""; }
.price-table .col-num { color: #f5eddb; font-family: "Droid Sans Mono", ui-monospace, monospace; font-size: .98rem; text-align: right; white-space: nowrap; }
.price-table thead .col-num { font-family: inherit; font-size: .68rem; }
.price-table .price-avg { color: #fff6e3; font-weight: 700; font-size: 1.08rem; }
.price-table .col-range { min-width: 180px; }
.range-text { display: block; color: #c7c2b2; font-family: "Droid Sans Mono", ui-monospace, monospace; font-size: .76rem; white-space: nowrap; }
.range-bar { position: relative; display: block; height: 6px; margin-top: 5px; border-radius: 999px; background: rgb(245 237 219 / 10%); }
.range-span { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: rgb(245 237 219 / 35%); }
.range-avg { position: absolute; top: 50%; width: 11px; height: 11px; border: 2px solid #0b0b0b; border-radius: 50%; background: #f5eddb; transform: translate(-50%, -50%); }
.price-table tbody tr + tr > * { border-top: 2px dotted rgb(199 194 178 / 22%); }
.price-table-wrap.is-collapsed .is-extra { display: none; }
.price-board-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; }
.price-board-note { margin: 0; color: #c7c2b2; font-size: .72rem; }
.price-toggle { margin: 0; padding: 8px 16px; border: 1px solid rgb(245 237 219 / 40%); border-radius: 999px; background: transparent; color: #f5eddb; font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; }
.price-toggle:hover { border-color: #f5eddb; }
.price-loading { margin: 10px 0; }
.price-table-board .price-loading { color: #c7c2b2; font-family: "Dancing Script", "Snell Roundhand", cursive; font-size: 1.3rem; text-align: center; }

/* Wissen */
.knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.knowledge-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.knowledge-card img { width: 150px; height: 100%; min-height: 170px; border-radius: 14px; object-fit: cover; background: var(--soft); }
.knowledge-card h3 { margin: 4px 0 6px; color: var(--text); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.knowledge-card p { margin: 0; font-size: .92rem; }
.knowledge-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px !important; }
.filter-link { font-size: .88rem; font-weight: 650; text-decoration: none; }
.filter-link:hover { text-decoration: underline; }

.guide-cta { margin-top: clamp(44px, 7vw, 72px); padding: clamp(24px, 4vw, 40px); border-radius: 26px; background: var(--soft); text-align: center; }
.guide-cta h2 { margin: 0 0 6px; }
.guide-cta p { margin-inline: auto; max-width: 52ch; }
.guide-cta .actions { justify-content: center; }

@media (max-width: 760px) {
  .knowledge-grid { grid-template-columns: minmax(0, 1fr); }
  .price-table .col-median { display: none; }
}
@media (max-width: 599px) {
  .guide-gallery-track { grid-auto-columns: 62%; }
  .guide-shot img { height: 260px; }
  .guide-shot:nth-child(even) img { height: 220px; margin-top: 20px; }
  .drink-grid { grid-template-columns: minmax(0, 1fr); }
  .drink-card { padding: 18px; }
  .knowledge-card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .knowledge-card img { width: 96px; min-height: 120px; }
  .price-table th, .price-table td { padding: 6px 5px; }
  .price-table .col-drink { font-size: 1.35rem; white-space: normal; }
  .price-table .col-range { display: none; }
}
@media (prefers-color-scheme: dark) {
  .drink-card:target { box-shadow: 0 0 0 3px rgb(239 168 121 / 22%), var(--shadow); }
}
@media (prefers-reduced-motion: reduce) {
  .guide-shot img, .drink-photo img { transition: none; }
}
@media print {
  .guide-gallery, .guide-toc, .guide-cta, .drink-photos, .drink-map { display: none; }
}
