/* ==========================================================================
   Daniel Bühner IT-Services · Stylesheet
   Palette "Monochrome Beach": #353535 · #3C6E71 · #FFFFFF · #D9D9D9 · #284B63
   Schriften lokal eingebunden (keine Verbindung zu Google Fonts)
   ========================================================================== */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Palette */
  --ink: #353535;
  --teal: #3c6e71;
  --white: #ffffff;
  --fog: #d9d9d9;
  --navy: #284b63;

  /* Abgeleitete Töne (leicht zum Petrol hin gezogen) */
  --deep: #1f2324;
  --deep-2: #292e30;
  --deep-3: #343a3c;
  --paper: #f3f5f5;
  --teal-light: #8cc0c2;
  --teal-tint: #e3eded;
  --muted: #5b6466;
  --muted-dark: #a9b4b6;
  --line: #d9d9d9;
  --line-dark: rgba(255, 255, 255, 0.1);
  --ok: #6fbf8e;

  --font: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--teal-light); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typografie ---------- */
.display {
  font-stretch: 78%;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 0.98;
  text-wrap: balance;
  margin: 0;
}
h1.display { font-size: clamp(2.9rem, 7.4vw, 6.2rem); }
h2.display { font-size: clamp(2.3rem, 5vw, 4.2rem); }
h3 {
  font-size: 1.3rem; line-height: 1.25; font-weight: 600;
  letter-spacing: -0.01em; margin: 0; text-wrap: balance;
}
p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; background: currentColor;
}
.on-dark .eyebrow { color: var(--teal-light); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.55; max-width: 38em; color: var(--muted); }
.on-dark .lead { color: var(--muted-dark); }

.mono { font-family: var(--mono); font-size: 0.82rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--fog); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(127, 127, 127, 0.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(31, 35, 36, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 650; font-size: 1rem; letter-spacing: -0.01em; }
.logo img { width: 36px; height: 36px; padding: 3px; background: var(--white); border-radius: 9px; flex: none; }
.logo span { display: grid; line-height: 1.15; }
.logo small { font-size: 0.78rem; font-weight: 500; color: var(--muted-dark); letter-spacing: 0; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-size: 0.95rem; color: var(--muted-dark); border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--white); background: var(--deep-3); }
.nav .btn { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-dark); border-radius: 10px; color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav .btn-cta { display: none; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--deep); border-bottom: 1px solid var(--line-dark);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; font-size: 1.05rem; padding: 0 4px; border-radius: 0; border-bottom: 1px solid var(--line-dark); min-height: 52px; }
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--deep);
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  color: var(--white);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 25% 40%, transparent 0%, var(--deep) 85%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 9vw, 112px) clamp(56px, 8vw, 96px);
}
.hero h1 { margin-block: 22px 24px; }
.hero h1 span { color: var(--muted-dark); display: block; font-size: 0.56em; line-height: 1.05; margin-top: 0.3em; font-stretch: 85%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; padding: 0; list-style: none;
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted-dark);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--teal-light); }

/* Netzwerk-Panel */
.panel {
  background: var(--deep-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.panel-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted-dark);
}
.panel-bar .dots { display: inline-flex; gap: 6px; }
.panel-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--deep-3); display: block; }
.panel-bar .tag {
  margin-left: auto; border: 1px solid var(--line-dark); border-radius: 999px; padding: 2px 10px; font-size: 0.72rem;
}

