:root {
  --demo-light: .66;
}

.sense-page {
  --sense-blue: #1477e8;
  --sense-green: #24b76c;
  --sense-orange: #ff7d22;
  --sense-purple: #9a65df;
  --sense-text: #edf5ff;
  --sense-muted: #96abc3;
  --sense-border: rgba(125, 157, 194, .20);

  width: min(1540px, calc(100% - 54px));
  margin: 0 auto;
  padding: 28px 0 65px;
}

.breadcrumb {
  display: flex;
  gap: 12px;
  margin-bottom: 45px;
  color: #8da3bc;
  font-size: 14px;
}

.breadcrumb a {
  color: #4aa5ff;
  text-decoration: none;
}

.sense-hero {
  min-height: 790px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 520px);
  gap: 80px;
  align-items: center;
  padding-bottom: 90px;
}

.eyebrow,
.section-label {
  color: #2795ff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .12em;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 18px 0 28px;
  color: var(--sense-text);
  font-size: clamp(54px, 6vw, 94px);
  line-height: .98;
  letter-spacing: -.06em;
}

.hero-copy > p,
.section-heading p,
.architecture-section > div > p,
.sense-footer-cta p {
  max-width: 780px;
  color: var(--sense-muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 35px;
}

.primary-action,
.secondary-action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
}

.primary-action {
  background: linear-gradient(135deg, #178cf4, #315fdc);
  color: white;
  box-shadow: 0 18px 42px rgba(22, 128, 234, .25);
}

.secondary-action {
  border: 1px solid var(--sense-border);
  background: rgba(14, 31, 51, .65);
  color: #deecfb;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 48px;
}

.hero-meta div {
  display: grid;
  gap: 5px;
}

.hero-meta strong {
  color: #f0f6ff;
  font-size: 20px;
}

.hero-meta span {
  color: #839ab5;
  font-size: 12px;
}

.hero-panel {
  position: relative;
  display: grid;
  justify-items: center;
}

.panel-glow {
  position: absolute;
  top: 100px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 137, 243, .34), transparent 66%);
  filter: blur(26px);
}

.device-shell {
  position: relative;
  width: min(390px, 84vw);
  aspect-ratio: 9 / 16;
  padding: 17px;
  border: 1px solid rgba(189, 207, 226, .48);
  border-radius: 38px;
  background: linear-gradient(145deg, #eef2f5, #aeb8c2 45%, #707b86);
  box-shadow:
    0 50px 85px rgba(0, 0, 0, .48),
    inset 0 1px rgba(255, 255, 255, .9);
}

.device-camera {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #79838e;
  transform: translateX(-50%);
}

.device-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 25px;
  transition: background .25s ease, color .25s ease;
}

