/* =====================================================================
   Gebr. Jansen GmbH – Design System
   Solides, modernes Bau-/Handwerks-Design
   ===================================================================== */

:root {
  /* Farben */
  --brand-900: #0d2233;
  --brand-800: #123049;
  --brand-700: #1b4160;
  --brand-600: #24557c;
  --accent:    #e8590c;
  --accent-600:#cf4f0a;
  --accent-050:#fdf1e8;

  --bg:        #f6f7f9;
  --surface:   #ffffff;
  --surface-2: #f0f3f6;
  --text:      #16232e;
  --muted:     #5a6b78;
  --line:      #e3e8ee;
  --line-dark: #1e3c54;

  /* Typografie */
  --font-head: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Maße */
  --container: 1180px;
  --radius:    14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(13,34,51,.06), 0 1px 2px rgba(13,34,51,.04);
  --shadow-md: 0 10px 30px rgba(13,34,51,.09);
  --shadow-lg: 0 24px 60px rgba(13,34,51,.14);

  --space-section: clamp(56px, 8vw, 104px);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--brand-900);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1rem; }

/* ---------- Layout-Helfer ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: var(--space-section); }
.section--tint { background: var(--surface); }
.section--dark { background: var(--brand-900); color: #dbe6ef; }
.section--dark h2, .section--dark h3 { color: #fff; }

.overline {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.overline::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.section--dark .overline { color: #ff8a4d; }
.section--dark .overline::before { background: #ff8a4d; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section--dark .section-head p { color: #a9bccc; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; min-height: 48px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: 10px;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 16px rgba(232,89,12,.28);
}
.btn:hover { color: #fff; background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(232,89,12,.34); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--brand-900);
  border-color: var(--line); box-shadow: none; background: var(--surface);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--brand-900); border-color: #cdd6df; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--brand-900); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.btn--light:hover { background: #f1f4f7; color: var(--brand-900); }
.btn--outline-light {
  --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.4); box-shadow: none;
}
.btn--outline-light:hover { background: rgba(255,255,255,.12); color:#fff; }

/* Icons */
.icon { width: 22px; height: 22px; flex: 0 0 auto; display: inline-block; stroke-width: 2; }
.icon-lg { width: 26px; height: 26px; }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--brand-700), var(--brand-900));
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
}
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--brand-900); line-height: 1.05; }
.brand__name span { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--brand-900);
  padding: 6px 2px; position: relative;
}
.nav a::after { content:""; position:absolute; left:0; right:100%; bottom:-2px; height:2px; background:var(--accent); transition: right .25s ease; }
.nav a:hover, .nav .current-menu-item > a { color: var(--accent); }
.nav .current-menu-item > a::after, .nav a:hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--brand-900); white-space: nowrap; }
.header-phone .icon { color: var(--accent); }

.burger { display: none; }

