/* =========================================================
   gisingroup.ch  |  Divi Child GisinGroup
   Ruhig, klar, gut lesbar. Inhalte bleiben im Divi Builder.
   ========================================================= */

:root {
  --gg-navy: #304559;
  --gg-navy-dark: #22333f;
  --gg-sand: #f2eee7;
  --gg-sand-light: #f8f6f2;
  --gg-text: #2b3137;
  --gg-muted: #5b6570;
  --gg-line: #dfe3e7;
  --gg-radius: 8px;
}

/* ---------- Grundtypografie ---------- */
body.gg-theme {
  color: var(--gg-text);
  font-size: 17px;
  line-height: 1.7;
  background: #fff;
}
body.gg-theme #page-container { background: #fff; }

body.gg-theme .et_pb_text_inner p,
body.gg-theme .et_pb_blurb_description,
body.gg-theme .et_pb_blurb_description p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gg-text);
}
body.gg-theme .et_pb_text_inner p { padding-bottom: 0.9em; }
body.gg-theme .et_pb_text_inner p:last-child { padding-bottom: 0; }

/* Lesbreite für Fliesstext */
body.gg-theme .et_pb_text_inner > p { max-width: 780px; }
body.gg-theme .et_pb_text_inner > p[style*="center"],
body.gg-theme .et_pb_text_inner > h1[style*="center"],
body.gg-theme .et_pb_text_inner > h2[style*="center"] { margin-left: auto; margin-right: auto; }

body.gg-theme h1, body.gg-theme h2, body.gg-theme h3,
body.gg-theme h4, body.gg-theme h5, body.gg-theme h6 {
  color: var(--gg-navy);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
body.gg-theme .et_pb_text_inner h1 { font-size: 40px; padding-bottom: 0.35em; }
body.gg-theme .et_pb_text_inner h2 { font-size: 30px; padding-bottom: 0.4em; }
body.gg-theme .et_pb_text_inner h3 { font-size: 22px; padding-bottom: 0.4em; }
body.gg-theme .et_pb_text_inner * + h2 { margin-top: 0.6em; }

body.gg-theme .gg-lead {
  font-size: 20px !important;
  line-height: 1.55 !important;
  color: var(--gg-muted) !important;
}
body.gg-theme .gg-small { font-size: 13px !important; color: var(--gg-muted) !important; }

body.gg-theme a { color: var(--gg-navy); }
body.gg-theme .et_pb_text_inner a { text-decoration: underline; text-underline-offset: 3px; }

/* alte Aufzählungsgrafik aus den Theme-Optionen neutralisieren */
body.gg-theme .et_pb_text_inner li {
  background: none !important;
  list-style-type: disc;
  padding: 0 0 4px 0 !important;
  line-height: 1.7;
}
body.gg-theme .et_pb_text_inner ul { padding-left: 1.2em; }

/* ---------- Hero (Bildband oben) ---------- */
body.gg-theme .gg-hero { position: relative; }
body.gg-theme .gg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 52, 67, 0.40) 0%, rgba(36, 52, 67, 0.62) 100%);
  z-index: 1;
  pointer-events: none;
}
body.gg-theme .gg-hero .et_pb_fullwidth_header {
  position: relative;
  z-index: 2;
  padding: 120px 0 !important;
  background: transparent !important;
}
body.gg-theme .gg-hero-head .et_pb_module_header {
  color: #fff !important;
  font-size: 34px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  max-width: 900px;
  margin: 0 auto;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

/* ---------- Knöpfe ---------- */
body.gg-theme .et_pb_button,
body.gg-theme .et_pb_button:hover,
body.gg-theme .wpcf7-submit {
  background: var(--gg-navy) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 0.8em 1.7em !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  transition: background-color 0.2s ease;
}
body.gg-theme .et_pb_button:hover,
body.gg-theme .wpcf7-submit:hover { background: var(--gg-navy-dark) !important; }
body.gg-theme .et_pb_button::after { display: none !important; }

/* ---------- Karten (Blurbs) und Bilder ---------- */
body.gg-theme .et_pb_blurb .et_pb_main_blurb_image { margin-bottom: 18px; }
body.gg-theme .et_pb_blurb .et_pb_image_wrap { display: block; overflow: hidden; border-radius: var(--gg-radius); }
body.gg-theme .et_pb_blurb .et_pb_main_blurb_image img {
  border-radius: var(--gg-radius);
  transition: transform 0.35s ease;
}
body.gg-theme .et_pb_blurb:hover .et_pb_main_blurb_image img { transform: scale(1.02); }
body.gg-theme .et_pb_blurb .et_pb_module_header,
body.gg-theme .et_pb_blurb .et_pb_module_header a {
  font-size: 20px;
  color: var(--gg-navy);
  text-align: center;
  font-weight: 600;
}
/* kleine Icons (Kontakt) nicht als Karte behandeln */
body.gg-theme .et_pb_blurb_position_left .et_pb_image_wrap { border-radius: 0; }
body.gg-theme .et_pb_blurb_position_left .et_pb_module_header,
body.gg-theme .et_pb_blurb_position_left .et_pb_module_header a { text-align: left; font-size: 18px; }

body.gg-theme .et_pb_image img { border-radius: var(--gg-radius); }

/* ---------- Kopfzeile ---------- */
body.gg-theme #main-header { box-shadow: 0 1px 0 rgba(48, 69, 89, 0.08); }
body.gg-theme #top-menu li a { font-weight: 500; letter-spacing: 0.01em; }
body.gg-theme #top-menu li.current-menu-item > a,
body.gg-theme #top-menu li.current-menu-ancestor > a { color: var(--gg-navy) !important; font-weight: 600; }

/* ---------- Kontaktformular ---------- */
body.gg-theme .wpcf7 input[type="text"],
body.gg-theme .wpcf7 input[type="email"],
body.gg-theme .wpcf7 input[type="tel"],
body.gg-theme .wpcf7 textarea {
  width: 100% !important;
  border: 1px solid var(--gg-line);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--gg-text);
  background: #fff;
}
body.gg-theme .wpcf7 input:focus,
body.gg-theme .wpcf7 textarea:focus { border-color: var(--gg-navy); outline: none; }
body.gg-theme .wpcf7 label { font-size: 15px; color: var(--gg-muted); }

