/*
 * Innotec Bau – Ergänzungen zum Original-Design (dist/styles/main.css):
 * lokale Schrift (DSGVO), Icons ohne CDN, Zusammenspiel mit Elementor.
 */

/* ---------- Jost lokal (statt Google Fonts) ---------- */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  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;
}

/* ---------- Hamburger-Icon ohne Boxicons-CDN ---------- */
.bx { display: inline-block; width: 1em; height: 1em; line-height: 1; vertical-align: middle; }
.hamburger__icon {
  background-color: currentColor;
  -webkit-mask: var(--ib-icon) center / contain no-repeat;
  mask: var(--ib-icon) center / contain no-repeat;
  --ib-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v2H4zm0 5h16v2H4zm0 5h16v2H4z'/%3E%3C/svg%3E");
}
.hamburger__icon.bx-x {
  --ib-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m16.192 6.344-4.243 4.242-4.242-4.242-1.414 1.414L10.535 12l-4.242 4.242 1.414 1.414 4.242-4.242 4.243 4.242 1.414-1.414L13.364 12l4.242-4.242z'/%3E%3C/svg%3E");
}

/* ---------- Elementor: Original-Layout nicht überschreiben ---------- */
/* Elementor setzt img {height:auto; max-width:100%} mit höherer Spezifität als Tailwind */
.elementor .innotec-w .h-full { height: 100%; }
.elementor .innotec-w .w-full { width: 100%; }
.elementor .innotec-w .max-w-\[170px\] { max-width: 170px; }
.elementor .innotec-w .max-w-\[140px\] { max-width: 140px; }
.elementor .innotec-w img.object-cover { object-fit: cover; }
.elementor .innotec-w .aspect-\[832\/573\] { aspect-ratio: 832 / 573; }
.elementor .innotec-w .mx-auto { margin-left: auto; margin-right: auto; }
.elementor .innotec-w a { box-shadow: none; }

/* Innotec-Widgets brauchen keinen Elementor-Abstand */
.elementor-widget.innotec-widget,
.elementor-widget[class*="elementor-widget-innotec-"] { margin-bottom: 0 !important; }
.elementor-widget[class*="elementor-widget-innotec-"] > .elementor-widget-container { padding: 0; margin: 0; }

/* Inhalt im Elementor-Editor: Slider sind dort statisch, erstes Bild sichtbar */
.elementor-editor-active #heroSlider .swiper-slide:not(:first-child) { display: none; }

/* Textseiten (Impressum, Datenschutz): Platzhalter hervorheben */
mark.todo, .todo { background: #fff3b0; color: #6b5200; padding: 1px 6px; border-radius: 3px; }

/* Kontaktformular: Statusmeldung */
.innotec-form__hint { margin-top: .75rem; font-size: .95rem; color: #606060; }
.innotec-form__hint.is-error { color: #dc2626; }
.innotec-form__hint.is-ok { color: #00a5e6; }
.innotec-form .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.innotec-form button[disabled] { opacity: .6; cursor: wait; }

/* ---------- Projekt-Unterseiten & Projektübersicht (Klassen, die im Original-Build fehlen) ---------- */
.block { display: block; }
.pt-8 { padding-top: 2rem; }
.pb-16 { padding-bottom: 4rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-y-12 { row-gap: 3rem; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.transition-transform { transition-property: transform; transition-duration: .3s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:mr-1 { margin-right: .25rem; }
@media (min-width: 640px) { .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .xl\:py-20 { padding-top: 5rem; padding-bottom: 5rem; } }
@media (min-width: 1536px) { .\32xl\:py-16 { padding-top: 4rem; padding-bottom: 4rem; } }

/* Projektgalerie: 2 Spalten, Bilder gleich hoch, Klick öffnet Großansicht */
.single-project .wp-block-gallery { margin-top: 2.5rem; }
.single-project .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; }
.single-project .prose .wp-block-gallery figure { margin: 0; }
