/* ==========================================================================
   Restaurant zur Kahnfahrt — Consolidated stylesheet
   Reconstructs the CM4all (cm_dh_091) theme classes used by the page.
   Aesthetic: warm Bavarian tavern, respectful tone for a 147-year-old
   family business that has closed. Accent locked to the inline #b0c13a
   meadow-green the page already uses for headings and address.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Palette — driven by the existing inline color #b0c13a */
  --c-accent:        #b0c13a;            /* meadow / linden green (page-set) */
  --c-accent-dark:   #8fa12b;
  --c-accent-soft:   rgba(176, 193, 58, 0.16);
  --c-wood:          #6b4a2a;            /* warm walnut for tavern feel */
  --c-wood-light:    #8a6438;
  --c-ink:           #2a2620;
  --c-text:          #3a342c;
  --c-muted:         #6b6258;
  --c-soft:          #8e8579;
  --c-paper:         #faf6ee;            /* warm cream (parchment) */
  --c-paper-2:       #f1ead9;
  --c-card:          #ffffff;
  --c-line:          rgba(42, 38, 32, 0.12);
  --c-line-strong:   rgba(42, 38, 32, 0.20);
  --c-overlay-dark:  rgba(26, 22, 18, 0.55);
  --c-overlay-warm:  rgba(58, 42, 26, 0.45);
  --c-red:           #c44a3d;            /* the "geschlossen" red, softened */

  /* Type — the page references Roboto + Open Sans inline */
  --f-body:    'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-display: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-text:    'Roboto', 'Open Sans', sans-serif;

  /* Layout */
  --container-max:   1180px;
  --container-pad:   28px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(42, 38, 32, 0.06);
  --shadow-md: 0 14px 36px -12px rgba(42, 38, 32, 0.20);
  --shadow-lg: 0 30px 70px -20px rgba(42, 38, 32, 0.30);
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; border: 0; }

a {
  color: var(--c-accent-dark);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--c-wood); }

ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }

button, input { font: inherit; color: inherit; }

.clearFloating { clear: both; height: 0; }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   4. ATMOSPHERIC BACKDROP (.cm-background / .cm-background-video / effects)
   -------------------------------------------------------------------------- */
.cm-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  /* The inline @media queries above already attach the bg image. We add a
     warm sepia veil so any background photograph reads as nostalgic. */
}
.cm-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(250, 246, 238, 0.55) 0%, rgba(250, 246, 238, 0.85) 60%, rgba(250, 246, 238, 0.95) 100%);
  pointer-events: none;
}
.cm-background-video,
.cm-background-effects { display: none; }

/* --------------------------------------------------------------------------
   5. PAGE WRAPPER
   -------------------------------------------------------------------------- */
.page_wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --------------------------------------------------------------------------
   6. LOGO + NAVIGATION WRAPPER (top bar)
   -------------------------------------------------------------------------- */
.logo_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  position: relative;
  z-index: 5;
}

/* Logo (background-image driven via inline .cm-logo rule) */
.cm-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--c-paper);
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  border: 3px solid var(--c-accent);
  box-shadow: 0 6px 18px -6px rgba(42, 38, 32, 0.25);
  flex: 0 0 auto;
  cursor: pointer;
  outline: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cm-logo:hover, .cm-logo:focus {
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 12px 26px -8px rgba(42, 38, 32, 0.35);
}

/* Main navigation */
.navigation_wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
#cm_mainnavigation {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#cm_mainnavigation li {
  position: relative;
}
#cm_mainnavigation a.cm_anchor {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.25s var(--ease);
  position: relative;
}
#cm_mainnavigation a.cm_anchor::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px;
  bottom: 6px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
#cm_mainnavigation li.cm_current a.cm_anchor,
#cm_mainnavigation a.cm_anchor:hover {
  color: var(--c-accent-dark);
}
#cm_mainnavigation li.cm_current a.cm_anchor::after,
#cm_mainnavigation a.cm_anchor:hover::after {
  transform: scaleX(1);
}

/* Hide mobile-only nav by default (desktop) */
.navigation_wrapper_mobile,
.toggle_wrapper--contain {
  display: none;
}

/* --------------------------------------------------------------------------
   7. HERO / KEYVISUAL
   -------------------------------------------------------------------------- */
.head_wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  margin: 0 0 40px;
  align-items: stretch;
}