.device-screen.theme-light {
  background: linear-gradient(180deg, #fcfdff, #eef3f8);
  color: #15202c;
}

.device-screen.theme-dark {
  background:
    radial-gradient(circle at 80% 0, rgba(42, 111, 188, .28), transparent 34%),
    linear-gradient(180deg, #13243a, #07121f);
  color: #edf6ff;
}

.device-logo {
  position: absolute;
  right: 0;
  bottom: -29px;
  left: 0;
  color: #83909c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2em;
  text-align: center;
}

.touch-view {
  position: absolute;
  inset: 0;
  display: none;
  padding: 24px 16px 92px;
}

.touch-view.active {
  display: block;
  animation: viewIn .23s ease;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.screen-header,
.view-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  min-height: 52px;
}

.screen-header > div {
  display: grid;
  gap: 3px;
}

.screen-header > div:last-child {
  text-align: right;
}

.screen-header strong {
  font-size: 11px;
}

.screen-header small {
  font-size: 9px;
  opacity: .66;
}

.screen-room {
  text-align: center;
}

.screen-room strong {
  font-size: 13px;
}

.view-header {
  grid-template-columns: 40px 1fr 40px;
  text-align: center;
}

.view-header > div {
  display: grid;
  gap: 4px;
}

.view-header strong {
  font-size: 13px;
}

.view-header small {
  font-size: 9px;
  opacity: .63;
}

.back-button,
.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-size: 22px;
  cursor: pointer;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 17px;
}

.function-tile {
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 17px;
  background: rgba(255,255,255,.68);
  color: inherit;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.theme-dark .function-tile {
  background: rgba(19, 40, 64, .82);
}

.function-tile:hover {
  transform: translateY(-2px);
}

.function-tile.pressed,
[data-open].pressed {
  transform: scale(.96);
  box-shadow: 0 0 24px currentColor;
}

.function-icon {
  font-size: 30px;
}

.function-tile strong {
  font-size: 13px;
}

.function-tile small {
  font-size: 10px;
}

.light-tile {
  border: 1px solid #efbd2d;
  color: #d49600;
}

.blind-tile {
  border: 1px solid #54ba7d;
  color: #15934c;
}

.heating-tile {
  border: 1px solid #ff8b43;
  color: #f2610e;
}

.ventilation-tile {
  border: 1px solid #5a9eea;
  color: #176ecb;
}

.scene-tile {
  border: 1px solid #bb8be9;
  color: #8543c8;
}

.alarm-tile {
  border: 1px solid #83a3cb;
  color: #1768c4;
}

.screen-navigation {
  position: absolute;
  right: 15px;
  bottom: 16px;
  left: 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 7px;
  border: 1px solid rgba(93, 120, 151, .17);
  border-radius: 15px;
  background: rgba(255,255,255,.83);
  backdrop-filter: blur(13px);
}

.theme-dark .screen-navigation {
  background: rgba(6, 15, 26, .88);
}

.screen-navigation button {
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 7px 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.screen-navigation span {
  font-size: 8px;
}

.screen-navigation button.active {
  background: rgba(24, 123, 228, .15);
  color: #1679df;
}

.theme-switch {
  display: flex;
  gap: 7px;
  margin-top: 48px;
  padding: 6px;
  border: 1px solid var(--sense-border);
  border-radius: 999px;
  background: rgba(8, 20, 34, .78);
}

.theme-choice {
  padding: 9px 19px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #91a8c0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.theme-choice.active {
  background: #1684ea;
  color: white;
}

.light-control,
.blind-control,
.heating-control,
.alarm-control,
.alarm-success {
  min-height: 460px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
}

.light-circle {
  width: 145px;
  height: 145px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 204, 61, var(--demo-light)), rgba(255, 206, 53, .08) 70%);
  font-size: 63px;
}

input[type="range"] {
  width: 85%;
  accent-color: #f1b600;
}

.three-buttons,
.two-buttons,
.temperature-buttons {
  display: flex;
  gap: 10px;
}

.three-buttons button,
.two-buttons button,
.temperature-buttons button,
.alarm-next {
  min-width: 74px;
  min-height: 42px;
  border: 1px solid rgba(102, 129, 158, .21);
  border-radius: 10px;
  background: rgba(255,255,255,.6);
  color: inherit;
  cursor: pointer;
}

.theme-dark .three-buttons button,
.theme-dark .two-buttons button,
.theme-dark .temperature-buttons button {
  background: rgba(24, 45, 70, .75);
}

.blind-control {
  grid-template-columns: 1fr 70px;
}

.blind-visual {
  position: relative;
  width: 180px;
  height: 250px;
  overflow: hidden;
  border: 1px solid rgba(91, 121, 153, .26);
  background: rgba(225, 235, 244, .55);
}

.blind-lines {
  position: absolute;
  top: 0;
  width: 100%;
  height: 60%;
  background: repeating-linear-gradient(
    to bottom,
    #9babb9 0,
    #9babb9 5px,
    #dfe8ef 6px,
    #dfe8ef 11px
  );
}

.blind-visual span {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  font-weight: 800;
  text-align: center;
}

.blind-buttons {
  display: grid;
  gap: 12px;
}

.blind-buttons button {
  width: 58px;
  height: 75px;
  border: 1px solid rgba(91, 121, 153, .24);
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  color: inherit;
  font-size: 30px;
}

.blind-control input,
.blind-control .two-buttons {
  grid-column: 1 / -1;
}

.temperature-ring {
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 15px solid #ff7d28;
  border-right-color: rgba(255, 125, 40, .15);
  border-radius: 50%;
}

.temperature-ring span {
  font-size: 38px;
  font-weight: 800;
}

.temperature-ring small {
  font-size: 10px;
}

.temperature-buttons {
  width: 260px;
  justify-content: space-between;
  margin-top: -50px;
}

.temperature-buttons button {
  min-width: 50px;
  font-size: 25px;
}

.status-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-grid div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(92, 123, 155, .18);
  border-radius: 11px;
}

