/* Mobile-Ansicht Reisefuehrer Lago Maggiore.
   Wird nur bis 820px Breite geladen (media-Attribut im <link>).
   Teil 1 gilt auch ohne JavaScript, Teil 2 (html.m-on) fuer den Umbau durch js/mobile.js. */

/* ---------- Teil 1: Grundlayout, auch ohne JavaScript ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: #f6f3ee !important;
  color: #2a2f36;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
}
#container { width: auto !important; margin: 0 !important; background: transparent; }
#banner {
  float: none; width: auto; height: auto; background: #fff url(../img/header.png) no-repeat center 4px;
  background-size: 300px auto; padding: 70px 16px 12px; position: relative;
}
#banner #bannerlink { position: absolute; left: 0; top: 0; height: 70px; margin: 0; }
#banner #cse-search-box { margin: 0; }
#langswitch { position: static; display: inline-block; margin: 0 0 10px; box-shadow: none; background: #f1ece3; font-size: 15px; padding: 8px 12px; }
#sidebar, #sidebar-b { float: none; width: auto; margin: 16px; border: 0; background: #fff; border-radius: 14px; padding: 12px 16px; }
.menu, .menu-b { width: auto; }
.menu a, .menu-b a { display: inline-block; padding: 8px 0; font-size: 16px; color: #2c5d8f; }
#content { float: none; width: auto !important; margin: 0 !important; padding: 0 16px; line-height: 1.6; }
.inhalt, .hotelbanner, .br300, .br373, .br430 { float: none !important; width: auto !important; margin: 0 0 16px; }
p { background: none; border: 0; padding: 0; margin: 0 0 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
img.links, img.rechts, img.bild-boxql { float: none; display: block; margin: 14px auto; width: auto; max-width: 100%; }
p.bild-boxqr { float: none; width: auto; margin: 14px 0; }
p.bild-boxqr img { margin: 0 auto 6px; }
iframe { max-width: 100%; }
.clear { display: none; }
h1 { margin: 16px 0 12px; font-size: 26px; line-height: 1.2; }
h2 { font-size: 18px; line-height: 1.3; }
#footer { width: auto; margin: 24px 0 0; padding: 16px; }
table { max-width: 100%; }

/* ---------- Teil 2: Umbau mit JavaScript ---------- */
html.m-on { scroll-behavior: smooth; scroll-padding-top: 72px; }
html.m-on body {
  --m-bg: #f6f3ee; --m-card: #ffffff; --m-ink: #2a2f36; --m-muted: #5d646e; --m-line: #e6dfd3;
  --m-blue: #2c5d8f; --m-blue-soft: #e8f0f7; --m-sky: #719dc2; --m-wine: #a8324e; --m-sand: #ffcc66; --m-sand-soft: #fff3d6;
  --m-r: 14px; --m-shadow: 0 1px 2px rgba(40, 50, 60, .06), 0 6px 18px rgba(40, 50, 60, .07);
  --m-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
html.m-on.m-lock, html.m-on.m-lock body { overflow: hidden; }
html.m-on #banner, html.m-on #sidebar, html.m-on #sidebar-b { display: none; }
html.m-on #content { padding: 0 16px 8px; outline: 0; }
html.m-on [hidden] { display: none !important; }
html.m-on hr { display: none; }
html.m-on .m-ic { flex: none; }
html.m-on .m-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.m-on a { color: var(--m-blue); }
html.m-on a:focus-visible, html.m-on button:focus-visible, html.m-on input:focus-visible, html.m-on summary:focus-visible, html.m-on [tabindex]:focus-visible {
  outline: 3px solid var(--m-wine); outline-offset: 2px;
}

/* Kopfzeile */
html.m-on .m-header {
  position: sticky; top: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px; padding: 0 12px 0 14px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--m-line);
}
html.m-on .m-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; border-radius: 8px; z-index: 2; }
html.m-on .m-skip:focus { left: 8px; }
html.m-on .m-logo { display: block; flex: 1 1 auto; min-width: 0; height: 44px; max-width: 250px; overflow: hidden; }
html.m-on .m-logo img { display: block; width: 100%; max-width: 250px; height: auto; margin-top: 3px; }
html.m-on .m-langwrap { position: relative; flex: none; }
html.m-on .m-langbtn {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 12px; border: 1px solid var(--m-line);
  border-radius: 22px; background: #fff; color: var(--m-ink); font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer;
}
html.m-on .m-langbtn svg:not(.m-ic) { width: 22px; height: 14px; border: 1px solid #ccc; }
html.m-on .m-langbtn .m-ic { width: 18px; height: 18px; color: var(--m-muted); }
html.m-on #langswitch {
  display: none; position: absolute; right: 0; top: 52px; margin: 0; padding: 6px; min-width: 150px; background: #fff;
  border: 1px solid var(--m-line); border-radius: 12px; box-shadow: var(--m-shadow); font-size: 16px; z-index: 5;
}
html.m-on .m-open #langswitch { display: block; }
html.m-on #langswitch .trenner { display: none; }
html.m-on #langswitch a, html.m-on #langswitch .aktiv { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--m-ink); font-weight: 600; }
html.m-on #langswitch .aktiv { background: var(--m-blue-soft); color: var(--m-blue); }
html.m-on #langswitch svg { width: 24px; height: 15px; }

