:root {
  --bg0: #070b14;
  --bg1: #0b1224;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eaf0ff;
  --muted: #aab6d3;

  --blue: #6eb3ff;
  --blueDeep: #0b3c5d;
  --orange: #FF6600;

  --max-width: 1280px;
  --max-width-hero: 1320px;
  --pad-x: 24px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 88px;

  --radius: 20px;
  --radius-card: 22px;

  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

@font-face {
  font-family: "Inter";
  src:
    url("./fonts/Inter-Regular.woff2") format("woff2"),
    url("./fonts/Inter-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src:
    url("./fonts/Inter-SemiBold.woff2") format("woff2"),
    url("./fonts/Inter-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(1200px 800px at 10% 0%, rgba(110, 179, 255, 0.14), transparent 55%),
    radial-gradient(900px 700px at 85% 25%, rgba(255, 102, 0, 0.08), transparent 60%),
    var(--bg0);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(700px 520px at 18% 18%, rgba(110, 179, 255, 0.22), transparent 55%),
    radial-gradient(620px 520px at 82% 28%, rgba(255, 102, 0, 0.14), transparent 60%),
    radial-gradient(720px 600px at 55% 88%, rgba(110, 179, 255, 0.1), transparent 65%);
  filter: blur(18px);
  opacity: 0.9;
  transform: translate3d(0, 0, 0);
  animation: labGlow 24s ease-in-out infinite alternate;
}

.container {
  max-width: var(--max-width);
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  margin: 0 auto;
}

.container--hero {
  max-width: var(--max-width-hero);
}

.stack > * + * {
  margin-top: var(--space-5);
}

.panel {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.panel--hoverable:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 179, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(110, 179, 255, 0.08), 0 0 36px rgba(110, 179, 255, 0.10);
}

.site-header {
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
}

.panel--hero {
  padding: var(--space-6);
  border-radius: var(--radius-card);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.10),
    rgba(255, 255, 255, 0.06)
  );
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "wordmark nav"
    "subtitle nav";
  align-items: start;
  column-gap: var(--space-5);
}

.panel--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 28px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 28px
    );
  opacity: 0.12;
  transform: translate3d(0, 0, 0);
  animation: gridDrift 28s linear infinite;
}

.panel--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 320px at 18% 20%, rgba(110, 179, 255, 0.16), transparent 60%),
    radial-gradient(520px 340px at 82% 45%, rgba(255, 102, 0, 0.10), transparent 60%);
  opacity: 0.9;
}

.panel--hero > * {
  position: relative;
  z-index: 1;
}

.wordmark {
  margin: 0 0 var(--space-3) 0;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  grid-area: wordmark;
}

.wordmark__bg {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(234, 240, 255, 0.92);
  border: 1px solid rgba(11, 60, 93, 0.16);
  box-decoration-break: clone;
}

.wordmark__smartwork {
  color: var(--blueDeep);
}

.wordmark__lab {
  color: var(--orange);
}

.hero__subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  grid-area: subtitle;
}

.site-main {
  padding-bottom: var(--space-8);
}

.content-section {
  padding: var(--space-6);
}

.panel--lead {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.07));
  border-color: rgba(110, 179, 255, 0.22);
}

.panel--lead p {
  color: rgba(234, 240, 255, 0.94);
  font-size: 16px;
}

.panel--compact {
  padding: calc(var(--space-6) - 10px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
}

.panel--showroom {
  padding: calc(var(--space-6) + 6px);
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(700px 260px at 14% 0%, rgba(110, 179, 255, 0.12), transparent 62%),
    radial-gradient(600px 260px at 86% 10%, rgba(255, 102, 0, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.06));
}

.panel--showroom .section-title {
  font-size: 20px;
  letter-spacing: -0.015em;
}

.showroom-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}

.showroom-head .section-title {
  margin-bottom: 0;
}

.section-title {
  margin: 0 0 var(--space-4) 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-2) 0;
}

p:last-child {
  margin-bottom: 0;
}

.chip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip-list--hint {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  grid-area: nav;
  align-self: start;
  margin-top: 6px;
  transform: translateX(10px);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  line-height: 1.2;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease,
    background 140ms ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 179, 255, 0.30);
  box-shadow: 0 0 0 1px rgba(110, 179, 255, 0.10), 0 0 18px rgba(110, 179, 255, 0.14);
}

.chip--meta {
  background: rgba(110, 179, 255, 0.10);
  border-color: rgba(110, 179, 255, 0.22);
  color: var(--text);
}

