/* ==========================================================================
   PBEV Website — Design System
   ========================================================================== */

/* Web-Schrift Jost (Variable Font), selbst gehostet aus /fonts – DSGVO-konform; primär Century Gothic als System-Schrift */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farbwelt analog Schweiz-Seite */
  --color-bg: #fbf9f4; /* paper */
  --color-text: #2b2b2b; /* ink */
  --color-text-muted: #585657; /* gray */
  --color-accent: #b8945a; /* gold */
  --color-accent-hover: #9a7842; /* gold-dark */
  --color-border: #e4dccc; /* line */
  --color-surface: #f5efe3; /* gold-pale */
  --color-accent-soft: #f5efe3; /* gold-pale */
  --color-accent-soft-strong: #e8d9bf; /* gold-light */
  --color-accent-text: #9a7842; /* gold-dark */
  --color-dark: #2b2a28; /* dunkle Sektionen */

  /* Aliase für Seiten mit eigener Token-Benennung (z.B. variantenvergleich.html) */
  --muted: #585657; /* gray */
  --line: #e4dccc; /* line */

  --font-sans:
    "Century Gothic", CenturyGothic, "URW Gothic", "Jost", "Avant Garde",
    sans-serif;

  --fs-hero: clamp(40px, 6vw, 64px);
  --fs-h2: clamp(28px, 4vw, 40px);
  --fs-h3: 22px;
  --fs-body: 17px;
  --fs-small: 14px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);

  --max-width: 1200px;
  --space-section: 96px;
  --space-hero-top: 96px;
  --space-hero-bottom: 64px;
  --space-container-x: 24px;
  --header-height: 72px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-hover);
}
button {
  font: inherit;
  cursor: pointer;
}
p {
  font-size: var(--fs-body);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-container-x);
  width: 100%;
}
.section {
  padding: var(--space-section) 0;
}
.section-muted {
  background: var(--color-surface);
}

