


html, body {
  overflow-x: hidden;
  max-width: 100%;
}
img, svg, video { max-width: 100%; }

img:where(:not([class*="h-"])), svg, video { height: auto; }
*, *::before, *::after { min-width: 0; }


.tap-44 {
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}
.tap-44:not(.hidden) {
  display: inline-flex;
}


.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--color-ink, #111);
  color: var(--color-bg, #fff);
  padding: 12px 16px;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--color-accent, currentColor);
  outline-offset: 2px;
}


.ic {
  width: 1em; height: 1em;        
  display: inline-block;
  vertical-align: -0.125em;       
  flex: none;
}
.ic-md { width: 18px; height: 18px; }
.ic-lg { width: 22px; height: 22px; }


.mobile-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 8px;
  align-items: center; justify-content: center;
  background: transparent;
  cursor: pointer;
  border: 1px solid currentColor;
  color: var(--color-ink, #111);
  opacity: 0.6;
  flex-shrink: 0;
}
.mobile-burger:focus-visible { opacity: 1; }
@media (hover: hover) { .mobile-burger:hover { opacity: 1; } }


.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(340px, 88vw);
  background: var(--color-card, var(--color-paper, #fff));
  z-index: 101;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
  box-shadow: -10px 0 40px oklch(0 0 0 / 0);   
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 20px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.mobile-drawer.open {
  transform: translateX(0);
  box-shadow: -10px 0 40px oklch(0 0 0 / 0.25);
}
.mobile-drawer h2 {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-ink-3, #666); font-weight: 600;
  margin: 0 0 12px 0;
  font-family: var(--font-mono, monospace);
}
.mobile-drawer a {
  padding: 14px 12px;
  min-height: 44px;
  border-radius: 8px;
  font-size: 16px; font-weight: 500;
  color: var(--color-ink, #111);
  text-decoration: none;
  border-bottom: 1px solid var(--color-rule, #eee);
  display: flex; align-items: center;
}
.mobile-drawer a:focus-visible { background: var(--color-surface, var(--color-paper-2, #f5f5f5)); }
@media (hover: hover) { .mobile-drawer a:hover { background: var(--color-surface, var(--color-paper-2, #f5f5f5)); } }
.mobile-drawer a.active { color: var(--color-sandstone-500, var(--color-main-600, #c25a36)); }
.mobile-drawer .close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--color-surface, var(--color-paper-2, #f5f5f5));
  border: 0; cursor: pointer; font-size: 17px;
}

.mobile-overlay {
  position: fixed; inset: 0;
  background: oklch(0 0 0 / 0.4);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }


@media (max-width: 1023px) {
  
  header nav.border-t ul.flex,
  header nav.border-t ul.items-stretch {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1.25rem !important;
  }
  header nav.border-t ul.flex::-webkit-scrollbar,
  header nav.border-t ul.items-stretch::-webkit-scrollbar { display: none; }
  header nav.border-t ul.flex > li { flex-shrink: 0; }
  
  header nav.border-t ul.flex > li.ml-auto { margin-left: 0 !important; }

  
  header .ml-auto a[href="#"]:not([class*="bg-"]):not([style*="background"]) {
    
  }
  header .ml-auto kbd { display: none !important; }

  
  header nav.border-t { display: none; }

  .mobile-burger { display: inline-flex; }
}


@media (max-width: 640px) {

  
  header .ml-auto.flex { gap: 8px !important; }
  
  header .ml-auto button .hidden.md\:inline,
  header .ml-auto button kbd { display: none !important; }
  
  header .ml-auto a.t-meta.hidden.md\:inline { display: none !important; }
  
  header .t-meta.hidden.md\:inline { display: none !important; }

  
  header .ml-auto.flex .card.hidden.md\:flex,
  header .ml-auto.flex > .pill { display: none !important; }
  
  header .ml-auto.flex { gap: 6px !important; min-width: 0 !important; }

  
  .today-strip > div,
  .today-bar > div { gap: 0.25rem 0.6rem !important; }
  .today-strip .num,
  .today-bar .num { white-space: normal !important; }
  

  
  .t-display { font-size: clamp(28px, 8.5vw, 56px) !important; line-height: 1.02 !important; }
  .t-h1      { font-size: clamp(24px, 7vw,    44px) !important; line-height: 1.08 !important; }
  .t-h2      { font-size: clamp(22px, 6vw,    32px) !important; line-height: 1.15 !important; }
  .t-h3      { font-size: 18px !important; line-height: 1.25 !important; }
  .t-lede    { font-size: clamp(16px, 4.4vw, 20px) !important; line-height: 1.5 !important; }
  .t-body    { font-size: 16px !important; line-height: 1.6 !important; }

  
  .dropcap::first-letter,
  .article-body p.dropcap::first-letter {
    font-size: 3.2em !important;
    padding: 4px 8px 0 0 !important;
    line-height: 0.88 !important;
  }

  
  .day-num,
  .date-num { font-size: clamp(40px, 14vw, 80px) !important; line-height: 0.95 !important; }
  .number-marker { font-size: 14px !important; }
  .day-num-hero { font-size: 56px !important; }
  .a-weather-num { font-size: 56px !important; }

  
  .ticker { display: none !important; }

  
  .today-strip .ml-auto,
  .today-bar   .ml-auto { margin-left: 0 !important; width: 100%; justify-content: flex-start; }

  
  .pill-scroll-row,
  .h-scroll-row,
  .tab-nav {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }
  .pill-scroll-row::-webkit-scrollbar,
  .h-scroll-row::-webkit-scrollbar,
  .tab-nav::-webkit-scrollbar { display: none; }

  
  .max-w-\[1440px\] { padding-left: 16px !important; padding-right: 16px !important; }
  .max-w-\[1280px\] { padding-left: 16px !important; padding-right: 16px !important; }

  
  .grid.grid-cols-12.gap-x-10,
  .grid.grid-cols-12.gap-x-8,
  .grid.grid-cols-12.gap-8 { column-gap: 16px !important; }

  
  
  .hero { aspect-ratio: 4/5 !important; min-height: 460px !important; max-width: 100% !important; }
  .hero-map { aspect-ratio: 4/5 !important; }
  .hero-map .pin:nth-child(n+3) { display: none; }

  
  .gallery { grid-template-columns: 1fr 1fr !important; aspect-ratio: 16/9 !important; }
  .gallery > button:first-child {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
    aspect-ratio: 16/9 !important;
  }

  
  .gal-main { aspect-ratio: 4/3 !important; }
  .gal-side { aspect-ratio: 4/3 !important; }

  
  .tour-marker       { width: 24px !important; height: 24px !important; font-size: 11px !important; }
  .tour-marker.large { width: 30px !important; height: 30px !important; font-size: 13px !important; }
  
  .tour-marker::after,
  .area-marker::after {
    content: ""; position: absolute; inset: -10px;
    min-width: 44px; min-height: 44px;
  }

  
  .sticky-filter-mobile-compact { padding-top: var(--space-8) !important; padding-bottom: var(--space-8) !important; }

  
  .article-body figure { margin: 1.5em 0 !important; }

  
  .nav-link { padding-top: 12px !important; padding-bottom: 12px !important; }

  
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  
  .uw-table-wrap { position: relative; }
  .uw-table-wrap::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px;
    background: linear-gradient(to right, transparent, var(--color-paper, var(--color-card, #fff)));
    pointer-events: none;
  }

  
  nav[aria-label="Seitenwahl"] a,
  nav[aria-label="Seitenwahl"] span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  
  .ad-slot.flex,
  .ad-slot > .flex { flex-wrap: wrap; gap: 4px 12px; }

  
  .article-body blockquote { font-size: 22px; padding: 20px 0; }
}


@media (min-width: 641px) and (max-width: 1023px) {

  
  .max-w-\[1440px\],
  .max-w-\[1280px\] { padding-left: 24px !important; padding-right: 24px !important; }

  
  .a-weather-num { font-size: 48px !important; }

  
  .pill-scroll-row,
  .h-scroll-row,
  .tab-nav {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pill-scroll-row::-webkit-scrollbar,
  .h-scroll-row::-webkit-scrollbar,
  .tab-nav::-webkit-scrollbar { display: none; }
}


header nav.border-t ul.flex,
header nav.border-t ul.items-stretch,
.pill-scroll-row,
.h-scroll-row,
.tab-nav {
  scroll-snap-type: x proximity;
}
header nav.border-t ul.flex > li,
header nav.border-t ul.items-stretch > li,
.pill-scroll-row > *,
.h-scroll-row > *,
.tab-nav > * {
  scroll-snap-align: start;
}


@media (forced-colors: active) {
  .nav-link.active,
  .top-nav-link.active {
    border-bottom: 2px solid CanvasText;
  }
  .ticker {
    border-color: CanvasText;
  }
  .skip-link:focus-visible {
    outline: 2px solid CanvasText;
  }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
