/* ==========================================================================
   Homewind – Components & Layout
   ========================================================================== */

/* --- Keyframes --- */
@keyframes slide-in-bottom {
  from { transform: translateY(200px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes slide-in-right {
  from { transform: translateX(200px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* --- Page --- */
.page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-xs);
  text-align: center;
}

/* --- Navigation (mobile-first) --- */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: var(--space-12) 0;
  font-size: var(--text-base);
  color: var(--color-darkslategray-300);
}
.page-header--scrolled .nav {
  background: var(--color-bg);
  border-radius: 30px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: center; /* Mobile: Nav mittig */
  width: 100%;
  max-width: min(49.125rem, calc(100vw - 48px)); /* iPhone ~393px, mind. 24px Abstand links/rechts */
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.nav { position: relative; }

.nav__mobile-head {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  width: 345px;
  background: var(--color-bg-muted);
  border-radius: 36px;
  cursor: pointer;
  padding: var(--space-4) 0;
  margin: calc(-1 * var(--space-4)) ;
}
.nav__current {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  padding-right: 8rem;
  
}

/* Hamburger toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.625rem;
  width: 5rem;
  height: 5rem;
  padding: 1rem;
  background: none;
  border: 0;
  cursor: pointer;
  margin-left: 2rem;
}
.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 0.25rem;
  background: var(--color-text-muted);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav--open .nav__toggle-bar:nth-child(1) {
  transform: translateY(0.875rem) rotate(45deg);
}
.nav--open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-0.875rem) rotate(-45deg);
}

/* Dropdown list (mobile) */
.nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: absolute;
  top: calc(100% + var(--space-8));
  min-width: 345px;
  padding: var(--space-12);
  border-radius: var(--radius-lg);
  background: var(--color-bg-muted);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1rem);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav--open .nav__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Nav links */
.nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.nav__link:hover{
  background-color: var(--color-slategray-light);
  transition: all 0.3s ease-in;
}


.nav__link--active {
  background: var(--color-primary);
  color: var(--color-white);
}

.nav__link--active:hover {
  background: var(--color-primary-darker);
  color: var(--color-white);
}

/* --- Hero --- */
.hero {
  width: 100%;
  max-width: var(--content-max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--nav-height) var(--space-16) 0;
  font-size: var(--text-hero);
  color: var(--color-white);
  text-align: left;
}
.hero__wrap {
  width: 100%;
  height: 52rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: visible;
  padding: var(--space-8);
  
}
.hero__card {
  position: relative;
  flex: 1;
  align-self: stretch;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-24) var(--space-24) 6.75rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px -2px rgba(81, 102, 130, 0.35);
  background: var(--color-bg-dark);
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 101%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 66%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-12);
}
.hero__title {
  margin: 0;
  align-self: stretch;
  line-height: 101%;
  font-weight: 800;
  color: var(--color-black);
  font-size: var(--text-3xl);
  text-shadow: rgba(255, 255, 255, 0.5) 0px 0px 3px;
  padding-bottom: var(--space-24);
}
.hero__subtitle {
  margin: 0;
  align-self: stretch;
  font-size: var(--text-2xl);
  line-height: 110%;
  font-weight: 400;
  color: var(--color-black);
  text-shadow: rgba(255, 255, 255, 0.5) 0px 0px 3px;
}

/* --- Section (shared base) --- */
.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--nav-height) var(--space-16) var(--space-48);
  color: var(--color-white);
  text-align: left;
  overflow: hidden;
}
.section--light {
  background: var(--color-bg);
  color: var(--color-text);
}
.section--accent {
  background: #42102d;
  scroll-margin-top: var(--nav-height);
  padding: 25px 0 0;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-card);
}



.section--accent-soft { background: var(--color-primary-darker); }
.section--accent-mid  { background: var(--color-primary-dark); }
.section--guide {
  background: #EF2F7B;
  scroll-margin-top: var(--nav-height);
}