/* Typography */
h1,
h2,
h3 {
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
}
h1 {
  font-size: var(--fs-hero);
}
h2 {
  font-size: var(--fs-h2);
  margin-bottom: 16px;
}
h3 {
  font-size: var(--fs-h3);
  margin-bottom: 8px;
}
.lead {
  font-size: 19px;
  color: var(--color-text-muted);
  max-width: 640px;
}
.text-muted {
  color: var(--color-text-muted);
}
.text-center {
  text-align: center;
}
.eyebrow {
  display: block;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.tag {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Spacing utilities */
.mt-md {
  margin-top: 32px;
}
.mt-lg {
  margin-top: 40px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-body);
  border: 1px solid transparent;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s,
    transform 0.25s;
  line-height: 1.2;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline {
  border-color: var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn[disabled],
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-row-center {
  justify-content: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 249, 244, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 10;
  height: var(--header-height);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
}
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text strong {
  font-size: 16px;
}
.brand-text small {
  font-size: 12px;
  color: var(--color-text-muted);
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover {
  color: var(--color-accent);
}
.main-nav a.active {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
}

/* Site Search */
.site-search {
  position: relative;
  margin-left: 16px;
}
.site-search-input {
  width: 220px;
  padding: 7px 14px 7px 34px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 16px;
  background: var(--color-surface);
  transition:
    border-color 0.2s,
    width 0.3s;
  outline: none;
}
.site-search-input:focus {
  border-color: var(--color-accent);
  width: 300px;
}
.site-search-input::placeholder {
  color: #aaa;
}
.site-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #999;
  pointer-events: none;
}
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 360px;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 100;
}
.search-dropdown.open {
  display: block;
}
.search-result {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.1s;
}
.search-result:last-child {
  border-bottom: none;
}
.search-result:hover,
.search-result-active {
  background: #f0f5ff;
}
.search-result-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.search-result-title mark {
  background: #ffeab6;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.search-result-page {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 2px;
}
.search-result-ctx {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.4;
}
.search-result-ctx mark {
  background: #ffeab6;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.search-result-action {
  border-left: 3px solid var(--color-accent);
}
.search-action-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--color-accent);
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.search-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Search highlight on target */
@keyframes search-flash {
  0% {
    background-color: #ffeab6;
    box-shadow: 0 0 0 4px #ffeab6;
  }
  100% {
    background-color: transparent;
    box-shadow: 0 0 0 4px transparent;
  }
}
.search-highlight {
  animation: search-flash 2.5s ease-out;
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 0 auto;
}

/* Hero — identical on every page */
.hero {
  padding: var(--space-hero-top) 0 var(--space-hero-bottom);
}

/* Hero-Unterkante (64px) + Section-Oberkante (96px) stapelten sich sonst
   zu ~160px Lücke zwischen Hero-Untertext und erstem Inhalt (Hinweis). */
.hero + .section {
  padding-top: 32px;
}
.hero .container {
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.08fr);
  gap: 56px;
  align-items: center;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  max-width: 900px;
  margin-bottom: 20px;
}
.hero p {
  max-width: 640px;
  margin-bottom: 0;
  font-size: 19px;
  color: var(--color-text-muted);
}
.hero .btn-row {
  margin-top: 32px;
}
.hero-media {
  position: relative;
}
.hero-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1.17 / 1;
  min-height: 520px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 18% 50%,
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.72) 34%,
      rgba(255, 255, 255, 0) 62%
    ),
    linear-gradient(115deg, #fdfaf6 0%, #f4ebdf 48%, #efe3d5 100%);
  box-shadow: 0 24px 48px rgba(79, 55, 32, 0.12);
}
.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.9) 27%,
      rgba(255, 255, 255, 0.22) 52%,
      rgba(79, 55, 32, 0.04) 100%
    ),
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 53%,
      rgba(255, 255, 255, 0.82) 53%,
      rgba(255, 255, 255, 0.48) 64%,
      transparent 64%,
      transparent 71%,
      rgba(255, 255, 255, 0.68) 71%,
      rgba(255, 255, 255, 0.36) 82%,
      transparent 82%
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(154, 107, 47, 0.12),
      rgba(154, 107, 47, 0) 26%
    );
}
.hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: 14% 8% auto auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(87, 125, 63, 0.82),
    rgba(62, 94, 46, 0.96)
  );
  filter: blur(10px);
  opacity: 0.74;
}
.hero-atmosphere::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 10%;
  width: 240px;
  height: 320px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.74),
    rgba(228, 214, 194, 0.34)
  );
  filter: blur(18px);
  border-radius: 28px;
}
.hero-plant {
  position: absolute;
  right: 11%;
  top: 8%;
  width: 120px;
  height: 150px;
  filter: blur(1px);
}
.hero-plant::before,
.hero-plant::after {
  content: "";
  position: absolute;
  border-radius: 80% 20% 75% 25%;
  background: linear-gradient(180deg, #6d914c, #486234);
  transform-origin: bottom left;
}
.hero-plant::before {
  width: 54px;
  height: 110px;
  right: 14px;
  top: 0;
  transform: rotate(24deg);
}
.hero-plant::after {
  width: 48px;
  height: 92px;
  left: 10px;
  top: 26px;
  transform: rotate(-14deg);
}
.hero-desk {
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(
    180deg,
    rgba(244, 235, 223, 0) 0%,
    rgba(226, 206, 182, 0.25) 8%,
    rgba(210, 182, 146, 0.6) 100%
  );
}
.hero-blueprint {
  position: absolute;
  left: 0;
  right: 16%;
  bottom: -1%;
  height: 28%;
  border-radius: 28px 28px 0 0;
  background:
    linear-gradient(transparent 0 95%, rgba(178, 158, 133, 0.38) 95% 100%),
    repeating-linear-gradient(
      0deg,
      rgba(196, 180, 153, 0.22) 0 2px,
      transparent 2px 30px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(196, 180, 153, 0.22) 0 2px,
      transparent 2px 42px
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97),
      rgba(249, 244, 237, 0.95)
    );
  box-shadow: 0 -12px 24px rgba(79, 55, 32, 0.05);
  transform: perspective(900px) rotateX(69deg);
  transform-origin: bottom center;
}
.hero-blueprint::after {
  content: "";
  position: absolute;
  inset: 22% 18% 22% 10%;
  background:
    linear-gradient(
      90deg,
      transparent 0 78%,
      rgba(154, 107, 47, 0.12) 78% 80%,
      transparent 80% 100%
    ),
    linear-gradient(
      0deg,
      transparent 0 70%,
      rgba(154, 107, 47, 0.1) 70% 72%,
      transparent 72% 100%
    );
}
.hero-helmet {
  position: absolute;
  right: 2%;
  bottom: 11%;
  width: 156px;
  height: 108px;
  background: linear-gradient(180deg, #fffdfa, #f1e4d3);
  border-radius: 88px 88px 26px 26px;
  box-shadow: 0 18px 30px rgba(79, 55, 32, 0.14);
}
.hero-helmet::before {
  content: "";
  position: absolute;
  inset: 10px 20px auto 20px;
  height: 54px;
  border-radius: 60px 60px 24px 24px;
  border: 2px solid rgba(194, 166, 127, 0.42);
}
.hero-helmet::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(224, 208, 187, 0.68);
}
.hero-cup {
  position: absolute;
  right: 0;
  bottom: 1%;
  width: 92px;
  height: 108px;
  background: linear-gradient(180deg, #fffefa, #f3e8db);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 12px 20px rgba(79, 55, 32, 0.12);
}
.hero-cup::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: -8px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(194, 166, 127, 0.34);
}
.hero-cup::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 28px;
  width: 24px;
  height: 34px;
  border: 4px solid rgba(194, 166, 127, 0.42);
  border-left: 0;
  border-radius: 0 18px 18px 0;
}
.hero-laptop {
  position: absolute;
  right: 12%;
  top: 28%;
  width: 56%;
  z-index: 2;
  transform: perspective(1200px) rotateY(-12deg) rotateX(7deg);
  transform-origin: center;
}
.hero-laptop-screen {
  position: relative;
  padding: 12px;
  background: linear-gradient(180deg, #201913, #070707);
  border-radius: 22px;
  box-shadow: 0 26px 36px rgba(15, 10, 6, 0.22);
}
.hero-laptop-screen::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 34%;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.hero-laptop-base {
  width: 108%;
  height: 16px;
  margin: -2px auto 0;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, #c8c8c8, #8f8f8f);
  box-shadow: 0 18px 28px rgba(66, 49, 30, 0.18);
}
.hero-app-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 18px;
  padding: 0 10px;
  border-bottom: 1px solid #ece1d3;
  background: #f7f1e9;
  border-radius: 12px 12px 0 0;
}
.hero-app-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ccb08b;
}
.hero-app-brand {
  margin-left: auto;
  width: 74px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d0a060, #8c6234);
}
.hero-app-body {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 262px;
  background: linear-gradient(180deg, #fffdfa, #fdf9f3);
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}
.hero-app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 10px;
  background: linear-gradient(180deg, #faf4ec, #f4eadc);
  border-right: 1px solid #ede1d0;
}
.hero-nav-pill {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ddc4a0, #e8d7bf);
}
.hero-nav-pill-active {
  width: 38px;
  background: linear-gradient(90deg, #8f6028, #c99650);
}
.hero-nav-pill:nth-child(2) {
  width: 46px;
}
.hero-nav-pill:nth-child(3) {
  width: 40px;
}
.hero-nav-pill:nth-child(4) {
  width: 44px;
}
.hero-nav-pill:nth-child(5) {
  width: 34px;
}
.hero-sidebar-badge {
  margin-top: auto;
  height: 54px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, #b88442, #7b5323);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.hero-app-main {
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
}
.hero-screen-carousel {
  position: relative;
  min-height: 244px;
  flex: 1;
}
.hero-screen-slide {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 1px solid #e5d7c5;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 10px 22px rgba(79, 55, 32, 0.06);
  color: var(--color-text);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.hero-screen-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.hero-screen-slide:hover {
  border-color: #c89a5d;
  box-shadow: 0 14px 28px rgba(79, 55, 32, 0.12);
}
.hero-screen-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.hero-screen-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(231, 217, 200, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-screen-caption strong {
  display: block;
  font-size: 13px;
  line-height: 1.1;
  color: #4f3720;
}
.hero-screen-caption small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b5d28;
  background: #f4e6d4;
}
.hero-screen-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.hero-screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddc7ab;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}
.hero-screen-dot.is-active {
  transform: scale(1.25);
  background: var(--color-accent);
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -18px rgba(88, 86, 87, 0.28);
}
.card:hover::before {
  transform: scaleX(1);
}
.card h3 {
  margin-top: 8px;
}
.card p {
  font-size: var(--fs-body);
}
.card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card ul {
  padding-left: 20px;
  margin: 12px 0;
  color: var(--color-text-muted);
}
.card ul li {
  margin-bottom: 4px;
  font-size: var(--fs-body);
}

/* Grids */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Logo wall */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
  align-items: center;
}
.logo-wall img,
.logo-wall .placeholder-img {
  width: 100%;
  height: 60px;
  aspect-ratio: auto;
  margin-bottom: 0;
}
.logo-wall img {
  object-fit: contain;
}
.logo-wall img:hover {
  opacity: 0.8;
}

/* Testimonial */
.testimonial {
  padding: 32px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
}
.testimonial blockquote {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 16px;
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
}
.testimonial cite small {
  display: block;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 4px;
}

/* Placeholder image box */
.placeholder-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  margin-bottom: 16px;
}
.content-visual {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-bottom: 16px;
}