.status-grid small {
  font-size: 9px;
}

.status-grid strong {
  color: #1b78dc;
  font-size: 12px;
}

.scene-list,
.settings-list,
.status-list {
  display: grid;
  margin-top: 24px;
}

.scene-list button,
.settings-list button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(94, 123, 155, .18);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.scene-list button span {
  font-size: 20px;
}

.scene-list button strong {
  font-size: 12px;
}

.scene-list button i {
  font-style: normal;
  text-align: right;
}

.pin-dots {
  display: flex;
  gap: 17px;
}

.pin-dots i {
  width: 11px;
  height: 11px;
  border: 1px solid #1b79de;
  border-radius: 50%;
}

.pin-dots i.filled {
  background: #1b79de;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  gap: 9px;
}

.keypad button {
  height: 51px;
  border: 1px solid rgba(87, 118, 150, .19);
  border-radius: 9px;
  background: rgba(255,255,255,.66);
  color: inherit;
  font-size: 15px;
}

.theme-dark .keypad button {
  background: rgba(23, 43, 67, .78);
}

.alarm-next {
  width: 220px;
  background: #1479df;
  color: white;
}

.area-selection {
  display: grid;
  gap: 12px;
  margin-top: 70px;
}

.area-selection button {
  width: 270px;
  min-height: 55px;
  border: 1px solid rgba(89, 120, 151, .22);
  border-radius: 9px;
  background: rgba(255,255,255,.68);
  color: inherit;
}

.area-selection button.selected {
  background: #1479df;
  color: white;
}

.shield {
  width: 160px;
  height: 185px;
  display: grid;
  place-items: center;
  border: 7px solid #24ae62;
  border-radius: 48% 48% 58% 58%;
  color: #151d25;
  font-size: 62px;
}

.theme-dark .shield {
  color: white;
}

.alarm-success strong {
  color: #24ae62;
}

.alarm-success small {
  line-height: 1.8;
  text-align: center;
}

.settings-list button {
  grid-template-columns: 1fr auto;
  padding: 0 8px;
}

.settings-list button span,
.settings-list button strong {
  font-size: 11px;
}

.settings-list button strong {
  color: #1479df;
}

.status-list {
  margin-top: 25px;
}

.status-list div {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid rgba(91, 120, 150, .17);
  font-size: 10px;
}

.status-list .ok {
  color: #21a45c;
}

.section {
  padding: 90px 0;
  border-top: 1px solid var(--sense-border);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.architecture-section h2,
.sense-footer-cta h2 {
  margin: 14px 0 17px;
  color: var(--sense-text);
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.view-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.view-selector button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--sense-border);
  border-radius: 999px;
  background: rgba(12, 29, 48, .7);
  color: #a9bed5;
  font-weight: 750;
  cursor: pointer;
}

.view-selector button.active {
  border-color: #218dea;
  background: #177fdc;
  color: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 220px;
  display: flex;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--sense-border);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(22, 44, 69, .77), rgba(8, 20, 34, .78));
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(65, 156, 246, .36);
  border-radius: 14px;
  color: #50acff;
  font-size: 21px;
}

.feature-card h3 {
  margin: 5px 0 10px;
  color: #edf5ff;
  font-size: 21px;
}

.feature-card p {
  margin: 0;
  color: #95abc3;
  line-height: 1.65;
}

.gesture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gesture-grid article {
  min-height: 190px;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--sense-border);
  border-radius: 22px;
  background: rgba(11, 27, 45, .7);
}

.gesture-symbol {
  min-width: 72px;
  color: #52adff;
  font-size: 40px;
  text-align: center;
}

.gesture-grid div {
  display: grid;
  gap: 9px;
}

.gesture-grid strong {
  color: #edf5ff;
}

.gesture-grid small {
  color: #94aac2;
  line-height: 1.6;
}

.architecture-section {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: center;
}

.architecture-list {
  display: grid;
  gap: 17px;
  margin-top: 35px;
}

