/* ==========================================================================
   SCHOLDRA – Fußbodentechnik seit 1959
   Custom Styles (ergänzt Tailwind CSS via CDN)
   ========================================================================== */

:root {
  --ink: #1c1917;
  --alabaster: #faf9f6;
  --oak: #b45309;
  --amber: #d97706;
  --header-height: 76px;
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--alabaster);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

::selection {
  background: #f59e0b;
  color: #1c1917;
}

:focus-visible {
  outline: 2px solid var(--oak);
  outline-offset: 3px;
  border-radius: 3px;
}

img,
svg,
iframe {
  max-width: 100%;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  transform: translateY(-180%);
  border-radius: 0.75rem;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline-color: #fbbf24;
}

/* --------------------------------------------------------------------------
   Typografie & Eyebrows
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #92400e;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
  flex: none;
}

.eyebrow-light {
  color: #fbbf24;
}

.eyebrow-center {
  justify-content: center;
}

.eyebrow-center::after {
  content: "";
  display: block;
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
  flex: none;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */

#site-header {
  background: rgba(250, 249, 246, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#site-header.is-scrolled {
  background: rgba(250, 249, 246, 0.94);
  border-bottom-color: rgba(28, 25, 23, 0.09);
  box-shadow: 0 14px 38px -30px rgba(28, 25, 23, 0.5);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 0.85rem;
  color: #fff;
  background:
    linear-gradient(145deg, #b45309 0%, #d97706 55%, #f59e0b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 22px -12px rgba(180, 83, 9, 0.75);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a:hover .logo-mark {
  transform: translateY(-1px) rotate(-2deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 14px 28px -14px rgba(180, 83, 9, 0.8);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
  color: #57534e;
  font-size: 0.83rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  border-radius: 99px;
  background: var(--oak);
  transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  right: 0;
}

#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

#mobile-menu.is-open {
  max-height: 42rem;
  opacity: 1;
}

#scroll-progress {
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-primary,
.btn-secondary,
.btn-outline-dark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 0.85rem;
  padding: 0.9rem 1.35rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  overflow: hidden;
  background: linear-gradient(135deg, #b45309 0%, #b85a08 100%);
  color: #fff;
  box-shadow: 0 16px 32px -18px rgba(180, 83, 9, 0.75);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: transform 0.7s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px -20px rgba(180, 83, 9, 0.8);
}

.btn-primary:hover::after {
  transform: translateX(130%) skewX(-18deg);
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-primary:active,
.btn-secondary:active,
.btn-outline-dark:active {
  transform: translateY(0);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
}

.btn-outline-dark:hover {
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(255, 255, 255, 0.06);
  color: #fcd34d;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 1.05rem 1.6rem;
  border-radius: 0.95rem;
  font-size: 0.98rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: #92400e;
  transition: color 0.2s ease, gap 0.2s ease;
}

.btn-ghost:hover {
  color: var(--ink);
  gap: 0.7rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero-media img {
  animation: heroZoom 22s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes heroZoom {
  from {
    transform: scale(1.07);
  }
  to {
    transform: scale(1);
  }
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.94) 0%, rgba(12, 10, 9, 0.82) 32%, rgba(12, 10, 9, 0.5) 62%, rgba(12, 10, 9, 0.28) 100%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.55) 0%, rgba(12, 10, 9, 0.05) 28%, rgba(12, 10, 9, 0.18) 70%, rgba(12, 10, 9, 0.72) 100%);
}

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.hero-badge {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(28, 25, 23, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 32px 70px -40px rgba(0, 0, 0, 0.75);
}

.hero-rule {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* --------------------------------------------------------------------------
   Marquee (Marken)
   -------------------------------------------------------------------------- */

.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */

.service-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, #f59e0b, #b45309);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #d6d3d1;
  box-shadow: 0 28px 60px -34px rgba(28, 25, 23, 0.32);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card .service-arrow {
  transition: transform 0.3s ease;
}

.service-card:hover .service-arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Swatches / Sonderposten
   -------------------------------------------------------------------------- */

.swatch {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow:
    0 28px 50px -24px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.22), transparent 36%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.sample-oak {
  background-color: #c08a5a;
  background-image:
    repeating-linear-gradient(91deg, rgba(70, 40, 20, 0.22) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(89deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 19px),
    linear-gradient(180deg, #d0a072, #a97143);
}

.sample-nuss {
  background-color: #6b4a32;
  background-image:
    repeating-linear-gradient(92deg, rgba(30, 18, 10, 0.28) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(88deg, rgba(255, 235, 200, 0.1) 0 1px, transparent 1px 23px),
    linear-gradient(160deg, #8a6244, #543827);
}

.sample-rubber {
  background-color: #3f3b36;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.38) 1px, transparent 1px),
    linear-gradient(145deg, #4b4741, #302d29);
  background-size: 6px 6px, 9px 9px, 100% 100%;
}

.sample-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  padding: 1rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.progress-track {
  overflow: hidden;
  border-radius: 99px;
  background: #e7e5e4;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b45309, #f59e0b);
  box-shadow: 0 0 18px rgba(217, 119, 6, 0.35);
}

.progress-native {
  display: block;
  width: 100%;
  height: 0.625rem;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: #e7e5e4;
  accent-color: #b45309;
  -webkit-appearance: none;
  appearance: none;
}

.progress-native::-webkit-progress-bar {
  border-radius: 99px;
  background: #e7e5e4;
}

.progress-native::-webkit-progress-value {
  border-radius: 99px;
  background: linear-gradient(90deg, #b45309, #f59e0b);
}

.progress-native::-moz-progress-bar {
  border-radius: 99px;
  background: linear-gradient(90deg, #b45309, #f59e0b);
}

#config-progress,
#mobile-progress {
  width: 33.333%;
}

.dark-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 64px 64px;
}

.footer-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* --------------------------------------------------------------------------
   About / Bildkomposition
   -------------------------------------------------------------------------- */

.image-frame {
  isolation: isolate;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid rgba(180, 83, 9, 0.35);
  border-radius: 1.5rem;
  z-index: -1;
  pointer-events: none;
}

.about-badge {
  box-shadow: 0 24px 50px -24px rgba(28, 25, 23, 0.45);
}

.signature-line {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Configurator / Formular
   -------------------------------------------------------------------------- */

.option-card {
  position: relative;
  display: block;
  cursor: pointer;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  background: #fff;
  padding: 1.05rem;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.option-card:hover {
  border-color: #d6d3d1;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -24px rgba(28, 25, 23, 0.45);
}

.option-card:has(input:focus-visible) {
  outline: 2px solid var(--oak);
  outline-offset: 3px;
}

.option-card.is-selected {
  border-color: #d97706;
  background: #fffbeb;
  box-shadow:
    0 0 0 1px #d97706 inset,
    0 16px 34px -28px rgba(180, 83, 9, 0.65);
}

.option-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  border-radius: 0.7rem;
  background: #f5f5f4;
  color: #78716c;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.option-card.is-selected .option-icon {
  background: #fef3c7;
  color: #b45309;
}

.option-check {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  border-radius: 999px;
  border: 1.5px solid #d6d3d1;
  color: #fff;
  background: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.option-check svg {
  width: 0.8rem;
  height: 0.8rem;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.option-card.is-selected .option-check {
  background: #b45309;
  border-color: #b45309;
}

.option-card.is-selected .option-check svg {
  opacity: 1;
  transform: none;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #44403c;
}

.form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d6d3d1;
  background: #fff;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #1c1917;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: #a8a29e;
}

.form-input:focus {
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
}

.form-input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

input[type="checkbox"].form-checkbox {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  margin-top: 0.15rem;
  accent-color: #b45309;
}

.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.4;
  color: #b91c1c;
}

.field-error.is-visible {
  display: block;
}

.range {
  --range-progress: 7%;
  display: block;
  width: 100%;
  height: 0.4rem;
  margin: 1.35rem 0 0.8rem;
  border-radius: 999px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    90deg,
    #b45309 0%,
    #d97706 var(--range-progress),
    #e7e5e4 var(--range-progress),
    #e7e5e4 100%
  );
  cursor: pointer;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 3px solid #b45309;
  background: #faf9f6;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.2);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.range::-webkit-slider-thumb:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.12), 0 6px 16px rgba(28, 25, 23, 0.22);
}

.range:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.range::-moz-range-thumb {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 3px solid #b45309;
  background: #faf9f6;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.2);
  cursor: grab;
}

.range::-moz-range-track {
  height: 0.4rem;
  border-radius: 999px;
  background: transparent;
}

.step-panel:not([hidden]) {
  animation: panelIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.step-dot {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #a8a29e;
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.step-dot .step-check {
  display: none;
  width: 0.95rem;
  height: 0.95rem;
}

.step-label {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #d6d3d1;
  transition: color 0.3s ease;
}

.step-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #a8a29e;
}

.step-item.is-active .step-dot {
  background: #d97706;
  border-color: #d97706;
  color: #1c1917;
  box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.13);
}

.step-item.is-active .step-label {
  color: #fff;
  font-weight: 600;
}

.step-item.is-done .step-dot {
  background: #b45309;
  border-color: #b45309;
  color: #fff;
}

.step-item.is-done .step-num {
  display: none;
}

.step-item.is-done .step-check {
  display: block;
}

.step-item.is-done .step-label {
  color: #e7e5e4;
}

.summary-value {
  max-width: 12rem;
  text-align: right;
  color: #faf9f6;
  font-weight: 500;
}

#config-progress {
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-shake {
  animation: formShake 0.4s ease;
}

@keyframes formShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}

.spinner {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-item summary {
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .faq-icon {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] {
  background: #fff;
  border-color: #e7e5e4;
  box-shadow: 0 18px 40px -34px rgba(28, 25, 23, 0.3);
}

.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  animation: panelIn 0.3s ease;
}

/* --------------------------------------------------------------------------
   Öffnungszeiten
   -------------------------------------------------------------------------- */

.hours-row {
  border: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hours-row.is-today {
  border-color: #fde68a;
  background: #fffbeb;
}

.hours-row.is-today .hours-day {
  color: #b45309;
}

.hours-row.is-today .hours-today-badge {
  display: inline-flex;
}

.hours-today-badge {
  display: none;
}

/* --------------------------------------------------------------------------
   Dialog
   -------------------------------------------------------------------------- */

#service-dialog {
  width: min(92vw, 43rem);
  max-width: 43rem;
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1.5rem;
  background: transparent;
  overflow: auto;
}

#service-dialog::backdrop {
  background: rgba(12, 10, 9, 0.68);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

#service-dialog[open] {
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dialog-pattern {
  background-image:
    radial-gradient(circle at 85% 15%, rgba(217, 119, 6, 0.22), transparent 38%),
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.035) 48% 50%, transparent 50% 100%);
  background-size: auto, 18px 18px;
}

/* --------------------------------------------------------------------------
   Sticky Mobile CTA & Back to top
   -------------------------------------------------------------------------- */

#mobile-cta {
  visibility: hidden;
  pointer-events: none;
  transform: translateY(115%);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.35s ease;
}

#mobile-cta.is-visible {
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

body.menu-open #mobile-cta,
body.dialog-open #mobile-cta {
  visibility: hidden;
  pointer-events: none;
  transform: translateY(115%);
}

#to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background-color 0.2s ease;
}

#to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (max-width: 1023px) {
  #to-top {
    display: none;
  }
}

@media (max-width: 359px) {
  .logo-subline {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   404-Code (dekorativ, über CSS statt Textknoten)
   -------------------------------------------------------------------------- */

.error-code::before {
  content: "404";
  display: block;
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(7rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  color: #feecd2;
}

/* --------------------------------------------------------------------------
   Rechtstexte
   -------------------------------------------------------------------------- */

.legal-prose h2 {
  margin-top: 2.6rem;
  margin-bottom: 0.9rem;
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1c1917;
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #292524;
}

.legal-prose p,
.legal-prose li {
  color: #57534e;
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-prose p {
  margin-bottom: 0.9rem;
}

.legal-prose ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.legal-prose li {
  margin-bottom: 0.35rem;
}

.legal-prose a {
  color: #b45309;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-prose a:hover {
  color: #1c1917;
}

.legal-prose strong {
  color: #292524;
  font-weight: 600;
}

.legal-prose address {
  font-style: normal;
  line-height: 1.75;
  color: #57534e;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media img {
    animation: none;
  }

  .marquee-track {
    animation: none;
  }

  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* --------------------------------------------------------------------------
   Mobile Feinheiten
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(12, 10, 9, 0.93) 0%, rgba(12, 10, 9, 0.78) 60%, rgba(12, 10, 9, 0.55) 100%),
      linear-gradient(180deg, rgba(12, 10, 9, 0.5) 0%, rgba(12, 10, 9, 0.1) 28%, rgba(12, 10, 9, 0.65) 100%);
  }

  #service-dialog {
    width: calc(100vw - 1.5rem);
  }
}

@media print {
  #site-header,
  #mobile-cta,
  #to-top,
  #scroll-progress,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
