/* Huber GmbH, Übergangsseite.
   Farben aus dem Logo: Petrol als einziger Akzent, Grau aus dem Schriftzug.
   Schrift Archivo (Text) und Archivo Narrow (Überschriften), lokal eingebunden.
   Aufbau bewusst einfach, damit er 1:1 in Webflow nachgebaut werden kann. */

@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("assets/fonts/archivo-narrow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("assets/fonts/archivo-narrow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Phosphor-Light"; src: url("assets/icons/Phosphor-Light.woff2") format("woff2"); font-weight: 400; font-display: block; }

:root {
  --grund: #ffffff;
  --flaeche: #f2f4f5;
  --linie: #dde3e5;
  --text: #1b2326;
  --gedaempft: #57636a;
  --akzent: #007c93;
  --akzent-dunkel: #00627a;
  --akzent-hell: #e4f2f5;
  --pruefen: #fff2a8;
  --r: 4px;
  --kurve: cubic-bezier(.22, 1, .36, 1);
  --schatten: 0 1px 2px rgba(16, 40, 46, .05), 0 16px 40px -18px rgba(16, 40, 46, .22);
  --rand: 20px;
}
@media (min-width: 768px) { :root { --rand: 40px; } }
@media (min-width: 1280px) { :root { --rand: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
:target { scroll-margin-top: 24px; }
body { margin: 0; background: var(--grund); color: var(--text); font: 400 17px/1.6 "Archivo", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: "Archivo Narrow", "Archivo", sans-serif; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; hyphens: none; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 2px; }

.sprung { position: absolute; left: 16px; top: -80px; z-index: 10; padding: 10px 16px; border-radius: var(--r); background: var(--text); color: #fff; text-decoration: none; }
.sprung:focus { top: 12px; }

.u-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--rand); }

/* Symbole aus Phosphor Light */
.icon { display: inline-block; font-family: "Phosphor-Light" !important; font-style: normal; font-weight: 400; line-height: 1; speak: never; -webkit-font-smoothing: antialiased; }
.icon.is-telefon::before { content: "\e3b8"; }
.icon.is-mail::before { content: "\e218"; }
.icon.is-ort::before { content: "\e316"; }
.icon.is-pfeil::before { content: "\e06c"; }
.icon.is-extern::before { content: "\e092"; }

/* Kopfleiste */
.kopf { border-bottom: 1px solid var(--linie); background: var(--grund); }
.kopf_innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.kopf_logo { display: block; flex: none; }
.kopf_logo img { width: 136px; }
.kopf_tel { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-weight: 500; font-size: 16px; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; transition: color .2s var(--kurve); }
.kopf_tel .icon { font-size: 20px; color: var(--akzent); }
.kopf_tel:hover { color: var(--akzent); }
@media (min-width: 768px) { .kopf_innen { height: 84px; } .kopf_logo img { width: 160px; } }

/* Knöpfe: rechteckig mit kleinem Radius, wie eine Fliesenkante */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 26px; border-radius: var(--r); background: var(--akzent); color: #fff; font: 500 17px/1 "Archivo", sans-serif; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); transition: background-color .25s var(--kurve), transform .2s var(--kurve); }
.knopf .icon { font-size: 22px; }
.knopf:hover { background: var(--akzent-dunkel); }
.knopf:active { transform: translateY(1px) scale(.99); }
.textlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); font-weight: 500; text-decoration: none; }
.textlink span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .35s var(--kurve); }
.textlink .icon { font-size: 20px; color: var(--akzent); }
.textlink:hover span { background-size: 35% 1px; }

/* Hero */
.section_hero { padding: 40px 0 56px; }
.hero_raster { display: grid; gap: 40px; }
.hero_text { display: flex; flex-direction: column; justify-content: center; }
.hero_label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--akzent-dunkel); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hero_label::before { content: ""; width: 24px; height: 2px; background: var(--akzent); }
.hero_titel { font-size: clamp(38px, 9vw, 64px); line-height: 1.04; }
.hero_unterzeile { margin-top: 22px; max-width: 30em; color: var(--gedaempft); font-size: 19px; line-height: 1.55; }
.hero_aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 34px; }
.hero_bild { position: relative; margin: 0; }
.hero_bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; border-radius: var(--r); }
.hero_bildzeile { margin-top: 12px; color: var(--gedaempft); font-size: 14px; }
@media (min-width: 992px) {
  .section_hero { padding: 56px 0 88px; }
  .hero_raster { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
  .hero_bild img { aspect-ratio: 5 / 6; max-height: 580px; }
}

/* Leistungen */
.section_leistungen { padding: 72px 0; border-top: 1px solid var(--linie); }
.leistungen_raster { display: grid; gap: 40px; }
.leistungen_titel { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; }
.leistungen_text { margin-top: 16px; max-width: 30em; color: var(--gedaempft); }
.leistungen_liste { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--linie); }
.gruppe_label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--akzent-dunkel); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.gruppe_label::before { content: ""; width: 24px; height: 2px; background: var(--akzent); }
.leistungen_punkt { position: relative; padding: 18px 0 18px 26px; border-bottom: 1px solid var(--linie); }
.leistungen_punkt::before { content: ""; position: absolute; left: 0; top: 29px; width: 10px; height: 10px; border: 2px solid var(--akzent); }
.leistungen_punkt.is-haupt::before { background: var(--akzent); }
.leistungen_name { font-size: clamp(22px, 4.6vw, 26px); line-height: 1.2; }
.leistungen_satz { margin-top: 4px; color: var(--gedaempft); font-size: 16px; line-height: 1.55; }
.leistungen_bild { margin: 0; }
.leistungen_bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
@media (min-width: 992px) {
  .section_leistungen { padding: 112px 0; }
  .leistungen_raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: start; }
  .leistungen_bild { order: -1; position: sticky; top: 40px; }
  .leistungen_bild img { aspect-ratio: 4 / 5; }
}

