/* ============================================================
   Fonts
   ============================================================ */

/* DM Sans – self-hosted (DSGVO-konform, kein Google CDN) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/GothamBook.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/GothamMedium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/GothamBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* DM Sans – loaded via Google Fonts in base.html */

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

/* Scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: #000 #f0f0f0;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #000 #f0f0f0;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: #f0f0f0; }
*::-webkit-scrollbar-thumb { background: #000; border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: #333; }
*::-webkit-scrollbar-thumb:active { background: #555; }

body {
  font-family: 'DM Sans', 'Gotham', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #000;
  margin: 0;
}

main {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
}

/* ============================================================
   Shared Animations
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-ready { opacity: 0; }
.anim-in { animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* ============================================================
   Header
   ============================================================ */
.header {
  width: 100%;
  height: 70px;
  border-bottom: 1px solid #BFBFBF;
}
.header-inner {
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-link { display: inline-block; text-decoration: none; }
.logo-img { height: 56px; width: auto; display: block; }

/* ============================================================
   Footer
   ============================================================ */
.footer {}
.footer-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  width: 100%;
}
.footer-copyright {
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: #000;
  margin: 0;
  flex-shrink: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px 24px;
  margin: 0;
  margin-left: auto;
  flex-shrink: 0;
}
.footer-link {
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: #000; }
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }
  .footer-copyright {
    width: 100%;
    text-align: center;
  }
  .footer-nav {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

/* ============================================================
   Hero Section (shared)
   ============================================================ */
.hero-section {
  padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 24px) 0;
}
.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.hero-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 20px;
}
.hero-headline-text {
  font-size: clamp(28px, 7vw, 56px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 20px;
}
.hero-description {
  font-size: clamp(12px, 3.5vw, 13px);
  letter-spacing: 0.05em;
  line-height: 1.8;
  color: #444;
  margin: 0 auto;
  max-width: 540px;
}
.hero-description + .hero-description {
  margin-top: 14px;
}
.hero-conditions {
  font-size: clamp(9px, 2.5vw, 11px);
  color: #888;
  letter-spacing: 0.06em;
}

/* ============================================================
   Form Input
   ============================================================ */
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #999;
  color: #000;
  padding: 10px 0;
  font-family: 'DM Sans', 'Gotham', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
  min-height: 42px;
  text-align: left;
  line-height: 1;
}
input[type="url"].form-input,
input[type="tel"].form-input,
input[type="email"].form-input { font-size: 14px !important; }
.form-input::placeholder { color: #666; }
.form-input:focus {
  border-bottom-color: #000;
  border-bottom-width: 1px;
  background-color: #fff;
}

/* ============================================================
   Button
   ============================================================ */
.btn-primary {
  background: #000;
  color: #fff;
  font-family: 'DM Sans', 'Gotham', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 48px;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  height: 40px;
  min-height: 40px;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.btn-primary:hover { background: #8e8e8e; color: #fff; border: 1px solid #8e8e8e; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary .htmx-indicator { display: none; }
.btn-primary.htmx-request .submit-label { display: none; }
.btn-primary .spinner {
  border-color: #fff;
  border-top-color: transparent;
}

/* ============================================================
   Spinner
   ============================================================ */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ============================================================
   Toggle-Switch (Checkbox Pill)
   ============================================================ */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: #000;
  cursor: pointer;
  position: relative;
}
.checkbox-label > span { margin-top: -0.3em; }
.checkbox-label input[type="checkbox"] {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 44px;
  min-width: 44px;
  height: 24px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  align-self: flex-start;
}
.checkbox-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #d1d1d1;
  pointer-events: none;
  transition: background 0.2s ease;
}
.checkbox-label::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transition: transform 0.2s ease;
}
.checkbox-label:has(input:checked)::before { background: #000; }
.checkbox-label:has(input:checked)::after { transform: translateX(20px); }

/* ============================================================
   HTMX
   ============================================================ */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }
.htmx-request.htmx-indicator { display: inline-block; }

