/* Innotec Bau – Theme-Styles (Kopf, Fuß, Formular, Schriften). Seiteninhalte gestaltet Elementor. */

/* Jost lokal gehostet (DSGVO: keine Verbindung zu Google Fonts). Lizenz: SIL Open Font License */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --dark: #333333;
  --black: #000000;
  --text: #1a1a1a;
  --muted: #5b5b5b;
  --light: #e9eaec;
  --accent: #0aa1e2;
  --accent-dark: #0889c0;
  --white: #ffffff;
  --container: 1248px;
  --gutter: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: "Jost", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Dekorative Versatzblöcke dürfen die Seite nicht verbreitern */
main, .footer { overflow-x: hidden; overflow-x: clip; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 48px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { border-color: currentColor; color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--text); }
.btn--outline-dark { border-color: var(--text); color: var(--text); background: transparent; }
.btn--outline-dark:hover { background: var(--text); color: var(--white); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 18px;
}
.link-more::after {
  content: "";
  width: 7px; height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}
.link-more:hover::after { transform: translateX(4px) rotate(45deg); }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 32px; }

.circle-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.circle-btn svg { width: 18px; height: 18px; }
.circle-btn:hover { background: var(--text); color: var(--white); border-color: var(--text); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  padding: 24px 0;
  transition: background .3s, padding .3s;
}
.header.is-scrolled { background: var(--dark); padding: 16px 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { width: 146px; height: auto; transition: width .3s; }
.header.is-scrolled .header__logo img { width: 100px; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--white); font-size: 18px; position: relative; }
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: currentColor; transition: width .25s;
}
.nav__list a:hover::after { width: 100%; }
.nav .btn { padding: 16px 44px; font-size: 16px; font-weight: 400; }

.burger {
  display: none;
  width: 48px; height: 48px;
  background: transparent; border: 0; padding: 12px;
  cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--white); margin: 5px 0; transition: transform .3s, opacity .3s; }
.header.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.menu-open .burger span:nth-child(2) { opacity: 0; }
.header.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ---------- Kontakt ---------- */
.form { display: grid; gap: 12px; max-width: 600px; }
.form input, .form textarea {
  width: 100%; border: 0; background: var(--white);
  padding: 16px 20px; font: inherit; font-size: 17px; color: var(--text);
  outline: 2px solid transparent; transition: outline-color .2s;
}
.form input:focus, .form textarea:focus { outline-color: var(--accent); }
.form textarea { min-height: 240px; resize: vertical; }
.form ::placeholder { color: #9a9b9d; }
.form__check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); margin: 8px 0 12px; cursor: pointer; }
.form__check input { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: var(--accent); }
.form .btn { width: 100%; }
.form__hint { font-size: 15px; color: var(--muted); margin: 4px 0 0; }

.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--white); padding: 48px 0 40px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__logo img { width: 146px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 16px 48px; list-style: none; margin: 0; padding: 0; font-size: 18px; }
.footer__nav a:hover { color: var(--accent); }
.to-top { background: var(--white); color: var(--text); border-color: var(--white); }
.to-top:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-top: 48px; color: rgba(255, 255, 255, .8); font-size: 16px; }
.footer__bottom nav { display: flex; gap: 28px; }
.footer__bottom a:hover { color: var(--white); }


/* ---------- WordPress / Elementor ---------- */
.site-main { overflow-x: hidden; overflow-x: clip; }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* Unterseiten: Kopfbereich immer dunkel */
.page-sub .header { background: var(--dark); padding: 16px 0; }
.page-sub .header__logo img { width: 100px; }
.nav__list .current-menu-item > a::after { width: 100%; }

/* Elementor-Seiten: Schrift erben, falls im Editor keine gesetzt ist */
.elementor-widget-text-editor, .elementor-widget-heading .elementor-heading-title,
.elementor-widget-icon-list, .elementor-widget-accordion, .elementor-button { font-family: "Jost", sans-serif; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* Schmale Textspalte (Klasse "ib-narrow" im Elementor-Feld "CSS-Klassen") */
.elementor-widget.ib-narrow { max-width: 920px; margin-left: auto; margin-right: auto; }

/* Bilder im Format 16:11 zugeschnitten (Klasse "ib-img-cover") */
.ib-img-cover img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }

/* Grauer Versatzblock hinter Bildern (Spalten-Klasse "ib-offset-left" / "ib-offset-right") */
.ib-offset-left, .ib-offset-right { position: relative; }
.ib-offset-left::before, .ib-offset-right::before {
  content: ""; position: absolute; z-index: 0; background: var(--light);
  top: -112px; bottom: 40%;
}
.ib-offset-left::before { left: -100vw; right: 88%; }
.ib-offset-right::before { left: 36%; right: -100vw; }
.ib-offset-left .elementor-widget, .ib-offset-right .elementor-widget { position: relative; z-index: 1; }

/* Textlinks "Mehr erfahren >" */
.ib-link .elementor-button { padding-left: 0; padding-right: 0; }
.ib-link .elementor-button-icon { font-size: 11px; }