.section--dark {
  background: var(--color-bg-dark);
  scroll-margin-top: var(--nav-height);
}

.section--github {
  background: #28394F;
  scroll-margin-top: var(--nav-height);
}

.btn--github {
  color: #28394F;
}

.btn--github:hover {
  color: #28394F;
}

.section--contact {
  background: #516682;
  scroll-margin-top: var(--nav-height);
}

.contact__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  justify-content: center;
  align-items: center;
  margin-top: var(--space-16);
}

.btn--contact {
  background: var(--color-white);
  color: #516682;
}

.btn--contact:hover {
  background: var(--color-bg-muted);
  color: #516682;
}
.section--fans {
  position: relative;
  padding: var(--space-48) var(--space-24) var(--space-48);
  gap: 1.25rem;
  scroll-margin-top: var(--nav-height);
}

.section--fans h2{
  color: var(--color-gray-300);
}
.section--fans p{
  color: var(--color-darkslategray-400);
}

.section--fans .section__block{
  padding-bottom: var(--space-24);
}

/* --- Guide Section (Accordion) --- */
.guide-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0 var(--space-24) var(--space-48);
  max-width: 760px;
  width: 100%;
}

.guide-step {
  margin-bottom: var(--space-12);
}

.guide-step__details {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--color-white);
  overflow: hidden;
}

.guide-step__summary {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-16) var(--space-20);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: var(--text-base);
  transition: background 0.2s ease;
}

.guide-step__summary::-webkit-details-marker,
.guide-step__summary::marker {
  display: none;
}

.guide-step__summary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.guide-step__summary::after {
  content: "";
  margin-left: auto;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.guide-step__details[open] .guide-step__summary::after {
  transform: rotate(-135deg);
}

.guide-step__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  font-weight: 700;
  font-size: var(--text-base);
}

.guide-step__title {
  flex: 1;
}

.guide-step__content {
  padding: var(--space-20) var(--space-20) var(--space-16);
  padding-left: calc(var(--space-20) + 2.5rem + var(--space-16));
  font-size: var(--text-base);
  line-height: 1.5;
}

.guide-step__link {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.guide-step__link:hover {
  text-decoration-thickness: 2px;
}

.guide-step__content code {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.1em 0.3em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Section sub-elements */
.section__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  text-align: center;
}
.section__block--overlay { position: relative; z-index: 1; }

.section__title {
  margin: var(--space-6) 0;
  width: 100%;
  font-size: var(--text-3xl);
  line-height: var(--lh-101);
  font-weight: 800;
}

.section__title__small{
  margin: var(--space-12) 0;
  font-size: var(--text-xl);
  color: var(--color-white); 
}


.section__title--light { color: var(--color-white); }

.section__lead {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 125%;
  max-width: var(--max-w-768);
  width: 100%;
}
.section__lead--light { color: var(--color-text-light); }

.section__figure {
  width: 22.75rem;
  max-height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
}
.section__bg {
  position: absolute;
  top: -0.038rem;
  right: 12.912rem;
  left: 12.9rem;
  width: calc(100% - 206.5px);
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* --- About (#about) --- */
#about.section {
  padding: var(--space-32) var(--space-24) var(--space-80);
  gap: 1.25rem;
  scroll-margin-top: var(--nav-height);
}
#about .section__block { 
  
}
#about .section__title { color: var(--color-gray-300); }
#about .section__lead  { color: var(--color-darkslategray-400); }

/* --- Feature Cards --- */
.feature-grid {

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  padding-top: var(--space-40);
  column-gap: var(--space-24);
  row-gap: var(--space-24);
  font-size: var(--text-lg);
  color: var(--color-gray-300);
  text-align: center;
  max-width: 1440px;

}
.feature-card {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 80rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 32rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: top / cover no-repeat;
  opacity: 0;
}



.feature-card:nth-child(1) { background-image: url(../images/FeatureCard2_4@3x.jpg); }
.feature-card:nth-child(2) { background-image: url(../images/FeatureCard2_2@3x.jpg); }
.feature-card:nth-child(3) { background-image: url(../images/FeatureCard2_5@3x.jpg); }




.feature-card__content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-16) var(--space-12);
  border-radius: var(--radius-lg);
  background: var(--color-card-light);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.feature-card__icon-wrap {
  display: flex;
  justify-content: center;
  padding-bottom: var(--space-8);
}
.feature-card__icon {
  width: 6rem;
  height: 6rem;
  border-radius: 33px;
}
.feature-card__title {
  margin: 1rem 0 0.5rem;
  align-self: stretch;
  line-height: var(--lh-21);
  font-weight: 700;
  text-align: center;
}
.feature-card__text {
  margin: 0;
  align-self: stretch;
  font-size: var(--text-base);
  font-weight: 350;
  line-height: 125%;
  color: var(--color-darkslategray-300);
  text-align: center;
}

