:root {
  color-scheme: light;
  --gold: #ffcc00;
  --gold-hot: #ffe14a;
  --gold-ink: #1c1500;
  --ink: #161616;
  --ink-soft: #2a2926;
  --paper: #f3efe6;
  --paper-2: #e8e2d4;
  --card: #fffcf6;
  --muted: #5f5a52;
  --line: #d4cdbe;
  --header: #111111;
  --header-text: #f6f1e4;
  --shadow: 0 18px 50px rgba(22, 22, 22, 0.1);
  --radius: 18px;
  --nav-h: 4.5rem;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --gold: #ffd21a;
    --gold-hot: #ffe85c;
    --gold-ink: #1a1400;
    --ink: #f4f0e6;
    --ink-soft: #ece6d8;
    --paper: #121212;
    --paper-2: #1b1b1b;
    --card: #1e1d1b;
    --muted: #b8b1a4;
    --line: #33302b;
    --header: #0b0b0b;
    --header-text: #f4f0e6;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --gold: #ffd21a;
  --gold-hot: #ffe85c;
  --gold-ink: #1a1400;
  --ink: #f4f0e6;
  --ink-soft: #ece6d8;
  --paper: #121212;
  --paper-2: #1b1b1b;
  --card: #1e1d1b;
  --muted: #b8b1a4;
  --line: #33302b;
  --header: #0b0b0b;
  --header-text: #f4f0e6;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] {
  color-scheme: light;
  --gold: #ffcc00;
  --gold-hot: #ffe14a;
  --gold-ink: #1c1500;
  --ink: #161616;
  --ink-soft: #2a2926;
  --paper: #f3efe6;
  --paper-2: #e8e2d4;
  --card: #fffcf6;
  --muted: #5f5a52;
  --line: #d4cdbe;
  --header: #111111;
  --header-text: #f6f1e4;
  --shadow: 0 18px 50px rgba(22, 22, 22, 0.1);
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100dvh;
  padding-bottom: 4.5rem;
}

@media (min-width: 800px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 800px) {
  .wrap {
    width: min(var(--max), calc(100% - 3rem));
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--header) 92%, transparent);
  backdrop-filter: blur(16px);
  color: var(--header-text);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  height: 42px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 0.2rem 0.4rem;
}

.brand-name {
  font-weight: 650;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  line-height: 1.15;
}

.brand-name span {
  display: block;
  font-weight: 450;
  font-size: 0.72rem;
  opacity: 0.72;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: none;
  gap: 1.4rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.88;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
  color: var(--gold-hot);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-phone {
  display: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gold-hot);
  padding: 0.4rem 0.2rem;
}

@media (min-width: 900px) {
  .header-phone {
    display: inline;
  }
}

.icon-btn,
.menu-btn {
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--header-text) 18%, transparent);
  background: transparent;
  color: var(--header-text);
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover,
.menu-btn:hover {
  border-color: var(--gold);
  color: var(--gold-hot);
}

.menu-btn {
  display: grid;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .brand-name {
    font-size: 1rem;
  }
}

.mobile-nav {
  display: none;
  padding: 0 1rem 1rem;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  text-decoration: none;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--header-text) 12%, transparent);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.2rem 0 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 1.75rem;
}

.hero-panel {
  order: -1;
}