/* Leistungen-Raster: Rahmen überlappen statt doppelt */
.ib-services .elementor-inner-section .elementor-column { transition: background .3s; }
.ib-services .elementor-inner-section .elementor-column:hover { background-color: #f5f6f7; }

/* Akkordeon (Leistungen im Detail, FAQ) */
.ib-accordion .elementor-accordion-item { border-left: 0 !important; border-right: 0 !important; }
.ib-accordion .elementor-tab-content ul { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.ib-accordion .elementor-tab-content li { position: relative; padding-left: 30px; }
.ib-accordion .elementor-tab-content li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
}
.ib-accordion .elementor-tab-content li::after {
  content: ""; position: absolute; left: 6px; top: 9px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ib-accordion .elementor-tab-content strong { color: var(--text); font-weight: 500; }

/* Referenzen-Karussell: einheitliches Bildformat */
.ib-carousel .swiper-slide-image { width: 100%; aspect-ratio: 2.17 / 1; object-fit: cover; }
.ib-carousel .elementor-image-carousel-caption { padding-top: 20px; }
.ib-carousel .elementor-swiper-button {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.15);
}


/* Bauprozess: nummerierte Schritte mit blauen Kreisen (Klasse "ib-steps" am Text-Widget) */
.ib-steps ol { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 24px; display: grid; gap: 16px; }
.ib-steps li { counter-increment: step; position: relative; padding-left: 48px; min-height: 32px; display: flex; align-items: center; }
.ib-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.ib-textlinks a { color: var(--accent); }
.ib-textlinks a:hover { text-decoration: underline; }

/* Zahlen (Counter-Widget, linksbündig wie im Original) */
.ib-counter .elementor-counter { align-items: flex-start; text-align: left; }
.ib-counter .elementor-counter-number-wrapper { justify-content: flex-start; }
.ib-counter .elementor-counter-title { text-align: left; margin-top: 8px; }

/* Breites Bild mit grauem Block unten links (Spalten-Klasse "ib-offset-bottom") */
.ib-img-wide img { width: 100%; aspect-ratio: 1916 / 593; object-fit: cover; }
.ib-offset-bottom { position: relative; }
.ib-offset-bottom::before {
  content: ""; position: absolute; z-index: 0; background: var(--light);
  left: -100vw; right: 93%; top: 30%; bottom: -112px;
}
.ib-offset-bottom .elementor-widget { position: relative; z-index: 1; }

/* Kontakt: Formular-Spalte grau bis zum rechten Rand */
.ib-form-col { position: relative; }
.ib-form-col::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 100vw; background: var(--light); }
.ib-persons p { margin-bottom: 20px; line-height: 1.35; }
.ib-persons small { display: inline-block; font-size: 15px; color: var(--muted); margin-bottom: 2px; }

/* Partner-Logos dezent in Graustufen */
.ib-partner img { filter: grayscale(1); opacity: .85; transition: opacity .25s, filter .25s; max-height: 56px; width: auto; }
.ib-partner img:hover { filter: none; opacity: 1; }

/* Kontakt: Personen */
.ib-persons p { margin-bottom: 24px; }
.ib-persons .ib-person { font-size: 22px; }
.ib-persons small { font-size: 16px; color: var(--muted); }
.ib-persons a:hover { color: var(--accent); }

/* Rechtliche Seiten (Klasse "ib-legal" am Text-Widget) */
.elementor-widget.ib-legal { max-width: 860px; }
.ib-legal h2 { font-size: 26px; font-weight: 400; margin: 48px 0 16px; color: var(--text); }
.ib-legal h3 { font-size: 20px; font-weight: 500; margin: 28px 0 10px; color: var(--text); }
.ib-legal ul { padding-left: 20px; }
.ib-legal li { margin-bottom: 6px; }
.ib-legal a { color: var(--accent); }
.ib-legal a:hover { text-decoration: underline; }
.ib-legal strong { color: var(--text); font-weight: 500; }
/* Platzhalter, die vor dem Livegang ersetzt werden müssen */
.todo { background: #fff3b0; color: #6b5200; padding: 1px 6px; border-radius: 3px; font-size: .95em; }

/* Seiten ohne Elementor */
.ib-default { padding: 176px var(--gutter) 112px; min-height: 60vh; }
.ib-default h1 { font-size: clamp(36px, 4vw, 52px); margin-bottom: 24px; }
.ib-entry { margin-bottom: 48px; }
.text-muted { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    background: var(--dark);
    flex-direction: column; justify-content: center; gap: 40px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .header.menu-open .nav { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 24px; }
  .nav__list a { font-size: 26px; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .ib-form-col::after { display: none; }
  .ib-offset-bottom::before { display: none; }
  body { font-size: 17px; }
  .header__logo img { width: 110px; }
  .ib-offset-left::before, .ib-offset-right::before { top: -32px; bottom: 50%; }
  .ib-offset-left::before { right: 70%; }
  .ib-offset-right::before { left: 40%; }
  .ib-carousel .elementor-swiper-button { display: none; }
  .footer__nav { gap: 12px 28px; font-size: 17px; }
  .ib-default { padding-top: 136px; }
}