/* ---------- Fusszeile (Theme Builder) ---------- */
body.gg-theme .gg-footer { color: rgba(255, 255, 255, 0.82); }
body.gg-theme .gg-footer .et_pb_text_inner p,
body.gg-theme .gg-footer .et_pb_text_inner li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.8;
  max-width: none;
}
body.gg-theme .gg-footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-bottom: 10px;
}
body.gg-theme .gg-footer a { color: #fff; text-decoration: none; }
body.gg-theme .gg-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.gg-theme .gg-footer ul { list-style: none; padding: 0; margin: 0; }
body.gg-theme .gg-footer li { list-style: none; padding: 0 !important; }
body.gg-theme .gg-footer .et_pb_text_inner p.gg-footer-brand {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-bottom: 6px;
  font-family: "Montserrat", sans-serif;
}
body.gg-theme .gg-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px !important;
}
body.gg-theme .gg-footer-bottom p { font-size: 13px !important; color: rgba(255, 255, 255, 0.65) !important; }

/* Social-Icons inkl. Mail in einer Reihe */
body.gg-theme .gg-social-col { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.gg-theme .gg-social-col > .et_pb_text { flex-basis: 100%; margin-bottom: 0 !important; }
body.gg-theme .gg-social-col > .et_pb_icon,
body.gg-theme .gg-social-col > .et_pb_social_media_follow { margin: 0 !important; }
body.gg-theme .gg-footer .et_pb_social_media_follow { padding: 0; }
body.gg-theme .gg-footer .et_pb_social_media_follow li { margin: 0 10px 0 0 !important; }
body.gg-theme .gg-footer .et_pb_social_media_follow li:last-child { margin-right: 0 !important; }
body.gg-theme .gg-footer .et_pb_social_media_follow li a.icon {
  background: rgba(255, 255, 255, 0.12) !important;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
body.gg-theme .gg-footer .et_pb_social_media_follow li a.icon:hover { background: rgba(255, 255, 255, 0.24) !important; }
body.gg-theme .gg-mail-icon .et_pb_icon_wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
body.gg-theme .gg-mail-icon a:hover .et_pb_icon_wrap { background: rgba(255, 255, 255, 0.24); }
body.gg-theme .gg-mail-icon .et-pb-icon { font-size: 16px !important; color: #fff !important; }

/* ---------- Tablet und Handy ---------- */
@media (max-width: 980px) {
  body.gg-theme .et_pb_text_inner h1 { font-size: 32px; }
  body.gg-theme .et_pb_text_inner h2 { font-size: 26px; }
  body.gg-theme .gg-hero .et_pb_fullwidth_header { padding: 90px 0 !important; }
  body.gg-theme .gg-hero-head .et_pb_module_header { font-size: 28px !important; }
}
@media (max-width: 767px) {
  body.gg-theme { font-size: 16px; }
  body.gg-theme .et_pb_text_inner p,
  body.gg-theme .et_pb_blurb_description p { font-size: 16px; }
  body.gg-theme .et_pb_text_inner h1 { font-size: 28px; }
  body.gg-theme .et_pb_text_inner h2 { font-size: 23px; }
  body.gg-theme .et_pb_text_inner h3 { font-size: 20px; }
  body.gg-theme .gg-lead { font-size: 18px !important; }
  body.gg-theme .gg-hero .et_pb_fullwidth_header { padding: 70px 0 !important; }
  body.gg-theme .gg-hero-head .et_pb_module_header { font-size: 23px !important; }
  body.gg-theme .gg-footer .et_pb_column { margin-bottom: 26px !important; }
}

/* ---------- Rechtstexte ---------- */
body.gg-theme .gg-legal h2 { font-size: 22px; margin-top: 1.4em; }
body.gg-theme .gg-legal p { max-width: 820px; }

/* ---------- Fusszeile unten: Credit ---------- */
body.gg-theme .gg-footer-bottom .et_pb_column { margin-bottom: 0 !important; }
body.gg-theme .gg-credit p { color: rgba(255, 255, 255, 0.65) !important; font-size: 13px !important; }
@media (max-width: 980px) {
  body.gg-theme .gg-footer-bottom .et_pb_column + .et_pb_column { margin-top: 6px; }
}

/* ---------- Handy: Abstände straffen ---------- */
@media (max-width: 767px) {
  body.gg-theme #main-content .et_pb_section:not(.gg-hero):not(.gg-footer) { padding-top: 34px; padding-bottom: 34px; }
  body.gg-theme #main-content .et_pb_row { padding-top: 14px; padding-bottom: 14px; }
  body.gg-theme .et_pb_column { margin-bottom: 22px; }
  body.gg-theme .et_pb_blurb .et_pb_module_header { font-size: 19px; }
  body.gg-theme .gg-caption { margin-top: -10px; }
}
body.gg-theme .gg-caption p { font-size: 15px !important; }
body.gg-theme .et_pb_video { border-radius: var(--gg-radius); overflow: hidden; }

/* ---------- Abschnitt Starke Fundamente (Startseite) ---------- */
body.gg-theme .gg-overline { font-size: 13px !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gg-muted) !important; padding-bottom: 4px !important; }
body.gg-theme .gg-fundamente { align-items: center; }
@media (min-width: 981px) { body.gg-theme .gg-fundamente { display: flex; } }
body.gg-theme .gg-video { position: relative; width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--gg-radius); overflow: hidden; background: #e9edf1; }
body.gg-theme .gg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