/* ============================================================
   Cookie Banner
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #BFBFBF;
  padding: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) {
  #cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 16px;
  }
}
#cookie-banner-buttons { display: flex; gap: 10px; flex-shrink: 0; }
@media (min-width: 640px) {
  #cookie-banner-buttons button { flex: none !important; min-width: 160px; }
}
.cookie-banner-text {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #000;
  margin: 0;
}
.cookie-banner-link { color: #000; text-decoration: underline; }
.cookie-btn-accept {
  flex: 1;
}
.cookie-btn-decline {
  flex: 1;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 16px 48px;
  font-family: 'DM Sans', 'Gotham', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  height: 40px;
  min-height: 40px;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cookie-btn-decline:hover { background: #f5f5f5; }

/* ============================================================
   Form Fields (landing / form partials)
   ============================================================ */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 4vw, 20px);
}
.form-field-wrap {
  position: relative;
  padding-top: 20px;
}
.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 8px;
}
.form-label-float {
  position: absolute;
  left: 0;
  top: 38px;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: none;
  color: #666;
  pointer-events: none;
  transition: top 0.25s ease, font-size 0.25s ease, color 0.25s ease, letter-spacing 0.25s ease;
}
.form-field-wrap input:focus ~ .form-label-float,
.form-field-wrap input:not(:placeholder-shown) ~ .form-label-float {
  top: 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
}
.form-opt-ins {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.form-optin-hint {
  font-size: 10px;
  letter-spacing: 0.03em;
  color: #888;
  line-height: 1.6;
  margin: -8px 0 0;
}
.form-legal {
  font-size: 10px;
  letter-spacing: 0.03em;
  color: #555;
  line-height: 1.6;
  margin: 0;
}
.form-legal-link { color: #555; text-decoration: underline; }
.form-submit-wrap { margin-top: 8px; }
.form-error {
  font-size: 12px;
  color: #c00;
  margin: 4px 0 0;
  letter-spacing: 0.03em;
}
.form-success {
  font-size: 12px;
  color: #22a244;
  margin: 4px 0 0;
  letter-spacing: 0.03em;
}
.form-error-box {
  border: 1px solid #c00;
  background: #fff5f5;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.form-error-box-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c00;
  margin: 0 0 4px;
  font-weight: 700;
}
.form-error-box-msg {
  font-size: 10px;
  letter-spacing: 0.03em;
  color: #c00;
  margin: 0;
}

/* ============================================================
   Landing Page
   ============================================================ */
@keyframes fadeCharIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

#hero-headline { overflow: visible; }
.hero-char {
  display: inline-block;
  opacity: 0;
  animation: fadeCharIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}
.hero-char--space { display: inline-block; width: 0.28em; }
.hero-subtitle {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.form-section {
  padding: clamp(32px, 5vw, 48px) clamp(16px, 4vw, 24px) clamp(40px, 8vw, 72px);
}
.form-section-inner {
  max-width: 520px;
  margin: 0 auto;
}
.form-section-title {
  font-size: clamp(13px, 2.5vw, 16px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 40px;
  text-align: center;
  line-height: 1.1;
}

.how-section {
  border-top: 1px solid #BFBFBF;
  padding: clamp(40px, 8vw, 72px) clamp(16px, 4vw, 24px);
}
.how-inner { max-width: 800px; margin: 0 auto; }
.how-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 clamp(32px, 6vw, 48px);
  text-align: center;
}
.how-grid { gap: clamp(32px, 6vw, 48px); }
.how-step { text-align: center; }
.how-step-num {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 0.05em;
}
.how-step-divider {
  width: 32px;
  height: 1px;
  background: #BFBFBF;
  margin: 0 auto 12px;
}
.how-step-text {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   Promo Steps
   ============================================================ */
.promo-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: auto;
}
.promo-step {
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.promo-step-num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1;
}
.promo-step-divider {
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.promo-step-text {
  font-size: clamp(11px, 1.5vw, 13px);
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin: 0;
}
.promo-step--1 { background: #914b7e; color: #fff; }
.promo-step--2 { background: #e6e0d2; color: #1a1a1a; }
.promo-step--3 { background: #7ba28e; color: #fff; }
@media (max-width: 768px) {
  .promo-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   Check Page
   ============================================================ */
.check-section {
  padding: clamp(40px, 8vw, 72px) clamp(16px, 4vw, 24px);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-inner {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}
.check-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #555;
  margin: 0;
  text-align: center;
}

/* Progress / queue */
.check-progress-wrap { text-align: center; padding: 48px 0; }
.check-spinner {
  width: 56px;
  height: 56px;
  border: 1px solid #ccc;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 32px;
}
.check-spinner--pending {
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: none;
}
.check-h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.check-p { font-size: 12px; letter-spacing: 0.05em; color: #666; margin: 0; }
.check-p--mb { margin: 0 0 20px; }
.check-eta-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}
.check-eta-row {
  display: flex;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #888;
}
.check-eta-bar-wrap {
  width: 180px;
  height: 2px;
  background: #e8e8e8;
  border-radius: 1px;
  overflow: hidden;
}
.check-eta-bar {
  height: 100%;
  background: #000;
  border-radius: 1px;
  width: 0%;
  transition: width 1s linear;
}

/* Queue status (inline in form) */
.queue-poller {
  font-size: 11px;
  color: #888;
  margin: 6px 0 0;
  letter-spacing: 0.03em;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.queue-poller p { margin: 0; }
.queue-poller-bar-wrap {
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  border-radius: 1px;
  overflow: hidden;
  margin-top: 2px;
}
.queue-poller-bar {
  height: 100%;
  background: #aaa;
  border-radius: 1px;
  width: 0%;
  transition: width 1s linear;
}

/* Result blocks */
.check-result { text-align: center; padding: 48px 0; }
.check-result-icon-wrap {
  width: 56px;
  height: 56px;
  border: 1px solid #c00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}
.check-result-icon-wrap svg { width: 24px; height: 24px; }
.check-result-icon-wrap--success { border-color: #000; }
.check-result-h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.check-result-p {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #666;
  line-height: 1.8;
  margin: 0 0 8px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.check-result-p--mb-lg { margin: 0 0 32px; }
.check-result-p--wide { max-width: 380px; margin: 0 auto 32px; }
.check-result-p--body {
  font-size: 13px;
  color: #444;
  margin: 0 auto 40px;
  max-width: 400px;
}
.check-result-strong { color: #000; }
.check-result-meta {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #999;
  margin: 0 0 28px;
}
.check-result-form {
  margin: 32px 0 0;
  display: flex;
  justify-content: center;
}
.check-result-btn { max-width: 280px; width: auto; }
.check-result-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-family: 'DM Sans', 'Gotham', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: none;
  padding: 16px 48px;
  border-radius: 0.5rem;
  text-decoration: none;
  height: 40px;
  min-height: 40px;
  transition: background 0.35s ease, color 0.35s ease;
  margin-top: 32px;
}
.check-result-link:hover { background: #8e8e8e; color: #fff; }
.check-result-divider {
  width: 48px;
  height: 1px;
  background: #000;
  margin: 0 auto;
}

/* ============================================================
   Legal Pages
   ============================================================ */
.hero-headline-text--legal { font-size: clamp(24px, 5vw, 36px); }
.legal-section {
  padding: clamp(32px, 5vw, 48px) clamp(16px, 4vw, 24px) clamp(40px, 8vw, 72px);
  max-width: 760px;
  margin: 0 auto;
}
.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  margin-bottom: clamp(32px, 6vw, 48px);
}
.legal-body { font-size: 13px; line-height: 1.9; letter-spacing: 0.02em; color: #444; }
.legal-intro {
  color: #555;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 40px;
}
.legal-intro--impressum { margin: 0 0 32px; }
.legal-sections { display: flex; flex-direction: column; gap: 40px; }
.legal-sections--impressum { gap: 32px; }
.legal-h2 {
  color: #000;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 16px;
  border-bottom: 0.5px solid #BFBFBF;
  padding-bottom: 12px;
}
.legal-h2--impressum {
  color: #000;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 12px;
  border: none;
  padding: 0;
}
.legal-p { margin: 0; }
.legal-p--mb { margin: 0 0 16px; }
.legal-p--mb-sm { margin: 0 0 8px; }
.legal-p--mt { margin: 16px 0 0; }
.legal-ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-strong { color: #000; }
.legal-divider { height: 0.5px; background: #BFBFBF; }
.legal-link { color: #000; text-decoration: underline; }
