/* ============================================================
   FlexPartner GmbH — Bau · Vermittlung · Gebäudeservice · Handel
   Design system. Self-contained, system fonts, no external deps.
   ============================================================ */

:root {
  /* palette — graphite / navy + construction accent */
  --ink:        #0f1622;   /* near-black navy */
  --ink-2:      #17202f;
  --graphite:   #1f2937;
  --slate:      #475569;
  --muted:      #64748b;
  --line:       #e5e8ee;
  --line-2:     #d7dce5;
  --paper:      #ffffff;
  --paper-2:    #f5f7fa;
  --paper-3:    #eef1f6;
  --accent:     #f26a1b;   /* construction orange */
  --accent-2:   #ff8a3d;
  --accent-ink: #7a2f00;
  --yellow:     #ffb703;
  --ok:         #16a34a;

  --shadow-sm: 0 1px 2px rgba(15,22,34,.06), 0 1px 3px rgba(15,22,34,.08);
  --shadow-md: 0 6px 18px rgba(15,22,34,.08), 0 2px 6px rgba(15,22,34,.06);
  --shadow-lg: 0 24px 60px rgba(15,22,34,.16);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gap: clamp(16px, 3vw, 28px);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display: "Inter", var(--sans);
}

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--dark { background: var(--ink); color: #dfe6f1; }
.section--paper { background: var(--paper-2); }
.grid { display: grid; gap: var(--gap); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.section--dark .eyebrow { color: var(--accent-2); }

.h-section { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 20ch; }
.center .h-section { margin-inline: auto; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--slate); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.section--dark .lead { color: #aab6c8; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .9em 1.5em; border-radius: 999px; font-weight: 700; font-size: .98rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 16px rgba(242,106,27,.28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(242,106,27,.36); }
.btn svg { width: 20px; height: 20px; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line-2); box-shadow: none;
}
.btn--ghost:hover { background: var(--paper-3); box-shadow: none; }
.btn--wa { --btn-bg:#25D366; --btn-fg:#0b3d21; box-shadow: 0 6px 16px rgba(37,211,102,.3); }
.btn--wa:hover { box-shadow: 0 12px 26px rgba(37,211,102,.4); }
.btn--light { --btn-bg:#fff; --btn-fg: var(--ink); box-shadow: var(--shadow-md); }
.btn--lg { padding: 1.05em 1.9em; font-size: 1.02rem; }
.section--dark .btn--ghost { --btn-fg:#fff; border-color: rgba(255,255,255,.22); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); height: 72px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand__name b { color: var(--accent); }
.brand__sub { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }

.nav__links { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); margin-left: auto; }
.nav__links a { font-weight: 600; font-size: .95rem; color: var(--graphite); padding: .4em 0; position: relative; }
.nav__links a:hover { color: var(--accent); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: var(--accent); }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__phone { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.nav__phone svg { width: 18px; height: 18px; color: var(--accent); }

.lang { display: flex; gap: 2px; background: var(--paper-3); border-radius: 999px; padding: 3px; }
.lang a { font-size: .78rem; font-weight: 700; padding: .35em .7em; border-radius: 999px; color: var(--muted); }
.lang a.is-active { background: var(--ink); color: #fff; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { content:""; display:block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.burger span::before { position:absolute; top:-6px; } .burger span::after { position:absolute; top:6px; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { transform: rotate(45deg); top:0; }
body.nav-open .burger span::after { transform: rotate(-45deg); top:0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(1200px 500px at 85% -10%, rgba(242,106,27,.10), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px,4vw,56px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 800; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-bottom: 1.6em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 20px 28px; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero__meta div { display:flex; flex-direction:column; }
.hero__meta b { font-size: 1.5rem; font-family: var(--display); letter-spacing: -.02em; }
.hero__meta span { font-size: .82rem; color: var(--muted); }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(var(--shadow-lg)); border-radius: var(--radius-lg); }
.hero__badge { position:absolute; bottom: 18px; left: -10px; background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: .7rem 1rem; display:flex; align-items:center; gap:.6rem; font-weight:700; font-size:.9rem; }
.hero__badge svg { width: 26px; height: 26px; color: var(--accent); }

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background:#fff; }
.trust__row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap: 18px 32px; padding-block: 20px; }
.trust__item { display:flex; align-items:center; gap:.6rem; color: var(--slate); font-weight:600; font-size:.92rem; }
.trust__item svg { width:22px; height:22px; color: var(--accent); flex:0 0 auto; }

/* ---------- direction cards ---------- */
.cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem 1.6rem;
  display:flex; flex-direction:column; transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
  position: relative; overflow: hidden;
}
.card::before { content:""; position:absolute; inset:0 0 auto 0; height:4px; background: linear-gradient(90deg,var(--accent),var(--accent-2)); transform: scaleX(0); transform-origin:left; transition: transform .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__ico { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(160deg, #fff, var(--paper-3)); border:1px solid var(--line); display:grid; place-items:center; margin-bottom: 1.1rem; }
.card__ico svg { width: 30px; height: 30px; color: var(--accent); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--slate); font-size: .96rem; }
.card__link { margin-top:auto; padding-top:.6rem; font-weight:700; color:var(--accent); display:inline-flex; align-items:center; gap:.4em; }
.card__link svg { width:16px; height:16px; transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(3px); }

/* ---------- feature/split blocks ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,56px); align-items:center; }
.split--rev .split__media { order: 2; }
.split__media svg, .split__media img { width:100%; height:auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.bullets { display:grid; gap:.7rem; margin-top:1.2rem; }
.bullets li { display:flex; gap:.7rem; align-items:flex-start; color: var(--graphite); font-weight:500; }
.bullets svg { width:22px; height:22px; color: var(--accent); flex:0 0 auto; margin-top:1px; }

/* ---------- sub-services (Rohbau/Hochbau...) ---------- */
.subservices { grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.subcard { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding:1.5rem; }
.subcard__num { font-family:var(--display); font-weight:800; color: var(--accent); font-size: 1rem; letter-spacing:.05em; }
.subcard h3 { font-size:1.12rem; margin-top:.3rem; }
.subcard p { color:var(--slate); font-size:.94rem; margin:0; }

/* ---------- why us ---------- */
.why { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.why__item { padding:1.4rem 1.3rem; border-radius:var(--radius); background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09); }
.section--dark .why__item h3 { color:#fff; font-size:1.05rem; }
.section--dark .why__item p { color:#9fb0c6; font-size:.92rem; margin:0; }
.why__ico { width:46px; height:46px; border-radius:12px; background: rgba(242,106,27,.14); display:grid; place-items:center; margin-bottom:.9rem; }
.why__ico svg { width:24px; height:24px; color: var(--accent-2); }

/* ---------- process steps ---------- */
.steps { counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.step { position:relative; padding:1.5rem 1.4rem; background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
.step__n { counter-increment: step; font-family:var(--display); font-weight:800; font-size:2.4rem; color: var(--paper-3); line-height:1; }
.step h3 { font-size:1.08rem; margin:.3rem 0 .4rem; }
.step p { color:var(--slate); font-size:.93rem; margin:0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline:auto; }
.faq__item { border:1px solid var(--line); border-radius: var(--radius); background:#fff; margin-bottom:.8rem; overflow:hidden; }
.faq__q { width:100%; text-align:left; background:none; border:0; cursor:pointer; padding:1.1rem 1.3rem; font-weight:700; font-size:1.02rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; color:var(--ink); font-family:var(--display); }
.faq__q svg { width:22px; height:22px; color:var(--accent); flex:0 0 auto; transition: transform .2s; }
.faq__item[open] .faq__q svg { transform: rotate(45deg); }
.faq__a { padding: 0 1.3rem 1.2rem; color:var(--slate); }
.faq__a p { margin:0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 55%, #24160c 100%); color:#fff; border-radius: var(--radius-lg); padding: clamp(30px,5vw,56px); position:relative; overflow:hidden; }
.cta-band::after { content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px; background: radial-gradient(circle, rgba(242,106,27,.35), transparent 70%); }
.cta-band h2 { font-size: clamp(1.6rem,3.4vw,2.4rem); position:relative; }
.cta-band p { color:#b9c4d4; max-width:52ch; position:relative; }
.cta-band__row { display:flex; flex-wrap:wrap; gap:12px; margin-top:1.5rem; position:relative; }

/* ---------- contact / legal blocks ---------- */
.contact-grid { grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,48px); align-items:start; }
.contact-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding: clamp(22px,3vw,34px); box-shadow: var(--shadow-sm); }
.contact-list { display:grid; gap:1.1rem; margin-top:1.2rem; }
.contact-list a, .contact-list div { display:flex; gap:.9rem; align-items:center; font-weight:600; }
.contact-list .ico { width:44px; height:44px; border-radius:12px; background:var(--paper-3); display:grid; place-items:center; flex:0 0 auto; }
.contact-list .ico svg { width:22px; height:22px; color:var(--accent); }
.contact-list small { display:block; font-weight:500; color:var(--muted); font-size:.8rem; }
.legal { max-width: 820px; margin-inline:auto; }
.legal h1 { font-size: clamp(1.8rem,4vw,2.6rem); }
.legal h2 { font-size:1.3rem; margin-top:2rem; }
.legal p, .legal li { color: var(--slate); }
.legal .box { background:var(--paper-2); border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:var(--radius); padding:1.3rem 1.5rem; margin:1.5rem 0; }
.legal .box p:last-child { margin-bottom:0; }

/* breadcrumb + page hero */
.page-hero { background: linear-gradient(180deg,var(--paper) 0,var(--paper-2) 100%); border-bottom:1px solid var(--line); padding-block: clamp(34px,5vw,64px); }
.crumbs { font-size:.85rem; color:var(--muted); margin-bottom: .9rem; display:flex; gap:.5rem; flex-wrap:wrap; }
.crumbs a:hover { color:var(--accent); }
.page-hero h1 { font-size: clamp(1.9rem,4.4vw,3rem); max-width: 20ch; }
.page-hero .lead { margin-bottom:0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color:#9fb0c6; padding-block: clamp(44px,6vw,72px) 28px; }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px,3vw,40px); }
.site-footer h4 { color:#fff; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom:1rem; }
.site-footer a:hover { color: var(--accent-2); }
.footer__links { display:grid; gap:.55rem; }
.footer__links a { font-size:.94rem; }
.footer__brand .brand { color:#fff; margin-bottom:1rem; }
.footer__brand p { font-size:.92rem; color:#8395ac; max-width:34ch; }
.footer__social { display:flex; gap:10px; margin-top:1.1rem; }
.footer__social a { width:40px; height:40px; border-radius:10px; background:rgba(255,255,255,.06); display:grid; place-items:center; }
.footer__social a:hover { background: var(--accent); }
.footer__social svg { width:20px; height:20px; color:#cdd7e5; }
.footer__social a:hover svg { color:#fff; }
.footer__bottom { border-top:1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top:1.5rem; display:flex; flex-wrap:wrap; gap:12px 24px; justify-content:space-between; font-size:.85rem; color:#7c8da3; }
.footer__bottom a { text-decoration: none; }

/* ---------- floating contact ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 70; display:flex; flex-direction:column; gap:10px; }
.fab a { width:54px; height:54px; border-radius:50%; display:grid; place-items:center; box-shadow: var(--shadow-md); transition: transform .15s; }
.fab a:hover { transform: scale(1.06); }
.fab a svg { width:28px; height:28px; }
.fab__wa { background:#25D366; } .fab__wa svg { color:#fff; }
.fab__tg { background:#229ED9; } .fab__tg svg { color:#fff; }

/* ---------- utilities ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.stack > * + * { margin-top: 1.5rem; }
.hide-mobile { }
.only-mobile { display:none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .hero__art { max-width: 520px; margin-inline:auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .burger { display:flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background:#fff; border-bottom:1px solid var(--line); padding: 14px clamp(18px,4vw,32px) 22px;
    gap: 4px; transform: translateY(-140%); transition: transform .25s ease; box-shadow: var(--shadow-md);
  }
  body.nav-open .nav__links { transform: translateY(0); }
  .nav__links a { padding: .8em .2em; border-bottom:1px solid var(--line); }
  .nav__phone span { display:none; }
  .hide-mobile { display:none !important; }
  .only-mobile { display:inline-flex; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__meta b { font-size:1.3rem; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior:auto; animation:none!important; transition:none!important; } }
