:root{
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef2f5;
  --ink: #13212f;
  --text: #223547;
  --muted: #617487;
  --line: #d7e0e8;
  --accent: #d5ff3f;
  --accent-strong: #bde914;
  --dark: #0f1822;
  --dark-2: #162432;
  --dark-text: #eaf1f7;
  --shadow-lg: 0 25px 70px rgba(16, 32, 49, .12);
  --shadow-md: 0 14px 34px rgba(16, 32, 49, .08);
  --shadow-sm: 0 8px 18px rgba(16, 32, 49, .06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --max: 1240px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #ededed;
  color:var(--text);
  line-height:1.6;
}
img{max-width:100%; display:block}
a{color:inherit}
.page-shell{overflow:hidden}
.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: #ededed;
  border-bottom: 1px solid rgba(215,224,232,.8);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:70px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  min-width:0;
}
.brand-mark{
  width:30px;
  height:30px;
  border-radius:999px;
  /*background: linear-gradient(135deg, var(--accent), #96c900);*/
  /*box-shadow: 0 0 0 8px rgba(213,255,63,.18);*/
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-text strong{
  font-size:14px;
  letter-spacing:.08em;
}
.brand-text small{
  color:var(--muted);
  font-size:12px;
}
.nav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.nav a{
  text-decoration:none;
  color:var(--muted);
  padding:10px 14px;
  border-radius:999px;
  transition:.2s ease;
}
.nav a:hover{
  background:#fff;
  color:var(--ink);
  box-shadow: var(--shadow-sm);
}
.header-cta{
  text-decoration:none;
  padding:12px 18px;
  border-radius:999px;
  background:var(--ink);
  color:#fff;
  font-weight:700;
  white-space:nowrap;
}

.hero-section{
  padding:55px 0 25px;
  background: #ffffff;

}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:28px;
  align-items:stretch;
}
.hero-copy{
  padding:26px 0;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(215,224,232,.95);
  color:var(--muted);
  font-size:15px;
  font-weight:500;
  letter-spacing:.03em;
  box-shadow: var(--shadow-sm);
}
h1,h2,h3{margin:0; color:var(--ink); line-height:1.08}
h1{
  margin-top:22px;
  font-size:clamp(38px, 7vw, 68px);
  letter-spacing:-.04em;
  max-width:11ch;
}
h1 span{
  color:#6b7c11;
}
h2{

  margin-bottom:10px;
}
h3{
  margin-bottom:10px;
}
h4{
   font-size:clamp(18px, 7vw, 38px);
}
.hero-lead{
  font-size:clamp(14px, 2vw, 18px);
  color:var(--text);
  max-width:40rem;
  margin:22px 0 0;
}
.hero-points{
  display:grid;
  gap:12px;
  margin-top:28px;
}
.hero-point{
  position:relative;
  padding:14px 18px 14px 46px;
  border-radius:18px;
  background:rgba(255,255,255,.76);
  border:1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.hero-point::before{
  content:"";
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  border-radius:6px;
  background: linear-gradient(135deg, var(--accent), #8fba00);
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:28px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 20px;
  border-radius:16px;
  text-decoration:none;
  font-weight:800;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  background:linear-gradient(135deg, var(--accent), var(--accent-strong));
  color:#17220a;
  box-shadow: var(--shadow-md);
}
.btn-secondary{
  background:#fff;
  color:var(--ink);
  border:1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.hero-stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:28px;
}
.stat{
  padding:18px;
  border-radius:20px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat strong{
  display:block;
  font-size:24px;
  color:var(--ink);
}
.stat span{
  color:var(--muted);
  font-size:14px;
}

.hero-panel{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.hero-image{
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
}
.hero-card{
  position:absolute;
  right:20px;
  bottom:20px;
  width:min(460px, calc(100% - 40px));
  padding:22px;
  border-radius:24px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-lg);
}
.hero-card p{
  margin:0 0 10px;
  color:var(--text);
}
.hero-card-top,
.contact-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.pill{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--ink);
  font-size:13px;
  font-weight:800;
}
.pill-accent{
  background:rgba(213,255,63,.22);
  border-color:rgba(189,233,20,.35);
}
.contact-compact{
  display:grid;
  gap:6px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.contact-compact strong{display:block}
.contact-compact span,
.contact-compact a{
  color:var(--muted);
  text-decoration:none;
}
.contact-compact a:hover{color:var(--ink)}

.section{
  padding:20px 0;
}
.section-light{
  /*background:#3c3c3c;*/
}
.section-dark{
  background:linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  color:var(--dark-text);
}
.section-soft{
  background:transparent;
}
.section-contact{
  padding-bottom:96px;
}
.section-head{
  max-width:780px;
  margin-bottom:30px;
}
.section-head h2,
.split-intro h2{
  font-size:clamp(34px, 5vw, 58px);
  letter-spacing:-.04em;
  margin-top:30px;
}
.section-head p,
.split-intro p,
.contact-lead{
  margin:14px 0 0;
  font-size:18px;
  color:var(--muted);
}
.section-dark .eyebrow{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.1);
  color:#b8c7d6;
}
.section-dark h2,
.section-dark h3{
  color:#fff;
}
.section-dark .section-head p,
.section-dark .split-intro p,
.section-dark .contact-lead{
  color:#b8c7d6;
}

.cases-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
}
.case-card{
  display:flex;
  flex-direction:column;
  height:450px;
  overflow:hidden;
  text-decoration:none;
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.case-card:hover{
  transform:translateY(-4px);
  box-shadow: var(--shadow-md);
}
.case-card img{
  width:100%;
  height:68%;
  object-fit:cover;
}
.case-body{
  height:28%;
  padding:18px 20px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.case-body h3{
  font-size:24px;
  line-height:1.2;
}
.case-body p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1;
  margin-top: 0;
}
.case-link{
  margin-top:auto;
  font-weight:800;
  color:var(--ink);
}

.split-intro{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:end;
  margin-bottom:26px;
}
.quote-box{
  padding:24px;
  border-radius:24px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}
.quote-box strong{
  display:block;
  font-size:20px;
  color:#fff;
  margin-bottom:8px;
}
.quote-box p{
  margin:0;
  color:#b8c7d6;
}
.steps-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:18px;
}
.step-card{
  padding:24px;
  border-radius:24px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.09);
}
.step-no{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  margin-bottom:16px;
  border-radius:12px;
  background:rgba(213,255,63,.18);
  color:#e8ff96;
  font-weight:900;
}
.step-card p{
  margin:10px 0 0;
  color:#b8c7d6;
}