.keyvisual_wrapper {
  position: relative;
  min-height: 480px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-wood);
  box-shadow: var(--shadow-md);
}

/* The keyvisual media layer (background images driven by inline .cm-kv-0-N) */
.cm-template-keyvisual__media,
#keyvisual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* CM4all slideshow slide elements */
.cm-kv-0,
.cm-kv-0-1,
.cm-kv-0-2,
.cm-slides-addon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
}

/* Dim overlay so title is readable on top of the image */
.keyvisual_wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 22, 18, 0.15) 0%,
    rgba(26, 22, 18, 0.35) 55%,
    rgba(26, 22, 18, 0.70) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Title overlay sits above the dim layer */
.title_wrapper {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 30px 36px 36px;
  color: #fff;
  text-align: left;
}
.title.cm-templates-heading__title,
#title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  color: #fff;
}
/* The inline markup applies its own #b0c13a color to the title span — we leave
   that alone. Strip the leading dash that's in the markup for a cleaner look. */
.title span,
#title span { color: inherit; }

.subtitle.cm-templates-heading__subtitle,
#subtitle {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
/* Soften the inline red "sind geschlossen" so it reads but isn't shouty.
   The markup uses inline color:#ff0000 — let's let it through but add a tasteful badge feel via a sibling pseudo isn't possible without altering markup, so we just refine its container. */
#subtitle span { display: inline-block; vertical-align: baseline; }

/* --------------------------------------------------------------------------
   8. SIDEBAR (right column of the hero — opening hours card)
   -------------------------------------------------------------------------- */
.sidebar_wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sidebar_wrapper > .sidebar:empty,
.sidebar_wrapper > .sidebar:has(> p:only-child > br:only-child),
.cm_can_be_empty:empty { display: none; }

.sidebar {
  background: var(--c-card);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--c-accent);
}
.sidebar h2, .sidebar h3 {
  font-family: var(--f-display);
  color: var(--c-wood);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.005em;
  position: relative;
  padding-bottom: 10px;
}
.sidebar h2::after, .sidebar h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
}
/* Hide the duplicate small heading (CM4all renders both an h2 + h3 with same text) */
.sidebar .cm-h1.cm-oh-large + .cm-oh-small,
.sidebar h3.cm-oh-small { display: none; }

.sidebar p {
  margin: 0 0 0.8em;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--c-text);
}
.sidebar p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   9. CONTENT / MAIN
   -------------------------------------------------------------------------- */
.cm-template-content.content_wrapper {
  position: relative;
  margin-bottom: 40px;
}
.content_center {
  width: 100%;
}
.cm-template-content__main.content {
  background: var(--c-card);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-sm);
  position: relative;
}
/* Decorative top stripe */
.cm-template-content__main.content::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-wood) 100%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.content h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--c-wood);
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line);
  font-style: italic;
  font-weight: 500;
}
.content h1 span { font-style: normal; }
/* Soften the inline #ff0000 closed notice within the h1 */
.content h1 [style*="color: #ff0000"],
.content h1 [style*="color:#ff0000"] {
  color: var(--c-red) !important;
  font-weight: 600;
  font-size: 0.7em;
  display: inline-block;
  margin-left: 8px;
  padding: 4px 12px;
  background: rgba(196, 74, 61, 0.08);
  border: 1px solid rgba(196, 74, 61, 0.25);
  border-radius: 99px;
  font-family: var(--f-body);
  font-style: normal;
  vertical-align: middle;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content p {
  margin: 0 0 1.1em;
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.8;
}

/* Soften every inline red "geschlossen" callout inside paragraphs too */
.content p [style*="color: #ff0000"],
.content p [style*="color:#ff0000"] {
  color: var(--c-red) !important;
  font-weight: 600;
}

/* Paragraphs that hold a leading "<br>" (CM4all inserts these as spacers) */
.content p:has(> br:only-child) { margin: 0; min-height: 0.5em; }

/* The closing notice — give it a soft card */
.content p:has(> span[style*="color: #ff0000"]):not(:first-child) {
  background: rgba(196, 74, 61, 0.05);
  border-left: 3px solid var(--c-red);
  padding: 14px 18px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 18px 0;
}

/* The signature line ("Ihr Bela Balogh") */
.content p:has(> span:only-child) + p:has(> span:only-child) {
  /* no special change — handled by the prose hierarchy */
}

/* --------------------------------------------------------------------------
   10. SEPARATOR WIDGET
   -------------------------------------------------------------------------- */
.cm4all_com_widgets_Separator {
  margin: 1.5em 0;
}
.cm4all_com_widgets_Separator > div > div {
  border-top: 1px solid var(--c-line) !important;
  margin: 0 !important;
  height: 0;
}

/* --------------------------------------------------------------------------
   11. CM4ALL COLUMN WIDGET
   -------------------------------------------------------------------------- */
.cm_column_wrapper {
  display: flex;
  flex-wrap: wrap;
  margin: 18px 0;
  width: 100%;
}
.cm_column {
  flex: 1 1 0;
  min-width: 0;
}
.cm_column_gap { flex: 0 0 auto; }
.cm_column p:empty { min-height: 0.5em; }

/* --------------------------------------------------------------------------
   12. SITEMAP / WIDGET BLOCK LISTS
   -------------------------------------------------------------------------- */
.cm_widget_block {
  margin: 24px 0;
}
.cm4all_com_widgets_SitemapSites ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
}
.cm4all_com_widgets_SitemapSites li {
  display: inline-block;
}
.cm4all_com_widgets_SitemapSites a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--c-accent-soft);
  color: var(--c-accent-dark);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 0.9rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.cm4all_com_widgets_SitemapSites a:hover {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent-dark);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   13. OPENING HOURS WIDGET (inside main content)
   -------------------------------------------------------------------------- */
