:root {
  --bg: #081019;
  --bg-2: #0d1722;
  --panel: rgba(16, 29, 42, .84);
  --panel-solid: #101d2a;
  --text: #f3f7fb;
  --muted: #9fb0c1;
  --line: rgba(255,255,255,.1);
  --accent: #2dcb43;
  --accent-strong: #23a73c;
  --accent-soft: rgba(45,203,67,.12);
  --accent-2: #8ef59e;
  --danger: #ffcb6b;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 82% 8%, rgba(45,203,67,.12), transparent 24rem),
    radial-gradient(circle at 8% 25%, rgba(142,245,158,.09), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
img, svg { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 999; background: white; color: black; padding: .7rem 1rem; border-radius: 10px; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); background: rgba(8,16,25,.82); border-bottom: 1px solid var(--line); }
.header-row { min-height: 78px; display: flex; align-items: center; gap: 1.4rem; }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: .85rem; min-width: 0; }
.brand-logo { width: 86px; height: auto; border-radius: 12px; background: rgba(255,255,255,.93); padding: .2rem .35rem; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-size: 1rem; letter-spacing: -.03em; }
.brand-text small { color: var(--muted); font-size: .76rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.15rem; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 650; font-size: .94rem; }
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.nav .nav-cta { color: #05110e; background: var(--accent); padding: .68rem .92rem; border-radius: 12px; }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line); color: var(--text); padding: .55rem .7rem; border-radius: 10px; }
.hero { min-height: 650px; display: grid; align-items: center; padding: 6rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 3rem; align-items: center; }
.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .74rem; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.45rem, 5.4vw, 4.75rem); margin: .75rem 0 1.2rem; max-width: 12ch; }
h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); margin: 0 0 .8rem; }
h3 { font-size: 1.18rem; margin: 0 0 .55rem; }
.lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: #c6d3df; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.7rem; }
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .72rem 1rem; border-radius: 13px; font-weight: 760; border: 1px solid var(--line); }
.btn-primary { background: var(--accent); color: #06120f; border-color: transparent; }
.btn-secondary { background: rgba(255,255,255,.035); }
.micro { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.hero-visual { position: relative; min-height: 470px; }
.brand-panel {
  position: relative;
  min-height: 100%;
  border: 1px solid rgba(45,203,67,.25);
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(15,26,38,.96), rgba(8,16,25,.98));
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 2rem;
}
.brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .45;
}
.brand-panel-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,203,67,.18), rgba(45,203,67,0));
  filter: blur(6px);
}
.hero-logo { position: relative; z-index: 1; width: min(100%, 580px); border-radius: 20px; background: rgba(255,255,255,.96); padding: .5rem .75rem; box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.status-row { display:flex; gap:.55rem; flex-wrap:wrap; margin-top:.4rem; }
.hero-status { position: relative; z-index: 1; justify-content: center; margin-top: 1.5rem; }
.status { border:1px solid rgba(45,203,67,.18); border-radius:999px; padding:.4rem .65rem; color:#d7f7dc; font-size:.8rem; background:rgba(45,203,67,.08) }
.section { padding: 5.2rem 0; }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.4rem; margin-bottom: 2.2rem; align-items: end; }
.section-head p { color: var(--muted); margin: 0; max-width: 65ch; }
.compact-head h2 { max-width: 14ch; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.08);
  border-top: 3px solid rgba(45,203,67,.5);
  border-radius: var(--radius);
  padding: 1.45rem;
  min-height: 295px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(45,203,67,.42); box-shadow: 0 16px 34px rgba(0,0,0,.2); }