/* Calculator (Auslegung) */
/* Accordion */
.calc-accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.calc-accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  background: var(--color-bg);
  list-style: none;
  transition: background 0.15s ease;
}
.calc-accordion-head::-webkit-details-marker {
  display: none;
}
.calc-accordion-head::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.calc-accordion[open] > .calc-accordion-head::after {
  transform: rotate(-135deg);
}
.calc-accordion-head:hover {
  background: var(--color-surface);
}
.calc-accordion-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}
.calc-accordion-preview {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-accent);
  /* Lange Vorschau-Texte (z. B. PLZ-Hinweis) auf schmalen Displays umbrechen */
  min-width: 0;
  text-align: right;
  margin-left: 12px;
  overflow-wrap: anywhere;
}
.calc-accordion[open] .calc-accordion-preview {
  display: none;
}
.calc-accordion-body {
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.calc-accordion-body--heizlast {
  grid-template-columns: 1fr;
}
.calc-accordion-body--heizlast .calc-shared {
  margin-bottom: 0;
}
.calc-shared {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.calc-shared .room-orientation {
  grid-template-columns: 1fr;
}
.calc-shared .wall-detail-panel {
  grid-column: 1 / -1;
}
.calc-accordion-body .calc-result:only-child {
  grid-column: 1 / -1;
}
.calc-form {
  display: grid;
  gap: 16px;
}
.calc-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 500;
  font-size: var(--fs-small);
}
.calc-form input,
.calc-form select {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px; /* ≥16px: verhindert Auto-Zoom beim Fokussieren auf iOS */
  background: #fff;
}
.calc-form input[readonly] {
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: default;
}
.wall-aussen-fields {
  display: grid;
  gap: 16px;
}
.wall-aussen-fields.collapsed {
  display: none;
}
.calc-form input:focus,
.calc-form select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -1px;
  border-color: var(--color-accent);
}
.calc-result {
  grid-column: 1 / -1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  align-self: start;
}
.calc-result .result-big {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
  margin: 8px 0 4px;
}
.calc-result .result-label {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.calc-result dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  margin-top: 24px;
  font-size: var(--fs-small);
}
.calc-result dt {
  color: var(--color-text-muted);
}
.calc-result dd {
  font-weight: 600;
  text-align: right;
}
.calc-result .dl-heading {
  font-weight: 600;
  color: var(--color-text);
}
.calc-result dd.dl-heading {
  font-weight: 700;
}
.calc-result .dl-sub {
  padding-left: 12px;
  font-size: 0.9em;
  opacity: 0.8;
}
.calc-result .dl-sep {
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}
.dl-solar-details {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0 4px 12px;
  font-size: 0.85em;
}
.solar-dir-row {
  display: block;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.solar-dir-row strong {
  color: var(--color-text);
  min-width: 70px;
  display: inline-block;
}
.calc-disclaimer {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  color: #78350f;
  margin-bottom: 32px;
}
.checkbox-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
/* Fieldset-Default min-width:min-content verhindert Schrumpfen — Inhalte
   ragen sonst auf schmalen Screens aus dem Viewport (Geräteliste ebenso wie
   die hkd-Fieldsets des derzeit ausgeblendeten Decken-Rechners). */
.calc-form fieldset {
  min-width: 0;
}

.geraete-liste {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.geraete-liste legend {
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 0 4px;
  width: 100%;
}
.geraete-liste .ger-chip {
  display: flex;
  /* .calc-form label stapelt Label-Inhalte als Spalte — Chips muessen
     explizit Zeile bleiben (und die Selektor-Spezifitaet gewinnen). */
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: var(--fs-small);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  background: var(--color-bg);
  /* nie unter Inhaltsbreite quetschen — sonst ragt die Schrift aus dem Oval;
     zu breite Chips brechen stattdessen im Gerätenamen um (.ger-name) */
  flex-shrink: 0;
  max-width: 100%;
}
.geraete-liste .ger-chip:hover {
  border-color: var(--color-accent);
}
.geraete-liste .ger-chip.on {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.ger-count {
  flex-shrink: 0;
  width: 58px;
  padding: 4px 4px 4px 8px;
  font: inherit;
  font-size: 16px; /* ≥16px: kein iOS-Auto-Zoom */
  text-align: center;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.ger-count:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 148, 90, 0.18);
}
.geraete-liste .ger-chip.on .ger-count {
  border-color: #fff;
}
.ger-name {
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ger-watt {
  white-space: nowrap;
  font-weight: 600;
  opacity: 0.65;
  font-size: 0.85em;
}
/* HKD form layout */
.calc-form--hkd {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hkd-row {
  display: grid;
  gap: 16px;
}
.hkd-row-top {
  grid-template-columns: repeat(4, 1fr);
}
.hkd-row-temps {
  grid-template-columns: 1fr 1fr;
}
.hkd-fieldset {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.hkd-fieldset legend {
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-accent);
  padding: 0 6px;
}
.hkd-temp-heizen {
  border-color: #d4432833;
}
.hkd-temp-heizen legend {
  color: #d44328;
}
.hkd-temp-kuehlen {
  border-color: #2878d433;
}
.hkd-temp-kuehlen legend {
  color: #2878d4;
}
.btn-hkd-link {
  background: none;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8em;
  color: var(--color-accent);
  cursor: pointer;
  text-align: center;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn-hkd-link:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
}
.hkd-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hkd-main-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: stretch;
}
.hkd-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.hkd-plate-preview {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  min-height: 500px;
}
.hkd-plate-preview svg {
  display: block;
  width: 100%;
  height: auto;
}
.hkd-result-heizen {
  border-left: 3px solid #d44328;
}
.hkd-result-kuehlen {
  border-left: 3px solid #2878d4;
}
.calc-result--hkd .result-big {
  font-size: 32px;
}
.hkd-auto-info {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-accent);
  text-align: center;
}
.hkd-auto-info:empty {
  display: none;
}
.hkd-hinweis {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  padding: 8px 0;
  min-height: 1.2em;
}
.hkd-hinweis:empty {
  display: none;
}
@media (max-width: 900px) {
  .hkd-main-row {
    grid-template-columns: 1fr;
  }
  .hkd-plate-preview {
    position: static;
    max-width: 280px;
  }
}
@media (max-width: 1000px) {
  .hkd-row-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 800px) {
  .hkd-row-top {
    grid-template-columns: 1fr;
  }
  .hkd-row-temps {
    grid-template-columns: 1fr;
  }
}
/* Tile Selection */
.tile-group {
  grid-column: 1 / -1;
}
.tile-group-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 8px;
}
.tile-row {
  display: flex;
  gap: 10px;
}
.tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
.tile:hover {
  border-color: var(--color-accent-soft-strong);
  background: #fdf8f1;
}
.tile-active {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.tile-icon {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  line-height: 1;
}
.tile-active .tile-icon {
  color: var(--color-accent);
}
.tile-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.tile-active .tile-text {
  color: var(--color-accent);
}
.tile-row-sm {
  gap: 8px;
  margin-bottom: 12px;
}
.tile-shape {
  padding: 8px 6px;
  gap: 4px;
}
.shape-icon {
  width: 36px;
  height: 28px;
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 2;
}
.tile-active .shape-icon {
  stroke: var(--color-accent);
  fill: var(--color-accent-soft);
}

.info-hint {
  background: var(--color-accent-soft);
  border-left: 3px solid var(--color-accent);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-accent-text);
  line-height: 1.5;
}

/* Room Orientation (Grundriss + Gebäudeschnitt) */
.room-orientation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.room-editor,
.building-section {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--color-surface);
}
.room-editor-title {
  font-size: var(--fs-small);
  font-weight: 600;
  margin: 0 0 16px;
  text-align: center;
}
.room-compass-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
.compass-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.compass-btn:hover {
  background: var(--color-surface);
}
.compass-indicator {
  font-weight: 700;
  font-size: 15px;
  min-width: 40px;
  text-align: center;
}
.room-view {
  position: relative;
  width: 100%;
  height: 280px;
  margin: 0 auto;
}
#room-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.svg-floor {
  fill: #fff;
  stroke: none;
}
.svg-wall {
  fill: #d1d5db;
  cursor: pointer;
  transition: fill 0.15s;
  rx: 2;
}
.svg-wall:hover {
  fill: var(--color-accent-soft-strong);
}
.svg-wall-active {
  fill: var(--color-accent);
}
.svg-wall-selected {
  stroke: #f59e0b;
  stroke-width: 3;
}
.svg-floor-selected {
  stroke: #f59e0b;
  stroke-width: 3;
  fill: var(--color-accent-soft);
}
.svg-dims {
  font-size: 13px;
  fill: var(--color-text-muted);
  font-weight: 500;
  font-family: inherit;
}
.dim-ext {
  stroke: #9ca3af;
  stroke-width: 0.5;
}
.dim-line {
  stroke: #374151;
  stroke-width: 0.7;
}
.dim-tick {
  stroke: #374151;
  stroke-width: 1.2;
}
.dim-text {
  font-size: 10px;
  fill: #374151;
  font-family: inherit;
  font-weight: 600;
  pointer-events: none;
}