/* Mobile-Nav Panel */
.mobile-nav { display: none; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(105deg, rgba(9,24,36,.92) 0%, rgba(9,24,36,.78) 42%, rgba(9,24,36,.42) 100%);
}
.hero__inner { padding-block: clamp(72px, 12vw, 148px); max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: #d7e2ec; max-width: 620px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.6rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 26px 34px; }
.hero__badge { display: flex; align-items: center; gap: 11px; }
.hero__badge .icon { color: #ff8a4d; }
.hero__badge b { display:block; font-family: var(--font-head); font-size: 1.05rem; color:#fff; }
.hero__badge span { font-size: .9rem; color: #b7c6d3; }

/* Stat-Leiste */
.statbar { background: var(--brand-900); color: #fff; }
.statbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-block: 34px; }
.stat { text-align: center; padding: 6px 10px; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; color: #fff; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: .92rem; color: #9fb3c4; letter-spacing: .02em; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.1); }

/* =====================================================================
   Leistungen (Services)
   ===================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.service-card::before { content:""; position:absolute; left:0; top:0; height:3px; width:100%; background:var(--accent); transform: scaleX(0); transform-origin:left; transition: transform .3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3dde6; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-050); color: var(--accent); margin-bottom: 18px;
}
.service-card__icon .icon { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: .4em; }
.service-card p { color: var(--muted); font-size: 1rem; margin: 0; }

/* =====================================================================
   Referenzen / Projekte (Slides)
   ===================================================================== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm); background: var(--brand-800);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover img { transform: scale(1.06); }
.project-card__body {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; color: #fff;
  background: linear-gradient(0deg, rgba(9,22,33,.9) 0%, rgba(9,22,33,.35) 45%, rgba(9,22,33,0) 75%);
}
.project-card__loc { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #ff8a4d; font-weight: 600; margin-bottom: 4px; font-family: var(--font-head); }
.project-card__body h3 { color: #fff; font-size: 1.22rem; margin: 0; }

/* =====================================================================
   Über uns (Split)
   ===================================================================== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 5/6; object-fit: cover; }
.split__badge {
  position: absolute; left: -18px; bottom: -18px; background: var(--accent); color: #fff;
  border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow-lg); max-width: 210px;
}
.split__badge b { display:block; font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.split__badge span { font-size: .9rem; opacity: .95; }
.checklist { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; }
.checklist .icon { color: var(--accent); margin-top: 3px; }
.checklist b { font-family: var(--font-head); }
.checklist span { color: var(--muted); font-size: .98rem; }

/* =====================================================================
   Ablauf (Prozess)
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step__num { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; width: 42px; height: 42px; border-radius: 10px; background: var(--brand-900); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 1.16rem; margin-bottom: .35em; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* =====================================================================
   Kontakt-Band / Anfahrt
   ===================================================================== */
.contact-band { background: linear-gradient(135deg, var(--brand-800), var(--brand-900)); color: #fff; border-radius: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.contact-info { display: grid; gap: 16px; margin-top: 22px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item__ic { width: 44px; height: 44px; border-radius: 11px; background: rgba(255,255,255,.09); display: grid; place-items: center; flex: 0 0 auto; }
.contact-item__ic .icon { width: 22px; height: 22px; color: #ff8a4d; }
.contact-item b { display: block; font-family: var(--font-head); color: #fff; }
.contact-item span, .contact-item a { color: #b9c8d5; font-size: 1rem; }
.contact-item a:hover { color: #fff; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.08); }
.map-embed iframe { display: block; width: 100%; height: 340px; border: 0; }

/* =====================================================================
   Formular (Contact Form 7)
   ===================================================================== */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.wpcf7 label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; margin-bottom: 16px; color: var(--brand-900); }
.wpcf7 input:not([type=submit]), .wpcf7 textarea, .wpcf7 select {
  width: 100%; margin-top: 7px; padding: 12px 14px; font: inherit; color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,89,12,.14); }
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 .wpcf7-submit { background: var(--accent); color:#fff; border:0; border-radius:10px; padding:14px 30px; min-height:50px; font-family:var(--font-head); font-weight:600; font-size:1rem; cursor:pointer; box-shadow:0 6px 16px rgba(232,89,12,.28); transition:background .2s, transform .15s; }
.wpcf7 .wpcf7-submit:hover { background: var(--accent-600); transform: translateY(-2px); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* =====================================================================
   Inhaltsseiten (page.php)
   ===================================================================== */
.page-hero { background: var(--brand-900); color: #fff; padding-block: clamp(56px, 9vw, 96px); position: relative; }
.page-hero .overline { color: #ff8a4d; }
.page-hero .overline::before { background:#ff8a4d; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #b9c8d5; margin-top: .6rem; max-width: 640px; }
.breadcrumbs { font-size: .88rem; color: #90a6b8; margin-bottom: 1rem; }
.breadcrumbs a { color: #c9d6e1; }

.entry-content { max-width: 820px; }
.entry-content > * { margin-top: 0; }
.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .5em; }
.entry-content img { border-radius: var(--radius); }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { border-left: 4px solid var(--accent); margin: 1.5em 0; padding: .4em 0 .4em 1.2em; color: var(--muted); font-size: 1.1rem; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--brand-900); color: #a9bccc; padding-block: 60px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-grid h4 { color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 18px; letter-spacing: .01em; }
.footer-grid a { color: #a9bccc; }
.footer-grid a:hover { color: #ff8a4d; }
.footer-brand .brand__name { color: #fff; }
.footer-about { font-size: .96rem; line-height: 1.7; margin-top: 14px; max-width: 320px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: .98rem; }
.footer-contact li { display:flex; gap:10px; align-items:flex-start; margin-bottom: 11px; font-size:.98rem; }
.footer-contact .icon { color:#ff8a4d; margin-top:3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; font-size: .88rem; color: #7f97aa; }
.footer-bottom nav { display:flex; gap: 20px; flex-wrap: wrap; }

/* =====================================================================
   Utilities
   ===================================================================== */
.skip-link { position: absolute; left: -999px; top: 0; background:#fff; color:var(--brand-900); padding:10px 16px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .services-grid, .projects-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav, .header-phone { display: none; }
  .burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); color: var(--brand-900); cursor: pointer;
  }
  .burger .icon { width: 26px; height: 26px; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; max-width: 480px; }
  .split__media img { aspect-ratio: 4/3; }
  .contact-grid { grid-template-columns: 1fr; }
  .statbar__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { padding-top: 22px; }

  /* Mobile-Nav */
  .mobile-nav {
    display: block; position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
    background: var(--surface); z-index: 200; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .3s ease; padding: 24px;
    overflow-y: auto;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
  .mobile-nav__close { width: 46px; height: 46px; border:1px solid var(--line); border-radius:10px; background:#fff; display:grid; place-items:center; cursor:pointer; color:var(--brand-900); }
  .mobile-nav ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 4px; }
  .mobile-nav a { display: block; padding: 14px 12px; min-height: 48px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--brand-900); border-radius: 9px; }
  .mobile-nav a:hover, .mobile-nav .current-menu-item > a { background: var(--surface-2); color: var(--accent); }
  .mobile-nav .btn { width: 100%; }
  .mobile-phone { display:flex; align-items:center; gap:10px; margin-top:16px; font-family:var(--font-head); font-weight:600; color:var(--brand-900); }
  .mobile-phone .icon { color: var(--accent); }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(9,22,33,.5); z-index: 150; opacity: 0; visibility: hidden; transition: opacity .3s; }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .services-grid, .projects-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__badges { gap: 16px 26px; }
  .split__badge { left: 12px; bottom: -14px; padding: 14px 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .statbar__grid { gap: 20px 0; }
  .map-embed iframe { height: 260px; }
  .section-head p { font-size: 1rem; }
}
