/* ============================================================
   COMPONENTS.CSS — Nav · Buttons · Cards · Marquee
                    Forms · Footer · Mobile Menu
   everspice.de · 2026
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   NAVIGATION
   ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding-inline: clamp(24px, 5vw, 72px);
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease,
              box-shadow 0.5s ease;
}

.nav.scrolled {
  background-color: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--color-border);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 1;
}

.nav__logo-img {
  height: 26px;
  width: auto;
}

/* Desktop Links — zentriert */
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 48px);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-red);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover { color: var(--color-text-primary); }
.nav__link:hover::after { width: 100%; }

.nav__link.active {
  color: var(--color-red);
}
.nav__link.active::after {
  width: 100%;
  background: var(--color-red);
}

/* Rechte Aktionen */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
  z-index: 1;
}

/* Sprachswitch */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__lang-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.nav__lang-btn.active,
.nav__lang-btn:hover {
  color: var(--color-red);
}

.nav__lang-sep {
  color: var(--color-text-muted);
  font-size: 11px;
  opacity: 0.4;
}

/* Projekt Anfragen — CTA Nav Button */
.nav__cta {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid var(--color-red);
  border-radius: var(--radius-pill);
  color: var(--color-red);
  background: transparent;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease,
              box-shadow 0.25s ease;
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--color-red);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.nav__cta:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

/* Hamburger (Mobile) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  height: 1px;
  background: var(--color-text-primary);
  border-radius: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.nav__hamburger span:nth-child(3) {
  width: 60%;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) {
  width: 100%;
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-3xl) clamp(24px, 8vw, 80px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(36px, 9vw, 72px);
  letter-spacing: -0.04em;
  color: var(--color-text-secondary);
  text-decoration: none;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out),
              color 0.25s ease;
}

.mobile-menu.open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-menu__link:nth-child(1) { transition-delay: 0.04s; }
.mobile-menu.open .mobile-menu__link:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.open .mobile-menu__link:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.open .mobile-menu__link:nth-child(4) { transition-delay: 0.16s; }
.mobile-menu.open .mobile-menu__link:nth-child(5) { transition-delay: 0.20s; }

.mobile-menu__link:hover { color: var(--color-red); }

.mobile-menu__bottom {
  margin-top: auto;
  padding-top: var(--space-xl);
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
}
.mobile-menu.open .mobile-menu__bottom {
  opacity: 1;
}

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__lang  { display: none; }
  .nav__cta   { display: none; }
  .nav__hamburger { display: flex; }
}

@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}


/* ────────────────────────────────────────────────────────────
   BUTTONS
   ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

/* Primary — Rot Filled */
.btn--primary {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
  background: var(--color-red-hover);
  border-color: var(--color-red-hover);
}

.btn--primary:active { transform: scale(0.98); }

/* Ghost — transparenter Rand */
.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn--ghost:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

/* Arrow Icon im Button */
.btn .btn-arrow {
  transition: transform 0.25s ease;
}
.btn:hover .btn-arrow {
  transform: translate(3px, -3px);
}

/* ─── Form Submit States ─────────────────────────────────── */

/* Sending — Button disabled + Loading-Dots-SVG (per JS gesetzt) */
.btn--sending {
  pointer-events: none;
  opacity: 0.9;
}
.btn-loading-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.btn-loading-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: btn-dot-pulse 1.2s ease-in-out infinite;
}
.btn-loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.btn-loading-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes btn-dot-pulse {
  0%, 60%, 100% { transform: scale(0.8); opacity: 0.4; }
  30%           { transform: scale(1);   opacity: 1; }
}

/* Sent — Success Pulse + Grün */
.btn--sent {
  pointer-events: none;
  background: var(--color-success) !important;
  border-color: var(--color-success) !important;
  animation: btn-sent-pulse 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn--sent .btn-check {
  animation: btn-check-draw 0.5s 0.1s ease-out both;
}

@keyframes btn-sent-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(76, 175, 122, 0.15); }
  100% { transform: scale(1); box-shadow: 0 0 0 0   rgba(76, 175, 122, 0); }
}

@keyframes btn-check-draw {
  from { stroke-dashoffset: 20; opacity: 0; transform: scale(0.7); }
  to   { stroke-dashoffset: 0;  opacity: 1; transform: scale(1); }
}

.btn-check {
  stroke-dasharray: 20;
  stroke-dashoffset: 0;
}

/* Error — Shake */
.btn--error {
  animation: btn-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes btn-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60%     { transform: translateX(4px); }
}

/* Form-Card Success Flash */
.contact__card.is-sent {
  animation: card-success-flash 0.8s ease-out;
}