.topo { display: block; width: 100%; height: auto; padding: 14px 10px 4px; }
.topo .wire { fill: none; stroke: #4d5659; stroke-width: 1.5; }
.topo .wire.wlan { stroke-dasharray: 4 5; }
.topo .node rect { fill: var(--deep-3); stroke: #4d5659; }
.topo .node.router rect { fill: var(--teal); stroke: var(--teal-light); }
.topo .n-label { fill: var(--white); font: 600 12.5px var(--font); }
.topo .n-ip { fill: var(--muted-dark); font: 400 10px var(--mono); }
.topo .router .n-ip { fill: #d6e8e8; }
.topo .status { fill: var(--ok); }
.topo .packet { fill: var(--teal-light); }

.log { list-style: none; margin: 0; padding: 6px 16px 16px; font-family: var(--mono); font-size: 0.76rem; }
.log li {
  display: grid; grid-template-columns: 3.6em 1fr auto; gap: 12px; align-items: baseline;
  padding: 7px 0; border-top: 1px solid var(--line-dark); color: var(--muted-dark);
}
.log li:first-child { border-top: 0; }
.log time { color: #8e999c; font-variant-numeric: tabular-nums; }
.log .msg { color: #dfe6e7; min-width: 0; overflow-wrap: anywhere; }
.log .res { color: var(--ok); white-space: nowrap; }
.log .res.info { color: var(--teal-light); }
.log li.enter { animation: logIn 0.5s var(--ease); }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Lade-Sequenz im Hero */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise 0.8s var(--ease) both; }
  .js .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .js .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .js .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
  .js .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
  .js .hero .panel { animation: rise 1s 0.2s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .topo .packet { display: none; }
  .marquee-track { animation: none !important; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--deep); color: var(--muted-dark);
  border-top: 1px solid var(--line-dark);
  padding-block: 22px; overflow: hidden;
}
.marquee-head { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8e999c; margin-bottom: 14px; }
.marquee-mask { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: scroll 48s linear infinite; }
.marquee-mask:hover .marquee-track { animation-play-state: paused; }
.marquee-track ul { display: flex; align-items: center; gap: 44px; padding: 0 22px; margin: 0; list-style: none; }
.marquee-track li {
  font-stretch: 80%; font-weight: 600; font-size: 1.45rem; white-space: nowrap; color: #c9d2d3;
  display: inline-flex; align-items: center; gap: 44px;
}
.marquee-track li::after { content: ""; width: 6px; height: 6px; background: var(--teal); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 780px; }
.section-head.split { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px 64px; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }
.paper { background: var(--paper); }
.dark { background: var(--deep); color: var(--white); }

/* Statement */
.statement-text {
  font-stretch: 100%;
  font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.15; font-weight: 550; letter-spacing: -0.02em;
  max-width: 22em; text-wrap: balance; margin: 22px 0 0;
}
.statement-text em { font-style: normal; color: var(--teal); }
.principles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line);
}
.principle { padding: 28px 28px 0 0; display: grid; gap: 10px; align-content: start; }
.principle + .principle { padding-left: 28px; border-left: 1px solid var(--line); }
.principle svg { width: 28px; height: 28px; color: var(--teal); }
.principle p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle { padding-bottom: 28px; }
}
@media (max-width: 520px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 24px 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
}

/* Zielgruppen */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience {
  background: var(--white); border-radius: var(--radius); padding: 28px 28px 30px;
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 20px; align-content: start; border: 1px solid var(--line);
}
.audience .checklist { grid-column: 1 / -1; }
.audience .icon { color: var(--teal); display: grid; }
.audience .icon svg { width: 26px; height: 26px; }
.audience > p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.98rem; line-height: 1.45; }
.checklist li::before {
  content: ""; width: 16px; height: 16px; margin-top: 3px;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 900px) { .audiences { grid-template-columns: 1fr; } }

/* Bento Leistungen */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2;
  background: var(--paper); border-radius: var(--radius); padding: 26px;
  display: grid; grid-template-rows: auto 1fr auto; gap: 18px;
  text-decoration: none; color: inherit; border: 1px solid transparent;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s;
  cursor: pointer; min-width: 0;
}
.tile:hover { border-color: var(--teal); transform: translateY(-2px); }
.tile.wide { grid-column: span 4; }
.tile.navy { background: var(--navy); color: var(--white); }
.tile.navy .tile-text p { color: #c5d3dc; }
.tile.navy:hover { border-color: var(--teal-light); }
.tile-text { display: grid; gap: 8px; }
.tile-text p { color: var(--muted); font-size: 0.97rem; }
.tile-more { font-family: var(--mono); font-size: 0.78rem; display: inline-flex; align-items: center; gap: 8px; color: var(--teal); }
.tile.navy .tile-more { color: var(--teal-light); }
.tile-more svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.tile:hover .tile-more svg { transform: translateX(3px); }
.viz { min-height: 120px; display: flex; align-items: center; }

/* Viz: Geräte-Einrichtung */
.setup { width: 100%; display: grid; gap: 10px; font-family: var(--mono); font-size: 0.78rem; }
.setup-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 14px; background: var(--white); border-radius: var(--radius-sm); }
.setup-row b { font-weight: 500; color: var(--teal); }
.bar { height: 6px; background: var(--fog); border-radius: 99px; overflow: hidden; grid-column: 1 / -1; }
.bar i { display: block; height: 100%; width: 78%; background: var(--teal); border-radius: inherit; transform-origin: left; }
@media (prefers-reduced-motion: no-preference) { .bar i { animation: fill 5s var(--ease) infinite; } }
@keyframes fill { 0% { width: 8%; } 70%, 100% { width: 100%; } }

