/* RaumPlan – Produktwebseite. Nur Systemschriften, keine externen Dateien (keine Datenübertragung an Dritte). */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --text: #121a2b;
  --muted: #55607a;
  --line: #dbe1ec;
  --blue: #1f5fc9;
  --blue-dark: #12398f;
  --blue-soft: #e5edfb;
  --accent: #f5c84c;
  --plan: #e0682b;
  --ph-bg: #fff3c4;
  --ph-text: #6b4e00;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18, 26, 43, .06), 0 8px 28px rgba(18, 26, 43, .08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1220;
    --surface: #161d2f;
    --surface-2: #1c2539;
    --text: #e8ecf5;
    --muted: #9aa5bf;
    --line: #2a344b;
    --blue: #5b93ee;
    --blue-dark: #3d74d6;
    --blue-soft: #1a2a4a;
    --ph-bg: #4a3a08;
    --ph-text: #ffe28a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--blue); text-underline-offset: 2px; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 750; margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 4px 18px; margin-left: auto; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* Startbereich */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; padding: 0; list-style: none; }
.pills li { background: var(--blue-soft); color: var(--blue); border-radius: 999px; padding: 4px 12px; font-size: .9rem; font-weight: 600; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 12px 20px; font-weight: 650; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.hero-shots { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.hero-shots .device:nth-child(2) { margin-top: 48px; }

/* Platzhalter */
mark.ph { background: var(--ph-bg); color: var(--ph-text); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.ph-note { background: var(--ph-bg); color: var(--ph-text); border-radius: 12px; padding: 10px 14px; font-size: .92rem; margin: 0 0 20px; }
.shot { position: relative; }
.shot::after {
  content: attr(data-ph);
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  background: var(--accent); color: #3a2a00; font: 700 10px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Geräterahmen */
.device { background: #111827; border-radius: 42px; padding: 10px; box-shadow: var(--shadow); width: 250px; flex: none; }
.device svg { border-radius: 33px; width: 100%; height: auto; }
.device.small { width: 210px; }
.device img { border-radius: 33px; width: 100%; height: auto; display: block; }
.laptop .lid img { border-radius: 6px; width: 100%; height: auto; }
.vision img { width: 100%; height: auto; }
.laptop { width: 100%; max-width: 620px; }
.laptop .lid { background: #111827; border-radius: 18px 18px 6px 6px; padding: 12px; }
.laptop .lid svg { border-radius: 6px; width: 100%; height: auto; }
.laptop .base { height: 14px; background: linear-gradient(#c9ced8, #9aa1ae); border-radius: 0 0 16px 16px; margin: 0 -4%; }
.vision { width: 100%; max-width: 620px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.vision svg { width: 100%; height: auto; }

/* Abschnitte */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; scroll-snap-align: start; flex: none; }
.gallery figcaption { margin-top: 12px; font-size: .92rem; color: var(--muted); max-width: 250px; }
.gallery figcaption strong { display: block; color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; }
.card p, .card li { color: var(--muted); font-size: .97rem; }
.card ul { padding-left: 1.1em; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.rev > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 30px; position: relative; margin: 0 0 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%231f5fc9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
table.req { width: 100%; border-collapse: collapse; font-size: .97rem; }
table.req th, table.req td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.req th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.callout { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; padding: 14px 18px; }

/* Textseiten */
.page { padding: 48px 0 64px; }
.page h2 { font-size: 1.4rem; margin-top: 2em; }
.page h3 { margin-top: 1.6em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }
.meta { color: var(--muted); font-size: .92rem; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 650; padding: 12px 0; list-style-position: inside; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details p:last-child { margin-bottom: 14px; }
.contact { background: var(--blue-soft); border-radius: var(--radius); padding: 24px; margin-top: 32px; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 40px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  .nav { margin-left: 0; width: 100%; padding-bottom: 8px; }
  .device { width: 200px; border-radius: 34px; padding: 8px; }
  .device svg, .device img { border-radius: 27px; }
  .hero-shots .device:nth-child(2) { display: none; }
  .gallery figcaption { max-width: 200px; }
}

/* Kurzinfo zum Drucken */
@media print {
  .site-header, .site-footer, .noprint { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  section, .page { padding: 0; }
  a { color: #000; }
  .card { break-inside: avoid; }
  .split { grid-template-columns: 1.1fr .9fr !important; gap: 24px; }
  .device.small { width: 150px; padding: 7px; border-radius: 28px; }
  .device.small svg, .device.small img { border-radius: 22px; }
  .shot::after { font-size: 7px; padding: 3px 6px; }
  h1 { font-size: 26pt !important; }
  .lead { font-size: 12.5pt; }
}

/* Bildergalerie (Mac, Vision Pro): Wischen oder Pfeile/Punkte */
.slider { width: 100%; max-width: 620px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.slide img { display: block; width: 100%; height: auto; }
.laptop .lid .slides { border-radius: 6px; }
.slider .laptop, .slider .vision { max-width: none; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.slider-nav .prev, .slider-nav .next { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.slider-nav .prev:hover:not(:disabled), .slider-nav .next:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.slider-nav button:disabled { opacity: .35; cursor: default; }
.dots { display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--blue); }
.slider:not(.js) .slider-nav { display: none; }
@media print { .slider-nav { display: none; } .slide + .slide { display: none; } }