@keyframes card-success-flash {
  0%   { box-shadow: 0 0 0 0 rgba(76, 175, 122, 0); }
  30%  { box-shadow: 0 0 60px 0 rgba(76, 175, 122, 0.25); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 122, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-loading-dots span,
  .btn--sent,
  .btn--sent .btn-check,
  .btn--error,
  .contact__card.is-sent {
    animation: none !important;
  }
}

/* Link Arrow — inline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
}

.link-arrow svg {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.link-arrow:hover {
  color: var(--color-red);
  gap: 14px;
}
.link-arrow:hover svg {
  transform: translate(2px, -2px);
}


/* ────────────────────────────────────────────────────────────
   SERVICE CARDS — Editorial, minimalistisch
   ──────────────────────────────────────────────────────────── */
.service-item {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border-subtle);
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--space-lg);
  align-items: center;
  text-decoration: none;
  transition: border-color 0.35s ease;
  position: relative;
}

.service-item::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-red);
  transition: width 0.5s var(--ease-out);
}

.service-item:hover { border-top-color: var(--color-border); }
.service-item:hover::after { width: 100%; }

.service-item:last-child {
  border-bottom: 1px solid var(--color-border-subtle);
}

.service-item__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-red);
  flex-shrink: 0;
}

.service-item__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-item__title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 36px);
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  line-height: 1;
  transition: color 0.25s ease;
}

.service-item:hover .service-item__title {
  color: var(--color-red);
}

.service-item__desc {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 50ch;
}

.service-item__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.35s var(--ease-out);
}

.service-item:hover .service-item__arrow {
  border-color: var(--color-red);
  color: var(--color-red);
  transform: rotate(45deg);
}

@media (max-width: 767px) {
  .service-item {
    grid-template-columns: 40px 1fr;
    gap: var(--space-md);
  }
  .service-item__arrow { display: none; }
  .service-item__desc  { display: none; }
}


/* ────────────────────────────────────────────────────────────
   PORTFOLIO CARDS
   ──────────────────────────────────────────────────────────── */
.card {
  display: block;
  text-decoration: none;
  position: relative;
}

.card__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0; /* scharf, kein rounding */
  background: var(--color-bg-elevated);
}

.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-expo);
}

/* Mockup-Bilder: eigenes Ratio, kein Cropping, transparenter Hintergrund */
.card__img-wrap--auto {
  aspect-ratio: unset !important;
  background: transparent;
}

.card__img-wrap--auto img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.card:hover .card__img-wrap img {
  transform: scale(1.04);
}

/* Hover Overlay — fast schwarz, Infos unten */
.card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.72);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover .card__overlay { opacity: 1; }

.card__overlay-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 6px;
}

.card__overlay-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover .card__overlay-arrow {
  border-color: var(--color-red);
  background: var(--color-red);
}

/* Placeholder — für Projekte ohne Bild */
.card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card Meta */
.card__meta {
  padding-top: var(--space-md);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.card__info { flex: 1; }

.card__title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  line-height: 1.15;
  margin-bottom: 4px;
  transition: color 0.25s ease;
}

.card:hover .card__title { color: var(--color-red-hover); }

.card__category {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.card__year {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  flex-shrink: 0;
}


/* ────────────────────────────────────────────────────────────
   MARQUEE — Gold-Akzent Dots
   ──────────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(20px, 3.5vw, 36px);
  cursor: default;
  user-select: none;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

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

.marquee__text {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(22px, 4vw, 52px);
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--color-text-muted);
  line-height: 1;
}

.marquee__dot {
  display: inline-block;
  width: clamp(6px, 1vw, 10px);
  height: clamp(6px, 1vw, 10px);
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────
   STAT ZAHLEN
   ──────────────────────────────────────────────────────────── */
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__number {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text-primary);
}

.stat__suffix {
  color: var(--color-red);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}


/* ────────────────────────────────────────────────────────────
   KONTAKTFORMULAR
   ──────────────────────────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form__row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form__row--3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 599px) {
  .form__row,
  .form__row--2,
  .form__row--3 { grid-template-columns: 1fr; }
}

.form__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: 300;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.25s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-muted);
  font-weight: 300;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-bottom-color: var(--color-red);
}

.form__input.error,
.form__textarea.error {
  border-bottom-color: var(--color-error);
}

.form__textarea {
  resize: none;
  min-height: 100px;
}

.form__select {
  cursor: pointer;
  color: var(--color-text-secondary);
}

.form__select option {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

/* Honeypot — versteckt für Bots */
.form__honeypot {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

/* Error */
.form__error-msg {
  font-size: 12px;
  color: var(--color-error);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  display: none;
}
.form__field.has-error .form__error-msg { display: block; }

/* Status */
.form__status {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-ui);
  font-weight: 400;
  display: none;
  border: 1px solid;
}
.form__status.success {
  display: block;
  background: rgba(76, 175, 122, 0.08);
  border-color: rgba(76, 175, 122, 0.3);
  color: var(--color-success);
}
.form__status.error {
  display: block;
  background: rgba(229, 85, 85, 0.08);
  border-color: rgba(229, 85, 85, 0.3);
  color: var(--color-error);
}