.services-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
}
.service-card{
  padding:28px;
  border-radius:24px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.service-card h3{
  font-size:24px;
}
.service-card ul{
  margin:16px 0 0;
  padding-left:20px;
  color:var(--muted);
}
.service-card li + li{
  margin-top:10px;
}
.feature-card{
  background:linear-gradient(180deg, #162331 0%, #1a2c3f 100%);
  border-color:#20354b;
}
.feature-card h3,
.feature-card p,
.feature-card .text-link{
  color:#fff;
}
.text-link{
  display:inline-block;
  margin-top:18px;
  text-decoration:none;
  font-weight:800;
}

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:16px;
}
.gallery-grid img{
  width:100%;
  aspect-ratio: 1 / 1;
  object-fit:cover;
  border-radius:24px;
  box-shadow: var(--shadow-sm);
}

.contact-grid{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap:24px;
  align-items:start;
}
.contact-card{
  padding:30px;
  border-radius:28px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}
.contact-card h3{
  margin-bottom:18px;
}
.contact-list p{
  margin:0 0 14px;
  color:#d5e0ea;
}
.contact-list a{
  color:#fff;
  text-decoration:none;
}
.contact-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}
.privacy-note{
  margin:18px 0 0;
  color:#b8c7d6;
  font-size:13px;
}

.site-footer{
  background:#0d151d;
  color:#96a8b9;
  border-top:1px solid rgba(255,255,255,.06);
}
.footer-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  font-size:14px;
}

.sticky-cta{
  position:fixed;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  width:min(920px, calc(100% - 24px));
  z-index:50;
}
.sticky-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:999px;
  background:rgba(255, 255, 255, 0.88);
  color:#414141;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}
.sticky-text{
  font-size:14px;
  color:#424242;
}
.sticky-text strong{color:#000000}
.sticky-actions{
  display:flex;
  gap:8px;
}
.mini-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  text-decoration:none;
  background:rgba(255,255,255,.08);
  color:#959595;
  font-weight:800;
}
.mini-btn-primary{
  background: #fed500;
  color:#17220a;
}

@media (max-width: 1120px){
  .hero-grid,
  .split-intro,
  .contact-grid{
    grid-template-columns:1fr;
  }
  .cases-grid,
  .services-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-image{min-height:460px}
  .hero-card{
    position:relative;
    right:auto;
    bottom:auto;
    width:auto;
    margin:-110px 18px 0;
  }
}