/* Gewerbe: drei Bereiche mit echten Baustellenfotos */
.section_gewerbe { padding: 72px 0; border-top: 1px solid var(--linie); }
.gewerbe_kopf { max-width: 40em; }
.gewerbe_raster { display: grid; gap: 40px; margin-top: 36px; }
.gewerbe_punkt { display: flex; flex-direction: column; }
.gewerbe_bild { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.gewerbe_name { margin-top: 20px; font-size: clamp(24px, 4.8vw, 28px); line-height: 1.15; }
.gewerbe_satz { margin-top: 8px; color: var(--gedaempft); font-size: 16px; line-height: 1.6; max-width: 34em; }
@media (min-width: 768px) and (max-width: 991px) {
  .gewerbe_punkt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0 28px; align-items: center; }
  .gewerbe_bild { grid-row: span 2; }
  .gewerbe_name { margin-top: 0; align-self: end; }
  .gewerbe_satz { align-self: start; }
}
@media (min-width: 992px) {
  .section_gewerbe { padding: 112px 0; }
  .gewerbe_raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
}

/* Kontakt: Fläche mit feinem Fliesenraster */
.section_kontakt { padding: 72px 0; background-color: var(--flaeche); background-image: linear-gradient(rgba(0, 98, 122, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 98, 122, .07) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; }
.kontakt_kopf { max-width: 40em; }
.kontakt_titel { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; }
.kontakt_text { margin-top: 14px; color: var(--gedaempft); }
.kontakt_raster { display: grid; gap: 12px; margin-top: 36px; }
.kontakt_karte { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 140px; padding: 24px; border: 1px solid var(--linie); border-radius: var(--r); background: var(--grund); color: var(--text); text-decoration: none; box-shadow: 0 1px 2px rgba(16, 40, 46, .04); transition: transform .25s var(--kurve), box-shadow .25s var(--kurve), border-color .25s var(--kurve); }
.kontakt_karte:hover { transform: translateY(-3px); box-shadow: var(--schatten); border-color: #c6d2d5; }
.kontakt_karte:active { transform: translateY(-1px); }
.kontakt_art { display: inline-flex; align-items: center; gap: 10px; color: var(--gedaempft); font-size: 15px; font-weight: 500; }
.kontakt_art .icon { font-size: 22px; color: var(--akzent); }
.kontakt_wert { margin-top: auto; font-family: "Archivo Narrow", sans-serif; font-size: clamp(24px, 5.4vw, 32px); font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kontakt_pfeil { position: absolute; top: 22px; right: 22px; font-size: 22px; color: var(--akzent); transition: transform .3s var(--kurve); }
.kontakt_karte:hover .kontakt_pfeil { transform: translate(2px, -2px); }
.kontakt_karte.is-telefon { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.kontakt_karte.is-telefon .kontakt_art, .kontakt_karte.is-telefon .kontakt_art .icon, .kontakt_karte.is-telefon .kontakt_pfeil { color: #fff; }
.kontakt_karte.is-telefon:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.kontakt_karte.is-telefon .kontakt_wert { font-size: clamp(32px, 8vw, 56px); }
@media (min-width: 768px) {
  .kontakt_karte { padding: 32px; min-height: 168px; }
  .kontakt_karte.is-telefon { grid-column: 1 / -1; min-height: 200px; }
  .kontakt_pfeil { top: 30px; right: 30px; }
}
@media (min-width: 992px) { .section_kontakt { padding: 112px 0; } .kontakt_raster { grid-template-columns: 1fr 1fr; } }

/* Fuß */
.fuss { padding: 32px 0; border-top: 1px solid var(--linie); color: var(--gedaempft); font-size: 15px; }
.fuss_innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.fuss_links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.fuss_link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.fuss_link:hover { color: var(--akzent); text-decoration: underline; text-underline-offset: 4px; }
.fuss_link[aria-current="page"] { color: var(--akzent); }

/* Rechtsseiten */
.section_recht { padding: 48px 0 80px; }
.recht_inhalt { max-width: 46rem; }
.recht_zurueck { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 16px; color: var(--gedaempft); font-size: 15px; text-decoration: none; }
.recht_zurueck .icon { transform: scaleX(-1); }
.recht_zurueck:hover { color: var(--akzent); }
.recht_titel { font-size: clamp(36px, 8vw, 52px); line-height: 1.05; }
.recht_inhalt h2 { margin-top: 44px; font-size: 26px; line-height: 1.2; }
.recht_inhalt h3 { margin-top: 28px; font-family: "Archivo", sans-serif; font-size: 18px; font-weight: 600; letter-spacing: 0; }
.recht_inhalt p, .recht_inhalt ul { margin: 12px 0 0; }
.recht_inhalt ul { padding-left: 20px; }
.recht_inhalt li + li { margin-top: 6px; }
.recht_inhalt a { color: var(--akzent-dunkel); text-underline-offset: 3px; overflow-wrap: anywhere; }
.recht_stand { margin-top: 44px !important; color: var(--gedaempft); font-size: 15px; }

/* Offene Angaben, vor dem Livegang klären */
.is-pruefen { padding: 1px 6px; border-radius: 3px; background: var(--pruefen); color: #4a3d00; font-weight: 500; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Ruhiges Einblenden beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .einblenden { animation: einblenden .7s var(--kurve) both; animation-delay: calc(var(--i, 0) * 80ms); }
  @keyframes einblenden { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