/* Viz: WLAN */
.wifi { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.wifi i { width: 12px; background: var(--teal); border-radius: 3px; display: block; }
.wifi i:nth-child(1) { height: 25%; } .wifi i:nth-child(2) { height: 50%; } .wifi i:nth-child(3) { height: 75%; } .wifi i:nth-child(4) { height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .wifi i { animation: sig 2.4s ease-in-out infinite; }
  .wifi i:nth-child(2) { animation-delay: 0.15s; } .wifi i:nth-child(3) { animation-delay: 0.3s; } .wifi i:nth-child(4) { animation-delay: 0.45s; }
}
@keyframes sig { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--mono); font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); white-space: nowrap; }
.viz-wifi { display: grid; gap: 14px; align-content: center; }

/* Viz: 3-2-1 */
.rule321 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.rule321 div { background: var(--white); border-radius: var(--radius-sm); padding: 12px 10px; display: grid; gap: 2px; }
.rule321 strong { font-stretch: 78%; font-size: 2.2rem; line-height: 1; color: var(--teal); font-weight: 650; }
.rule321 span { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }

/* Viz: Browser */
.browser { width: 100%; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--fog); display: block; }
.browser-bar span { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); margin-left: 6px; background: var(--paper); padding: 2px 10px; border-radius: 99px; }
.browser-body { padding: 12px; display: grid; gap: 7px; }
.browser-body .h { height: 10px; width: 62%; background: var(--ink); border-radius: 3px; }
.browser-body .l { height: 6px; background: var(--fog); border-radius: 3px; }
.browser-body .l.s { width: 80%; }
.browser-body .b { height: 14px; width: 34%; background: var(--teal); border-radius: 99px; margin-top: 4px; }

/* Viz: Smart Home */
.toggles { display: grid; gap: 8px; width: 100%; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.88rem; background: rgba(255,255,255,0.08); padding: 9px 12px; border-radius: var(--radius-sm); }
.switch { width: 34px; height: 20px; border-radius: 99px; background: rgba(255,255,255,0.25); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); transition: transform 0.3s var(--ease); }
.switch.on { background: var(--teal-light); }
.switch.on::after { transform: translateX(14px); }

/* Weitere Leistungen */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px solid var(--line); }
.more-item {
  display: grid; grid-template-columns: 40px 1fr 20px; gap: 14px; align-items: center;
  padding: 22px 18px 22px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%;
  transition: color 0.2s;
}
.more-item:hover { color: var(--teal); }
.more-item .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; color: var(--teal); }
.more-item .ico svg { width: 20px; height: 20px; }
.more-item strong { font-weight: 600; display: block; line-height: 1.3; }
.more-item small { color: var(--muted); font-size: 0.88rem; display: block; line-height: 1.4; margin-top: 2px; }
.more-item > svg { width: 18px; height: 18px; color: var(--teal); }
.more-grid .more-item:not(:nth-child(3n+1)) { padding-left: 18px; border-left: 1px solid var(--line); }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide { grid-column: span 1; }
  .tile.wide { grid-column: span 2; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .more-grid .more-item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .more-grid .more-item:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: span 1; }
  .more-grid { grid-template-columns: 1fr; }
  .more-grid .more-item:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Leistungen im Detail (Tabs) ---------- */