/* Typografie */
html.m-on h1 { font: 700 28px/1.15 var(--m-serif); color: #24405c; margin: 6px 0 14px; letter-spacing: -.01em; }
html.m-on .m-h1-main { display: block; }
html.m-on .m-h1-sep { display: none; }
html.m-on .m-h1-sub { display: block; margin-top: 6px; font: 400 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--m-muted); letter-spacing: 0; }
html.m-on #content h2 { font: 700 20px/1.25 var(--m-serif); color: #2c5d8f; text-transform: none; margin: 26px 0 10px; }
html.m-on #content h3 { font: 700 18px/1.3 var(--m-serif); color: #4d7a1c; margin: 20px 0 8px; }
html.m-on #content > h1 + h2 { margin-top: 0; font-weight: 400; font-size: 16px; line-height: 1.45; color: var(--m-muted); }
html.m-on #content p.inhalt, html.m-on #content p.m-text { font-size: 17px; line-height: 1.65; overflow-wrap: break-word; }
html.m-on #content p.inhalt a, html.m-on #content p.m-text a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html.m-on #content small a { display: inline-block; padding: 10px 0; font-size: 15px; }
html.m-on blockquote { margin: 18px 0; padding: 12px 16px; border-left: 4px solid var(--m-sand); background: var(--m-sand-soft); border-radius: 0 10px 10px 0; color: #6b5514; }

/* Fotos im Text */
html.m-on #content img.links, html.m-on #content img.rechts, html.m-on #content img.m-photo {
  float: none; display: block; width: 100%; max-width: 420px; height: auto; margin: 16px auto; border: 0; border-radius: var(--m-r); box-shadow: var(--m-shadow);
}
html.m-on #content img.m-photo { cursor: zoom-in; }
html.m-on #content img.m-dup { display: none; }
html.m-on #content img.m-dup + br { display: none; }
html.m-on #content p.bild-boxqr { text-align: center; font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--m-muted); }
html.m-on #content p.bild-boxqr img { width: 100%; max-width: 420px; height: auto; border-radius: var(--m-r); }
html.m-on .m-tablewrap { overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px; -webkit-overflow-scrolling: touch; }
html.m-on #content iframe { width: 100%; max-width: 100%; border: 0; }
html.m-on #content object, html.m-on #content embed, html.m-on #content video { max-width: 100%; }

