/* GedankenSpiel – Anpassungen fuer Smartphones im Hochformat (iPhone) */
@media (max-width: 600px) {
  html, body { overflow-x: clip; }
  body { -webkit-text-size-adjust: 100%; padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }

  /* Typografie */
  .nv-page-title h1 { font-size: 30px; line-height: 1.2; -webkit-hyphens: auto; hyphens: auto; }
  .nv-content-wrap h2 { font-size: 23px; line-height: 1.3; -webkit-hyphens: auto; hyphens: auto; }
  .nv-content-wrap h3 { font-size: 19px; line-height: 1.35; }
  .nv-content-wrap h4 { font-size: 17px; }
  .nv-content-wrap { overflow-wrap: break-word; }
  .nv-content-wrap a, .nv-content-wrap em { overflow-wrap: anywhere; }
  .nv-page-title-wrap { margin-top: 24px; }

  /* Bilder: nicht mehr umfliessen, mittig, volle Breite nutzen */
  .nv-content-wrap .alignright, .nv-content-wrap .alignleft,
  .nv-content-wrap figure.alignright, .nv-content-wrap figure.alignleft {
    float: none !important; display: block; margin: 0 auto 24px !important; max-width: 100%; text-align: center;
  }
  .nv-content-wrap figure img, .nv-content-wrap img { max-width: 100%; height: auto; }
  .nv-content-wrap .wp-block-image img { max-width: min(100%, 300px); }

  /* Spalten untereinander, Abstaende kleiner */
  .nv-content-wrap .wp-block-columns { flex-wrap: wrap !important; gap: 0; }
  .nv-content-wrap .wp-block-column { flex-basis: 100% !important; min-width: 0; }
  .nv-content-wrap .wp-block-spacer { height: 16px !important; }
  .nv-content-wrap ul, .nv-content-wrap ol { padding-left: 20px; }
  .nv-content-wrap iframe { max-width: 100%; }

  /* Formular: volle Breite, 16px verhindert das automatische Zoomen am iPhone */
  .wpcf7 label { display: block; max-width: 100%; }
  .wpcf7 input:not([type=checkbox]):not([type=radio]):not([type=submit]), .wpcf7 textarea, .wpcf7 select {
    width: 100%; max-width: 100%; box-sizing: border-box; font-size: 16px;
  }
  .wpcf7 input[type=submit] { width: 100%; min-height: 48px; font-size: 16px; }
  .nv-nav-search input, .search-field { font-size: 16px; }
  .grecaptcha-badge { display: none !important; }

  /* Schnellzugriff (Adresse, Mail, Telefon): Leiste am unteren Rand statt ueber dem Text */
  ul.fm-bar {
    top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
    display: flex; margin: 0; padding: 0 0 env(safe-area-inset-bottom, 0px); background: #c5a330; width: 100%;
  }
  ul.fm-bar > li { flex: 1 1 0; position: relative; height: 52px; margin: 0; list-style: none; border-left: 1px solid rgba(255,255,255,.35); }
  ul.fm-bar > li:first-child { border-left: 0; }
  ul.fm-bar > li > a { position: absolute !important; top: 0 !important; right: 0 !important; left: 0; width: 100% !important; height: 52px !important; display: block; }
  ul.fm-bar .fm-icon { position: absolute !important; top: 0 !important; left: 0; right: 0 !important; width: 100% !important; height: 52px !important; line-height: 52px; text-align: center; border-radius: 0 !important; display: flex; align-items: center; justify-content: center; }
  ul.fm-bar .fm-label { display: none !important; }
  #wpfront-scroll-top-container { bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; right: 12px !important; }
  #wpfront-scroll-top-container img { width: 44px; height: 44px; }

  /* Startseite: Portrait ueber der Ueberschrift */
  .elementor-308 .elementor-widget-text-editor > .elementor-widget-container { display: flex; flex-direction: column; }
  .elementor-308 .elementor-widget-container > .wp-block-columns,
  .elementor-308 .elementor-widget-container > .wp-block-columns > .wp-block-column { display: contents; }
  .elementor-308 .elementor-widget-container p:empty,
  .elementor-308 .elementor-widget-container > .wp-block-spacer { display: none; }
  .elementor-308 .elementor-widget-container figure.wp-block-image { order: -1; margin: 8px auto 20px !important; }
  .elementor-308 .elementor-widget-container figure.wp-block-image img { max-width: 220px; }
  .elementor-308 .elementor-widget-container li[style*="list-style-type: none"] > ul { padding-left: 0; }
  .elementor-308 .elementor-widget-container ul { margin-bottom: 8px; }
}
@media (max-width: 600px) {
  ul.fm-bar { margin: 0 !important; }
  /* Bilder: Flyer in voller Breite, Themenbilder max. 300px, Galerie mittig */
  .nv-content-wrap .wp-block-image img { max-width: 100%; }
  .nv-content-wrap .alignright img, .nv-content-wrap .wp-block-gallery img { max-width: min(100%, 300px); }
  .nv-content-wrap .wp-block-gallery.alignright { width: 100%; justify-content: center; }
  .nv-content-wrap .wp-block-gallery.has-nested-images figure.wp-block-image { width: min(100%, 300px) !important; flex-grow: 0; margin: 0 auto !important; }
  /* Startseite: Listenabstaende und Kontaktblock */
  .elementor-308 .elementor-widget-container ul { margin: 0 0 6px !important; }
  .elementor-308 .elementor-widget-container li { margin: 0 !important; }
  .elementor-308 .elementor-widget-container h3 { margin-top: 20px; }
  .elementor-308 .elementor-widget-container .has-text-align-right { text-align: center; }
}