/* Wall Detail Panel */
.wall-detail-panel {
  grid-column: 1 / -1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--color-surface);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0 20px;
}
.wall-detail-panel > .room-editor-title {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}
.wall-detail-view {
  grid-column: 2;
  grid-row: 2;
  min-height: 200px;
}
#wall-svg {
  width: 100%;
  height: 220px;
  display: block;
}
.svg-wall-face {
  fill: #e5e7eb;
  stroke: #94a3b8;
  stroke-width: 2;
}
.svg-window {
  fill: #ead9bb;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  rx: 2;
}
.svg-door {
  fill: #fde68a;
  stroke: #d97706;
  stroke-width: 1.5;
  rx: 1;
}
.svg-dim-line {
  stroke: #94a3b8;
  stroke-width: 1;
  stroke-dasharray: 4 2;
}
.svg-dim-text {
  font-size: 11px;
  fill: var(--color-text-muted);
  font-family: inherit;
  text-anchor: middle;
}
.wall-detail-fields {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-self: start;
}
.wall-detail-fields .checkbox-group {
  grid-column: 1 / -1;
}
.wall-detail-fields label {
  font-size: var(--fs-small);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wall-detail-fields input {
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 16px; /* ≥16px: kein iOS-Auto-Zoom */
}
.room-label {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  pointer-events: none;
}
.label-top {
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
}
.label-bottom {
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
}
.label-left {
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
}
.label-right {
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
}
.label-top-right {
  top: -14px;
  right: -20px;
}
.label-bottom-right {
  bottom: -14px;
  right: -20px;
}
.label-bottom-left {
  bottom: -14px;
  left: -20px;
}
.label-top-left {
  top: -14px;
  left: -20px;
}
.label-top-right,
.label-bottom-right,
.label-bottom-left,
.label-top-left {
  font-size: 10px;
  opacity: 0.7;
}
.room-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  font-size: 13px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-swatch {
  display: inline-block;
  width: 20px;
  height: 10px;
  border-radius: 2px;
}
.swatch-aussen {
  background: var(--color-accent);
}
.swatch-innen {
  background: #d1d5db;
}

/* Building Section (Gebäudeschnitt) */
.building-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(160px, 80%);
  margin: 0 auto;
}
.building-above {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}
.roof-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: -1px;
}
.building-roof {
  width: 0;
  height: 0;
  border: none;
  border-left: min(80px, 25vw) solid transparent;
  border-right: min(80px, 25vw) solid transparent;
  border-bottom: 40px solid #94a3b8;
  background: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: border-bottom-color 0.15s;
  outline: none;
}
.building-roof:hover {
  border-bottom-color: #7393ba;
}
.building-roof.floor-active {
  border-bottom-color: var(--color-accent);
}
.building-roof::after {
  content: "DG";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  pointer-events: none;
}
.building-roof.floor-active::after {
  color: #fff;
}
.floor-btn {
  width: 100%;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-top: 2px solid #94a3b8;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
  padding: 0;
}
.floor-btn:hover {
  background: #e2e8f0;
}
.floor-btn.floor-active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}
.floor-btn:last-child {
  border-bottom: 2px solid #94a3b8;
}
.building-ground {
  width: 100%;
  height: 0;
  border-top: 3px dashed #78716c;
  margin: 0;
  position: relative;
}
.building-ground::after {
  content: "Gelände";
  position: absolute;
  right: -56px;
  top: -10px;
  font-size: 11px;
  color: #78716c;
  font-weight: 500;
}
.floor-underground {
  background: #e7e5e4 !important;
  border-color: #a8a29e !important;
}
.floor-underground:hover {
  background: #d6d3d1 !important;
}
.floor-underground.floor-active {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: #fff;
}
.floor-hidden {
  display: none;
}
.building-roof.flachdach {
  border-left: 0;
  border-right: 0;
  border-bottom: none;
  width: 100%;
  height: 6px;
  background: #374151;
  cursor: default;
  pointer-events: none;
}
.building-roof.flachdach::after {
  display: none;
}
.building-roof.flachdach:hover {
  border-bottom-color: #94a3b8;
}
.building-roof.flachdach.floor-active {
  border-bottom-color: #94a3b8;
}
.building-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* Help trigger button */
.help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: var(--color-accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 8px;
  transition:
    background 0.2s,
    transform 0.2s;
  line-height: 1;
}
.help-trigger:hover {
  background: #fff;
  color: var(--color-accent);
  transform: scale(1.1);
}

