/* Liebner-Digital
   Layout: ruhige, zentrierte Bühne oben, danach linksbündige Inhaltsspalten auf 1080px.
   Weiß und Hellgrau tragen die Seite, ein schwarzer Abschnitt gehört dem Smart Home,
   das Marineblau aus dem Logo bleibt Links, Schaltflächen und dem Fuß vorbehalten. */
:root {
  --paper: #ffffff;
  --mist: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0b57d0;
  --blue-dark: #0a3f9c;
  --navy: #02132d;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.012em; }
p { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; mix-blend-mode: multiply; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }
.nav-links a { color: var(--ink); opacity: 0.85; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links .nav-cta { background: var(--ink); color: #fff; opacity: 1; padding: 7px 15px; border-radius: 999px; }
.nav-links .nav-cta:hover { background: #000; }
@media (max-width: 720px) {
  .nav-links { gap: 18px; }
  .nav-links .optional { display: none; }
  .brand img { height: 26px; }
}

/* Schaltflächen */
.btn {
  display: inline-block; font: inherit; font-weight: 500; cursor: pointer;
  background: var(--blue); color: #fff; border: 0;
  padding: 13px 24px; border-radius: 999px;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--blue); padding-left: 8px; padding-right: 8px; }
.btn-quiet:hover { background: transparent; text-decoration: underline; }

/* Bühne */
.hero { padding: clamp(56px, 9vw, 110px) 0 0; text-align: center; }
.hero .lead { max-width: 44rem; margin: 22px auto 0; font-size: clamp(1.15rem, 2.1vw, 1.45rem); line-height: 1.4; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 30px; }
.hero figure { margin: clamp(40px, 6vw, 72px) auto 0; max-width: 1200px; padding: 0 22px; }
.hero figure img { width: 100%; border-radius: clamp(16px, 2.6vw, 30px); }

/* Abschnitte */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-mist { background: var(--mist); }
.section-dark { background: #000; color: #f5f5f7; }
.section-head { max-width: 46rem; }
.section-head p { margin-top: 18px; font-size: 1.2rem; line-height: 1.45; color: var(--muted); }
.section-dark .section-head p { color: #a1a1a6; }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.about-text { display: grid; gap: 20px; font-size: 1.2rem; line-height: 1.55; max-width: 38rem; }
.about-text .sign { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* Geschäftsfelder */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; list-style: none; }
.fields li { border-top: 1px solid var(--line); padding: 30px 0 38px; display: grid; gap: 10px; align-content: start; }
.fields p { color: var(--muted); max-width: 30rem; }
.fields .scope { color: var(--ink); font-size: 0.94rem; }
@media (max-width: 760px) { .fields { grid-template-columns: 1fr; } }

/* Vorher und nachher */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: clamp(36px, 5vw, 56px); }
.pair figure { margin: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pair figcaption { padding: 22px 26px 28px; display: grid; gap: 6px; }
.pair figcaption strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.pair figcaption span { color: var(--muted); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* Smart Home */
.home-shot { margin: clamp(36px, 5vw, 60px) 0 0; }
.home-shot img { width: 100%; border-radius: var(--radius); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin-top: 44px; }
.facts h3 { font-size: 1.2rem; }
.facts p { margin-top: 8px; color: #a1a1a6; }
.note { margin-top: 40px; padding-top: 22px; border-top: 1px solid #333336; color: #a1a1a6; font-size: 0.95rem; max-width: 46rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* Zwei Spalten: Schulungen und Fachbetriebe */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.duo div { display: grid; gap: 14px; align-content: start; }
.duo p { color: var(--muted); max-width: 30rem; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* Fragen */
.faq { margin-top: clamp(32px, 5vw, 52px); max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.7rem; font-weight: 300; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 26px 0; color: var(--muted); max-width: 42rem; }

/* Kontakt */
.contact { text-align: center; }
.contact .mail { display: inline-block; margin-top: 26px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; font-size: clamp(1.5rem, 5.2vw, 3.4rem); line-height: 1.1; overflow-wrap: anywhere; }
.contact .sub { margin: 18px auto 0; max-width: 34rem; color: var(--muted); font-size: 1.15rem; }
.copy { margin-top: 14px; background: none; border: 0; font: inherit; font-size: 0.95rem; color: var(--blue); cursor: pointer; padding: 6px 10px; }
.copy:hover { text-decoration: underline; }
.form { margin: 48px auto 0; max-width: 560px; text-align: left; background: var(--paper); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.form h3 { font-size: 1.3rem; }
.form label { display: grid; gap: 7px; font-size: 0.92rem; font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #86868b; border-radius: 12px; padding: 12px 14px; width: 100%;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(11, 87, 208, 0.35); border-color: var(--blue); }
.form .hint { font-size: 0.88rem; color: var(--muted); }
.form .btn { justify-self: start; }
.form-status { font-size: 0.95rem; color: var(--ink); min-height: 1.4em; }

/* Fuß */
.footer { background: var(--navy); color: #c5cfdd; font-size: 0.9rem; padding: 56px 0 40px; }
.footer a { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.footer-logo { width: 300px; max-width: 70%; -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 55%, transparent 100%); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; font-size: 1rem; }
.footer-meta { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 8px; max-width: 52rem; }

/* Rechtstexte */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.legal h2 { font-size: 1.45rem; letter-spacing: -0.012em; line-height: 1.25; margin: 44px 0 12px; }
.legal p, .legal ul, .legal address { margin: 0 0 14px; font-style: normal; }
.legal ul { padding-left: 22px; }
.legal .stand { color: var(--muted); }
.todo { background: #fff3bf; border-radius: 4px; padding: 1px 5px; }
