@font-face {
  font-family: 'SansGuilt';
  src: url('fonts/SansGuiltDB.woff2') format('woff2'),
    url('fonts/SansGuiltDB.woff') format('woff'),
    url('fonts/SansGuiltDB.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep-forest: #0b1f1c;
  --dark-fern: #143c33;
  --warm-sand: #f2e4c7;
  --soft-rose: #f1cbb0;
  --accent-brick: #c4441f;
  --accent-mint: #8fe0c5;
  --text-light: #f8f6f1;
  --text-muted: rgba(248, 246, 241, 0.7);
  --card-bg: rgba(15, 35, 30, 0.7);
  --border-soft: rgba(241, 203, 176, 0.2);
  font-family: 'SansGuilt', 'Space Grotesk', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'SansGuilt', 'Space Grotesk', sans-serif;
  color: var(--text-light);
  background: radial-gradient(circle at 10% 20%, rgba(143, 224, 197, 0.15), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(196, 68, 31, 0.12), transparent 35%),
    var(--deep-forest);
  min-height: 100vh;
  padding: 0 4vw 6rem;
}

.background-texture {
  position: fixed;
  inset: 0;
  background-image: url('Hintergrund.png');
  background-size: 50%;
  background-repeat: repeat;
  background-size: auto;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: lighten;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 31, 28, 0) 30%, rgba(11, 31, 28, 0.85));
  pointer-events: none;
  z-index: -1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: clamp(80px, 12vh, 160px);
  /* prevent anchor targets from hiding behind the sticky header */
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.logo img {
  width: 140px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text-light);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-brick), #f08a36);
  color: var(--text-light);
  box-shadow: 0 10px 30px rgba(196, 68, 31, 0.35);
}

.btn.secondary {
  border: 1px solid var(--border-soft);
  color: var(--text-light);
  background: transparent;
}

.btn.ghost {
  border: 1px dashed rgba(248, 246, 241, 0.4);
  color: var(--text-light);
  background: transparent;
}

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

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 5rem 0 3rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--accent-mint);
}

h1 {
  font-family: 'SansGuilt', 'Fraunces', serif;
  font-size: clamp(2.5rem, 3vw, 3.4rem);
  line-height: 1.1;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero__list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero__list li::before {
  content: '▸';
  margin-right: 0.75rem;
  color: var(--accent-mint);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.hero__stats div {
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(20, 60, 51, 0.6);
  text-align: center;
}

.hero__stats span {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-mint);
}

.hero__visual {
  position: relative;
  min-height: 360px;
}

.hero__image {
  border-radius: 24px;
  overflow: hidden;
  max-width: 520px;
  animation: float 8s ease-in-out infinite;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.box-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid var(--border-soft);
  max-width: 320px;
  animation: float 8s ease-in-out infinite;
}

.box-card::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  border: 1px dashed rgba(248, 246, 241, 0.2);
  pointer-events: none;
}

.box-card p {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.box-card h2 {
  font-family: 'SansGuilt', 'Fraunces', serif;
  font-size: 2rem;
  margin: 1rem 0;
}

.badge {
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(143, 224, 197, 0.15);
  border: 1px solid rgba(143, 224, 197, 0.4);
  font-size: 0.85rem;
}

.coin-stack {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-muted);
}

.coin-stack span {
  background: rgba(248, 246, 241, 0.08);
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  width: fit-content;
}

.floating-note {
  position: absolute;
  right: 0;
  bottom: 10%;
  max-width: 220px;
  background: rgba(242, 228, 199, 0.1);
  border: 1px solid rgba(242, 228, 199, 0.4);
  border-radius: 18px;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  backdrop-filter: blur(6px);
}

.section-heading {
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-family: 'SansGuilt', 'Fraunces', serif;
}

.features {
  margin: 5rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-grid article {
  background: rgba(17, 46, 41, 0.65);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 1.5rem;
}

.feature-grid h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.color-lab {
  margin: 5rem 0;
}


.color-lab__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.swatch-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

.swatch-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.legal {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal__heading {
  text-align: left;
  gap: 0.75rem;
}

.legal__hint {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.legal__card {
  background: rgba(17, 46, 41, 0.65);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal__card--full {
  grid-column: 1 / -1;
}

.legal__card--full {
  grid-column: 1 / -1;
}

.legal__card h2 {
  font-size: 1.3rem;
}

.legal__card h3 {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.legal__placeholder {
  font-style: italic;
  color: var(--text-muted);
}

.legal__footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text-light);
}

.swatch-panel button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(20, 60, 51, 0.55);
  color: var(--text-light);
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
  font-size: 0.85rem;
  min-height: 56px;
}

.swatch-panel button[aria-pressed='true'] {
  border-color: var(--accent-mint);
  transform: translateX(6px);
}

.swatch {
  width: 48px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(248, 246, 241, 0.35);
  background: var(--swatch-bg);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background-clip: padding-box;
  background-origin: border-box;
}

.swatch-panel__more {
  justify-content: center;
  border-style: dashed;
  border-color: rgba(248, 246, 241, 0.35);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.swatch--glitter::before,
.swatch--glitter::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 28%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: drop-shadow(12px -9px rgba(255, 255, 255, 0.45))
    drop-shadow(22px 7px rgba(255, 255, 255, 0.6));
}

.swatch--glitter::before {
  width: 20px;
  height: 20px;
  background:
    linear-gradient(transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%),
    linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%);
  transform: translate(-50%, -50%) scale(0.75) rotate(-20deg);
  animation: swatchSparkFlash 2.6s ease-in-out infinite;
}

.swatch--glitter::after {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 45%, transparent 70%);
  border-radius: 2px;
  transform: translate(-50%, -50%) scale(0.6) rotate(45deg);
  animation: swatchSparkPulse 2.6s ease-in-out infinite;
  animation-delay: 0.35s;
}