.featured-service { background: linear-gradient(180deg, rgba(45,203,67,.12), rgba(255,255,255,.03)); }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.service-no { font-size: .78rem; font-weight: 800; letter-spacing: .16em; color: var(--accent-2); }
.service-kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-2); margin-bottom: .35rem; }
.icon { width: 54px; height: 54px; display:grid; place-items:center; border-radius:16px; background:rgba(45,203,67,.12); border:1px solid rgba(45,203,67,.25); font-size:1.35rem; color: #e8ffeb; flex: 0 0 auto; }

.icon-svg {
  padding: .6rem;
}
.icon-svg svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  margin-top: .1rem;
}
.service-card {
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: auto -30% -35% auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,203,67,.10), rgba(45,203,67,0) 70%);
  pointer-events: none;
}
.service-card:hover .icon {
  transform: translateY(-2px) scale(1.03);
  background: rgba(45,203,67,.18);
}
.icon {
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.service-card p { color: var(--muted); }
.service-card ul { color: #d6e2ea; padding-left: 1rem; margin: .85rem 0 0; }
.service-card li + li { margin-top: .38rem; }
.process { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; counter-reset: steps; }
.step { border-top: 1px solid rgba(45,203,67,.25); padding-top: 1.2rem; }
.step::before { counter-increment: steps; content: "0" counter(steps); color: var(--accent-2); font-weight: 800; font-size: .8rem; letter-spacing: .12em; }
.step p { color: var(--muted); }
.band { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.trust-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items:center; }
.checks { display:grid; gap:.8rem; margin-top:1.3rem; }
.check { display:flex; gap:.75rem; align-items:flex-start; color:#d6e0e8; }
.check b { color:var(--accent); }
.quote-box { border:1px solid rgba(45,203,67,.22); border-radius:var(--radius); padding:2rem; background:var(--panel); }
.quote-box p { color:var(--muted); }
.contact-panel { display:grid; grid-template-columns:1fr .8fr; gap:2rem; padding:2.2rem; border:1px solid rgba(45,203,67,.28); border-radius:28px; background:linear-gradient(135deg, rgba(45,203,67,.11), rgba(255,255,255,.03)); }
.contact-list { display:grid; gap:.8rem; align-content:center; }
.contact-item { padding:.95rem 1rem; border:1px solid rgba(255,255,255,.08); border-radius:14px; text-decoration:none; background:rgba(255,255,255,.025); }
.contact-item small { display:block; color:var(--muted); }
.site-footer { border-top:1px solid var(--line); padding:2rem 0; color:var(--muted); }
.footer-row { display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.footer-links { display:flex; gap:1rem; flex-wrap:wrap; }
.footer-links a { color:var(--muted); }
.legal { max-width: 920px; padding: 4rem 0 6rem; }
.legal h1 { max-width: none; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.6rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6rem; }
.legal p, .legal li { color: #c5d1dc; }
.legal .note { border:1px solid rgba(255,203,107,.35); background:rgba(255,203,107,.07); border-radius:16px; padding:1rem 1.2rem; color:#f3dfb5; }
.kicker { color:var(--muted); max-width:75ch; }
@media (max-width: 980px) {
  .hero-grid, .section-head, .trust-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 4.7rem; min-height: auto; }
  .hero-visual { min-height: 380px; }
  .cards { grid-template-columns: repeat(2,1fr); }
  .process { grid-template-columns: repeat(2,1fr); }
  .menu-btn { display: inline-flex; }
  .nav { position:absolute; left:1rem; right:1rem; top:78px; display:none; flex-direction:column; align-items:stretch; padding:1rem; background:#0b1620; border:1px solid var(--line); border-radius:16px; }
  .nav.open { display:flex; }
  .nav .nav-cta { text-align:center; }
}
@media (max-width: 700px) {
  .brand-logo { width: 72px; }
  .brand-text strong { font-size: .92rem; }
  .brand-text small { font-size: .68rem; }
}
@media (max-width: 620px) {
  .container { width:min(calc(100% - 1.25rem), var(--max)); }
  .hero { padding:4rem 0 3rem; }
  h1 { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  h2 { font-size: clamp(1.55rem, 7vw, 2.2rem); }
  .brand { gap: .55rem; }
  .brand-logo { width: 60px; }
  .brand-text small { display: none; }
  .hero-visual { min-height: 310px; }
  .cards, .process { grid-template-columns:1fr; }
  .section { padding:4.1rem 0; }
  .brand-panel { padding: 1rem; }
  .hero-logo { padding: .35rem .5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } .service-card { transition:none; } }

/* v1.3 – Direktkontakt, LOXONE Partner, Footer */
.top-contact {
  background: #050a0f;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
}
.top-contact-row {
  min-height: 38px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}
.top-contact-label { margin-right: auto; color: #728496; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 800; }
.top-contact a { color: #d9e3eb; text-decoration: none; font-weight: 700; white-space: nowrap; }
.top-contact a:hover, .top-contact a:focus-visible { color: var(--accent-2); }

.loxone-section { padding-top: 1.5rem; }
.loxone-partner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem;
  border: 1px solid rgba(45,203,67,.3);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(45,203,67,.10), rgba(255,255,255,.02));
}
.loxone-copy p { color: var(--muted); max-width: 66ch; }
.loxone-logo-card {
  display: grid;
  gap: .75rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease;
}
.loxone-logo-card:hover { transform: translateY(-3px); border-color: rgba(45,203,67,.45); }
.loxone-logo-card img { width: 100%; display: block; border-radius: 14px; aspect-ratio: 1 / 1; object-fit: cover; }
.loxone-logo-card span { color: #dbe6ed; font-size: .84rem; text-align: center; font-weight: 750; }

.footer-contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 1.5rem;
}
.footer-contact > div:first-child { display: grid; }
.footer-contact strong { color: var(--text); }
.footer-contact span { font-size: .85rem; }
.footer-contact-links { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: flex-end; }
.footer-contact-links a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: .46rem .7rem; color: #d4dfe7; }
.footer-contact-links a:hover, .footer-contact-links a:focus-visible { border-color: rgba(45,203,67,.4); color: var(--accent-2); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.4rem; }

@media (max-width: 980px) {
  .loxone-partner { grid-template-columns: 1fr; }
  .loxone-logo-card { max-width: 440px; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-contact-links { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .top-contact-row { gap: .75rem; justify-content: center; min-height: 42px; }
  .top-contact-label { display: none; }
  .top-contact a { font-size: .78rem; }
  .loxone-partner { padding: 1.25rem; border-radius: 22px; }
  .footer-contact-links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .footer-contact-links a { text-align: center; }
}
@media (max-width: 420px) {
  .top-contact-row { gap: .4rem; flex-wrap: wrap; padding-block: .25rem; }
  .top-contact a { font-size: .68rem; }
  .footer-contact-links { grid-template-columns: 1fr; }
}

/* Vom Admin erzeugte Inhaltsseiten */
.page-hero { padding: 5.5rem 0 3.5rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(45,203,67,.06), transparent); }
.page-hero h1 { max-width: 15ch; }
.content-narrow { max-width: 860px; }
.content-narrow p { color: #c6d3df; font-size: 1.02rem; }
.page-gallery { padding-bottom: 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); background: var(--panel-solid); }
@media (max-width: 700px) {
  .page-hero { padding: 3.7rem 0 2.7rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}
.legal-nav { display: flex; }
@media (max-width: 980px) {
  .legal-nav { position: static; display: flex; flex-direction: row; align-items: center; padding: 0; background: transparent; border: 0; margin-left: auto; }
}


/* v1.5 – visueller Leistungsbereich */
.services-grid { align-items: stretch; }
.service-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 410px;
  border-top: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.service-card::after { display: none; }
.service-visual {
  position: relative;
  min-height: 128px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background:
    linear-gradient(135deg, rgba(45,203,67,.12), rgba(255,255,255,.015)),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
}
.featured-service .service-visual { background-color: rgba(45,203,67,.055); }
.service-no {
  position: absolute;
  left: 1.15rem;
  top: 1rem;
  color: rgba(215,247,220,.68);
}
.service-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(7,16,23,.68);
  border: 1px solid rgba(45,203,67,.3);
  color: #eaffed;
  box-shadow: inset 0 0 24px rgba(45,203,67,.06), 0 12px 28px rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.service-icon-electric { font-size: 2rem; }
.service-icon.icon-svg { padding: .95rem; }
.service-card:hover .service-icon {
  transform: translateY(-3px) scale(1.025);
  border-color: rgba(45,203,67,.55);
  background: rgba(45,203,67,.09);
}
.service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.4rem 1.25rem;
}
.service-body p { color: var(--muted); margin-top: .25rem; }
.service-body ul { color: #d6e2ea; padding-left: 1.05rem; margin: .65rem 0 1rem; }
.service-body li + li { margin-top: .28rem; }
.service-more {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(255,255,255,.07);
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 780;
  font-size: .9rem;
}
.service-more::after { content: ''; position: absolute; inset: -360px -2rem -2rem; z-index: 1; }
.service-more span { transition: transform .2s ease; }
.service-card:hover .service-more span { transform: translateX(4px); }

/* v1.5 – bewusster Blur-to-Clear Reveal, kein Ladeindikator */
.reveal-page {
  animation: pageFocusReveal 1.35s cubic-bezier(.2,.7,.2,1) both;
  transform-origin: center top;
}
@keyframes pageFocusReveal {
  0% { filter: blur(10px); opacity: .72; transform: scale(1.008); }
  55% { filter: blur(3px); opacity: .94; transform: scale(1.003); }
  100% { filter: blur(0); opacity: 1; transform: scale(1); }
}

/* v1.5 – Leistungs-Unterseiten */
.service-page-hero {
  padding: 5.3rem 0 4rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(45,203,67,.055), transparent 88%);
}
.service-page-grid {
  display: grid;
  grid-template-columns: 1.05fr .75fr;
  gap: 3rem;
  align-items: center;
}
.service-page-hero h1 { max-width: 13ch; }
.service-page-visual {
  min-height: 330px;
  border: 1px solid rgba(45,203,67,.25);
  border-radius: 30px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(45,203,67,.12), transparent 55%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    rgba(255,255,255,.018);
  background-size: auto, 28px 28px, 28px 28px, auto;
}
.service-page-visual .service-icon { width: 118px; height: 118px; border-radius: 30px; }
.service-page-visual .service-icon.icon-svg { padding: 1.55rem; }
.service-page-visual .service-icon-electric { font-size: 3.2rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.service-tags span { border: 1px solid rgba(45,203,67,.22); color: #d9f9df; background: rgba(45,203,67,.07); border-radius: 999px; padding: .4rem .65rem; font-size: .78rem; }
.service-detail-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.service-detail-grid > div > p { color: var(--muted); }
.detail-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.detail-card { border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem; background: rgba(255,255,255,.025); }
.detail-card h3 { font-size: 1.05rem; }
.detail-card p { color: var(--muted); margin-bottom: 0; font-size: .94rem; }
.service-scope { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 1.2rem; }
.scope-item { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.02); }
.scope-item b { color: var(--accent); }
.scope-item span { color: #d2dde5; }
.service-cta { padding: 2rem; border: 1px solid rgba(45,203,67,.28); border-radius: 26px; background: linear-gradient(135deg, rgba(45,203,67,.10), rgba(255,255,255,.02)); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.service-cta p { color: var(--muted); margin: .35rem 0 0; }

@media (max-width: 980px) {
  .service-page-grid, .service-detail-grid { grid-template-columns: 1fr; }
  .detail-cards { grid-template-columns: 1fr 1fr; }
  .service-page-visual { min-height: 260px; }
}
@media (max-width: 620px) {
  .service-card { min-height: 0; }
  .service-visual { min-height: 112px; }
  .service-icon { width: 66px; height: 66px; border-radius: 19px; }
  .service-page-hero { padding: 3.8rem 0 3rem; }
  .service-page-visual { min-height: 220px; border-radius: 22px; }
  .detail-cards, .service-scope { grid-template-columns: 1fr; }
  .service-cta { grid-template-columns: 1fr; padding: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-page { animation: none; }
}
