/* =========================================================
   Kalamatos – Design (Nov 2026)
   Farben aus dem Logo abgeleitet:
   Blattgrün  #5c9440  Seitenhintergrund (ruhiger als Logo-Grün)
   Logo-Grün  #78b848  Akzentlinien
   Tiefgrün   #3d6b2a  Überschriften, Kontaktbox
   Ägäis-Blau #0b72ad  Buttons (aus dem Logo-Blau)
   Papier     #fbfcf8  Inhaltsflächen
   Tinte      #2b3027  Text
   ========================================================= */

/* 1. Hintergrund: ruhiges Blattgrün statt Neon-Lime */
body.custom-background,
.page_wrap { background-color: #5c9440 !important; }

/* Footer immer unten, kein leerer Streifen darunter */
.page_wrap { min-height: 100vh; display: flex; flex-direction: column; }
.page_wrap > .page_content_wrap { flex: 1 0 auto; }

/* 2. Header und Menü */
.kalamatos-header-wrapper { box-shadow: 0 2px 14px rgba(0,0,0,.08); }
.vc_custom_1688564173308 { background-color: #78b848 !important; }
.top_panel .menu-item > a {
  font-size: 14px !important; font-weight: 600 !important;
  color: #2b3027 !important; letter-spacing: .5px;
}
html body .top_panel .menu-item > a:hover,
html body .top_panel .current-menu-item > a { color: #0b72ad !important; }
.top_panel .sc_layouts_menu_nav #blob { background-color: #78b848 !important; }
.sc_layouts_title_caption { color: #2b3027 !important; }

/* 3. Unterseiten: Inhalt auf heller Fläche, Grün als Rahmen */
body:not(.home) .page_content_wrap { padding-top: 40px !important; padding-bottom: 60px !important; }
body:not(.home) .page_content_wrap > .content_wrap {
  background: #fbfcf8; border-radius: 6px;
  padding: 44px 52px; box-sizing: border-box;
  box-shadow: 0 12px 32px rgba(25,45,15,.22);
}

/* 4. Buttons im Logo-Blau */
html body .sc_button.sc_button.sc_button.sc_button,
html body input.wpcf7-submit.wpcf7-submit.wpcf7-submit {
  background-color: #0b72ad !important; background-image: none !important;
  color: #fff !important; border: 0 !important; border-radius: 6px !important;
  font-size: 14px !important; padding: 14px 32px !important; letter-spacing: .5px;
  box-shadow: 0 3px 10px rgba(11,114,173,.25);
  transition: background-color .2s;
}
html body .sc_button.sc_button.sc_button.sc_button:hover,
html body input.wpcf7-submit.wpcf7-submit.wpcf7-submit:hover { background-color: #085a8a !important; }

/* 5. Produktliste */
.products-wrapper .product-category-header {
  color: #3d6b2a; font-size: 26px; font-weight: 600; line-height: 1.2;
  margin: 40px 0 10px; padding-bottom: 8px; border-bottom: 2px solid #78b848;
}
.products-wrapper .product-category-header:first-child { margin-top: 10px; }
.product-table-header-description {
  color: #6b7363 !important; font-size: 13px; font-weight: 600;
  padding-bottom: 6px; border-bottom: 1px solid #dfe6d6; margin-bottom: 0 !important;
}
.product-table-row,
.product-table-row:nth-child(2n),
.product-table-row:nth-child(2n+1) {
  background: transparent !important; margin: 0 !important; padding: 8px 0 !important;
  border-bottom: 1px solid #e6ebdf;
}
.product-table-row:nth-child(2n+1) { background: #f2f6ec !important; }
.product-table-row:hover { background: #e4eed8 !important; }
.product-table-row a { color: #2b3027 !important; }
.product-table-row .product-info-number,
.product-table-row .product-info-weight { color: #5a6253; font-variant-numeric: tabular-nums; }
.products-categories-wrapper {
  background: #fff; border-top: 3px solid #78b848 !important; border-radius: 4px;
  position: sticky; top: 150px;
}
.products-categories-wrapper .category-link.active,
.products-categories-wrapper .category-link:hover { color: #3d6b2a !important; }

/* 6. Kontaktseite: zwei gleich hohe Spalten nebeneinander */
html body .vc_custom_1544959842004.vc_row {
  display: flex !important; flex-wrap: wrap; align-items: stretch;
  margin: 0 !important; border-radius: 6px; overflow: hidden;
  box-shadow: 0 6px 22px rgba(25,45,15,.12);
}
html body .vc_custom_1544959842004 > .wpb_column {
  float: none !important; width: 50% !important; display: flex;
}
html body .vc_custom_1544959842004 > .wpb_column > .vc_column-inner {
  margin: 0 !important; padding: 0 !important; width: 100%;
  display: flex; flex-direction: column;
}
/* gruene Flaeche fuellt die ganze Spaltenhoehe */
html body .vc_custom_1544959842004 > .contact-info > .vc_column-inner > .wpb_wrapper { flex: 1 1 auto; }
/* linke Spalte: Kontaktdaten auf Tiefgrün */
html body .contact-info .vc_column-inner > .wpb_wrapper {
  background-color: #3d6b2a !important; width: 100%;
  padding: 40px 36px; box-sizing: border-box;
}
.contact-info .vc_column-inner > .wpb_wrapper * { color: #fff !important; }
.contact-info .sc_item_title { font-size: 20px !important; margin-bottom: 24px !important; letter-spacing: .5px; }
.contact-info .vc_empty_space { display: none; }
.contact-info a:hover { text-decoration: underline; }
/* rechte Spalte: Formular auf Weiß */
html body .vc_custom_1544959842004 > .wpb_column > .vc_custom_1500448736746.vc_column-inner {
  background-color: #fff !important; border: 0 !important;
  margin: 0 !important; padding: 40px 44px !important;
}
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 textarea {
  width: 100% !important; box-sizing: border-box;
  border: 1px solid #cfd8c4 !important; border-radius: 4px !important; background: #fff !important;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: #0b72ad !important; outline: 2px solid rgba(11,114,173,.2); }
/* leere Google-Map (lädt nicht) ausblenden */
.page-id-75 .post_content > .vc_row:has(.sc_googlemap_wrap) { display: none !important; }

/* 7. Bilder und Karten */
.wpb_single_image img { border-radius: 6px; }
.kal-card > .vc_column-inner {
  background: #fff; border-radius: 10px; padding: 30px !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

/* 9. Feinschliff nach Seitencheck */
/* Menü: aktive Seite in Blau */
html body .top_panel .sc_layouts_menu_nav > li.current-menu-item > a,
html body .top_panel .sc_layouts_menu_nav > li > a:hover { color: #0b72ad !important; }
html body .vc_custom_1688564173308.vc_row { background-color: #78b848 !important; }

/* Produkte: breitere Kategorienspalte, Tabelle sauber ausgerichtet */
@media (min-width: 992px) {
  html body .products-categories-wrapper.vc_col-md-2 { width: 22% !important; }
  html body .products-wrapper.vc_col-md-9 { width: 78% !important; }
}
html body .products-categories-wrapper.vc_col-md-2 { position: sticky !important; top: 150px; margin-top: 0 !important; }
.products-categories-wrapper { padding: 16px 18px !important; box-sizing: border-box; box-shadow: 0 2px 10px rgba(0,0,0,.08) !important; }
.products-categories-wrapper .category-list-header { position: static !important; margin-bottom: 8px; color: #2b3027; }
.products-categories-wrapper .category-link { display: block; padding: 3px 0; font-size: 15px !important; line-height: 1.35; }
.products-wrapper .product-table-header-description { margin-left: 0 !important; margin-right: 0 !important; }

/* Einzelne Produktseite */
body.single-k_products .top_panel .sc_layouts_hide_on_frontpage { display: none !important; }
.product-title { font-size: 28px !important; line-height: 1.2 !important; overflow-wrap: normal !important; hyphens: auto; }
.product-nav-link, .related-product-tag { background-color: #3d6b2a !important; border-radius: 4px; transition: background-color .2s; }
.product-nav-link:hover, .related-product-tag:hover { background-color: #2f5420 !important; }

/* 404-Seite: Button wie alle anderen */
html body a.theme_button.theme_button.theme_button {
  background-color: #0b72ad !important; background-image: none !important;
  color: #fff !important; border-radius: 6px !important;
}

/* 10. Produkte-Sidebar und Kontakt (Überarbeitung) */
/* Abstand zwischen Slider und Produktliste */
.content > .vc_row:has(> .products-categories-wrapper) { margin-top: 36px !important; }

/* Sidebar: ruhige Navigationsliste */
html body .products-categories-wrapper.vc_col-md-2 {
  background: #f1f5ea !important; border: 0 !important;
  box-shadow: none !important; border-radius: 8px; padding: 18px 12px !important;
}
html body .products-categories-wrapper .category-list-header {
  font-size: 13px !important; font-weight: 700; color: #5a6253 !important;
  letter-spacing: .3px; padding: 0 12px 10px; margin-bottom: 8px !important;
  border-bottom: 1px solid #dbe4cf;
}
html body .products-categories-wrapper .category-link {
  display: block; padding: 8px 12px !important; border-radius: 6px;
  color: #2b3027 !important; font-size: 15px !important; font-weight: 400 !important;
  line-height: 1.3; text-decoration: none !important; transition: background-color .15s;
}
html body .products-categories-wrapper .category-link:hover { background: #e2ecd5; color: #2b3027 !important; }
html body .products-categories-wrapper .category-link.active { background: #3d6b2a; color: #fff !important; font-weight: 600 !important; }

/* Kontakt: kein Fenster im Fenster, die Karte liegt direkt auf dem Grün */
html body.page-id-75 .page_content_wrap > .content_wrap {
  background: transparent !important; box-shadow: none !important; padding: 0 !important;
}
.page-id-75 .post_content > .vc_row:first-child:not(.vc_custom_1544959842004) { display: none; }
html body .vc_custom_1544959842004.vc_row { border-radius: 10px; box-shadow: 0 18px 44px rgba(20,40,10,.30); }
@media (max-width: 1099px) {
  html body .vc_custom_1544959842004 > .wpb_column.wpb_column { width: 100% !important; }
}
@media (min-width: 1100px) {
  html body .vc_custom_1544959842004 > .contact-info.wpb_column { width: 42% !important; }
  html body .vc_custom_1544959842004 > .wpb_column:not(.contact-info) { width: 58% !important; }
}
html body .contact-info .vc_column-inner > .wpb_wrapper { padding: 48px 44px; }
html body .contact-info .sc_item_title { font-size: 24px !important; letter-spacing: 0 !important; margin-bottom: 20px !important; }
.contact-infos-kalamatos .sc_icons_item { padding: 14px 0 !important; margin: 0 !important; border-top: 1px solid rgba(255,255,255,.14); }
html body .contact-infos-kalamatos .sc_icons_icon,
html body .contact-infos-kalamatos .sc_icons_icon * { color: #b9dc98 !important; }
html body .contact-infos-kalamatos .sc_icons_item_title,
html body .contact-infos-kalamatos .sc_icons_item_title * {
  font-family: inherit !important; font-size: 13px !important; font-weight: 700 !important;
  color: #b9dc98 !important; letter-spacing: .4px;
}
html body .contact-infos-kalamatos .sc_icons_item_description,
html body .contact-infos-kalamatos .sc_icons_item_description * { font-size: 15px !important; line-height: 1.55 !important; }
html body .contact-infos-kalamatos .sc_icons_item .sc_icons_item_title { margin: 0 0 4px !important; }
html body .contact-infos-kalamatos .sc_icons_item .sc_icons_item_description { margin-top: 0 !important; padding-left: 50px; }
html body .contact-infos-kalamatos .sc_icons_item .sc_icons_icon { top: 15px !important; }
html body .vc_custom_1544959842004 > .wpb_column > .vc_custom_1500448736746.vc_column-inner { padding: 48px 52px !important; }
.vc_custom_1500448736746 .vc_empty_space { display: none; }

/* 8. Mobil */
@media (max-width: 767px) {
  body:not(.home) .page_content_wrap > .content_wrap { padding: 24px 18px; border-radius: 0; }
  html body .products-categories-wrapper.vc_col-md-2 { position: static !important; margin-bottom: 30px; }
  html body .vc_custom_1544959842004 > .wpb_column { width: 100% !important; }
  html body .vc_custom_1544959842004 > .wpb_column > .vc_custom_1500448736746.vc_column-inner, html body .contact-info .vc_column-inner > .wpb_wrapper { padding: 28px 20px !important; }
}
/* 11. Smartphone-Feinschliff */
@media (max-width: 767px) {
  /* Startseite: weniger Leerraum unter dem Slider */
  .home .post_content > .vc_row:first-child .vc_empty_space { height: 20px !important; }
  /* Marktlogos: drei nebeneinander statt einzeln untereinander */
  .vc_custom_1557678358877 .vc_inner { display: flex !important; flex-wrap: wrap; align-items: center; }
  .vc_custom_1557678358877 .vc_inner > .wpb_column { width: 33.333% !important; float: none !important; }
  .vc_custom_1557678358877 .wpb_single_image { text-align: center !important; margin: 0 0 14px !important; }
  .vc_custom_1557678358877 .wpb_single_image .vc_figure { display: block; }
  .vc_custom_1557678358877 .wpb_single_image img { max-height: 64px; width: auto !important; max-width: 100%; }
  .vc_custom_1557678358877 .wpb_single_image img[src$=".svg"] { width: 100% !important; height: auto; }
  .vc_custom_1557678358877 .vc_empty_space { height: 24px !important; }
  /* Footer-Menü nebeneinander */
  footer #menu-footer-menu { text-align: center; }
  footer #menu-footer-menu > li { display: inline-block !important; margin: 4px 10px !important; }
}
/* 12. Mobiles Menü auf Tiefgrün */
html body .menu_mobile .menu_mobile_inner { background-color: #3d6b2a !important; }
html body .menu_mobile .menu_mobile_inner .logo_text,
html body .menu_mobile .menu_mobile_inner .logo_slogan { color: #fff !important; }
html body .menu_mobile .menu_mobile_nav_area li > a {
  color: #fff !important; font-size: 22px !important; font-weight: 600 !important;
  padding: 10px 0 !important; letter-spacing: .5px;
}
html body .menu_mobile .menu_mobile_nav_area li.current-menu-item > a { color: #b9dc98 !important; }
html body .menu_mobile .menu_mobile_close,
html body .menu_mobile .menu_mobile_close::before,
html body .menu_mobile .menu_mobile_close::after { color: #fff !important; border-color: #fff !important; }
/* 13. Produkttabelle: Spaltenbreiten nach Inhalt */
@media (min-width: 768px) {
  html body .products-wrapper .product-table-row > .vc_col-sm-4:first-child,
  html body .products-wrapper .product-table-header-description > .vc_col-sm-4:first-child { width: 62% !important; }
  html body .products-wrapper .product-table-row > .product-info-number,
  html body .products-wrapper .product-table-header-description > .product-info-number { width: 20% !important; }
  html body .products-wrapper .product-table-row > .product-info-weight,
  html body .products-wrapper .product-table-header-description > .product-info-weight { width: 18% !important; text-align: right; }
}
html body .products-wrapper .product-table-header-description > div { white-space: nowrap; }
/* Smartphone: Name oben, Artikel-Nr. und Inhalt klein darunter */
@media (max-width: 767px) {
  html body .products-wrapper .product-table-header-description { display: none !important; }
  html body .products-wrapper .product-table-row { display: flex !important; flex-wrap: wrap; align-items: baseline; padding: 10px 12px !important; }
  html body .products-wrapper .product-table-row > div { width: auto !important; float: none !important; padding: 0 !important; min-height: 0 !important; }
  html body .products-wrapper .product-table-row > div:first-child { width: 100% !important; margin-bottom: 2px; }
  html body .products-wrapper .product-table-row > .product-info-number { display: block !important; font-size: 13px; margin-right: 16px; }
  html body .products-wrapper .product-table-row > .product-info-number::before { content: "Art.-Nr. "; }
  html body .products-wrapper .product-table-row > .product-info-weight { display: block !important; font-size: 13px; }
}
/* 14. Kontaktformular: Datei-Upload */
.kal-file { margin: 4px 0 20px; }
.kal-file-label { display: block; margin-bottom: 6px; }
.kal-file-label small { color: #6b7363; font-size: 12px; }
html body .kal-file .kal-file-drop {
  position: relative; display: flex !important; flex-wrap: wrap; align-items: center; gap: 0 14px;
  margin: 0 !important; padding: 12px 14px; cursor: pointer;
  border: 1px dashed #b7c6a6; border-radius: 6px; background: #f6f9f2;
  transition: border-color .2s, background-color .2s;
}
html body .kal-file .kal-file-drop:hover,
html body .kal-file .kal-file-drop:focus-within { border-color: #3d6b2a; background: #eef4e6; }
html body .kal-file .kal-file-drop:focus-within { outline: 2px solid rgba(61,107,42,.25); outline-offset: 2px; }
html body .kal-file .kal-file-drop .wpcf7-form-control-wrap { position: static !important; order: 5; width: 100%; }
html body .kal-file .kal-file-drop input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0;
}
.kal-file-btn {
  flex: none; background: #3d6b2a; color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 4px; line-height: 1.2;
}
.kal-file-name { flex: 1; min-width: 0; font-size: 14px; color: #6b7363; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kal-file.has-file .kal-file-name { color: #2b3027; font-weight: 600; }
.kal-file.has-file .kal-file-drop { border-style: solid; border-color: #3d6b2a; }
.kal-file-hint { display: block; margin-top: 6px; font-size: 12px; color: #6b7363; }
.kal-file .wpcf7-not-valid-tip { margin-top: 8px; }
.kal-file br { display: none; }
/* 15. Mobiler Header: Logo im Header, Menü-Button als klare Schaltfläche */
@media (max-width: 960px) {
html body .kalamatos-header-wrapper.vc_row {
  padding: 8px 16px !important; min-height: 68px; align-items: center !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
html body .kalamatos-header-wrapper .vc_column-inner { padding: 0 20px !important; width: 100%; }
html body .kalamatos-header-wrapper.vc_row, html body .kalamatos-header-wrapper > .wpb_column, html body .kalamatos-header-wrapper .vc_column-inner, html body .kalamatos-header-wrapper .vc_column-inner > .wpb_wrapper { height: auto !important; }
html body .kalamatos-header-wrapper .vc_column-inner > .wpb_wrapper {
  display: flex !important; align-items: center; justify-content: flex-start; width: 100%;
}
html body .kalamatos-header-wrapper .sc_layouts_item { margin: 0 !important; }
html body header > .kalamatos-header-wrapper.sc_layouts_row_fixed > div > div > div > div:nth-child(1) { margin: 0 !important; }
html body .kalamatos-header-wrapper .sc_layouts_item:has(.sc_layouts_menu_mobile_button) { margin-left: auto !important; }
html body .kalamatos-header-wrapper .vc_wp_text { display: none; }
html body .kalamatos-header-wrapper img.logo_image {
  height: 56px !important; width: auto !important; max-height: none; margin: 0 !important; display: block;
}
html body .kalamatos-header-wrapper .sc_layouts_menu_mobile_button { display: block !important; }
html body .kalamatos-header-wrapper .sc_layouts_menu_mobile_button a {
  display: flex !important; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px; background: #3d6b2a;
  transition: background-color .2s;
}
html body .kalamatos-header-wrapper .sc_layouts_menu_mobile_button a:hover,
html body .kalamatos-header-wrapper .sc_layouts_menu_mobile_button a:focus-visible { background: #2f5420; }
html body .kalamatos-header-wrapper .sc_layouts_menu_mobile_button .sc_layouts_item_icon { margin: 0 !important; line-height: 1; }
html body .kalamatos-header-wrapper .sc_layouts_menu_mobile_button .sc_layouts_item_icon::before { color: #fff !important; font-size: 24px !important; margin: 0 !important; }
/* Seitentitel auf dem Smartphone kompakter */
html body .top_panel .sc_layouts_hide_on_frontpage.vc_row { padding-top: 18px !important; padding-bottom: 18px !important; }
html body .sc_layouts_title_caption { font-size: 26px !important; line-height: 1.2 !important; }
}

/* 16. Kein horizontales Scrollen bei Bildschirmbreiten um 1440 px */
html body .page_wrap { max-width: 100%; overflow-x: hidden; }

/* 17. Geschäftszeiten (Kontakt): Büro und Warenannahme als zwei klare Blöcke */
html body .contact-infos-kalamatos .sc_icons_item:last-child .sc_icons_item_description { display: grid !important; grid-template-columns: 1fr; margin-top: 10px !important; }
html body .contact-infos-kalamatos .sc_icons_item:last-child .sc_icons_item_description span { display: block !important; margin: 0 !important; padding: 0 14px !important; background: rgba(255,255,255,.08); border-left: 3px solid #78b848; color: #fff !important; }
html body .contact-infos-kalamatos .sc_icons_item:last-child .sc_icons_item_description span:nth-child(odd) { padding-top: 10px !important; border-radius: 0 8px 0 0; font-size: 12px !important; line-height: 1.4 !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase; color: #cfe5bd !important; }
html body .contact-infos-kalamatos .sc_icons_item:last-child .sc_icons_item_description span:nth-child(even) { padding-bottom: 10px !important; margin-bottom: 10px !important; border-radius: 0 0 8px 0; font-size: 16px !important; line-height: 1.5 !important; font-weight: 600 !important; }
html body .contact-infos-kalamatos .sc_icons_item:last-child .sc_icons_item_description span:nth-child(3), html body .contact-infos-kalamatos .sc_icons_item:last-child .sc_icons_item_description span:nth-child(4) { border-left-color: #f2b84b; }
html body .contact-infos-kalamatos .sc_icons_item:last-child .sc_icons_item_description span:nth-child(3) { color: #f6d38f !important; }
html body .contact-infos-kalamatos .sc_icons_item:last-child .sc_icons_item_description span:last-child { margin-bottom: 0 !important; }
html body .contact-infos-kalamatos .sc_icons_item:last-child .sc_icons_item_description span { overflow-wrap: normal !important; word-break: normal !important; hyphens: none !important; }