/* =========================================================
   Modern UI layer (non-destructive overrides)
   ========================================================= */
:root{
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.10);
  --brand: #1d4ed8;
  --brand2:#2563eb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
}

html, body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Improve overall reading */
#imContentGraphics{
  background-color: var(--surface) !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Add comfortable padding around content area without breaking X5 positioning */
@media (min-width: 1040px){
  #imContentGraphics{ padding: 18px 18px !important; }
}
@media (max-width: 1039.9px){
  #imContentGraphics{ padding: 14px 12px !important; }
}

/* Center header/footer/sticky blocks robustly */
#imHeaderObjects,
#imFooterObjects,
#imStickyBar{
  margin-left:auto !important;
  margin-right:auto !important;
  left:auto !important;
  right:auto !important;
}

/* Make fixed widths fluid on very large or odd viewports */
@media (min-width: 1040px){
  #imHeaderObjects, #imFooterObjects, #imStickyBar, #imStickyBarGraphics{
    width: min(1040px, calc(100vw - 32px)) !important;
  }
}
@media (max-width: 1039.9px) and (min-width: 720px){
  #imHeaderObjects, #imFooterObjects, #imStickyBar, #imStickyBarGraphics{
    width: min(720px, calc(100vw - 24px)) !important;
  }
}
@media (max-width: 719.9px) and (min-width: 480px){
  #imHeaderObjects, #imFooterObjects, #imStickyBar, #imStickyBarGraphics{
    width: min(480px, calc(100vw - 20px)) !important;
  }
}
@media (max-width: 479.9px){
  #imHeaderObjects, #imFooterObjects, #imStickyBar, #imStickyBarGraphics{
    width: min(320px, calc(100vw - 16px)) !important;
  }
}

/* Sticky bar look: only behind menu block (graphics is same width as bar) */
#imStickyBarGraphics{
  background: linear-gradient(90deg, var(--brand), var(--brand2)) !important;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(2,6,23,.16);
}

/* Header/Footer backgrounds keep transparent; content is the 'card' */
#imHeaderBg, #imFooterBg{
  background-color: transparent !important;
}

/* Links */
a{ color: var(--brand); }
a:hover{ color: #1e40af; }

/* Buttons (X5 usually uses anchors with classes; keep generic) */
a.imButton, .imButton a, button, input[type=submit]{
  border-radius: 12px !important;
}

/* Iframes responsive */
iframe{
  max-width: 100% !important;
}

/* Improve mobile spacing a bit */
@media (max-width: 720px){
  #imPageToTop{ right: 18px; bottom: 18px; }
}


/* =========================================================
   V5 fixes: modern font, hamburger visibility, responsive full-width
   ========================================================= */

/* Modern font stack */
html, body{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Make hamburger visible on light backgrounds (mobile header) */
.hamburger-button.hamburger-component{
  background: rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}
.hamburger-bar{
  background-color: var(--text) !important;
}

/* Keep sticky bar blue only behind the menu block, but ensure hamburger is visible there too */
#imStickyBarGraphics .hamburger-button.hamburger-component{
  background: rgba(255,255,255,0.12);
}
#imStickyBarGraphics .hamburger-bar{
  background-color: #ffffff !important;
}

/* Responsive embeds */
iframe{
  max-width: 100% !important;
}

/* Make the booking mask/iframes use available width on mobile */
@media (max-width: 1039.9px){
  /* Let rows span the viewport; add gentle side padding for readability */
  #imContent{
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .imPageRow{
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .imContentDataContainer{
    width: 100% !important;
    max-width: 100% !important;
  }
  /* Any object wrappers should not overflow the viewport */
  .imObject, .imObject .text-container, .imObject .text-container *{
    max-width: 100% !important;
  }
}

/* Optional: true edge-to-edge sections if you want ZERO padding (comment out if you prefer padding) */
/*
@media (max-width: 1039.9px){
  #imContent{ padding-left: 0 !important; padding-right: 0 !important; }
}
*/

/* =========================================================
   V13 OVERRIDES
   - Footer wie Hintergrund (transparent)
   - Sticky/Burger-Bar nur auf Mobile
   ========================================================= */

#imFooter { background: transparent !important; }

@media (min-width: 480px){
  #imStickyBarContainer, #imStickyBarGraphics, #imStickyBar { display: none !important; }
}

@media (max-width: 479.9px){
  #imStickyBarContainer { display: block !important; visibility: visible !important; }
  #imStickyBarGraphics, #imStickyBar { display: block !important; }
}

/* =========================================================
   V14 FIX: Mobile Header ohne blauen Balken
   - Entfernt blauen Sticky/Header-Balken inkl. Burger & Logo auf Mobile
   ========================================================= */
@media (max-width: 479.9px){
  #imStickyBarContainer,
  #imStickyBarGraphics,
  #imStickyBar { 
    display: none !important; 
    visibility: hidden !important;
    height: 0 !important;
  }
}

/* Instagram Icon – gleiche Farbe wie Burger Button */
#imHeader_pluginAppObj_12 svg,
#imHeader_pluginAppObj_12 svg path,
#imHeader_pluginAppObj_12 svg circle {
  fill: rgba(23, 89, 170, 1) !important;
}


#imHeader_pluginAppObj_12 a:hover svg,
#imHeader_pluginAppObj_12 a:hover svg path,
#imHeader_pluginAppObj_12 a:hover svg circle {
  fill: rgba(18, 70, 135, 1) !important;
}

/* Mobile: Instagram SVG über currentColor steuern */
@media (max-width: 479.9px){
  #imHeader_pluginAppObj_12 a {
    color: rgba(23, 89, 170, 1) !important; /* Burger-Farbe */
  }

  #imHeader_pluginAppObj_12 svg,
  #imHeader_pluginAppObj_12 svg * {
    fill: currentColor !important;
  }
}

/* Newsletter / Reisenews Button (Travianet) entfernen */
#imHeader_imObjectImage_08_wrapper,
#imHeader_imObjectImage_08 {
  display: none !important;
}
/* Newsletter-Link (Travelsystem) komplett deaktivieren – überall */
a[href*="travelsystem.de/letter/subscribe_register.php"]{
  pointer-events: none !important;
}
/* Newsletter-Bild + Klickfläche komplett weg */
#imHeader_imObjectImage_10_wrapper,
#imHeader_imObjectImage_10,
#imHeader_imObjectImage_10_container,
#imHeader_imObjectImage_10 a,
#imHeader_imObjectImage_10 img{
  display: none !important;
}

/* Newsletter-Bild + Klickfläche komplett weg */
#imHeader_imObjectImage_09_wrapper,
#imHeader_imObjectImage_09,
#imHeader_imObjectImage_09_container,
#imHeader_imObjectImage_09 a,
#imHeader_imObjectImage_09 img{
  display: none !important;
}