/* Hofmann Bau UG – Styles - Farbwelt: Dunkelblau/Orange */

/* CSS Reset (light) */
*, *::before, *::after { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
body { margin: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

/* Theme */
:root{
  --bg: #0f1026;           
  --bg-2: #111127;         
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.12);
  --accent: #ea7d00;       
  --accent-2: #ff9a2a;
  --shadow: 0 18px 60px rgba(0,0,0,.45);

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1160px;
  --pad: 24px;

  --h1: clamp(2.0rem, 2.2vw + 1.2rem, 3.35rem);
  --h2: clamp(1.5rem, 1.4vw + 1rem, 2.2rem);
  --lead: clamp(1.02rem, .55vw + .9rem, 1.22rem);
}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 15% -10%, rgba(234,125,0,.22), transparent 60%),
              radial-gradient(900px 600px at 100% 10%, rgba(255,154,42,.14), transparent 55%),
              linear-gradient(180deg, var(--bg-2), var(--bg) 55%, #0b0b19 100%);
  color: var(--text);
  line-height: 1.55;
}

.container{
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

/* =========================
   HEADER
   ========================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,10,24,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* bündig mit Hero */
.header__bar{
  max-width: var(--container);
  margin: auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__bar--flush{
  padding-left: 0;
  padding-right: 0;
}

.brand{
  display: flex;
  align-items: center;
}

.brand__logo{
  height: 42px;
  width: auto;
}

/* Hamburger */
.nav-toggle{
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  z-index: 300; /* normal über Header */
}

.nav-toggle__bar{
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* X-Animation */
body.nav-open .nav-toggle__bar:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2){
  opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

.nav-toggle span{
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* =========================
   OVERLAY NAVIGATION
   (liegt jetzt außerhalb des Headers)
   ========================= */

body.nav-open{
  overflow: hidden;
}

/* Wichtig: 100% Viewport, auch mobil stabil */
.nav-overlay{
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100dvh; /* moderne mobile viewport unit */
  z-index: 9999;

  /* dunkler, transparenter Blau-Abklatsch */
  background: rgba(15,16,38,.86);
  backdrop-filter: blur(18px);

  display: grid;
  place-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

body.nav-open .nav-overlay{
  opacity: 1;
  pointer-events: auto;
}

/* Inner zentriert + scrollfähig wenn Höhe knapp */
.nav-overlay__inner{
  width: min(640px, 92vw);
  max-height: calc(100dvh - 140px);
  overflow: auto;
  padding: 10px 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  text-align: center;
}

/* Menü */
.nav-overlay__menu{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-overlay__menu a{
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* CTA */
.nav-overlay__cta{
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(320px, 90%);
}

.nav-overlay__mail{
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px){
  .nav-overlay__menu a{
    font-size: 1.35rem;
  }
}

@media (max-width: 720px){
  .header__bar{
    padding: 12px 0;
  }
}

/* Mobile: rechts bündig */
@media (max-width: 1160px){
  body.nav-open .nav-toggle{
    right: var(--pad);
  }
}

body.nav-open .nav-toggle{
  position: fixed;
  top: 14px;                 /* exakt wie Header Padding */
  right: calc((100vw - var(--container)) / 2);
  z-index: 10001 !important;            /* ÜBER dem Overlay */
}

/* =========================
   BUTTONS
   ========================= */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.btn--primary{
  background: linear-gradient(135deg, rgba(234,125,0,.98), rgba(255,154,42,.94));
  color: #141427;
  box-shadow: 0 18px 40px rgba(234,125,0,.18);
}

.btn--ghost{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
}

.btn--full{ width: 100%; }

/* =========================
   MOBILE FEINSCHLIFF
   ========================= */

@media (max-width: 480px){
  .nav-overlay__menu a{
    font-size: 1.3rem;
  }
}

/* HERO */
.hero{
  padding: clamp(34px, 4.2vw, 74px) 0 clamp(40px, 4.6vw, 84px);
}

.hero__grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: center;
}

.eyebrow{
  font-size: .9rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(234,125,0,.9);
  margin-bottom: 12px;
}

.hero__title{
  font-size: var(--h1);
  line-height: 1.08;
  margin: 0 0 12px 0;
  letter-spacing: -0.03em;
}

.hero__sub{
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0 0 18px 0;
}

.hero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.trust{
  display: grid;
  gap: 10px;
  margin: 0 0 18px 0;
}
.trust__item{
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,.86);
}
.trust__icon{
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: rgba(234,125,0,.18);
  color: rgba(255,255,255,.95);
  border: 1px solid rgba(234,125,0,.25);
}

.hero__meta{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.meta-card{
  padding: 14px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.meta-card__label{
  font-size: .86rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.meta-card__value{
  font-weight: 700;
  color: rgba(255,255,255,.90);
}

.hero__visual{
  display: grid;
  gap: 14px;
  align-content: center;
}

.hero-card{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.hero-card::before{
  content:"";
  position: absolute;
  inset: -40%;
  background: radial-gradient(closest-side, rgba(234,125,0,.25), transparent 60%);
  transform: rotate(18deg);
  filter: blur(0px);
}

.hero-card--water{
  background:
    radial-gradient(800px 420px at 30% 40%, rgba(55,160,255,.18), transparent 60%),
    radial-gradient(900px 520px at 80% 20%, rgba(234,125,0,.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

.hero-card--tech{
  min-height: 180px;
  background:
    radial-gradient(700px 380px at 15% 35%, rgba(234,125,0,.20), transparent 60%),
    radial-gradient(600px 340px at 90% 70%, rgba(255,255,255,.08), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

.hero-card__tag{
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.90);
  font-weight: 800;
}

/* Cards / Services / Steps */
.cards{
  display: grid;
  gap: 12px;
}
.card{
  padding: 16px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.card__icon{
  width: 42px; height: 42px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(234,125,0,.16);
  border: 1px solid rgba(234,125,0,.22);
  margin-bottom: 10px;
}
.card__title{
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}
.card__text{ color: var(--muted); }

.service-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.service:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(234,125,0,.25);
}
.service__icon{
  width: 44px; height: 44px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(234,125,0,.14);
  border: 1px solid rgba(234,125,0,.22);
}
.service__title{ font-weight: 900; letter-spacing: -0.02em; }
.service__text{ color: var(--muted); font-size: .95rem; margin-top: 3px; }
.service__arrow{ color: rgba(234,125,0,.9); font-weight: 900; }

.steps{
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.step{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}

.step__num{
  width: 44px; height: 44px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(234,125,0,.18);
  border: 1px solid rgba(234,125,0,.25);
  font-weight: 900;
  color: rgba(255,255,255,.95);
}

.step__title{ margin: 0 0 6px 0; letter-spacing: -0.02em; }
.step__text{ color: var(--muted); }

.checklist{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.checklist li{
  position: relative;
  padding-left: 26px;
  color: rgba(255,255,255,.86);
}
.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  display: grid; place-items:center;
  border-radius: 6px;
  background: rgba(234,125,0,.18);
  border: 1px solid rgba(234,125,0,.25);
}

.highlight{
  border-radius: 22px;
  border: 1px solid rgba(234,125,0,.22);
  background: radial-gradient(700px 340px at 30% 10%, rgba(234,125,0,.22), transparent 55%),
              rgba(255,255,255,.05);
  padding: 18px;
  box-shadow: var(--shadow);
}
.highlight__title{ color: rgba(234,125,0,.92); text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; }
.highlight__big{ font-size: 1.7rem; font-weight: 950; margin: 10px 0 8px; letter-spacing: -0.02em; }
.highlight__text{ color: var(--muted); margin-bottom: 12px; }
.highlight__small{ color: rgba(255,255,255,.78); margin-top: 12px; font-size: .95rem; }

/* Chips */
.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip{
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
}

/* CTA Section */
.cta{
  padding: clamp(54px, 6vw, 96px) 0;
}

.cta__box{
  border-radius: 26px;
  border: 1px solid rgba(234,125,0,.25);
  background:
    radial-gradient(900px 520px at 10% 20%, rgba(234,125,0,.22), transparent 60%),
    radial-gradient(900px 520px at 90% 80%, rgba(255,255,255,.10), transparent 60%),
    rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.2vw, 26px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: center;
}

.cta__title{
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 1.2vw + 1.2rem, 2.2rem);
}

.cta__text{
  color: var(--muted);
  margin: 0 0 14px 0;
}

.cta__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.cta__details{
  color: rgba(255,255,255,.86);
}
.cta__details a{ text-decoration: underline; text-underline-offset: 4px; }

.cta__side{
  display: grid;
  justify-items: end;
}
.cta__badge{
  width: min(320px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.24);
  padding: 16px;
  text-align: left;
}
.cta__badgeTop{ color: rgba(234,125,0,.92); font-weight: 950; font-size: 1.4rem; }
.cta__badgeMid{ font-weight: 950; font-size: 1.25rem; letter-spacing: -0.02em; }
.cta__badgeBot{ color: var(--muted); margin-top: 6px; }

/* Footer */
.site-footer{
  padding: 42px 0 18px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.18);
}

.footer__grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
}

.footer__brand{
  font-weight: 950;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.footer__title{
  font-weight: 900;
  margin-bottom: 10px;
}
.footer__text{ color: var(--muted); }
.footer__contact{ margin-top: 12px; display: grid; gap: 6px; color: rgba(255,255,255,.86); }
.footer__tel{ font-weight: 950; color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.footer__links{ display: grid; gap: 10px; }
.footer__links a{
  color: rgba(255,255,255,.86);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.footer__links a:hover{
  border-color: rgba(234,125,0,.22);
}

.footer__legal{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,.78);
}
.footer__legal a{ text-decoration: underline; text-underline-offset: 4px; }

.footer__bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.72);
}

/* Sticky Call */
.sticky-call{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 90;

  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(234,125,0,.98), rgba(255,154,42,.94));
  color: #141427;
  font-weight: 950;
  box-shadow: 0 18px 50px rgba(234,125,0,.22);
}

.sticky-call__icon{
  width: 30px; height: 30px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  display: grid; place-items: center;
}

/* Responsive */
@media (max-width: 980px){
  .section__grid{ grid-template-columns: 1fr; }
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__visual{ order: -1; }
  .hero__meta{ grid-template-columns: 1fr; }
  .service-grid{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
  .cta__box{ grid-template-columns: 1fr; }
  .cta__side{ justify-items: start; }
}

@media (max-width: 720px){
  .sticky-call{ display: inline-flex; }
  .header__bar{ padding: 12px 0; }
  .brand__tag{ display: none; }
  .btn{ padding: 12px 14px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html:focus-within { scroll-behavior: auto; }
  * { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}