.cm-template-content__main .cm4all_com_widgets_OpeningHours {
  background: var(--c-paper-2);
  border-radius: var(--r-md);
  padding: 26px 28px;
  margin: 28px 0;
  border-left: 4px solid var(--c-accent);
}
.cm-template-content__main .cm4all_com_widgets_OpeningHours h2,
.cm-template-content__main .cm4all_com_widgets_OpeningHours h3 {
  font-family: var(--f-display);
  color: var(--c-wood);
  font-size: 1.5rem;
  margin: 0 0 10px;
  font-weight: 600;
}
.cm-template-content__main .cm4all_com_widgets_OpeningHours .cm-oh-small { display: none; }
.cm-template-content__main .cm4all_com_widgets_OpeningHours p {
  margin: 0;
  color: var(--c-text);
  font-style: italic;
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   14. PHOTO ALBUM WIDGET
   -------------------------------------------------------------------------- */
.cm4all_com_widgets_PhotoAlbum {
  margin: 32px 0;
}
.html-box,
#photoAlbum_STRATP_cm4all_com_widgets_PhotoAlbum_23830967 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  width: 100%;
}
.html-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
}
.html-box img:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}
.html-box a {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   15. MAP SERVICES (lazy-loaded placeholder)
   -------------------------------------------------------------------------- */
.cm4all_com_widgets_MapServices {
  margin: 28px 0 12px;
}
.cm4all_com_widgets_MapServices a.cm4all-cookie-consent {
  display: block;
  width: 100%;
  min-height: 200px;
  background:
    linear-gradient(135deg, rgba(176, 193, 58, 0.15), rgba(107, 74, 42, 0.1)),
    var(--c-paper-2);
  border-radius: var(--r-md);
  border: 1px dashed var(--c-line-strong);
  text-decoration: none;
  position: relative;
}
.cm4all_com_widgets_MapServices a.cm4all-cookie-consent::before {
  content: "📍 Karte laden (externer Dienst)";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--c-wood);
  font-weight: 600;
}
.cm4all_com_widgets_MapServices a.cm4all-cookie-consent:hover {
  background:
    linear-gradient(135deg, rgba(176, 193, 58, 0.25), rgba(107, 74, 42, 0.15)),
    var(--c-paper-2);
}

/* --------------------------------------------------------------------------
   16. BOTTOM SIDEBARS — address line / external link
   -------------------------------------------------------------------------- */
