@font-face {
  font-family: Figtree;
  src: url("../fonts/figtree-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: light-dark(#fbf9fc, #171719);
  --surface: light-dark(#fff, #232326);
  --ink: light-dark(#171717, #ededed);
  --muted: light-dark(#58515c, #bcb8bf);
  --accent: light-dark(#6c5083, #b39ddb);
  --accent-bright: light-dark(#795d96, #d0bcff);
  --on-accent: light-dark(#fff, #22192c);
  --lavender: light-dark(#e7dfed, #30293b);
  --lavender-soft: light-dark(#f3eff6, #201d25);
  --line: light-dark(#e4dce9, #42394c);
  --shadow: light-dark(#36214328, #0007);
  --radius: 1.75rem;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1rem/1.55 Figtree, system-ui, sans-serif;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.25; text-wrap: balance; }
h2 { margin-top: .55rem; font-size: clamp(1.375rem, 2vw, 1.625rem); }
h3 { font-size: 1.125rem; }
p { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell { width: min(76rem, calc(100% - 5rem)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 9;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: var(--surface);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--page) 91%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem 2rem;
  align-items: center;
}
.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .65rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.brand img { border-radius: 24%; }
@media (prefers-color-scheme: dark) {
  .brand img { clip-path: inset(2% round 30%); }
}
.header-inner nav, .footer-inner nav { display: flex; flex-wrap: wrap; gap: .5rem 1.85rem; }
.header-inner nav a, .footer-inner nav a {
  color: var(--muted);
  font-size: .94rem;
  font-weight: 600;
  transition: color .2s ease;
}
.header-inner nav a:hover, .footer-inner nav a:hover, .footer-inner nav a[aria-current="page"] { color: var(--accent); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  min-height: 3.2rem;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .8rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-bright); }
.button-outline { color: var(--accent); background: var(--surface); border-color: var(--line); }
.button-outline:hover { background: var(--lavender-soft); border-color: var(--accent); }
.header-cta { justify-self: end; min-height: 2.75rem; padding-inline: .95rem; font-size: .9rem; }

.hero {
  padding-block: clamp(2.5rem, 5vw, 4.75rem);
}
.hero-copy {
  margin: 0 auto clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  animation: enter .55s both;
}
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 600; }
.hero h1 {
  margin: .55rem auto 0;
  font-size: clamp(1.75rem, 3.3vw, 2.5rem);
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-description { margin: .75rem auto 0; max-width: 35rem; text-wrap: pretty; }
.store-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1.1rem; }
.store-links a { border-radius: .5rem; transition: transform .2s ease; }
.store-links a:hover { transform: translateY(-2px); }
.store-links img { width: auto; height: clamp(2.5rem, 13vw, 2.75rem); }

.tour-stage {
  --stage-glow: light-dark(#fdf7ff, #544265);
  --stage-edge: light-dark(#d6bce5, #252032);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  gap: clamp(.55rem, 2.4vw, 2.5rem);
  padding: clamp(1.25rem, 4.3vw, 3.75rem) clamp(.9rem, 4vw, 3.75rem);
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background:
    repeating-radial-gradient(ellipse at 55% 112%, transparent 0 43px, light-dark(#fff7, #ffffff16) 44px 45px, transparent 46px 65px),
    radial-gradient(ellipse at 48% 18%, var(--stage-glow), var(--stage-edge) 85%);
}
.tour-panel {
  --turn: -5deg;
  --delay: .06s;
  display: grid;
  gap: .7rem;
  justify-items: center;
  align-self: end;
  width: min(100%, 12.4rem);
  text-align: center;
  animation: enter .65s var(--delay) both;
}
.tour-panel:nth-child(2) { --turn: -2deg; --delay: .14s; margin-bottom: 1.35rem; }
.tour-panel:nth-child(3) { --turn: 2deg; --delay: .22s; margin-bottom: 1.35rem; }
.tour-panel:nth-child(4) { --turn: 5deg; --delay: .3s; }
.tour-panel img {
  width: 100%;
  height: auto;
  border: .26rem solid #292431;
  border-radius: clamp(.95rem, 2vw, 1.5rem);
  box-shadow: 0 1.1rem 2rem #1c102940, 0 0 0 1px #ffffff80;
  transform: rotate(var(--turn));
}
.tour-panel figcaption {
  padding: .17rem .65rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--surface);
  font-size: .875rem;
  font-weight: 600;
}
@media (hover: hover) {
  .tour-panel img { transition: transform .32s ease-out; }
  .tour-panel:hover img { transform: translateY(-.35rem) rotate(0); }
}

.features { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.about h2 { margin-top: 0; }
.feature-grid, .about { display: grid; gap: 1rem; }
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.page-card.feature { padding: clamp(1rem, 2vw, 1.5rem); }
.feature h2 { margin-top: 0; font-size: 1.125rem; }
.feature > .icon {
  box-sizing: content-box;
  padding: .6rem;
  margin-bottom: .75rem;
  border-radius: .8rem;
  background: var(--lavender);
  color: var(--accent);
}
.feature:nth-child(2) { background: var(--lavender-soft); }
.feature p, .about-copy p { margin-top: .55rem; }
.widget-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle, light-dark(#6c508333, #b39ddb46) 1px, transparent 1.5px) 0 0 / 18px 18px,
    radial-gradient(ellipse at 75% 36%, var(--lavender), var(--lavender-soft) 85%);
}
.widget-overview h2 { margin-top: 0; text-wrap: pretty; }
.widget-overview p { margin-top: .55rem; max-width: 35rem; }
.widget-overview .eyebrow { margin: 0 0 .45rem; }
.widget-overview img {
  width: min(100%, 32rem);
  height: auto;
  margin-top: .55rem;
  filter: drop-shadow(0 .45rem .8rem var(--shadow));
}
.widget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
  width: min(100%, 27rem);
  justify-self: center;
}
.widget-grid img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 .35rem .55rem var(--shadow));
  transform: rotate(-5deg) scale(1.08);
  transition: transform .25s ease-out;
}
.widget-grid img:nth-child(even) { transform: rotate(5deg) scale(1.08); }
@media (hover: hover) {
  .widget-grid img:hover { transform: rotate(0) scale(1.16); }
}
.about {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.about-copy a { color: var(--accent); text-decoration: underline; }
.contact form { margin-top: .8rem; }

.site-form {
  display: grid;
  gap: 1rem;
}
.contact form {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--surface);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.site-form label { display: grid; gap: .3rem; font-weight: 600; }
.site-form :is(input, textarea):not([type="hidden"]) {
  width: 100%;
  min-height: 2.8rem;
  padding: .55rem .7rem;
  background: var(--page);
  border: 1px solid color-mix(in srgb, var(--accent) 82%, var(--page));
  border-radius: .55rem;
  font-weight: 400;
}
.site-form :is(input, textarea):focus { border-color: var(--accent); }
.site-form textarea { resize: vertical; }
.site-form button:disabled { opacity: .65; cursor: wait; transform: none; }
.form-status:empty { margin-top: -1rem; }
.form-status[data-state="error"] { color: light-dark(#932e32, #ffacaf); }
.form-status[data-state="success"] { color: light-dark(#2b664c, #9bdfb6); }

.site-footer { border-top: 1px solid var(--line); background: var(--lavender-soft); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 6rem;
  padding-block: 1.2rem;
}
.footer-inner nav { gap: .5rem 1.1rem; }

.internal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.content-page {
  flex: 1;
  max-width: 49rem;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.page-heading { margin-bottom: 1.45rem; }
.page-heading h1 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
}
.page-heading > * + * { margin-top: .65rem; }
.page-card {
  padding: clamp(1.2rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-wrap: anywhere;
}
.document-content > * { margin: 0; }
.document-content > * + *, .status-copy > * + * { margin-top: .55rem; }
.document-content h2 { font-size: 1.25rem; text-wrap: wrap; }
.document-content h2:not(:first-child) { margin-top: 1.65rem; }
.document-content :is(ul, address) { color: var(--muted); }
.document-content ul { padding-inline-start: 1.35rem; }
.document-content address { font-style: normal; }
.document-content a, .profile-meta a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .16em;
}
.status-page { max-width: 37rem; text-align: center; }
.status-card, .profile-content { display: grid; gap: 1.1rem; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.reset-form { text-align: start; }
.reset-form button { width: 100%; }
.profile-loader { display: grid; justify-items: center; gap: .65rem; }
.profile-spinner {
  width: 1.7rem;
  height: 1.7rem;
  border: 2px solid var(--lavender);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .85s linear infinite;
}
.profile-avatar {
  margin-inline: auto;
  border: 2px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}
.profile-bio { margin-top: .4rem; }
.profile-meta { font-size: .875rem; }
.profile-meta:empty { display: none; }

@keyframes spin { to { transform: rotate(1turn); } }

@keyframes enter {
  from { opacity: 0; transform: translateY(.9rem); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 65rem) {
  .shell { width: calc(100% - 3.5rem); }
}

@media (max-width: 48rem) {
  :root { scroll-padding-top: 7.5rem; }
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { min-height: auto; grid-template-columns: 1fr auto; gap: .45rem 1rem; padding-block: .55rem .65rem; }
  .header-inner > nav { grid-row: 2; grid-column: 1 / -1; gap: .5rem 1.3rem; }
  .tour-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .8rem; }
  .tour-panel { width: min(82%, 9rem); }
  .tour-panel:nth-child(2), .tour-panel:nth-child(3) { margin-bottom: 0; }
  .tour-panel img { transform: none; }
  .feature-grid, .widget-showcase, .about { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 30rem) {
  :root { scroll-padding-top: 1.5rem; }
  .site-header { position: static; }
  .header-inner { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; padding-block: 1rem .45rem; }
  .header-inner .brand { justify-self: center; min-height: 2.75rem; font-size: 1.125rem; }
  .header-inner .brand img { width: 2rem; height: 2rem; }
  .header-cta { display: none; }
  .header-inner > nav {
    justify-content: center;
    gap: .5rem clamp(1rem, 6vw, 1.75rem);
    margin-inline: -1.25rem;
    padding: .35rem 1.25rem 0;
    border-top: 1px solid var(--line);
  }
  .header-inner nav a, .footer-inner nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 2.75rem;
    font-size: .875rem;
    text-align: center;
  }
  .header-inner nav a:active { background: var(--lavender); }

  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
    padding-block: 1.5rem;
  }
  .footer-inner .brand { justify-self: center; min-height: 2.75rem; }
  .footer-inner nav { justify-content: center; gap: 0 1rem; }
  /* Start the legal links on a new row after Kontakt and FAQ. */
  .footer-inner nav:first-of-type::after { content: ""; flex-basis: 100%; order: 1; }
  .footer-inner nav:first-of-type a:nth-child(n + 3) { order: 2; }
  .footer-inner nav + nav {
    margin-inline: -1.25rem;
    padding: .35rem 1.25rem 0;
    border-top: 1px solid var(--line);
  }
  .footer-inner nav + nav a { color: var(--accent); }

  .hero { padding-block: 2.5rem 3.5rem; }
  .hero-copy { margin-bottom: 2.5rem; }
  .hero h1 { margin-top: .75rem; max-width: 22rem; }
  .hero-description { margin-top: 1rem; line-height: 1.65; }
  .store-links { gap: .6rem 1rem; margin-top: 1.5rem; }
  .store-links a { display: grid; place-items: center; min-height: 2.75rem; }
  .store-links img { height: 2.5rem; }

  .tour-stage { gap: 1rem; padding: 0; border: 0; background: none; }
  .tour-panel {
    align-self: stretch;
    width: 100%;
    gap: .55rem;
    padding: .85rem .45rem .65rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: linear-gradient(155deg, var(--lavender-soft), var(--lavender));
  }
  .tour-panel img {
    width: min(88%, 7.75rem);
    border-width: .2rem;
    border-radius: .95rem;
    box-shadow: 0 .5rem 1rem var(--shadow);
  }
  .tour-panel figcaption { padding: 0; border: 0; background: none; color: var(--ink); }

  .features, .about { padding-bottom: 3.5rem; }
  .feature-grid { gap: 1rem; }
  .page-card.feature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .85rem .75rem;
    padding: 1.25rem;
  }
  .feature > .icon { margin: 0; padding: .45rem; border-radius: .65rem; }
  .feature p { grid-column: 1 / -1; margin: 0; }

  .widget-showcase {
    gap: .5rem;
    margin-bottom: 3.5rem;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(155deg, var(--lavender-soft), var(--lavender));
  }
  .widget-overview img { margin-top: .15rem; }
  .widget-grid { gap: .35rem; }
  .widget-grid img, .widget-grid img:nth-child(even) { transform: none; }

  .form-row { grid-template-columns: minmax(0, 1fr); }
}

@supports (animation-timeline: view()) {
  .feature, .widget-grid img {
    animation: gallery-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 24%;
  }

  @keyframes gallery-reveal {
    from { opacity: .5; translate: 0 1.2rem; }
    to { opacity: 1; translate: 0 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
