/* ===== Grundfarben (angelehnt an den Flyer) ===== */
:root {
  --bg: #121113;
  --bg-2: #1a191b;
  --bg-3: #232124;
  --line: #2f2c30;
  --fg: #ecebe8;
  --fg-dim: #a9a6a2;
  --gold: #e8a33a;
  --gold-2: #f2bd62;
  --gold-dim: rgba(232, 163, 58, .14);
  --white-sect: #f4f3f0;
  --radius: 14px;
  --head: "Bahnschrift", "DIN Alternate", "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.gold { color: var(--gold); }
.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.lead { font-size: 1.15rem; color: var(--fg-dim); max-width: 46rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-gold { background: var(--gold); color: #141214; }
.btn-gold:hover { background: var(--gold-2); color: #141214; transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 17, 19, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--fg); font-family: var(--head); font-size: 1.25rem; font-weight: 700; }
.brand:hover { color: var(--fg); }
.brand svg { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { color: var(--fg-dim); font-size: .95rem; }
.nav-links a:hover { color: var(--gold); }
.nav-links .btn { color: #141214; padding: .55rem 1.1rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--fg); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 1rem 20px; border-top: 1px solid var(--line); }
  .nav-links .btn { margin: 1rem 20px; justify-content: center; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(90deg, var(--gold), #b9771e);
  color: #141214;
  overflow: hidden;
  padding: 70px 0 150px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 90px));
}
.hero::before { /* heller Bereich, darunter blitzt die goldene Kante wie im Flyer hervor */
  content: ""; position: absolute; inset: 0;
  background: var(--white-sect);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), 0 calc(100% - 97px));
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #141214; }
.hero h1 .gold { color: #c9831c; }
.hero .lead { color: #4a4744; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero .btn-ghost { border-color: #cfccc6; color: #141214; }
.hero .btn-ghost:hover { border-color: #c9831c; color: #c9831c; }
.hero-art { position: relative; width: 100%; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.hero-badges span {
  font-size: .82rem; padding: .3rem .75rem; border-radius: 999px;
  background: #e7e5e0; color: #3d3a37;
}

@media (max-width: 860px) {
  .hero { padding: 40px 0 120px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 0 auto; }
}

/* ===== Sektionen ===== */
section { padding: 96px 0; }
.sect-head { margin-bottom: 48px; }
.alt { background: var(--bg-2); }

/* ===== Leistungen ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(232, 163, 58, .55); transform: translateY(-3px); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gold-dim); color: var(--gold);
  margin-bottom: 18px;
}
.card .ico svg { width: 26px; height: 26px; }
.card p { color: var(--fg-dim); font-size: .97rem; margin: 0; }
.card ul { color: var(--fg-dim); font-size: .95rem; margin: .6rem 0 0; padding-left: 1.1rem; }

/* ===== Feature (Home Assistant / evcc) ===== */
.feature { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.feature.reverse > :first-child { order: 2; }
.feature ul.check { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.feature ul.check li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--fg-dim); }
.feature ul.check li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--gold-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8a33a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat;
}
.feature ul.check strong { color: var(--fg); font-weight: 600; }
.mock-caption { font-size: .8rem; color: var(--fg-dim); text-align: center; margin-top: .8rem; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse > :first-child { order: 0; }
}

/* ===== Dashboard-Mockup ===== */
.mock {
  background: #0d0c0e;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(232,163,58,.06);
}
.mock-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c292d; display: block; }
.mock-bar b { margin-left: 10px; font-weight: 500; font-size: .78rem; color: var(--fg-dim); }
.dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile {
  background: var(--bg-3); border-radius: 12px; padding: 12px;
  font-size: .78rem; color: var(--fg-dim);
}
.tile .v { font-family: var(--head); font-size: 1.45rem; color: var(--fg); line-height: 1.1; margin-top: 4px; }
.tile .v small { font-size: .75rem; color: var(--fg-dim); margin-left: 2px; }
.tile.wide { grid-column: span 2; }
.tile.full { grid-column: 1 / -1; }
.tile .row { display: flex; justify-content: space-between; align-items: center; }
.pill { font-size: .68rem; padding: .1rem .5rem; border-radius: 999px; background: var(--gold-dim); color: var(--gold); }
.pill.on { background: rgba(92, 194, 138, .15); color: #5cc28a; }
.meter { height: 6px; background: #343135; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.meter span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.chart { margin-top: 8px; height: 90px; }
.toggles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.toggles div { background: #2b282c; border-radius: 10px; padding: 8px; text-align: center; font-size: .72rem; }
.toggles div.act { background: var(--gold-dim); color: var(--gold); }
@media (max-width: 520px) {
  .dash { grid-template-columns: repeat(2, 1fr); }
  .tile.wide { grid-column: span 2; }
}

/* ===== evcc-Mockup ===== */
.ev .flow { display: flex; height: 16px; border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.ev .flow span { display: block; height: 100%; }
.ev .legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .72rem; }
.ev .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.ev .car { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.ev .car svg { width: 70px; color: var(--fg-dim); }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.modes div { background: #2b282c; border-radius: 8px; padding: 7px 4px; text-align: center; font-size: .72rem; }
.modes div.act { background: var(--gold); color: #141214; font-weight: 600; }

/* ===== Ablauf ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--head); font-size: 2.4rem; color: var(--gold); display: block; line-height: 1; margin-bottom: .6rem;
}
.step p { color: var(--fg-dim); font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ===== Team ===== */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.person {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
}
.avatar {
  width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--head); font-size: 1.9rem; color: var(--gold);
  background: radial-gradient(circle at 30% 30%, #2e2a2f, #171518);
  border: 2px solid rgba(232,163,58,.5);
}
.person h3 { margin-bottom: .2rem; font-size: 1.5rem; }
.person .role { color: var(--gold); font-size: .95rem; margin-bottom: .9rem; }
.person p { color: var(--fg-dim); font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.tags span { font-size: .78rem; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-dim); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .person { grid-template-columns: 1fr; padding: 24px; } }

/* ===== Kontakt ===== */
.contact {
  position: relative;
  background: linear-gradient(135deg, #1d1a1c, #141214);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 56px; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.contact .net { position: absolute; right: -60px; top: -60px; width: 340px; opacity: .25; pointer-events: none; }
.contact dl { margin: 0; display: grid; gap: 1rem; position: relative; }
.contact dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-dim); }
.contact dd { margin: 0; font-size: 1.15rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--fg-dim); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer nav { display: flex; gap: 1.4rem; }
footer a { color: var(--fg-dim); }

/* ===== Rechtstexte ===== */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--fg-dim); }
.todo { background: var(--gold-dim); color: var(--gold); padding: .05rem .4rem; border-radius: 4px; }

/* ===== Einblenden beim Scrollen ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