.chip--meta:hover {
  border-color: rgba(110, 179, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(110, 179, 255, 0.14), 0 0 22px rgba(110, 179, 255, 0.18);
}

.chip--micro {
  display: grid;
  grid-template-rows: auto 14px;
  justify-items: center;
  align-content: center;
  width: 100%;
  min-height: 54px;
  text-align: center;
}

.chip__label {
  display: block;
}

.chip__micro {
  display: block;
  font-size: 12px;
  line-height: 1.1;
  opacity: 0;
  height: 14px;
  transform: translateY(-2px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.chip--micro:hover .chip__micro {
  opacity: 0.6;
  transform: translateY(0);
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid rgba(110, 179, 255, 0.8);
  outline-offset: 3px;
}

.showroom-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.site-footer {
  padding-top: var(--space-6);
  padding-bottom: var(--space-7);
  background: linear-gradient(
    180deg,
    rgba(11, 18, 36, 0) 0%,
    rgba(11, 18, 36, 0.25) 45%,
    var(--bg1) 100%
  );
  border-top: none;
}

.footer-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: flex-end;
}

.footer-copy {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.form {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-4);
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field__label {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.input,
.textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  outline: none;
}

.input:focus-visible,
.textarea:focus-visible {
  border-color: rgba(110, 179, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(110, 179, 255, 0.14), 0 0 22px rgba(110, 179, 255, 0.16);
}

.button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(110, 179, 255, 0.26);
  background: rgba(110, 179, 255, 0.10);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 179, 255, 0.40);
  box-shadow: 0 0 0 1px rgba(110, 179, 255, 0.14), 0 0 22px rgba(110, 179, 255, 0.18);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--two {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.grid--two > .content-section {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.demo-grid {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.showroom-links {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  width: 100%;
  justify-content: flex-end;
}

.showroom-links__item {
  font-size: 13px;
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: stretch;
}

.showroom-card {
  padding: var(--space-5);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
}

.showroom-card__icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  color: rgba(234, 240, 255, 0.32);
  opacity: 0.9;
  transition:
    opacity 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.showroom-card__icon svg {
  width: 100%;
  height: 100%;
}

.showroom-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0 0 var(--space-2) 0;
}

.showroom-card__type {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(110, 179, 255, 0.9);
}

.showroom-card__category-link {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(110, 179, 255, 0.9);
  text-decoration: none;
}

.showroom-card__category-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.showroom-card__open {
  margin-top: auto;
  align-self: flex-start;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.showroom-card__open:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.showroom-card--orange .showroom-card__type {
  color: rgba(255, 102, 0, 0.92);
}

.showroom-card--orange .showroom-card__category-link {
  color: rgba(255, 102, 0, 0.92);
}

.showroom-card__date {
  margin: 0;
  font-size: 12px;
  color: rgba(170, 182, 211, 0.92);
}

.showroom-card__title {
  margin: 0 0 var(--space-2) 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.showroom-card__short {
  margin: 0 0 var(--space-3) 0;
  color: rgba(234, 240, 255, 0.92);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.card-tags {
  margin-top: auto;
  flex-wrap: nowrap;
  overflow: hidden;
}

.card-tags .chip {
  flex: 0 0 auto;
}

.showroom-tags {
  margin: 0 0 var(--space-3) 0;
}

.chip--tag {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.showroom-card__detail {
  margin: 0;
  color: var(--muted);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 140ms ease,
    max-height 140ms ease;
}

.showroom-card[data-has-detail="true"]:hover .showroom-card__detail {
  opacity: 1;
  max-height: 120px;
}

.showroom-card--blue:hover {
  border-color: rgba(110, 179, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(110, 179, 255, 0.12), 0 0 42px rgba(110, 179, 255, 0.16);
}

.showroom-card--orange:hover {
  border-color: rgba(255, 102, 0, 0.30);
  box-shadow: 0 0 0 1px rgba(255, 102, 0, 0.10), 0 0 42px rgba(255, 102, 0, 0.14);
}

.showroom-card--blue:hover .showroom-card__icon {
  color: rgba(110, 179, 255, 0.45);
  opacity: 1;
  transform: translateY(-1px);
}

.showroom-card--orange:hover .showroom-card__icon {
  color: rgba(255, 102, 0, 0.42);
  opacity: 1;
  transform: translateY(-1px);
}

.demo-card {
  padding: var(--space-5);
  border-radius: var(--radius-card);
}

.demo-card--blue:hover {
  border-color: rgba(110, 179, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(110, 179, 255, 0.12), 0 0 42px rgba(110, 179, 255, 0.16);
}

.demo-card--orange:hover {
  border-color: rgba(255, 102, 0, 0.30);
  box-shadow: 0 0 0 1px rgba(255, 102, 0, 0.10), 0 0 42px rgba(255, 102, 0, 0.14);
}

.demo-card__meta {
  margin: 0 0 var(--space-2) 0;
  color: rgba(110, 179, 255, 0.9);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.demo-card__title {
  margin: 0 0 var(--space-2) 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.demo-card__text {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 520px) {
  :root {
    --pad-x: 18px;
  }

  .site-header {
    padding-top: var(--space-6);
    padding-bottom: var(--space-5);
  }

  .content-section {
    padding: var(--space-5);
    margin-top: var(--space-4);
  }

  .panel--hero {
    padding: var(--space-5);
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "wordmark"
      "subtitle";
    row-gap: var(--space-3);
  }

  .hero-nav {
    transform: none;
  }
}

@media (min-width: 1200px) {
  :root {
    --pad-x: 32px;
  }

  .grid--two {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
  }

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

@media (min-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Gleiche Kartenhöhe (Desktop/Tablet): Text ist geclamped, daher safe als fixe Höhe */
  .showroom-card {
    height: 268px;
  }
}

@media (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .showroom-card {
    height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes labGlow {
  0% {
    transform: translate3d(-0.6%, -0.4%, 0) scale(1);
  }
  100% {
    transform: translate3d(0.6%, 0.4%, 0) scale(1.02);
  }
}

@keyframes gridDrift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 120px, 120px 0;
  }
}