@keyframes swatchSparkFlash {
  0% {
    transform: translate(-50%, -50%) scale(0.75) rotate(-20deg);
    opacity: 0.4;
  }
  45% {
    transform: translate(-50%, -50%) scale(1.05) rotate(12deg);
    opacity: 1;
  }
  75% {
    transform: translate(-50%, -50%) scale(0.85) rotate(-5deg);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.75) rotate(-20deg);
    opacity: 0.4;
  }
}

@keyframes swatchSparkPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.6) rotate(45deg);
    opacity: 0.3;
  }
  40% {
    transform: translate(-50%, -50%) scale(1) rotate(45deg);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(0.8) rotate(45deg);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.6) rotate(45deg);
    opacity: 0.3;
  }
}

.gallery {
  margin: 5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gallery figure {
  background: rgba(17, 46, 41, 0.55);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery figcaption {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonials {
  margin: 5rem 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.testimonial-grid figure {
  background: rgba(17, 46, 41, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.testimonial-grid blockquote {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-light);
  font-family: 'SansGuilt', 'Fraunces', serif;
}

.testimonial-grid figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.order {
  margin: 6rem 0 3rem;
  padding: 2.5rem;
  border-radius: 32px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(120deg, rgba(196, 68, 31, 0.18), rgba(143, 224, 197, 0.12));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: flex-start;
}

.order__intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order__details {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--text-muted);
}

.order__details li {
  display: flex;
  align-items: center;
}

.order__details li::before {
  content: '▸';
  margin-right: 0.5rem;
  color: var(--accent-mint);
}

.order__form {
  background: rgba(10, 27, 24, 0.8);
  border-radius: 28px;
  border: 1px solid var(--border-soft);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 14px;
  border: 1px solid rgba(248, 246, 241, 0.2);
  background: rgba(17, 46, 41, 0.6);
  color: var(--text-light);
  padding: 0.85rem 1rem;
  font: inherit;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.color-fieldset {
  border: 0;
  padding: 1.4rem 1.5rem 1.2rem;
  border-radius: 24px;
  background: rgba(17, 46, 41, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.color-fieldset legend {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.color-fieldset__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.color-fieldset__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.color-picker {
  position: relative;
}

.color-picker__trigger {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(248, 246, 241, 0.2);
  background: rgba(12, 33, 30, 0.7);
  color: var(--text-light);
  padding: 0.85rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.color-picker__trigger:hover {
  border-color: var(--accent-mint);
}

.color-picker__trigger[aria-expanded='true'] {
  border-color: var(--accent-mint);
  transform: translateY(-1px);
}

.color-picker__swatch {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(248, 246, 241, 0.3);
  flex-shrink: 0;
  background: transparent;
}

.color-picker__swatch--empty {
  opacity: 0.35;
}

.color-picker__value {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  flex: 1;
  color: var(--text-light);
}

.color-picker__chevron {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.color-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.color-modal[data-active='true'] {
  display: flex;
}

.color-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 10, 0.75);
  backdrop-filter: blur(6px);
}

.color-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: calc(100% - 2rem);
  background: rgba(10, 27, 24, 0.96);
  border: 1px solid rgba(248, 246, 241, 0.18);
  border-radius: 28px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 40px 60px rgba(0, 0, 0, 0.4);
}

.color-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.color-modal__title {
  font-size: 1.2rem;
  font-family: 'SansGuilt', 'Fraunces', serif;
}

.color-modal__close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.color-modal__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.color-modal__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-modal__quick button {
  border-radius: 999px;
  border: 1px solid rgba(248, 246, 241, 0.25);
  background: rgba(248, 246, 241, 0.05);
  color: var(--text-light);
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.color-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
}

.color-modal__option {
  border-radius: 18px;
  border: 1px solid rgba(248, 246, 241, 0.15);
  background: rgba(16, 44, 40, 0.6);
  color: var(--text-light);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.color-modal__option[aria-current='true'] {
  border-color: var(--accent-mint);
  box-shadow: 0 0 0 1px rgba(143, 224, 197, 0.4);
}

.color-modal__option:hover,
.color-modal__option:focus-visible {
  border-color: var(--accent-mint);
  outline: none;
}

.color-modal__swatch {
  width: 40px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(248, 246, 241, 0.35);
  flex-shrink: 0;
}

.color-modal__label {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.modal-open {
  overflow: hidden;
}

.privacy-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-status[data-state='success'] {
  color: var(--accent-mint);
}

.form-status[data-state='error'] {
  color: #ffb3a6;
}

.form-status[data-state='pending'] {
  color: var(--text-light);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.site-footer {
  margin: 2rem 0 3rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 768px) {
  body {
    padding: 0 1.5rem 4rem;
  }
  .site-header {
    flex-direction: column;
    gap: 1rem;
  }
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