/* --- Product Cards --- */
.product-cards {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
  font-size: var(--text-2xl);
  width: 100%
}
.product-card {
  align-self: stretch;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: var(--space-12);
}
.product-card__title {
  margin: 0;
  font-size: inherit;
  line-height: var(--lh-21);
  font-weight: 700;
  text-align: center;
  width: 100%;
}
.product-card__desc {
  margin: 0;
  font-size: 16px;
  font-weight: 350;
  line-height: 133%;
  color: #d1daeb;
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  width: fit-content;
  height: 5rem;
  padding: var(--space-6) var(--space-24);
  border: 0;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--text-base);
  line-height: var(--lh-24);
  cursor: pointer;
  transition: all 0.2s ease-in;
  font-weight: 700;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-lighter);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  line-height: 135%;
  text-align: center;
}

.btn--secondary:hover {
  background: var(--color-bg-muted);
  color: var(--color-primary-darker);
}

.btn__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

/* --- Device Carousel --- */
/* Mobile-first: stacked layout (devices on top, content below) */
.section--accent__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 144rem;
  margin: 0 auto;
}

.device-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: #42102d;
}

/* Viewport: sized by the Device_Frames image (in-flow), screens behind it */
.device-carousel__viewport {
  position: relative;
  width: 100%;
  max-width: 454px;
  overflow: hidden;
  opacity: 0;
  z-index: 900;
}

/* Device frame image: in-flow, determines viewport height, on top */
.device-carousel__frames {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* Screen positions as % of Device_Frames image (computed from Figma):
   ESP screen:  left 9.48%, top 41.77%, w 20.29%, h 35.10%
   WebUI screen: left 37.68%, top 6.31%, w 43.16%, h 99.09% */
.device-carousel__esp-screens {
  position: absolute;
  z-index: 1;
  left: 9.48%;
  top: 41.77%;
  width: 20.29%;
  height: 35.10%;
  border-radius: 10px;
  overflow: hidden;
}

.device-carousel__esp-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.device-carousel__esp-slide.device-carousel__slide--active {
  opacity: 1;
}

.device-carousel__web-screens {
  position: absolute;
  z-index: 1;
  left: 37.68%;
  top: 6.31%;
  width: 43.16%;
  height: 99.09%;
  overflow: hidden;
}

.device-carousel__web-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.device-carousel__web-slide.device-carousel__slide--active {
  opacity: 1;
}

/* --- Carousel Indicator (Figma 1023:1215 Mobile/768) --- */
.device-carousel__indicator-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #6b1a4a;
  border-radius: 24px 24px 0 0;
  z-index: 1000;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);

}

.device-carousel__indicator {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 5px 9px;
  background: #42102d;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.device-carousel__indicator-wrapper {
  padding: 16px;
  border-radius: 0 0 24px 24px;
  background: rgba(255, 255, 255, 0.20);
}

.device-carousel__dot {
  display: block;
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  transition: width 0.3s ease, background 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}