.architecture-list div {
  display: flex;
  gap: 14px;
}

.architecture-list i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: #1c8bee;
  box-shadow: 0 0 15px rgba(28, 139, 238, .7);
}

.architecture-list span {
  display: grid;
  gap: 4px;
  color: #91a7bf;
}

.architecture-list strong {
  color: #edf5ff;
}

.system-diagram {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.system-node {
  width: 280px;
  min-height: 105px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(78, 157, 238, .39);
  border-radius: 18px;
  background: rgba(10, 27, 45, .9);
  text-align: center;
}

.system-node span {
  color: #4ca9ff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
}

.system-node strong {
  color: #edf6ff;
  font-size: 18px;
}

.system-node.highlighted {
  box-shadow: 0 0 45px rgba(28, 139, 238, .18);
}

.system-arrow {
  color: #3d9cf3;
  font-size: 26px;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.roadmap article {
  min-height: 170px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 21px;
  border: 1px solid var(--sense-border);
  border-radius: 18px;
  background: rgba(10, 25, 42, .7);
}

.roadmap span {
  color: #66829f;
  font-size: 12px;
  font-weight: 850;
}

.roadmap strong {
  color: #e8f2ff;
}

.roadmap small {
  color: #8da4bd;
  line-height: 1.5;
}

.roadmap .done {
  border-color: rgba(47, 196, 135, .38);
}

.roadmap .done span,
.roadmap .done strong {
  color: #4cd59b;
}

.roadmap .active {
  border-color: rgba(41, 147, 247, .58);
  background: rgba(26, 107, 191, .16);
}

.roadmap .active span,
.roadmap .active strong {
  color: #52afff;
}

.sense-footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding: 80px 0 30px;
  border-top: 1px solid var(--sense-border);
}

.development-badge {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 18px;
  border: 1px solid rgba(49, 207, 145, .32);
  border-radius: 999px;
  background: rgba(35, 139, 99, .13);
  color: #71ddb0;
  font-weight: 800;
  white-space: nowrap;
}

.development-badge i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3bd099;
  box-shadow: 0 0 13px rgba(59, 208, 153, .8);
}

@media (max-width: 1180px) {
  .sense-hero,
  .architecture-section {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    margin-top: 20px;
  }

  .feature-grid,
  .gesture-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 740px) {
  .sense-page {
    width: min(100% - 24px, 1540px);
  }

  .sense-hero {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: 50px;
  }

  .feature-grid,
  .gesture-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .sense-footer-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.demo-notice {
  max-width: 980px;
  margin: 0 0 34px;
  padding: 20px 22px;
  border: 1px solid rgba(41, 147, 247, .38);
  border-radius: 16px;
  background: rgba(27, 111, 194, .12);
}

.demo-notice strong {
  display: block;
  margin-bottom: 8px;
  color: #64b7ff;
  font-size: 15px;
}

.demo-notice p {
  margin: 0;
  color: #9eb4cb;
  font-size: 14px;
  line-height: 1.65;
}

/* ---------------------------------------------------------------
   Wischbare Seiten und Seitenanzeige
   --------------------------------------------------------------- */

.device-screen {
  touch-action: pan-y;
  user-select: none;
}

.page-indicator {
  position: absolute;
  right: 22px;
  bottom: 78px;
  left: 22px;
  z-index: 8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.page-indicator i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(91, 116, 143, .32);
  transition:
    width .18s ease,
    background .18s ease;
}

.page-indicator i.active {
  width: 15px;
  border-radius: 999px;
  background: #197fe2;
}

.page-indicator span {
  margin-left: 7px;
  color: rgba(91, 111, 133, .72);
  font-size: 8px;
  font-weight: 750;
}

.theme-dark .page-indicator span {
  color: rgba(207, 224, 241, .62);
}

/* ---------------------------------------------------------------
   Lichtgruppen-Demo
   --------------------------------------------------------------- */

.light-group-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 24px;
}