@media (max-width: 760px){
  .container{
    width:min(var(--max), calc(100% - 24px));
  }
  .nav,
  .header-cta{
    display:none;
  }
  .hero-section{padding-top:26px}
  h1{max-width:none}
  .hero-stats,
  .cases-grid,
  .steps-grid,
  .services-grid,
  .gallery-grid{
    grid-template-columns:1fr;
  }
  .hero-card{
    margin:-72px 14px 0;
    padding:18px;
  }
  .hero-image{
    min-height:320px;
    border-radius:22px;
  }
  .section{
    padding:62px 0;
  }
  .sticky-inner{
    border-radius:22px;
    flex-direction:column;
    align-items:stretch;
  }
  .sticky-actions{
    width:100%;
  }
  .mini-btn{
    flex:1;
  }
}
/* Linked service cards */
a.service-card{text-decoration:none;display:block;transition:transform .18s ease,box-shadow .18s ease}a.service-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}a.service-card p{color:var(--muted);line-height:1.55}a.service-card strong{color:#52670a}
/* Improve card text fit */.case-card{min-height:450px;height:auto}.case-card img{height:285px;flex-shrink:0}.case-body{height:auto;min-height:160px;gap:14px}.case-body p{line-height:1.35}

/* Accessible text spacing and longer service titles */
.case-body{height:auto;flex:1;justify-content:flex-start;gap:12px}
.case-body p{line-height:1.4}
.case-card{min-height:450px;height:auto}
.case-card img{height:292px;flex-shrink:0}
@media(max-width:760px){.case-card img{height:230px}}

/* Beispielpläne in den Leistungsseiten */
.service-example-image{max-width:780px;margin:26px 0 22px;}
.service-example-image img{width:100%;height:auto;max-height:560px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-sm);}
.service-example-image figcaption{font-size:13px;color:var(--muted);margin-top:8px;}

/* Accessibility and SEO navigation improvements */
.menu-toggle{display:none;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;font-weight:700;border-radius:12px;padding:9px 13px;cursor:pointer}
.breadcrumb{max-width:1240px;width:calc(100% - 40px);margin:0 auto;padding:92px 0 0;color:var(--muted);font-size:13px}
.breadcrumb a{text-decoration:underline}
.faq-section h2{font-size:clamp(26px,4vw,42px);margin-bottom:20px}.faq-item{padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:16px;margin-bottom:12px}.faq-item summary{font-weight:700;cursor:pointer;color:var(--ink)}.faq-item p{margin:10px 0 0;line-height:1.6}
.nav a[aria-current=page]{color:var(--ink);font-weight:700;background:#fff}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #6b7c11;outline-offset:3px}
@media(max-width:760px){.header-inner{flex-wrap:wrap;padding:10px 0}.menu-toggle{display:inline-flex;margin-left:auto}.nav{display:none!important;flex-basis:100%;width:100%;flex-direction:column;align-items:stretch;gap:2px;padding:8px 0 14px}.nav.nav-open{display:flex!important}.nav a{padding:12px 14px}.breadcrumb{width:calc(100% - 24px);padding-top:105px}.hero-section{padding-top:70px}.sticky-cta{bottom:8px}.sticky-text{text-align:center}.mini-btn{font-size:12px;padding:8px;overflow-wrap:anywhere}.sticky-inner{padding:10px}.section-contact{padding-bottom:165px}}
@media(min-width:761px){.nav{gap:1px}.nav a{padding:9px 8px;font-size:13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Mobile optimisation for homepage only (other landing pages unchanged). */
@media (max-width:760px){
  .home-page .hero-section{padding-top:100px;padding-bottom:12px}
  .home-page .hero-copy{min-width:0;padding:12px 0 8px}
  .home-page .hero-copy h1{font-size:clamp(30px,8.2vw,48px);line-height:1.12;letter-spacing:-.035em;max-width:100%;margin:8px 0 12px;overflow-wrap:break-word;word-break:normal;hyphens:auto}
  .home-page .hero-copy h1 span{white-space:normal}
  .home-page .hero-grid{gap:10px}
  .home-page .hero-image{min-height:0;height:auto;max-height:270px;object-fit:contain}
  .home-page .section{padding:28px 0 34px}
  .home-page .section-head{margin-bottom:18px}
  .home-page .section-head h2,.home-page .split-intro h2{font-size:clamp(27px,7vw,36px);line-height:1.15;margin-top:0;margin-bottom:10px}
  .home-page .section-head p,.home-page .split-intro p{margin-top:8px;font-size:16px}
  .home-page .cases-grid{gap:14px}
  .home-page .case-card{height:auto;min-height:0}
  .home-page .case-card img{height:200px;flex-shrink:0}
  .home-page .case-body{height:auto;min-height:0;flex:0 0 auto;padding:15px 17px;gap:7px;justify-content:flex-start}
  .home-page .case-body h3{font-size:21px;line-height:1.22;margin:0}
  .home-page .case-body p{font-size:15px;line-height:1.45;margin:0}
  .home-page .split-intro{gap:14px}
  .home-page .steps-grid{gap:14px}
  .home-page .section-contact{padding-bottom:165px}
}
@media (max-width:380px){
  .home-page .hero-copy h1{font-size:30px;letter-spacing:-.03em}
  .home-page .case-card img{height:175px}
}