.device-carousel__dot--active {
  width: 24px;
  border-radius: 999px;
  background: var(--color-white);
}

.device-carousel__dot-progress {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  transform-origin: left;
  background: var(--color-primary);
  border-radius: 999px;
}

.device-carousel__dot--active .device-carousel__dot-progress {
  display: block;
  animation: dot-progress 6s linear forwards;
}

@keyframes dot-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* --- Carousel Content (Mobile: below indicator) --- */
.device-carousel__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  padding: 0 48px 64px;
  width: 100%;
  background: #6b1a4a;
  z-index: 1001;
  overflow: hidden;
}

.section__block--accent {
  padding-top: 8px;
  padding-bottom: 24px;
  text-align: center;
}



.section__block--accent .section__lead {
  font-size: 20px;
  font-weight: 350;
  line-height: 133%;
  text-align: center;
}

/* --- Button new class btn--card (two buttons side by side) --- */
.btn--card--left,
.btn--card--right {
  flex: 1 1 0;
  justify-content: center;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
}

.btn--card--left {
  border-radius: 24px 0 0 24px;
}

.btn--card--right {
  border-radius: 0 24px 24px 0;
}

.product-card__buttons {
  display: flex;
  gap: 1px;
  width: 100%;
  max-width: 360px;
}

.affiliate-hint {
  margin: var(--space-8) 0 0;
  font-size: 12px;
  color: #d1daeb;
  opacity: 0.85;
}

/* --- Version & Software Cards --- */
.section--accent-soft,
.section--accent-mid {
  gap: var(--space-24);
  padding: var(--space-40) var(--space-24) 4.5rem;
  text-align: center;
}
.section--accent-mid { padding-bottom: var(--space-80); }

.version-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: var(--space-12);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  color: var(--color-white);
  text-align: left;
}
.version-card--single { padding: 0 var(--space-14); flex-shrink: 0; }


.esp-tools-wrapper{
  display: flex;
  gap: 1px;
  
}

.firmware-card__title {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: var(--lh-21);
  text-align: center;
}

.firmware-card__desc {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 350;
  line-height: var(--lh-21);
  text-align: center;
}


.btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  
}
.version-card__hint {
  margin: 0;
  line-height: var(--lh-18);
  text-align: center;
  font-size: var(--text-sm);
}
.version-card__requirements {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-top: 3.75rem;
}
.version-card__req {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 500;
  line-height: var(--lh-18);
}
.version-card__req img { flex-shrink: 0; }

/* --- Fan Cards --- */
.fan-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: var(--space-24);
  align-self: stretch;
  flex: 1;
  width: 100%;
  font-size: var(--text-lg);
  color: var(--color-darkslategray-100);
  z-index: 1;
}

.article-wrapper{
  display: flex;
  gap: var(--space-24);
  align-content: center;
  justify-content: center;
  flex-wrap: wrap;
}

.fan-card-link {
  display: block;
  flex: 1;
  min-width: 0;
  max-width: 36rem;
  text-decoration: none;
  color: inherit;
}

.fan-card {
  flex: 1;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-alt);
  background: var(--color-gray-100);
  overflow: hidden;
  opacity: 0;
  transition: box-shadow 0.3s ease;
}

.fan-card-link:hover .fan-card {
  box-shadow: 0 0 40px rgba(24, 24, 24, 0.4);
}
.fan-card__img-wrap {
  width: 26rem;
  height: 32.5rem;
  padding: 0 24px;
  position: relative;
  background: var(--color-white);
  z-index: 0;
}
.fan-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fan-card__name {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: var(--space-8) 0 var(--space-12);
  backdrop-filter: blur(8px);
  background: var(--color-gray-600);
  z-index: 1;
  font-size: var(--text-sm);
  line-height: var(--lh-24);
  font-weight: 800;
  text-align: center;
}