.sidebar_wrapper_bottom {
  margin: 30px 0 20px;
}
.sidebar_wrapper_bottom .content_center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sidebar_wrapper_bottom .sidebar {
  border-top: 0;
  border-left: 3px solid var(--c-accent);
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.sidebar_wrapper_bottom p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--c-text);
  line-height: 1.55;
}
.sidebar_wrapper_bottom p span[style*="color"] {
  color: var(--c-wood) !important;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.footer_wrapper {
  margin-top: 24px;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--c-line);
  color: var(--c-soft);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
#footer { font-family: var(--f-body); }
#footer::before {
  content: "Restaurant zur Kahnfahrt · Augsburg · 1876 – 2023";
  display: block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--c-soft);
}

/* --------------------------------------------------------------------------
   18. FLOATING CALL BUTTON
   -------------------------------------------------------------------------- */
.cm-smart-access-button.call {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
}
.cm-smart-access-button.call a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--c-accent);
  color: #fff !important;
  border-radius: 50%;
  box-shadow: 0 10px 24px -6px rgba(176, 193, 58, 0.5);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.cm-smart-access-button.call a:hover {
  background: var(--c-accent-dark);
  transform: translateY(-3px) scale(1.05);
}
.cm-smart-access-button.call .icon {
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
/* Fontawesome fallback for fa-call (which isn't a real FA class; use a phone glyph) */
.cm-smart-access-button.call .fa-call::before,
.cm-smart-access-button.call i::before {
  content: "📞";
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 22px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   19. MISC — modal backdrop, hide tracking pixels, fontawesome fallbacks
   -------------------------------------------------------------------------- */
.modal_background { display: none; }
#statdiv,
#keyvisualWidgetVideosContainer,
.cm_widget_anchor { display: none !important; }

/* Tiny font-awesome safety fallback for any other icon that may appear */
.fa, .fas, .fab { font-style: normal; }

/* --------------------------------------------------------------------------
   20. MOBILE NAVIGATION (when burger toggle is present)
   -------------------------------------------------------------------------- */
.toggle_wrapper--contain {
  position: fixed;
  top: 18px; right: 18px;
  z-index: 1000;
}
.toggle_wrapper {
  width: 44px; height: 44px;
  background: var(--c-card);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.toggle_btn {
  width: 18px; height: 2px;
  background: var(--c-ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
body.menu-open .toggle_btn:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .toggle_btn:nth-child(2) { opacity: 0; }
body.menu-open .toggle_btn:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.navigation_wrapper_mobile {
  position: fixed;
  inset: 0;
  background: var(--c-paper);
  z-index: 900;
  padding: 80px 30px 30px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
body.menu-open .navigation_wrapper_mobile { transform: translateX(0); }
#mobile_cm_mainnavigation { display: flex; flex-direction: column; gap: 6px; }
#mobile_cm_mainnavigation a {
  display: block;
  padding: 16px 20px;
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
#mobile_cm_mainnavigation li.cm_current a,
#mobile_cm_mainnavigation a:hover { color: var(--c-accent-dark); }

/* --------------------------------------------------------------------------
   21. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  :root { --container-pad: 22px; }
  .head_wrapper {
    grid-template-columns: 1fr;
  }
  .keyvisual_wrapper { min-height: 380px; }
  .sidebar_wrapper_bottom .content_center { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --container-pad: 16px; }
  body { font-size: 15px; }

  /* Hide desktop nav, show burger */
  .navigation_wrapper { display: none; }
  .toggle_wrapper--contain { display: block; }

  .logo_wrapper { justify-content: flex-start; padding: 16px 0; }
  .cm-logo { width: 62px; height: 62px; }

  .keyvisual_wrapper { min-height: 300px; }
  .title_wrapper { padding: 20px 22px 24px; }

  .cm-template-content__main.content {
    padding: 26px 22px;
    border-radius: var(--r-md);
  }
  .content h1 [style*="color: #ff0000"],
  .content h1 [style*="color:#ff0000"] {
    display: block;
    margin: 10px 0 0;
    width: fit-content;
  }

  .html-box,
  #photoAlbum_STRATP_cm4all_com_widgets_PhotoAlbum_23830967 {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }
  .html-box img { height: 140px; }

  .cm-smart-access-button.call { bottom: 16px; right: 16px; }
  .cm-smart-access-button.call a { width: 50px; height: 50px; }
}

@media (max-width: 420px) {
  .keyvisual_wrapper { min-height: 240px; }
  .title.cm-templates-heading__title,
  #title { font-size: 1.55rem; }
  .subtitle.cm-templates-heading__subtitle,
  #subtitle { font-size: 0.92rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* End */