.details { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.tablist { display: grid; gap: 2px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); }
.tab {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); text-align: left; cursor: pointer; font-size: 0.98rem; font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}
.tab:hover { background: var(--white); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tab .count { font-family: var(--mono); font-size: 0.72rem; opacity: 0.7; font-variant-numeric: tabular-nums; }
.tabpanel { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); min-width: 0; }
.tabpanel h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-stretch: 80%; font-weight: 650; }
.tabpanel > p { color: var(--muted); margin-top: 12px; max-width: 42em; }
.tabpanel h4 { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin: 32px 0 4px; font-weight: 500; }
.tabpanel .checklist { margin-top: 20px; gap: 12px; }
.tabpanel .checklist.cols { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 700px) { .tabpanel .checklist.cols { grid-template-columns: 1fr; } }
.note {
  margin-top: 28px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--teal-tint); color: #24474a; font-size: 0.95rem; line-height: 1.55;
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
}
.note svg { width: 20px; height: 20px; margin-top: 2px; color: var(--teal); }
.note strong { color: var(--ink); }

@media (max-width: 900px) {
  .details { grid-template-columns: 1fr; }
  .tablist {
    position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 8px;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  }
  .tab { flex: none; width: auto; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; background: var(--white); }
  .tab .count { display: none; }
}