/* Datenschutz Checkbox */
.form__checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form__checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 2px;
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 2px;
  accent-color: var(--color-red);
}

.form__checkbox-label {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.form__checkbox-label a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ────────────────────────────────────────────────────────────
   SOCIAL LINKS
   ──────────────────────────────────────────────────────────── */
.social-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.social-link:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.social-link:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

.social-link svg {
  width: 15px;
  height: 15px;
}


/* ────────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border-subtle);
  padding-block: var(--space-xl);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__logo img {
  height: 20px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.footer__logo:hover img { opacity: 1; }

.footer__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
}

.footer__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover { color: var(--color-red); }

.footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.footer__bear {
  opacity: 0.6;
  vertical-align: middle;
}

.footer__credit {
  text-align: center;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.footer__credit strong {
  font-weight: 400;
  letter-spacing: 0.14em;
}

@media (max-width: 767px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }
}


/* ────────────────────────────────────────────────────────────
   SCROLL PROGRESS BAR
   ──────────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-red-dark), var(--color-red), var(--color-red-hover));
  z-index: 101;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.08s linear;
}


/* ────────────────────────────────────────────────────────────
   LEGAL PAGES — Impressum, Datenschutz
   ──────────────────────────────────────────────────────────── */
.legal__content {
  margin-top: var(--space-2xl);
}

.legal__content h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal__content h3 {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal__content p {
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  max-width: none;
}

.legal__content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal__content li {
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
  list-style: none;
  position: relative;
  padding-left: var(--space-md);
}

.legal__content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-red);
}

.legal__content a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal__content a:hover {
  color: var(--color-red-hover);
}

.legal__content strong {
  font-weight: 500;
  color: var(--color-text-primary);
}

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


/* ────────────────────────────────────────────────────────────
   COOKIE BANNER — Bottom Bar
   ──────────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: clamp(20px, 3vw, 32px) clamp(20px, 5vw, 80px);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1320px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.cookie-banner__desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 55ch;
  margin: 0;
}

.cookie-banner__desc a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-banner__actions .btn {
  padding: 11px 24px;
  font-size: 12px;
}

@media (max-width: 599px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { flex-direction: column; }
  .cookie-banner__actions .btn { width: 100%; justify-content: center; }
}


/* ────────────────────────────────────────────────────────────
   COOKIE SETTINGS — Modal
   ──────────────────────────────────────────────────────────── */
.cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-settings.is-visible {
  opacity: 1;
  pointer-events: all;
}

.cookie-settings__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.cookie-settings__card {
  position: relative;
  width: 90%;
  max-width: 520px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-out);
}

.cookie-settings.is-visible .cookie-settings__card {
  transform: translateY(0);
}

.cookie-settings__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-lg) 0;
}

.cookie-settings__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.cookie-settings__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-subtle);
  border-radius: 50%;
  transition: color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  background: none;
}

.cookie-settings__close:hover {
  color: var(--color-red);
  border-color: var(--color-red);
}

.cookie-settings__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cookie-settings__group {
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-md);
}

.cookie-settings__group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.cookie-settings__group-header strong {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-primary);
}

.cookie-settings__group-header p {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: 4px;
  max-width: none;
}

.cookie-settings__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-success);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

/* Toggle Switch */
.cookie-settings__toggle {
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-settings__toggle input {
  display: none;
}

.cookie-settings__toggle-track {
  display: block;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-settings__toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-text-muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.cookie-settings__toggle input:checked + .cookie-settings__toggle-track {
  background: rgba(232, 25, 44, 0.15);
  border-color: var(--color-red);
}

.cookie-settings__toggle input:checked + .cookie-settings__toggle-track::after {
  transform: translateX(18px);
  background: var(--color-red);
}

.cookie-settings__footer {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.cookie-settings__footer .btn {
  padding: 11px 24px;
  font-size: 12px;
}

@media (max-width: 599px) {
  .cookie-settings__footer { flex-direction: column; }
  .cookie-settings__footer .btn { width: 100%; justify-content: center; }
}
