:root {
  --blue: #58aae0;
  --blue-dark: #2878ad;
  --ink: #2e3033;
  --text: #666b70;
  --muted: #f5f7f8;
  --line: #e3e7ea;
  --white: #fff;
  --shadow: 0 14px 34px rgba(28, 48, 62, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font-family: Arial, Helvetica, sans-serif; line-height: 1.65; background: #fff; }
a { color: var(--blue-dark); }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; }
h1 { margin: .3rem 0 1.4rem; font-size: clamp(2.65rem, 6vw, 5rem); letter-spacing: -.035em; }
h2 { margin: .3rem 0 1rem; font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; letter-spacing: .055em; }
h3 { margin: 1rem 0 .6rem; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 1000; padding: .75rem 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }
.container { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }
.narrow { max-width: 900px; }
.center { text-align: center; }
.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.section-muted { background: var(--muted); }
.lead { max-width: 900px; margin: 0 auto 3rem; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.eyebrow { margin: 0 0 .8rem; color: var(--blue); font-size: .82rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.muted { color: #9aa0a5; }

.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; min-height: 88px; padding: .65rem max(1.25rem, calc((100% - 1500px)/2)); background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(0,0,0,.06); }
.brand img { width: 132px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.site-nav > a:not(.button) { color: var(--ink); font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.site-nav > a:hover { color: var(--blue-dark); }
.menu-toggle { display: none; border: 0; padding: .7rem 1rem; background: var(--ink); color: #fff; font-weight: 700; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.35rem; border: 2px solid var(--blue); background: var(--blue); color: #fff; font-weight: 800; letter-spacing: .035em; text-decoration: none; text-transform: uppercase; transition: .2s ease; }
.button:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.button-small { min-height: 42px; padding: .55rem 1rem; font-size: .78rem; }
.button-outline { background: transparent; color: var(--blue-dark); }

.hero { position: relative; height: min(780px, calc(100vh - 88px)); min-height: 610px; overflow: hidden; background: #16191b; }
.hero-slide { position: absolute; inset: 0; display: grid; align-items: center; opacity: 0; visibility: hidden; background-image: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.25)), var(--hero-image); background-position: center; background-size: cover; transition: opacity .7s ease; }
.hero-smart { --hero-image: url('images/hero-smarthome.jpg'); }
.hero-elektro { --hero-image: url('images/hero-elektro.jpg'); }
.hero-automation { --hero-image: url('images/hero-automation.jpg'); }
.hero-vacation {
  --hero-image: url('images/hero-vacation.webp');
  background-image: linear-gradient(90deg, rgba(13, 35, 48, .9) 0%, rgba(13, 35, 48, .7) 42%, rgba(13, 35, 48, .12) 78%), var(--hero-image);
  background-position: center 48%;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-content { width: min(760px, calc(100% - 3rem)); margin-left: max(1.5rem, calc((100% - 1100px)/2)); color: #fff; }
.hero h1, .hero .hero-title {
  margin: .3rem 0 1.4rem;
  color: #fff;
  font-size: clamp(2.65rem, 6vw, 5rem);
  letter-spacing: -.045em;
  line-height: .98;
}
.hero-content > p:not(.eyebrow) { max-width: 720px; margin-bottom: 1.8rem; font-size: 1.12rem; }
.vacation-content { padding-bottom: 1.4rem; }
.vacation-dates {
  display: flex;
  width: fit-content;
  margin: .35rem 0 1.35rem;
  padding: .7rem 1rem;
  align-items: baseline;
  gap: .75rem;
  border-left: 5px solid var(--blue);
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}
.vacation-dates span { color: var(--blue-dark); font-size: clamp(1.65rem, 4vw, 2.75rem); font-weight: 800; line-height: 1; }
.vacation-dates small { font-size: .9rem; font-weight: 700; white-space: nowrap; }
.hero-content > .vacation-return { max-width: 570px; margin: 0 0 .3rem; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.vacation-return strong { color: #8fd2ff; }
.hero-content > .vacation-wish { margin: 0 0 1.8rem; font-size: 1rem; }
.hero-credit {
  position: absolute;
  right: 1.25rem;
  bottom: .8rem;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: .68rem;
  font-weight: 300;
  letter-spacing: .02em;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
.hero-dots { position: absolute; right: 2rem; top: 50%; display: grid; gap: .7rem; transform: translateY(-50%); }
.hero-dots button { width: 11px; height: 11px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.hero-dots button.is-active { background: var(--blue); border-color: var(--blue); }

.intro { background: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3.5rem 2rem; margin-top: 4rem; }
.service-card p { margin: 0; font-size: .96rem; }
.service-card h3 { font-size: 1.08rem; }
.service-icon { display: grid; width: 112px; height: 112px; margin: 0 auto 1.25rem; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; }
.service-icon svg { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; margin-top: 3.5rem; }
.partner-grid a { display: flex; min-height: 280px; padding: 1.5rem; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.partner-grid img { width: 150px; height: 80px; margin-bottom: 1.2rem; object-fit: contain; }
.partner-grid strong { color: var(--ink); }
.partner-grid span { margin-top: .4rem; font-size: .86rem; line-height: 1.4; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; }
.team-grid article { text-align: left; }
.portrait { display: grid; aspect-ratio: 1; padding: 0 1rem 1.15rem; place-items: end center; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
.portrait img { display: block; width: auto; max-width: 100%; height: 86%; object-fit: contain; object-position: bottom center; transform: translateY(-12%); }
.team-grid h3 { text-transform: uppercase; letter-spacing: .08em; }
.team-grid p { font-size: .82rem; letter-spacing: .11em; text-transform: uppercase; }

.feature-grid, .process-grid { display: grid; gap: 1.4rem; margin-top: 3.5rem; }
.feature-grid { grid-template-columns: repeat(4, 1fr); }
.process-grid { grid-template-columns: repeat(3, 1fr); }
.feature-grid article, .process-grid article { padding: 2rem; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature-grid h3 { color: var(--blue-dark); }
.process-grid span { display: inline-grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; }

.contact { background: #f8fafb; }
.contact-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.contact-grid .lead { margin: 0 0 2rem; }
.contact-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.contact address { padding: 2rem; background: #fff; border-left: 5px solid var(--blue); box-shadow: var(--shadow); font-style: normal; }
.contact address a { text-decoration: none; }

.site-footer { padding: 2rem 0; background: #222; color: #c7c7c7; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; }
.footer-inner nav { display: flex; gap: 1.5rem; }
.footer-inner a, .footer-link { color: #fff; text-decoration: none; }
.footer-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.footer-link:hover, .footer-link:focus-visible { text-decoration: underline; }

.cookie-banner { position: fixed; z-index: 200; right: 1.25rem; bottom: 1.25rem; left: 1.25rem; display: grid; max-width: 1120px; margin: 0 auto; padding: 1.4rem 1.5rem; grid-template-columns: minmax(0, 1fr) minmax(250px, .38fr); align-items: end; gap: 1.5rem; border: 1px solid #d5dde2; border-radius: 3px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .2); }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { margin: 0 0 .55rem; font-size: 1.3rem; letter-spacing: 0; text-transform: none; }
.cookie-banner p { margin: 0; color: var(--text); font-size: .91rem; }
.cookie-banner strong { color: var(--ink); }
.cookie-banner a { color: var(--blue-dark); }
.cookie-banner__actions { display: grid; gap: .65rem; }
.cookie-banner__actions .button { width: 100%; }
.cookie-banner__toggle { margin-top: .65rem; padding: 0; border: 0; background: none; color: var(--blue-dark); font: inherit; font-size: .9rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.cookie-banner__details { display: grid; margin-top: 1rem; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.cookie-banner__details[hidden], .cookie-banner__actions .button[hidden] { display: none; }
.cookie-option { display: flex; min-width: 0; padding: .75rem; align-items: flex-start; gap: .55rem; border: 1px solid var(--line); border-radius: 2px; background: #fafbfc; cursor: pointer; }
.cookie-option:has(input:disabled) { cursor: default; }
.cookie-option input { margin-top: .25rem; accent-color: var(--blue-dark); }
.cookie-option span { display: grid; gap: .15rem; }
.cookie-option small { color: var(--text); font-size: .76rem; line-height: 1.4; }

.legal-page .site-header { position: static; }
.legal-hero { padding: 4rem 0; background: var(--ink); color: #fff; }
.legal-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); }
.legal-content { max-width: 880px; }
.legal-content h2 { margin-top: 2.5rem; font-size: 1.35rem; letter-spacing: .02em; text-transform: none; }
.legal-content h3 { margin-top: 2rem; font-size: 1.15rem; }
.legal-content h4 { margin: 1.5rem 0 .35rem; color: var(--ink); font-size: 1rem; }
.legal-content p, .legal-content li { overflow-wrap: anywhere; }
.legal-content ul { padding-left: 1.25rem; }

@media (max-width: 1000px) {
  .service-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 1.5rem; flex-direction: column; align-items: stretch; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { text-align: center; }
}

@media (max-width: 680px) {
  .section { padding: 4rem 0; }
  .hero { min-height: 650px; }
  .hero-content { margin-left: 1.5rem; }
  .vacation-dates { padding: .65rem .8rem; flex-wrap: wrap; gap: .35rem .6rem; }
  .vacation-dates small { width: 100%; order: 3; }
  .hero-content > p:not(.eyebrow) { font-size: 1rem; }
  .hero-credit { right: .8rem; bottom: .6rem; font-size: .64rem; }
  .hero-dots { right: 1rem; }
  .service-grid, .partner-grid, .team-grid, .feature-grid, .process-grid, .contact-grid { grid-template-columns: 1fr; }
  .partner-grid a { min-height: 220px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-inner nav { flex-wrap: wrap; justify-content: center; }
  .cookie-banner { right: .75rem; bottom: .75rem; left: .75rem; max-height: calc(100vh - 1.5rem); padding: 1.1rem; grid-template-columns: 1fr; gap: 1rem; overflow-y: auto; }
  .cookie-banner__details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Dezente statische Abgrenzung vom früheren Theme */
body {
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.container { width: min(1220px, calc(100% - 3rem)); }
.section { padding: clamp(5rem, 7vw, 7rem) 0; }
.section-muted, .intro { background: #f3f5f7; }

h1 { letter-spacing: -.045em; }
h2 {
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  letter-spacing: -.025em;
  text-transform: none;
}
.lead { max-width: 800px; margin-bottom: 3.5rem; }
.eyebrow { letter-spacing: .16em; }

.site-header {
  min-height: 82px;
  padding-inline: max(1.5rem, calc((100% - 1460px) / 2));
  box-shadow: 0 6px 22px rgba(25, 39, 48, .055);
}
.site-nav { gap: clamp(1.15rem, 2.4vw, 2.4rem); }
.site-nav > a:not(.button) {
  font-size: .86rem;
  letter-spacing: .015em;
  text-transform: none;
}

.button {
  border-radius: 2px;
  letter-spacing: .01em;
  text-transform: none;
}

.hero h1, .hero .hero-title { line-height: .98; }
.hero-content { width: min(700px, calc(100% - 3rem)); }
.hero-content > p:not(.eyebrow) { max-width: 640px; }

.service-grid {
  gap: 1.25rem;
  margin-top: 3.25rem;
}
.service-card {
  position: relative;
  min-height: 310px;
  padding: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 55, 69, .055);
  text-align: left;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.service-card::before {
  position: absolute;
  top: .65rem;
  right: .8rem;
  content: attr(data-initial);
  color: rgba(40, 120, 173, .075);
  font-size: clamp(4.6rem, 6vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: 1;
  pointer-events: none;
}
.service-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  height: 3px;
  background: var(--blue);
  content: "";
  transition: width .22s ease;
}
.service-card:hover {
  border-color: rgba(88, 170, 224, .55);
  box-shadow: 0 16px 34px rgba(32, 55, 69, .09);
  transform: translateY(-3px);
}
.service-card:hover::after {
  width: 100%;
}
.service-icon {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  margin: 0 0 1.35rem;
  border-radius: 4px;
  transition: transform .22s ease;
}
.service-card:hover .service-icon { transform: translateY(-3px); }
.service-icon svg { width: 38px; height: 38px; }
.service-card h3, .service-card p { position: relative; z-index: 1; }
.service-card h3 { margin-top: 0; font-size: 1.12rem; }

.partner-grid { gap: 1rem; margin-top: 3.25rem; }
.partner-grid a { min-height: 250px; border-radius: 3px; box-shadow: 0 10px 28px rgba(32, 55, 69, .05); }

.team-grid { gap: 1.5rem; margin-top: 3.25rem; }
.portrait { border-radius: 3px; background: #f7f9fa; }
.team-grid h3 { letter-spacing: .025em; text-transform: none; }
.team-grid p { font-size: .86rem; letter-spacing: .015em; text-transform: none; }

.feature-grid, .process-grid { gap: 1.15rem; margin-top: 3.25rem; }
.feature-grid article, .process-grid article { border-radius: 3px; box-shadow: 0 10px 28px rgba(32, 55, 69, .05); }
.process-grid span { border-radius: 3px; }

.contact address { border-radius: 1px; }
.legal-content { line-height: 1.72; }

/* Großflächige Fehlerseite */
.error-page {
  min-height: 100vh;
  background: #202428;
}
.error-header {
  position: relative;
  z-index: 10;
  background: #fff;
}
.error-stage {
  position: relative;
  display: grid;
  min-height: calc(100vh - 82px - 96px);
  overflow: hidden;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(32, 36, 40, .96), rgba(32, 36, 40, .77)),
    url("images/hero-elektro.jpg") center / cover;
  color: rgba(255, 255, 255, .76);
}
.error-stage::after {
  position: absolute;
  right: clamp(-14rem, -8vw, -4rem);
  bottom: clamp(-13rem, -12vw, -7rem);
  width: clamp(22rem, 40vw, 43rem);
  height: clamp(22rem, 40vw, 43rem);
  border: clamp(2rem, 4vw, 4rem) solid rgba(88, 170, 224, .12);
  border-radius: 50%;
  content: "";
}
.error-number {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(255, 255, 255, .035);
  font-size: clamp(17rem, 40vw, 44rem);
  font-weight: 900;
  letter-spacing: -.12em;
  line-height: .7;
  transform: translate(-51%, -48%);
  user-select: none;
  white-space: nowrap;
}
.error-glow {
  position: absolute;
  border-radius: 50%;
  background: var(--blue);
  filter: blur(1px);
  opacity: .85;
}
.error-glow-one { top: 13%; right: 13%; width: 9px; height: 9px; }
.error-glow-two { right: 31%; bottom: 18%; width: 5px; height: 5px; opacity: .55; }
.error-layout {
  position: relative;
  z-index: 2;
  display: grid;
  padding-block: clamp(5rem, 10vw, 9rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: end;
  gap: clamp(3rem, 10vw, 10rem);
}
.error-copy { max-width: 760px; }
.error-copy h1 {
  max-width: 720px;
  margin-bottom: 1.6rem;
  color: #fff;
  font-size: clamp(3.4rem, 7vw, 7rem);
  line-height: .92;
}
.error-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}
.error-actions {
  display: flex;
  margin-top: 2.2rem;
  flex-wrap: wrap;
  gap: .9rem;
}
.error-outline { border-color: rgba(255, 255, 255, .6); color: #fff; }
.error-outline:hover { border-color: #fff; background: #fff; color: var(--ink); }
.error-links {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.error-links p {
  margin: 0;
  padding: 0 0 1rem;
  color: rgba(255, 255, 255, .55);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.error-links a {
  display: grid;
  padding: 1rem 0;
  grid-template-columns: 2.5rem 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}
.error-links a:hover { padding-left: .35rem; color: var(--blue); }
.error-links span { color: var(--blue); font-size: .78rem; letter-spacing: .08em; }
.error-footer { background: #171a1d; }

@media (max-width: 680px) {
  .container { width: min(100% - 2rem, 1220px); }
  .section { padding: 4.5rem 0; }
  .service-card { min-height: 0; }
  .hero-content { width: min(700px, calc(100% - 2.5rem)); margin-left: 1.25rem; }
  .error-stage { min-height: calc(100vh - 82px); }
  .error-layout { grid-template-columns: 1fr; align-items: center; gap: 4rem; }
  .error-copy h1 { font-size: clamp(3.2rem, 15vw, 5.3rem); }
  .error-number { top: 34%; font-size: clamp(16rem, 78vw, 27rem); }
}