.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__name {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: var(--space-8) 0 var(--space-12);
  backdrop-filter: blur(8px);
  background: var(--color-gray-600);
  z-index: 1;
  font-size: var(--text-sm);
  line-height: var(--lh-24);
  font-weight: 800;
  text-align: center;
  color: var(--color-text);
}





/* --- Support, Disclaimer, Footer --- */
.support__text {
  width: 100%;
  max-width: var(--content-narrow);
  font-size: var(--text-base);
  line-height: 125%;
  text-align: center;
  color: var(--color-text-light)
}
.disclaimer {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9.25rem var(--space-64);
  background: var(--color-darkslategray-100);
}
.disclaimer__text {
  width: 100%;
  max-width: var(--content-narrow);
  margin: 0;
  font-size: var(--text-base);
  line-height: 125%;
  color: var(--color-white);
}

/* --- Legal (Aufklapp-Bereich) --- */
.legal__toggle {
  width: fit-content;
  padding: var(--space-8) var(--space-16);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  background: transparent;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.legal__toggle:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.legal__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.legal-panel {
  align-self: stretch;
  padding: var(--space-32) var(--space-24);
  background: var(--color-bg-muted);
  border-top: 1px solid var(--color-border);
}
.legal__content {
  width: 100%;
  max-width: var(--content-narrow);
  margin: 0 auto;
  text-align: left;
  padding-top: 3rem;
}
.legal__card {
  padding: var(--space-24) var(--space-32);
  margin-bottom: var(--space-20);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-alt);
  border: 1px solid var(--color-border);
}
.legal__card:last-of-type { margin-bottom: var(--space-24); }
.legal__card-title {
  margin: 0 0 var(--space-16);
  padding-bottom: var(--space-8);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.legal__card-title:first-child { margin-top: 0; }
.legal__card-subtitle {
  margin: var(--space-20) 0 var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-gray-300);
}
.legal__card-subtitle:first-of-type { margin-top: var(--space-12); }
.legal__card-text {
  margin: 0 0 var(--space-12);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text);
  max-width: 65ch;
}
.legal__card-text:last-child { margin-bottom: 0; }
.legal__list {
  margin: 0 0 var(--space-12);
  padding-left: var(--space-24);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text);
}
.legal__list li {
  margin-bottom: var(--space-4);
}
.legal__list li:last-child { margin-bottom: 0; }
.legal__muted {
  margin: var(--space-12) 0 0;
  padding-top: var(--space-8);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}
.legal__link {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.legal__link:hover {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary-dark);
}
.legal__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}
.legal__footer {
  margin: var(--space-16) 0 0;
  padding-top: var(--space-16);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.page-footer {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 15.126rem;
  padding: var(--space-24) var(--space-32);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-slategray);
  text-align: left;
}
.page-footer__row {
  width: 100%;
  max-width: var(--content-max-width);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  flex-wrap: wrap;
}
.page-footer__copy {
  width: 100%;
  min-width: 12rem;
  margin: 0;
  line-height: 2.188rem;
  color: inherit;
  text-align: center;
}
.page-footer__imprint {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.page-footer__imprint .legal__toggle {
  margin: 0;
}
.page-footer__links {
  min-width: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-24);
  font-size: var(--text-base);
  color: var(--color-darkslategray-400);
  width: 100%;
}



.page-footer__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  color: inherit;
  text-decoration: none;
  line-height: var(--lh-24);
}
.page-footer__link img { flex-shrink: 0; }

/* --- Scroll Animations --- */
.feature-card.animate,
.fan-card.animate { animation: 1s ease-out forwards slide-in-bottom; }
.device-carousel__viewport.animate { animation: 1s ease forwards slide-in-bottom; }
.feature-card:nth-child(2).animate,
.fan-card:nth-child(2).animate { animation-delay: 0.2s; }
.feature-card:nth-child(3).animate,
.fan-card:nth-child(3).animate { animation-delay: 0.4s; }
.fan-card:nth-child(4).animate { animation-delay: 0.6s; }