@media (min-width: 900px) {
  .hero {
    padding: 3.5rem 0 4.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3rem;
  }

  .hero-panel {
    order: 0;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.kicker::before {
  content: "";
  width: 1.4rem;
  height: 3px;
  background: var(--gold);
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  font-size: clamp(2.05rem, 5.4vw, 4.1rem);
  max-width: 14ch;
  margin: 0.7rem 0 1rem;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
  min-height: 54px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: #e6b800;
  box-shadow: 0 8px 22px rgba(255, 204, 0, 0.45);
}

.btn-gold:hover {
  background: var(--gold-hot);
  box-shadow: 0 12px 28px rgba(255, 204, 0, 0.55);
}

.btn-call {
  background: #0b6bcb;
  color: #fff;
  border-color: #095aa9;
  box-shadow: 0 8px 22px rgba(11, 107, 203, 0.4);
}

.btn-call:hover {
  background: #095aa9;
  box-shadow: 0 12px 28px rgba(11, 107, 203, 0.5);
}

.btn-dark {
  background: var(--header);
  color: var(--header-text);
  border-color: color-mix(in srgb, var(--header-text) 22%, transparent);
}

.btn-whatsapp {
  background: #25d366;
  color: #083b1f;
  border-color: #1ebe5a;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background: #1fbe5a;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

html[data-theme="dark"] .btn-dark {
  background: #2a2926;
  color: var(--ink);
  border-color: var(--line);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-dark {
    background: #2a2926;
    color: var(--ink);
    border-color: var(--line);
  }
}

.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  background: #fff;
  border-radius: 12px;
}

/* Sections */
section {
  padding: 3.2rem 0;
}

@media (min-width: 900px) {
  section {
    padding: 4.5rem 0;
  }
}

.section-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
  max-width: 40rem;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.band {
  background: var(--paper-2);
}

.cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  pointer-events: none;
  z-index: 0;
}

html[data-theme="dark"] .card::after {
  background: color-mix(in srgb, var(--card) 72%, transparent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card::after {
    background: color-mix(in srgb, var(--card) 72%, transparent);
  }
}

.card-install::before {
  background-image: url("../images/foto-installation.png");
}

.card-measure::before {
  background-image: url("../images/foto-messung.png");
}

.card-accept::before {
  background-image: url("../images/foto-abnahme.png");
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.card-num {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.85rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  border: 1px solid color-mix(in srgb, var(--gold-ink) 18%, var(--gold));
}

.card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.55rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
  flex: 1;
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.card li::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  background: var(--gold);
  border-radius: 1px;
  transform: rotate(45deg);
}

.why {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .why {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.why-copy h2 {
  margin-bottom: 0.8rem;
}

.why-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.steps {
  display: grid;
  gap: 0.8rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.step b {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--gold);
  color: var(--gold-ink);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.step p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust {
  display: grid;
  gap: 0.8rem;
}

@media (min-width: 700px) {
  .trust {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust div {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.trust strong {
  display: block;
  margin-bottom: 0.25rem;
}

.trust span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.3rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.contact-card,
form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

html[data-theme="dark"] .contact-card,
html[data-theme="dark"] form {
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact-card,
  :root:not([data-theme="light"]) form {
    border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line));
  }
}

.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list a {
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--gold);
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-weight: 450;
  font-size: 0.88rem;
}

.contact-save {
  margin-top: 1.2rem;
  width: 100%;
}

.qr {
  display: none;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: center;
  justify-items: start;
}

.qr img {
  width: min(240px, 72vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem;
}

@media (min-width: 700px) {
  .qr {
    display: grid;
    grid-template-columns: 240px 1fr;
  }

  .contact-save {
    width: auto;
  }
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea {
  border: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line));
  background: #121212;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) input,
  :root:not([data-theme="light"]) textarea {
    border: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line));
    background: #121212;
  }
}

input:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 450;
  color: var(--muted);
  font-size: 0.88rem;
}

.consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
}

.form-msg {
  display: none;
  margin: 0.6rem 0 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
}

.form-msg.show {
  display: block;
}

.form-msg.ok {
  background: color-mix(in srgb, #2f7d4a 18%, var(--card));
}

.form-msg.err {
  background: color-mix(in srgb, #b42318 16%, var(--card));
}

/* Footer + legal */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.site-footer h2,
.site-footer h3 {
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 1.8rem 0 0.6rem;
}

.legal-page h3 {
  font-size: 1.02rem;
  margin: 1.1rem 0 0.4rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.back {
  display: inline-block;
  margin-bottom: 1.2rem;
  text-decoration: none;
  font-weight: 600;
}

/* Mobile CTA bar */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--header) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}

.mobile-cta a {
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  padding: 0.72rem 0.4rem;
  font-weight: 650;
  font-size: 0.92rem;
}

.mobile-cta .call {
  background: var(--gold);
  color: var(--gold-ink);
}

.mobile-cta .wa {
  background: #25d366;
  color: #083b1f;
}

@media (min-width: 800px) {
  .mobile-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card {
    transition: none;
  }
}
