/* Kitzing Bau – Anpassungen auf Basis des Roofsie-Themes */

/* Schrift lokal (DSGVO) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.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;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.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;
}

/* Markenfarben aus dem Logo (#E30707) */
:root {
  --roofsie-base: #e30707;
  --roofsie-base-rgb: 227, 7, 7;
  --kitzing-rot-dunkel: #b50505;
}

/* Logo im Kopfbereich: breiteres Schild für das Querformat-Logo */
.main-header__logo { width: 260px; padding-top: 14px; }
.main-header__logo__shape-1,
.main-header__logo__shape-1::before { background-color: #fff; }
.main-header__logo a { position: relative; z-index: 3; display: block; }
.main-header__logo img, .main-header__logo a > img { width: 222px; height: auto; image-rendering: auto; transform: none; }
.main-menu__wrapper-inner { padding-left: 350px; }
@media (max-width: 1670px) { .main-menu__wrapper-inner { padding-left: 340px; } }
@media (max-width: 1399px) {
  .main-header__logo { left: 30px; width: 230px; }
  .main-header__logo img { width: 196px; }
  .main-menu__wrapper-inner { padding-left: 290px; }
}
@media (max-width: 1199px) { .main-menu__wrapper-inner { padding-left: 290px; } }
@media (max-width: 767px) {
  .main-header__logo { left: 15px; width: 190px; padding-top: 10px; }
  .main-header__logo img { width: 160px; }
}
.footer-logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: var(--roofsie-bdr-radius); margin-bottom: 24px; }
.footer-logo img { width: 190px; height: auto; display: block; }
.mobile-nav__content .footer-logo img { width: 170px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: #fff; color: var(--roofsie-black); padding: 10px 16px; border-radius: 4px; }
.skip-link:focus { left: 8px; }

/* Untertitel-Zierelement (im Original ein Bild aus der Demo) */
.section-title-shape-1 {
  width: 44px;
  height: 3px;
  background: var(--roofsie-base);
  border-radius: 2px;
}

/* Buttons statt Links für Barrierefreiheit */
button.mobile-nav__toggler,
button.mobile-nav__close {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
button.mobile-nav__close { color: #fff; font-size: 20px; }
:focus-visible { outline: 3px solid var(--roofsie-base); outline-offset: 3px; }
.thm-btn:focus-visible, .process :focus-visible, .cta-one :focus-visible { outline-color: #fff; }

/* Hero: statisch statt Slider, echtes h1 */
.main-slider { overflow: hidden; }
h1.main-slider__title { margin: 0 0 28px; }
@media (min-width: 1200px) { h1.main-slider__title { font-size: 64px; line-height: 72px; } }
@media (max-width: 767px) { h1.main-slider__title { font-size: 40px; line-height: 48px; } }

/* Leistungslisten in den Leistungskarten */
.leistung-liste { margin: 10px 0 0; padding: 0; }
.leistung-liste li {
  position: relative;
  padding: 7px 0 7px 22px;
  border-bottom: 1px solid var(--roofsie-bdr-color);
  font-size: 15px;
  line-height: 1.5;
}
.leistung-liste li:last-child { border-bottom: 0; }
.leistung-liste li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 12px;
  color: var(--roofsie-base);
}

/* Ablauf: Kopf über den Schritten */
.process .section-title { margin-bottom: 40px; }
.process .section-title__title { color: #fff; }
.process .section-sub-title { color: #fff; }
.process .section-title-shape-1 { background: #fff; }
.process .process__icon-box:after { display: none; }
@media (min-width: 1200px) {
  .process .process__content-box { padding-left: 115px; }
}

/* Haustypen als Raster statt Karussell */
.haustypen-raster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.haustypen-raster .project-one__img img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.haustypen-raster .project-one__img::after {
  content: ""; position: absolute; inset: 40% 0 0 0;
  background: linear-gradient(transparent, rgba(var(--roofsie-black-rgb), .85));
}
.haustypen-raster .project-one__content,
.haustypen-raster .project-one__single:hover .project-one__content {
  opacity: 1; transform: none; left: 30px; bottom: 26px; transition-delay: 0s;
}
.haustypen-raster .project-one__title { color: #fff; margin: 0; }
@media (max-width: 575px) {
  .haustypen-raster .project-one__content { left: 14px; bottom: 14px; }
  .haustypen-raster .project-one__title { font-size: 17px; line-height: 22px; }
}
@media (max-width: 991px) { .haustypen-raster { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 575px) { .haustypen-raster { gap: 12px; } }

/* Einzugsgebiet */
.region-band { padding: 0 0 100px; }
.region-band p { margin: 0; color: var(--roofsie-gray); max-width: 900px; margin-inline: auto; text-align: center; }
.region-band strong { color: var(--roofsie-black); }

/* CTA: Telefonnummer im Titel */
.cta-one__title a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Listen ohne WP-Hilfsklasse ml-0 */
.footer-widget__explore-list,
.footer-widget__contact-list,
.main-header__top-address-list,
.mobile-nav__contact { padding-left: 0 !important; margin-left: 0 !important; }
.footer-widget__about-text { font-size: 16px; font-weight: 500; color: #a7a5ac; }


/* Überschriften-Ebenen korrigiert (h2/h3 statt h3/h4) – Größen wie im Theme */
h2.feature-one__title { font-size: 20px; line-height: 26px; margin: 0; }
h3.why-choose-one__points-title { font-size: 18px; line-height: 24px; margin: 0; }
h2.cta-one__title { margin: 0; }
h2.footer-widget__title { font-size: 20px; line-height: 20px; }
.about-one__satisfied-count-box .jahreszahl { font-size: 50px; font-weight: 800; line-height: 1; color: #fff; margin: 0; }

/* Ablauf: Link zur Bildergalerie */
.process__mehr { text-align: center; padding-bottom: 60px; }
.thm-btn--hell { background-color: #fff; color: var(--roofsie-black); }
.thm-btn--hell:hover { color: #fff; }
.thm-btn--rahmen { background: transparent; color: var(--roofsie-black); box-shadow: inset 0 0 0 2px var(--roofsie-base); }
.thm-btn--rahmen:hover { color: #fff; }

/* Haustypen-Karten auf der Startseite */
.haustypen-raster { grid-template-columns: repeat(2, 1fr) !important; }
.haustypen-raster a.project-one__single { display: block; text-decoration: none; }
.haustypen-raster .project-one__img img { aspect-ratio: 16 / 10 !important; object-position: left top; }
.haustypen-raster .project-one__img::before { display: none; }
.haustyp-anzahl { color: #fff; margin: 6px 0 0; font-weight: 600; font-size: 15px; }
.haustyp-anzahl i { color: var(--roofsie-base); margin-left: 4px; transition: transform .3s; }
.haustypen-raster a:hover .haustyp-anzahl i { transform: translateX(4px); }
@media (max-width: 767px) { .haustypen-raster { grid-template-columns: 1fr !important; } }

/* Partner-Leiste (Startseite) */
.partner-leiste { margin-bottom: 100px; }
.partner-leiste .brand-one__inner { padding: 40px 0 44px; }
.partner-leiste__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.partner-leiste__titel { font-size: 22px; line-height: 1.2; margin: 0; }
.partner-leiste__link { font-weight: 700; font-size: 15px; color: var(--roofsie-base); }
.partner-leiste__link:hover { color: var(--roofsie-black); }
.partner-band { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.partner-band__spur { display: flex; gap: 56px; width: max-content; margin: 0; padding: 0; animation: partner-lauf 60s linear infinite; }
.partner-band:hover .partner-band__spur { animation-play-state: paused; }
.partner-band__spur li { flex: none; display: flex; align-items: center; height: 80px; }
.partner-band__spur img { max-height: 70px; max-width: 170px; width: auto; height: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.partner-band__spur li:hover img { filter: none; opacity: 1; }
@keyframes partner-lauf { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .partner-band { -webkit-mask-image: none; mask-image: none; }
  .partner-band__spur { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .partner-band__spur li[aria-hidden] { display: none; }
}

/* Unterseiten: Seitenkopf */
.page-header { padding: 110px 0 100px; }
.page-header-bg { background-image: url(../img/site/hero.webp); background-position: center 40%; }
.page-header-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--roofsie-black-rgb), .92) 0%, rgba(var(--roofsie-black-rgb), .7) 55%, rgba(var(--roofsie-black-rgb), .45) 100%); }
.page-header__inner h1 { font-size: 48px; line-height: 58px; color: #fff; font-weight: 800; margin: 6px 0 0; }
.page-header__text { color: rgba(255,255,255,.85); font-size: 18px; margin: 12px 0 0; max-width: 640px; }
.thm-breadcrumb { margin: 0; padding: 0; }
.thm-breadcrumb li { color: #fff; }
.thm-breadcrumb li a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.thm-breadcrumb li a:hover { color: var(--roofsie-base); }
@media (max-width: 767px) { .page-header { padding: 70px 0 60px; } .page-header__inner h1 { font-size: 34px; line-height: 42px; } }

/* Galerien (Haustypen, Bauablauf) */
.galerie-seite { padding: 100px 0 70px; }
.galerie-sprung { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 60px; }
.galerie-gruppe { margin-bottom: 80px; scroll-margin-top: 110px; }
.galerie-gruppe__text { max-width: 720px; margin-bottom: 30px; }
.galerie-gruppe__text a, .partner-intro a { color: var(--roofsie-base); font-weight: 600; }
.galerie-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; }
.galerie-raster--klein { grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 991px) { .galerie-raster, .galerie-raster--klein { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .galerie-raster { grid-template-columns: 1fr; } }
.galerie-bild { position: relative; display: block; overflow: hidden; border-radius: var(--roofsie-bdr-radius); background: var(--roofsie-primary); }
.galerie-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
#bungalows .galerie-bild img { aspect-ratio: 720 / 382; object-position: top; }
#einfamilienhaeuser .galerie-bild img { aspect-ratio: 720 / 528; }
.galerie-bild:hover img { transform: scale(1.04); }
.galerie-bild__titel { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(var(--roofsie-black-rgb), .75)); }
.galerie-bild::after { content: "\f00e"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--roofsie-base); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; opacity: 0; transform: scale(.6); transition: all .3s; }
.galerie-bild:hover::after, .galerie-bild:focus-visible::after { opacity: 1; transform: none; }

/* Bauablauf-Abschnitte */
.ablauf-liste { margin: 0; padding: 0; }
.ablauf-abschnitt { margin-bottom: 70px; }
.ablauf-abschnitt__kopf { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.ablauf-abschnitt__kopf p { margin: 4px 0 0; }
.ablauf-abschnitt__nr { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--roofsie-base); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.ablauf-abschnitt__titel { font-size: 26px; line-height: 32px; margin: 0; }

/* Partner-Seite */
.partner-intro { max-width: 760px; font-size: 17px; margin-bottom: 50px; }
.partner-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 0; padding: 0; }
.partner-karte { background: #fff; border: 1px solid var(--roofsie-bdr-color); border-radius: var(--roofsie-bdr-radius); padding: 22px 20px 18px; display: flex; flex-direction: column; text-align: center; }
.partner-karte__logo { height: 110px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.partner-karte__logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; }
.partner-karte__name { font-weight: 700; color: var(--roofsie-black); line-height: 1.3; }
.partner-karte__gewerk { font-size: 14px; color: var(--roofsie-gray); margin-top: 2px; }
@media (max-width: 480px) { .partner-raster { grid-template-columns: repeat(2, 1fr); gap: 12px; } .partner-karte { padding: 14px 10px; } .partner-karte__logo { height: 80px; } }

/* Rechtstexte */
.rechtstext { padding: 90px 0 100px; }
.rechtstext__inner { max-width: 780px; }
.rechtstext h2 { font-size: 26px; line-height: 1.3; margin: 40px 0 14px; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext h3 { font-size: 19px; line-height: 1.3; margin: 28px 0 8px; }
.rechtstext p, .rechtstext li { line-height: 1.7; }
.rechtstext ul { padding-left: 20px; margin-bottom: 1em; }
.rechtstext a { color: var(--roofsie-base); }
mark.todo { background: #fff3a8; color: #5a4a00; padding: 1px 4px; border-radius: 3px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(15, 14, 17, .94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox__figur { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__figur img { max-width: min(1100px, 100%); max-height: calc(100vh - 160px); width: auto; height: auto; border-radius: 4px; }
.lightbox__figur figcaption { color: #e9e8ec; margin-top: 14px; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 18px; cursor: pointer; transition: background .3s; }
.lightbox button:hover { background: var(--roofsie-base); }
.lightbox__zu { top: 16px; right: 16px; }
.lightbox__zurueck { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__weiter { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) { .lightbox { padding: 70px 10px; } .lightbox__nav { top: auto !important; bottom: 14px; transform: none !important; } .lightbox__zurueck { left: calc(50% - 60px); } .lightbox__weiter { right: calc(50% - 60px); } }

/* Leistungskarten: gleiche Bildhöhe und gleiche Kartenhöhe */
.services-one__bottom .row > [class*="col-"] { display: flex; }
.services-one__single { display: flex; flex-direction: column; width: 100%; }
.services-one__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.services-one__content { flex: 1; }

/* Vorteils-Boxen (Baubetreuung): Text bleibt in der Box */
.why-choose-one__points-box .row > [class*="col-"] { display: flex; }
.why-choose-one__points-single { width: 100%; padding: 24px 22px 20px; }
.why-choose-one__points-icon { flex: none; }
.why-choose-one__points-title-box { margin-left: 16px; min-width: 0; }
h3.why-choose-one__points-title { font-size: 17px; line-height: 23px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