/* Brotkrume / Region */
html.m-on .m-crumb {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 8px 0 0; padding: 0 2px; color: var(--m-wine);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
html.m-on .m-crumb .m-ic { width: 18px; height: 18px; }

/* Abschnitte */
html.m-on .m-sec { margin: 28px 0 0; }
html.m-on .m-sec-h { font: 700 21px/1.25 var(--m-serif); color: #24405c; margin: 0 0 12px; }
html.m-on .m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 24px;
  background: var(--m-blue); color: #fff; font-weight: 600; font-size: 16px; line-height: 1.2; border: 0; text-decoration: none; cursor: pointer;
}
html.m-on .m-btn .m-ic { width: 20px; height: 20px; }
html.m-on .m-btn-l { background: var(--m-blue-soft); color: var(--m-blue); }
html.m-on .m-btn-s { min-height: 44px; background: #fff; color: var(--m-blue); border: 1px solid var(--m-line); font-size: 15px; }
html.m-on .m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
html.m-on .m-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px; background: #fff; border: 1px solid var(--m-line);
  color: var(--m-blue); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
html.m-on .m-chips br { display: none; }

/* Galerie */
html.m-on .m-gal { margin: 0 -16px 18px; position: relative; }
html.m-on .m-gal-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
html.m-on .m-gal-strip::-webkit-scrollbar { display: none; }
html.m-on .m-gal-i { flex: none; width: 82%; max-width: 340px; padding: 0; border: 0; background: #ddd; border-radius: var(--m-r); overflow: hidden; scroll-snap-align: center; aspect-ratio: 4 / 3; box-shadow: var(--m-shadow); cursor: zoom-in; }
html.m-on .m-gal-i img { display: block; width: 100%; height: 100%; object-fit: cover; }
html.m-on .m-gal-c { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--m-muted); font-size: 14px; font-weight: 600; }
html.m-on .m-gal-c .m-ic { width: 18px; height: 18px; }

/* Auf einen Blick */
html.m-on .m-glance { background: var(--m-card); border-radius: var(--m-r); box-shadow: var(--m-shadow); padding: 16px; margin: 0 0 22px; }
html.m-on .m-glance .m-sec-h { font-size: 18px; margin-bottom: 12px; }
html.m-on .m-glance-b { display: flex; gap: 14px; align-items: flex-start; }
html.m-on .m-glance-k { flex: none; width: 104px; }
html.m-on .m-glance-k img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--m-line); }
html.m-on .m-glance-a { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
html.m-on .m-glance-a .m-btn { justify-content: flex-start; width: 100%; box-sizing: border-box; }

/* Sprung-Chips */
html.m-on .m-jump { position: sticky; top: 60px; z-index: 50; display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 8px 16px; background: rgba(246, 243, 238, .96); scrollbar-width: none; }
html.m-on .m-jump::-webkit-scrollbar { display: none; }

/* Akkordeon */
html.m-on .m-acc { background: var(--m-card); border-radius: var(--m-r); box-shadow: var(--m-shadow); margin: 0 0 10px; overflow: hidden; }
html.m-on .m-acc-s { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 0 16px; cursor: pointer; list-style: none; font: 700 17px/1.3 var(--m-serif); color: #24405c; }
html.m-on .m-acc-s::-webkit-details-marker { display: none; }
html.m-on .m-acc-s h2 { margin: 0 !important; font: inherit !important; color: inherit !important; }
html.m-on .m-acc-s .m-ic { color: var(--m-muted); transition: transform .2s; }
html.m-on .m-acc[open] .m-acc-s .m-ic { transform: rotate(180deg); }
html.m-on .m-acc-b { padding: 0 16px 14px; }
html.m-on .m-gmap .m-acc-b { padding: 0 0 8px; }
html.m-on .m-gmap .m-acc-b p { margin: 0; padding: 0 12px; }
html.m-on .m-gmap iframe { height: 320px; margin-top: 4px; border-radius: 10px; }
html.m-on .m-gmap small a { color: var(--m-blue) !important; }

/* Zeilen-Listen */
html.m-on .m-rows { display: flex; flex-direction: column; }
html.m-on .m-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 4px 0; border-top: 1px solid var(--m-line); color: var(--m-blue); font-size: 16px; font-weight: 600; text-decoration: none; }
html.m-on .m-row:first-child { border-top: 0; }
html.m-on .m-row .m-ic { width: 18px; height: 18px; color: #9aa3ad; }
html.m-on .m-rows2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
html.m-on .m-rows2 .m-row { border-top: 1px solid var(--m-line); font-size: 15px; }
html.m-on .m-stay .m-rows, html.m-on .m-stay > .m-rows { background: var(--m-card); border-radius: var(--m-r); box-shadow: var(--m-shadow); padding: 4px 16px; }

/* Wischbare Karten "Weiter entdecken" */
html.m-on .m-swipe { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 14px; scroll-snap-type: x proximity; scrollbar-width: none; }
html.m-on .m-swipe::-webkit-scrollbar { display: none; }
html.m-on .m-tile { flex: none; width: 168px; background: var(--m-card); border-radius: var(--m-r); box-shadow: var(--m-shadow); overflow: hidden; scroll-snap-align: start; text-decoration: none; color: var(--m-ink); }
html.m-on .m-tile-img { display: block; width: 100%; height: 112px; object-fit: cover; background: var(--m-blue-soft); }
html.m-on .m-tile-n { display: block; padding: 10px 12px 12px; font-size: 15px; font-weight: 600; line-height: 1.3; color: #24405c; }
html.m-on .m-noimg { display: flex !important; align-items: center; justify-content: center; background: var(--m-blue-soft); color: var(--m-sky); }

/* Uebersichtsseiten */
html.m-on .m-ov { margin: 14px 0 20px; }
html.m-on .m-search { position: relative; margin: 0 0 12px; }
html.m-on .m-search .m-ic { position: absolute; left: 14px; top: 14px; width: 22px; height: 22px; color: var(--m-muted); pointer-events: none; }
html.m-on .m-search input { box-sizing: border-box; width: 100%; height: 50px; padding: 0 14px 0 46px; border: 1px solid #c9c1b3; border-radius: 25px; background: #fff; color: var(--m-ink); font-size: 17px; line-height: 1; -webkit-appearance: none; appearance: none; }
html.m-on .m-search input::placeholder { color: #6b727c; }
html.m-on .m-toggle { display: flex; background: #e9e3d8; border-radius: 24px; padding: 3px; margin: 0 0 16px; }
html.m-on .m-toggle button { flex: 1; min-height: 44px; border: 0; border-radius: 22px; background: transparent; color: #4a515b; font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; }
html.m-on .m-toggle .m-on-b { background: #fff; color: var(--m-blue); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
html.m-on .m-grp { margin: 0 0 18px; }
html.m-on .m-grp-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--m-wine); }
html.m-on .m-grp-h span { background: var(--m-sand-soft); color: #6b5514; border-radius: 10px; padding: 1px 8px; font-size: 12px; letter-spacing: 0; }
html.m-on .m-card { display: flex; align-items: center; gap: 12px; min-height: 76px; margin: 0 0 8px; padding: 8px 10px 8px 8px; background: var(--m-card); border-radius: var(--m-r); box-shadow: var(--m-shadow); text-decoration: none; color: var(--m-ink); }
html.m-on .m-card-img { flex: none; width: 84px; height: 63px; object-fit: cover; border-radius: 10px; background: var(--m-blue-soft); }
html.m-on .m-card-t { flex: 1; min-width: 0; }
html.m-on .m-card-n { display: block; font: 700 17px/1.25 var(--m-serif); color: #24405c; }
html.m-on .m-card-s { display: block; margin-top: 2px; font-size: 13px; color: var(--m-muted); }
html.m-on .m-card > .m-ic { width: 20px; height: 20px; color: #9aa3ad; }
html.m-on .m-none { text-align: center; color: var(--m-muted); padding: 20px 0; }
html.m-on .m-nextrow { display: flex; flex-direction: column; gap: 10px; }
html.m-on .m-nextrow .m-btn { justify-content: space-between; background: #fff; color: var(--m-blue); box-shadow: var(--m-shadow); }
html.m-on.m-list #content > p.inhalt { background: var(--m-sand-soft); border-radius: var(--m-r); padding: 14px 16px; font-size: 15px; color: #54471c; }

/* Karte mit Tippflaechen */
html.m-on .m-map { background: var(--m-card); border-radius: var(--m-r); box-shadow: var(--m-shadow); overflow: hidden; }
html.m-on .m-map-scroll { overflow: auto; -webkit-overflow-scrolling: touch; max-height: 78vh; }
html.m-on .m-map-inner { position: relative; width: 100%; max-width: 480px; margin: 0 auto; }
html.m-on .m-zoomed .m-map-inner { width: 190%; max-width: none; }
html.m-on .m-map-img { display: block; width: 100% !important; height: auto !important; margin: 0 !important; float: none !important; max-width: none; border: 0; }
html.m-on .m-hot { position: absolute; display: block; border-radius: 6px; min-height: 14px; }
html.m-on .m-hot:active, html.m-on .m-hot:focus-visible { background: rgba(168, 50, 78, .25); }
html.m-on .m-map-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 10px 14px; border-top: 1px solid var(--m-line); }
html.m-on .m-map-hint { font-size: 13px; color: var(--m-muted); line-height: 1.3; }

/* Startseite */
html.m-on .m-hero { margin: 0 -16px; background: #fff; border-bottom: 1px solid var(--m-line); }
html.m-on .m-hero-img { display: block; width: 100% !important; max-width: none; height: auto; max-height: 300px; object-fit: cover; margin: 0 !important; border: 0; float: none; }
html.m-on .m-hero-t { padding: 16px 16px 18px; }
html.m-on .m-hero h1 { margin: 0; font-size: 27px; }
html.m-on .m-rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
html.m-on .m-rtile { display: block; background: var(--m-card); border-radius: var(--m-r); box-shadow: var(--m-shadow); overflow: hidden; text-decoration: none; text-align: center; }
html.m-on .m-rtile-img { display: block; width: 100%; height: 78px; object-fit: cover; }
html.m-on .m-rtile span { display: block; padding: 10px 4px 12px; font-size: 14px; font-weight: 700; color: #24405c; line-height: 1.2; }
html.m-on.m-home p.m-text { margin: 24px 0 0; }
html.m-on .m-partner { background: var(--m-card); border-radius: var(--m-r); box-shadow: var(--m-shadow); padding: 16px; }
html.m-on .m-partner p.m-text { margin: 0 0 16px; font-size: 15px; color: #444b55; }
html.m-on .m-partner .hotelbanner { margin: 0 0 16px; text-align: center; font-size: 15px; }
html.m-on .m-partner .hotelbanner img { display: block; float: none; margin: 0 auto 10px; width: auto; max-width: 100%; height: auto; border-radius: 6px; box-shadow: none; }
html.m-on .m-partner .hotelbanner a { display: inline-block; padding: 4px 0; }
html.m-on .m-fb { display: flex; justify-content: center; min-height: 400px; }
html.m-on .m-fb iframe { float: none !important; margin: 0 !important; width: 292px !important; max-width: 100%; }
html.m-on .m-mini { margin: 16px 0 0; text-align: center; }
html.m-on .m-mini img { width: 140px; height: auto; border-radius: 10px; }
html.m-on .hotelbanner { text-align: center; }
html.m-on .hotelbanner img { float: none; display: block; margin: 0 auto 10px; max-width: 100%; height: auto; }

/* Fusszeile */
html.m-on #footer { margin: 32px 0 0; padding: 18px 12px 8px; border-top: 1px solid var(--m-line); }
html.m-on #footer p { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin: 0; font-size: 0; }
html.m-on #footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--m-blue); }

/* Tab-Leiste */
html.m-on .m-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; background: rgba(255, 255, 255, .98);
  border-top: 1px solid var(--m-line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 16px rgba(40, 50, 60, .06);
}
html.m-on .m-tab {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 4px 2px;
  border: 0; border-radius: 12px; background: transparent; color: #4f5661; font-weight: 600; font-size: 11.5px; line-height: 1.15; text-decoration: none; cursor: pointer; text-align: center;
}
html.m-on .m-tab span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.m-on .m-tab.m-act { color: var(--m-blue); background: var(--m-blue-soft); }

/* Vollbild-Menue */
html.m-on .m-menu { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 950; background: var(--m-bg); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
html.m-on .m-menu-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px 0 16px; background: #fff; border-bottom: 1px solid var(--m-line); }
html.m-on .m-menu-t { font: 700 22px/1 var(--m-serif); color: #24405c; }
html.m-on .m-menu-x { width: 48px; height: 48px; border: 0; border-radius: 24px; background: transparent; color: var(--m-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
html.m-on .m-menu-b { padding: 16px; }
html.m-on .m-menu-search form div { display: flex; gap: 8px; }
html.m-on .m-menu-search input[type="text"] { flex: 1; min-width: 0; height: 48px; box-sizing: border-box; padding: 0 16px; border: 1px solid #c9c1b3; border-radius: 24px; background: #fff; font-size: 17px; line-height: 1; color: var(--m-ink); -webkit-appearance: none; appearance: none; }
html.m-on .m-menu-search input[type="submit"] { height: 48px; padding: 0 18px; border: 0 !important; border-radius: 24px; background: #a8324e !important; color: #fff !important; font-weight: 600; font-size: 16px; line-height: 1; -webkit-appearance: none; appearance: none; cursor: pointer; }
html.m-on .m-menu-g { margin: 22px 0 0; }
html.m-on .m-menu-gh { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--m-wine); }
html.m-on .m-menu-l { background: #fff; border-radius: var(--m-r); box-shadow: var(--m-shadow); padding: 0 16px; }
html.m-on .m-menu-a { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 4px 0; border-top: 1px solid var(--m-line); color: #24405c; font-size: 17px; font-weight: 600; text-decoration: none; }
html.m-on .m-menu-l .m-menu-a:first-child { border-top: 0; }
html.m-on .m-menu-home { margin: 16px 0 0; padding: 4px 16px; background: #fff; border: 0; border-radius: var(--m-r); box-shadow: var(--m-shadow); color: var(--m-blue); }
html.m-on .m-menu-cc img { height: 28px; width: auto; }
html.m-on .m-menu-lang { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
html.m-on .m-menu-lang .aktiv { background: var(--m-blue-soft); border-color: var(--m-blue-soft); }

/* Vollbild-Foto */
html.m-on .m-lb { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 1100; background: rgba(16, 20, 26, .96); display: flex; flex-direction: column; }
html.m-on .m-lb-x { align-self: flex-end; width: 52px; height: 52px; margin: 6px; border: 0; background: transparent; color: #fff; cursor: pointer; }
html.m-on .m-lb-s { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 8px; }
html.m-on .m-lb-s img { display: block; width: 100%; max-width: 640px; max-height: 100%; object-fit: contain; border-radius: 6px; }
html.m-on .m-lb-f { display: flex; align-items: center; gap: 8px; padding: 10px 8px calc(14px + env(safe-area-inset-bottom, 0px)); color: #fff; }
html.m-on .m-lb-f button { flex: none; width: 52px; height: 52px; border: 0; border-radius: 26px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
html.m-on .m-lb-p .m-ic { transform: rotate(180deg); }
html.m-on .m-lb-c { flex: 1; text-align: center; min-width: 0; }
html.m-on .m-lb-n { display: block; font-size: 13px; color: #c9d1da; }
html.m-on .m-lb-t { display: block; font-size: 16px; font-weight: 600; }

/* Querformat / Tablet */
@media (min-width: 600px) {
  html.m-on #content { max-width: 680px; margin: 0 auto !important; }
  html.m-on .m-hero-img { max-height: 340px; }
  html.m-on .m-ov-list .m-grp { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  html.m-on .m-grp-h { grid-column: 1 / -1; }
  html.m-on .m-gal-i { width: 46%; }
  html.m-on .m-menu-b { max-width: 680px; margin: 0 auto; }
  html.m-on .m-rtile-img { height: 120px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  html.m-on .m-header { position: static; }
  html.m-on .m-jump { top: 0; }
  html.m-on .m-tab { min-height: 46px; }
  html.m-on .m-tab .m-ic { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html.m-on { scroll-behavior: auto; }
  html.m-on * { transition: none !important; animation: none !important; }
}
/* Formularelemente erben die Schrift */
html.m-on button, html.m-on input { font-family: inherit; }
html.m-on .m-btn-s { white-space: nowrap; flex: none; }
html.m-on .m-map-hint { flex: 1; min-width: 0; }

/* Aufmacherbild auf Seiten ohne eigenes Foto */
html.m-on .m-lead { margin: 0 0 18px; }
html.m-on .m-lead img { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; border-radius: var(--m-r); box-shadow: var(--m-shadow); }

/* Kleine Grafiken im Text (keine Fotos) nicht hochskalieren */
html.m-on #content img.links:not(.m-photo), html.m-on #content img.rechts:not(.m-photo) { width: auto; max-width: 100%; }

/* Bildnachweis unter dem Titelbild */
html.m-on .m-credit { padding: 4px 16px 0; font-size: 12px; line-height: 1.4; color: #5d646e; text-align: right; }
html.m-on .m-credit a { color: #5d646e; font-weight: 400; text-decoration: underline; display: inline-block; padding: 6px 0; }

/* Bildnachweis als dezentes Wasserzeichen auf dem Titelbild */
html.m-on .m-hero-fig { position: relative; }
html.m-on .m-hero-fig .m-credit { position: absolute; right: 8px; bottom: 6px; padding: 0; font-size: 10px; line-height: 1.2; color: rgba(255, 255, 255, .72); text-align: right; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
html.m-on .m-hero-fig .m-credit a { color: rgba(255, 255, 255, .72); font-weight: 400; text-decoration: none; padding: 0; }

/* Zweizeiliges Logo in der mobilen Kopfzeile */
html.m-on { scroll-padding-top: 84px; }
html.m-on .m-header { height: 72px; background: #fff; }
html.m-on .m-logo { height: 62px; max-width: 184px; flex: 0 1 184px; }
html.m-on .m-logo img { max-width: 184px; margin-top: 0; }
html.m-on .m-jump { top: 72px; }
@media (max-height: 480px) and (orientation: landscape) { html.m-on .m-jump { top: 0; } }

/* Bildnachweis: noch kleiner und transparenter */
html.m-on .m-hero-fig .m-credit { font-size: 8px; right: 6px; bottom: 4px; color: rgba(255, 255, 255, .45); text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
html.m-on .m-hero-fig .m-credit a { color: rgba(255, 255, 255, .45); }

/* Karte: Zoomstufen, Auswahl und Oeffnen-Schaltflaeche */
html.m-on .m-map-scroll { max-height: 72vh; overscroll-behavior: contain; }
html.m-on .m-zoomed .m-map-inner { width: 160%; }
html.m-on .m-hot { border: 2px solid transparent; box-sizing: border-box; }
html.m-on .m-hot-sel { background: rgba(168, 50, 78, .18); border-color: #a8324e; }
html.m-on .m-map-bar { padding: 8px 8px 8px 14px; }
html.m-on .m-map-hint { font-size: 14px; }
html.m-on .m-map-zw { display: flex; gap: 8px; flex: none; }
html.m-on .m-map-z { width: 46px; height: 46px; border: 1px solid var(--m-line); border-radius: 23px; background: #fff; color: var(--m-blue); font-size: 26px; line-height: 1; font-weight: 400; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; }
html.m-on .m-map-z:disabled { color: #b5bcc4; background: #f4f1ec; cursor: default; }
html.m-on .m-map-sel { padding: 0 10px 12px; }
html.m-on .m-map-sel .m-btn { width: 100%; box-sizing: border-box; justify-content: space-between; }
html.m-on .m-map-sel .m-btn span { flex: 1; text-align: left; }
html.m-on .m-zoomed .m-map-scroll { max-height: 56vh; }

/* Kompaktere Kopfzeile */
html.m-on { scroll-padding-top: 68px; }
html.m-on .m-header { height: 54px; padding: 0 10px 0 12px; }
html.m-on .m-logo { height: 44px; max-width: 131px; flex: 0 1 131px; }
html.m-on .m-logo img { max-width: 131px; }
html.m-on .m-langbtn { min-height: 36px; padding: 0 8px 0 10px; font-size: 13px; gap: 5px; border-radius: 18px; }
html.m-on .m-langbtn svg:not(.m-ic) { width: 19px; height: 12px; }
html.m-on .m-langbtn .m-ic { width: 15px; height: 15px; }
html.m-on #langswitch { top: 42px; }
html.m-on .m-jump { top: 54px; }
@media (max-height: 480px) and (orientation: landscape) { html.m-on .m-jump { top: 0; } }

/* Karte: eingebettet ohne eigenes Scrollen (Seite scrollt frei darueber), vergroessert als Vollbild */
html.m-on .m-map-scroll { max-height: none; overflow: hidden; overscroll-behavior: auto; touch-action: pan-y pinch-zoom; }
html.m-on .m-map.m-zoomed { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 1100; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; background: #fff; }
html.m-on .m-zoomed .m-map-scroll { flex: 1; min-height: 0; max-height: none; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; background: #e9e3d8; }
html.m-on .m-zoomed .m-map-bar { padding-bottom: 8px; }
html.m-on .m-zoomed .m-map-sel { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
html.m-on .m-zoomed .m-map-sel[hidden] + .m-map-x, html.m-on .m-map-x { position: absolute; right: 10px; top: calc(10px + env(safe-area-inset-top, 0px)); width: 46px; height: 46px; border: 0; border-radius: 23px; background: rgba(255, 255, 255, .94); color: #2a2f36; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; }
html.m-on .m-map-x[hidden] { display: none !important; }
html.m-on .m-map { position: relative; }
html.m-on .m-map, html.m-on .m-map * { overflow-anchor: none; }

/* Flaggen ohne Umrandung */
html.m-on .m-langbtn svg:not(.m-ic), html.m-on #langswitch svg { border: 0; }

/* Bis mobile.js die Seite umgebaut hat, bleibt sie unsichtbar (kein Aufblitzen) */
html.m-pre { background: #f6f2ea; }
html.m-pre body { visibility: hidden; }

/* Ohne JavaScript: Bildnachweis des Titelbilds (CC BY 2.0) bleibt sichtbar */
picture.m-hero-pic { display: block; }
picture.m-hero-pic::after { content: "Foto: CucombreLibre, CC BY 2.0, Wikimedia Commons (Ausschnitt)"; display: block; font-size: 11px; color: #5d646e; text-align: center; }

/* Karten-Boxen liegen genau um den Ortsnamen */
html.m-on .m-hot { min-height: 0; border-radius: 5px; border-width: 1.5px; }

/* Gelbton der Desktop-Seite (#ffcc66 / #ffffcc), dezent: warmer Seitengrund, Akzentlinien, aktiver Tab */
html.m-on body { --m-bg: #fbf5e2; --m-line: #eadfc3; --m-sand-soft: #fff1cc; }
html.m-on .m-header { box-shadow: inset 0 -3px 0 var(--m-sand); }
html.m-on .m-sec-h::after { content: ""; display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--m-sand); margin-top: 7px; }
html.m-on .m-tab.m-act { background: var(--m-sand-soft); }
html.m-pre { background: #fbf5e2; }
html, body { background: #fbf5e2 !important; }