/* Tipps Popup */
.tipps-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tipps-overlay.hidden {
  display: none;
}
.tipps-popup {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.tipps-popup h2 {
  margin-bottom: 20px;
}
.tipps-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.tipps-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.tipps-nr {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.tipps-step strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.tipps-step p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}
.tipps-close {
  width: 100%;
}

/* Stats Row */
.section-dark {
  background: var(--color-text);
  color: #fff;
  padding: var(--space-section) 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.stat-label {
  display: block;
  font-size: var(--fs-small);
  color: #9ca3af;
  margin-top: 4px;
}

/* About Row */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-img .placeholder-img {
  aspect-ratio: 4/3;
  min-height: 240px;
}
.about-img .content-visual {
  aspect-ratio: 4/3;
  min-height: 240px;
}
.about-text p {
  font-size: var(--fs-body);
  line-height: 1.7;
}
.about-text ul {
  padding-left: 20px;
  margin-top: 8px;
}
.about-text ul li {
  margin-bottom: 4px;
  font-size: var(--fs-body);
}
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  min-height: 280px;
  background: var(--color-bg-alt, #f5f5f5);
}
.map-consent p {
  max-width: 400px;
  margin-bottom: 12px;
}
.map-consent .btn {
  margin-top: 8px;
}

/* Podcast */
.podcast-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.podcast-episode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.podcast-nr {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}
.podcast-title {
  margin: 4px 0 6px;
}
.podcast-info {
  flex: 1;
}
.podcast-info .text-muted {
  font-size: var(--fs-small);
}
.podcast-player {
  flex-shrink: 0;
}
.podcast-player audio {
  width: 280px;
}

/* AI Notice */
.ai-notice {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* Coming Soon Badge */
.badge-soon {
  display: inline-block;
  margin-top: auto;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
}

/* ==================== Blog & Bibliothek ==================== */

/* Blog-Navigation (Sprunglinks) */
.blog-nav {
  padding: 0;
}
.blog-nav .container {
  padding-top: 0;
  padding-bottom: 0;
}
.blog-nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.blog-nav-links a {
  padding: 8px 20px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}
.blog-nav-links a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* Blog-Filter */
.blog-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-filter-btn {
  padding: 6px 16px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.blog-filter-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.blog-filter-btn.active {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Blog-Grid (Social Media Karten) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.blog-card {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.blog-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.blog-card.hidden {
  display: none;
}
.blog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.blog-card-header time {
  font-size: 12px;
  color: var(--color-text-muted);
}
.blog-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.35;
}
.blog-card .text-muted {
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* Plattform-Badges */
.blog-platform {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
}
.blog-platform-li {
  color: #744d24;
  background: #f3e7d6;
}
.blog-platform-ig {
  color: #8a5c30;
  background: #f7eee2;
}

/* Tags */
.blog-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.blog-tag {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 999px;
}

/* Bibliothek-Grid */
.bib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.bib-topic {
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.bib-topic:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.bib-topic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bib-topic-header h3 {
  font-size: 20px;
}
.bib-norm {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.bib-topic .text-muted {
  font-size: var(--fs-small);
  line-height: 1.6;
  margin-bottom: 14px;
}
.bib-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bib-links li {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  padding: 6px 0;
  border-top: 1px solid var(--color-border);
  line-height: 1.5;
}
.bib-links li strong {
  color: var(--color-text);
}
.bib-link-calc {
  display: inline-block;
  margin-top: 14px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-accent);
}
.bib-link-calc:hover {
  text-decoration: underline;
}

/* Bibliothek Kategorien */
/* Bibliothek — Kategorien */
.bib-category {
  grid-column: 1 / -1;
}
.bib-category + .bib-category {
  margin-top: 8px;
}
.bib-cat-details {
  border-bottom: 1px solid var(--color-border);
}
.bib-category-title {
  font-size: 17px;
  font-weight: 600;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  user-select: none;
}
.bib-category-title::-webkit-details-marker {
  display: none;
}
.bib-category-title::before {
  content: "›";
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
  transition: transform 0.2s;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.bib-cat-details[open] > .bib-category-title::before {
  transform: rotate(90deg);
}
.bib-norm {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Bibliothek — Einträge als Liste */
.bib-topic-list {
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
}
.bib-entry {
  padding: 6px 0 6px 24px;
  position: relative;
}
.bib-entry::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-muted);
}
.bib-entry-title {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
}
.bib-entry-status {
  display: none;
}

/* Bibliothek — aufklappbare Artikel */
.bib-entry--full {
  padding-left: 0;
}
.bib-entry--full::before {
  display: none;
}
.bib-details {
  width: 100%;
}
.bib-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0 6px 24px;
  position: relative;
}
.bib-summary::-webkit-details-marker {
  display: none;
}
.bib-summary::before {
  content: "▸";
  position: absolute;
  left: 4px;
  font-size: 12px;
  color: var(--color-accent);
  transition: transform 0.2s;
}
.bib-details[open] > .bib-summary::before {
  transform: rotate(90deg);
}
.bib-summary .bib-entry-title {
  font-weight: 500;
  margin-bottom: 0;
}
.bib-text {
  margin: 8px 0 12px 24px;
  padding: 16px 20px;
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.bib-text p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 12px;
}
.bib-text p:last-child {
  margin-bottom: 0;
}
.bib-faq {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.bib-faq-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.bib-faq-list {
  columns: 2;
  column-gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.bib-faq-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  padding: 3px 0;
  break-inside: avoid;
}
@media (max-width: 768px) {
  .bib-faq-list {
    columns: 1;
  }
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: #e8d9bf; /* gold-light */
  margin-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 64px 0 32px;
}
.footer-col strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
}
.footer-col p {
  color: #e8d9bf;
  opacity: 0.8;
  font-size: var(--fs-small);
}
.footer-col a {
  color: #fff;
}
.footer-col a:hover {
  color: var(--color-accent);
}
.footer-bottom {
  border-top: 1px solid rgba(232, 217, 191, 0.2);
  padding: 20px 0;
}
.footer-bottom small {
  color: #e8d9bf;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --space-section: 64px;
    --space-hero-top: 56px;
    --space-hero-bottom: 40px;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .about-row {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-scene {
    aspect-ratio: 16 / 11;
    min-height: 0;
  }
  .hero-laptop {
    right: 11%;
    top: 25%;
    width: 58%;
  }
  .hero-helmet {
    width: 116px;
    height: 82px;
  }
  .hero-cup {
    width: 70px;
    height: 86px;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px var(--space-container-x);
    gap: 16px;
  }
  .main-nav.open {
    display: flex;
  }
  .calc-shared {
    grid-template-columns: 1fr;
  }
  .calc-accordion-body {
    grid-template-columns: 1fr;
  }
  .room-orientation {
    grid-template-columns: 1fr;
  }
  /* Wand-Detail-Panel auf schmalen Displays einspaltig stapeln –
     sonst wurde die rechte Spalte (Fenster-/Tür-Felder) abgeschnitten. */
  .wall-detail-panel {
    grid-template-columns: 1fr;
  }
  .wall-detail-view {
    grid-column: 1;
    grid-row: auto;
  }
  .wall-detail-fields {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: clamp(32px, 8vw, 40px);
  }
  .blog-grid,
  .bib-grid {
    grid-template-columns: 1fr;
  }
  .blog-nav-links {
    flex-wrap: wrap;
  }
  .site-search {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
  }
  .site-search-input {
    width: 100%;
  }
  .site-search-input:focus {
    width: 100%;
  }
  .search-dropdown {
    min-width: 0;
    left: 0;
    right: 0;
  }
  .bib-summary {
    padding-left: 20px;
  }
  .bib-text {
    margin-left: 20px;
    padding: 12px 16px;
  }
}


/* ---- Touch-Optimierung (Smartphone/Tablet) ---- */
/* manipulation: kein Doppeltipp-Zoom — wichtig, weil erneutes Antippen einer
   Wand die Außenwand umschaltet und iOS sonst stattdessen zoomt. */
#room-svg,
#wall-svg,
.tile,
.tile-shape,
.geraete-liste .ger-chip,
.floor-btn,
.calc-accordion-head {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* Unsichtbare, vergrößerte Trefferfläche unter jeder Grundriss-Wand (aus auslegung.js) */
.svg-wall-hit {
  fill: transparent; /* muss gemalt sein (nicht none), sonst kein Hit-Testing */
  cursor: pointer;
}
/* Größere Tipp-Ziele auf Touch-Geräten */
@media (pointer: coarse) {
  .geraete-liste .ger-chip { padding: 10px 16px; }
  .tile-shape { padding: 12px 10px; }
  .tile { padding: 16px 10px; }
}