/* ---------- Smart Home ---------- */
.sh-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sh-copy { display: grid; gap: 22px; align-content: start; }
.sh-copy .lead { color: var(--muted-dark); }
.sh-points { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line-dark); }
.sh-point { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.sh-point strong { font-family: var(--mono); font-weight: 500; font-size: 0.85rem; color: var(--teal-light); padding-top: 2px; }
.sh-point p { color: #d2dadb; font-size: 0.98rem; }
.protocols { display: flex; flex-wrap: wrap; gap: 8px; }
.protocols span { font-family: var(--mono); font-size: 0.74rem; padding: 5px 11px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--muted-dark); }
.dark .note { background: var(--deep-2); color: #c8d1d2; border: 1px solid var(--line-dark); }
.dark .note strong { color: var(--white); }
.dark .note svg { color: var(--teal-light); }

.dash { padding: 16px; display: grid; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { background: var(--deep-3); border-radius: 10px; padding: 14px; display: grid; gap: 4px; min-width: 0; }
.kpi span { font-family: var(--mono); font-size: 0.7rem; color: var(--muted-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi strong { font-stretch: 80%; font-size: 1.9rem; line-height: 1.05; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi strong small { font-size: 0.95rem; color: var(--muted-dark); font-weight: 500; margin-left: 2px; }
.meter { height: 5px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--teal-light); border-radius: inherit; }
.chart-card { background: var(--deep-3); border-radius: 10px; padding: 14px 14px 8px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.72rem; color: var(--muted-dark); margin-bottom: 6px; }
.legend { display: inline-flex; gap: 14px; }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.energy { width: 100%; height: auto; display: block; }
.energy .grid line { stroke: rgba(255,255,255,0.07); }
.energy .axis text { fill: #8b9699; font: 10px var(--mono); }
.energy .pv-area { fill: rgba(140, 192, 194, 0.18); }
.energy .pv-line { fill: none; stroke: var(--teal-light); stroke-width: 2; }
.energy .use-line { fill: none; stroke: #e4b363; stroke-width: 1.6; stroke-dasharray: 3 3; }
.energy .now { fill: var(--teal-light); }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.room {
  background: var(--deep-3); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px;
  border: 1px solid transparent; cursor: pointer; text-align: left; color: var(--white);
  transition: border-color 0.2s, background-color 0.2s;
}
.room:hover { border-color: var(--line-dark); }
.room .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.room svg { width: 20px; height: 20px; color: var(--muted-dark); transition: color 0.2s; }
.room[aria-pressed="true"] svg { color: #f0c96b; }
.room[aria-pressed="true"] .switch { background: var(--teal-light); }
.room[aria-pressed="true"] .switch::after { transform: translateX(14px); }
.room b { font-weight: 600; font-size: 0.92rem; line-height: 1.2; }
.room small { font-family: var(--mono); font-size: 0.7rem; color: var(--muted-dark); }
@media (max-width: 960px) { .sh-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .kpis, .rooms { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:last-child, .rooms .room:last-child { grid-column: span 2; }
  .sh-point { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 28px 0 0; display: grid; gap: 12px; align-content: start; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500; color: var(--white);
  width: 44px; height: 44px; border-radius: 50%; background: var(--teal); display: grid; place-items: center;
  position: relative; z-index: 1; margin-bottom: 12px;
}
.step::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { grid-template-columns: 44px 1fr; column-gap: 20px; padding: 0 0 32px; }
  .step::before { grid-row: span 2; margin: 0; }
  .step::after { top: 44px; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-side { display: grid; gap: 20px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); }
.faq-side p { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-weight: 600; font-size: 1.1rem; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform 0.3s var(--ease), background-color 0.2s, border-color 0.2s; }
.faq-list summary .pm svg { width: 16px; height: 16px; }
.faq-list summary:hover .pm { border-color: var(--teal); color: var(--teal); }
.faq-list details[open] .pm { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--white); }
.faq-list details p { padding: 0 52px 24px 0; color: var(--muted); max-width: 40em; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .faq-list details p { padding-right: 0; }
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info { display: grid; gap: 28px; }
.contact-lines { display: grid; border-top: 1px solid var(--line-dark); }
.contact-line { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; }
.contact-line .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--deep-3); display: grid; place-items: center; color: var(--teal-light); }
.contact-line .ico svg { width: 20px; height: 20px; }
.contact-line small { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--muted-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-line span { font-size: 1.1rem; font-weight: 500; }
a.contact-line:hover span { color: var(--teal-light); }

.map {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark);
  background: var(--deep-2); aspect-ratio: 16 / 10; max-width: 100%; position: relative;
}
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; padding: 24px; text-align: center; justify-items: center;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 28px 28px; }
.map-consent p { font-size: 0.88rem; color: var(--muted-dark); max-width: 34em; }
.map-consent .btn { min-height: 44px; font-size: 0.92rem; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { font-family: var(--mono); font-size: 0.78rem; color: var(--muted-dark); }
.map-link a { color: var(--teal-light); }

.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 20px; }
.form h3 { font-size: 1.5rem; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-weight: 600; font-size: 0.92rem; }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; min-height: 48px; border-radius: var(--radius-sm);
  border: 1px solid #b9bfc0; background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(60, 110, 113, 0.2); }
.field .error { color: #b3261e; font-size: 0.85rem; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label {
  font-weight: 500; font-size: 0.92rem; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center;
  border: 1px solid #b9bfc0; border-radius: 999px; cursor: pointer; transition: all 0.2s;
}
.segmented input:checked + label { background: var(--ink); color: var(--white); border-color: var(--ink); }
.segmented input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.88rem; color: var(--muted); align-items: start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.consent a { color: var(--teal); }
.form .btn { width: 100%; }
.form-note { font-size: 0.82rem; color: var(--muted); display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.form-note svg { width: 16px; height: 16px; margin-top: 3px; color: var(--teal); }
.form-status { font-size: 0.92rem; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--teal-tint); color: #24474a; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--muted-dark); border-top: 1px solid var(--line-dark); padding-block: 64px 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-top .foot-h { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8e999c; margin: 0 0 14px; font-weight: 500; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { color: var(--white); }
.footer-top address { font-style: normal; line-height: 1.7; }
.footer-brand p { margin-top: 14px; max-width: 26em; font-size: 0.95rem; }
.footer-brand .logo { color: var(--white); }
.footer-bottom { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; border-top: 1px solid var(--line-dark); padding-top: 22px; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal .wrap { max-width: 820px; }
.legal h1 { margin: 18px 0 40px; }
.legal-logo { display: block; width: 380px; max-width: 100%; height: auto; margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #444; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 10px 0; padding-left: 1.2em; display: grid; gap: 6px; }
.todo { background: #fff6dc; border: 1px dashed #c9a13b; color: #5c4608; padding: 14px 16px; border-radius: var(--radius-sm); margin: 14px 0; font-size: 0.95rem; }

/* Tagline styling for H1 restructuring */
.tagline {
  font-size: 1.1rem;
  color: #3C6E71;
  margin-top: 0.5rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.on-dark .tagline {
  color: #8CC0C2;
}