.room-light,
.central-off {
  min-height: 145px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(221, 174, 35, .45);
  border-radius: 16px;
  background: rgba(255, 255, 255, .65);
  color: #7c6c45;
  text-align: center;
  cursor: pointer;
  transition:
    transform .16s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.theme-dark .room-light,
.theme-dark .central-off {
  background: rgba(20, 41, 65, .82);
  color: #d9e6f4;
}

.room-light.active {
  border-color: #e8b51e;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(255, 211, 76, .48),
      rgba(255, 248, 218, .72) 72%
    );
  color: #a27000;
  box-shadow: 0 0 22px rgba(235, 181, 29, .19);
}

.theme-dark .room-light.active {
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(255, 203, 49, .30),
      rgba(37, 52, 70, .88) 72%
    );
  color: #ffd45e;
}

.room-light-icon {
  font-size: 29px;
  filter: grayscale(1);
  opacity: .55;
}

.room-light.active .room-light-icon {
  filter: none;
  opacity: 1;
}

.room-light strong,
.central-off strong {
  font-size: 12px;
}

.room-light small,
.central-off small {
  font-size: 9px;
  line-height: 1.35;
}

.central-off {
  grid-column: 1 / -1;
  min-height: 104px;
  border-color: rgba(215, 74, 74, .43);
  color: #c94c4c;
}

.central-off span {
  font-size: 24px;
}

.central-off.confirmed {
  background: rgba(204, 62, 62, .18);
  box-shadow: 0 0 25px rgba(204, 62, 62, .30);
  transform: scale(.97);
}

/* ---------------------------------------------------------------
   Alarmtastatur
   --------------------------------------------------------------- */

.keypad-spacer {
  visibility: hidden;
  pointer-events: none;
}

.platform-notice {
  max-width: 760px;
  margin: 34px 0 30px;
  padding: 20px 22px;
  border: 1px solid rgba(41, 147, 247, .38);
  border-radius: 16px;
  background: rgba(27, 111, 194, .12);
}

.platform-notice strong {
  display: block;
  margin-bottom: 8px;
  color: #64b7ff;
  font-size: 15px;
}

.platform-notice p {
  margin: 0;
  color: #9eb4cb;
  font-size: 14px;
  line-height: 1.65;
}

/* ---------------------------------------------------------------
   Zweigeteilte Lichtkacheln
   --------------------------------------------------------------- */

.room-light {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 145px;
  padding: 0;
  overflow: hidden;
}

.light-toggle,
.light-detail {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.light-toggle {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-height: 88px;
  padding: 12px;
}

.light-toggle-hint {
  font-size: 8px;
  opacity: .58;
}

.light-detail {
  display: grid;
  gap: 4px;
  padding: 11px 10px 13px;
  border-top: 1px solid rgba(115, 135, 155, .18);
  text-align: center;
}

.room-light.active .light-detail {
  border-top-color: rgba(232, 181, 30, .32);
}

.light-toggle:active,
.light-detail:active {
  background: rgba(25, 127, 226, .08);
}

.light-toggle:focus-visible,
.light-detail:focus-visible {
  outline: 2px solid #197fe2;
  outline-offset: -3px;
}

.light-detail strong {
  font-size: 12px;
}

.light-status {
  font-size: 9px;
  line-height: 1.35;
}

/* ---------------------------------------------------------------
   Zweigeteilte Lichtkacheln
   --------------------------------------------------------------- */

.room-light {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 145px;
  padding: 0;
  overflow: hidden;
}

.light-toggle,
.light-detail {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.light-toggle {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-height: 88px;
  padding: 12px;
}

.light-toggle-hint {
  font-size: 8px;
  opacity: .58;
}

.light-detail {
  display: grid;
  gap: 4px;
  padding: 11px 10px 13px;
  border-top: 1px solid rgba(115, 135, 155, .18);
  text-align: center;
}

.room-light.active .light-detail {
  border-top-color: rgba(232, 181, 30, .32);
}

.light-toggle:active,
.light-detail:active {
  background: rgba(25, 127, 226, .08);
}

.light-toggle:focus-visible,
.light-detail:focus-visible {
  outline: 2px solid #197fe2;
  outline-offset: -3px;
}

.light-detail strong {
  font-size: 12px;
}

.light-status {
  font-size: 9px;
  line-height: 1.35;
}


/* Multitouch-Erweiterung */

.gesture-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .gesture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .gesture-grid {
    grid-template-columns: 1fr;
  }
}
