/* BONTRIVO — Markenfarben, Typografie, Grundraster */

:root {
  /* surface */
  --surface: #FFF4E7;
  --surface-raised: #FFFFFF;
  --surface-sunken: #F6E8D6;
  --surface-dark: #20201E;
  --surface-brand: #E65F3C;
  --surface-accent: #B7CF4A;

  /* brand */
  --brand: #E65F3C;
  --brand-ink: #BE4020;
  --brand-soft: #FBDCD1;

  /* accent (Olive Lime — seltenes Signal) */
  --accent: #A3C13A;
  --accent-ink: #4E5E1C;
  --accent-soft: #EEF3DD;

  /* ink */
  --ink: #20201E;
  --ink-muted: #55534C;
  --ink-subtle: #85817A;

  /* on-* */
  --on-dark: #FFF4E7;
  --on-brand: #20201E;
  --on-accent: #20201E;

  --border: #E4D9C8;
  --overlay: rgba(32, 32, 30, 0.55);
  --focus-ring: #BE4020;

  /* space (4px-Raster) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --radius-icon: 20%;

  --shadow-md: 0 8px 24px rgba(32, 32, 30, 0.10);

  --font-display: 'Montserrat', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: 'Montserrat', system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-variable.woff2') format('woff2-variations'), url('fonts/montserrat-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #121211;
    --surface-raised: #20201E;
    --surface-sunken: #0A0A09;
    --border: #383632;
  }
}
:root[data-theme="dark"] {
  --surface: #121211;
  --surface-raised: #20201E;
  --surface-sunken: #0A0A09;
  --border: #383632;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
}

body {
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
a.no-underline { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

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

/* ── Typografie ─────────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 var(--space-2);
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}

.body-lg { font-size: 18px; line-height: 1.6; color: var(--ink-muted); max-width: 68ch; }
.body { font-size: 15.5px; line-height: 1.6; color: var(--ink-muted); max-width: 68ch; }

.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
}

.wordmark {
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ── Layout ─────────────────────────────────────────────── */

.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.text-col { max-width: 680px; }

section { padding: var(--space-8) 0; }
@media (min-width: 768px) {
  section { padding: var(--space-9) 0; }
}

/* ── Header ─────────────────────────────────────────────── */

header.site {
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .header-inner {
  display: flex;
  align-items: center;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
header.site .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
header.site .brand-logo {
  /* Ausnahme von der 120px-Mindestbreite (Brandboard): der Header hat
     wenig vertikalen Platz, daher hier bewusst kleiner. */
  height: var(--logo-height, 24px);
  width: auto;
  display: block;
}
header.site nav.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: var(--space-9);
}
header.site nav.nav a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
}
header.site nav.nav a:hover { color: var(--ink); }

.mega-item {
  position: relative;
}
.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.mega-trigger:hover { color: var(--ink); }
.mega-caret {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}
.mega-item.is-open .mega-trigger { color: var(--ink); }
.mega-item.is-open .mega-caret { transform: rotate(180deg); }

.mega-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 420px;
  background: var(--surface, #fff);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.14);
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 40;
}
.mega-item.is-open .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}
.mega-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  border-radius: var(--radius-sm, 8px);
  text-decoration: none;
}
.mega-link:hover { background: var(--surface-sunken); }
.mega-link-title {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.mega-link-teaser {
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .mega-panel { transition: none; }
  .mega-caret { transition: none; }
}

header.site .header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: auto;
}
header.site .header-actions .btn {
  padding: 10px 20px;
}
header.site .login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
header.site .login-link:hover { color: var(--brand-ink); }
header.site .btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
header.site .login-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 860px) {
  header.site nav.nav { display: none; }
  header.site .header-inner { justify-content: space-between; }
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}
.btn-primary:hover { background: var(--brand-ink); color: var(--on-dark); }

.btn-dark {
  background: var(--surface-dark);
  color: var(--on-dark);
}
.btn-dark:hover { background: #2b2a27; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--ink-subtle); }

/* ── Hero (Full-Height-Slider) ─────────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  background: linear-gradient(145deg, var(--surface-sunken), var(--brand-soft));
  background-size: cover;
  background-position: center;
}
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active { animation: hero-kenburns 8s ease-out forwards; }
}
@keyframes hero-kenburns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero-slide:nth-child(1) { background-image: linear-gradient(145deg, var(--surface-sunken), var(--brand-soft)); }
.hero-slide:nth-child(2) { background-image: linear-gradient(145deg, var(--brand-soft), var(--accent)); }
.hero-slide:nth-child(3) { background-image: linear-gradient(145deg, var(--surface-dark), var(--brand)); }
.hero-slide:nth-child(4) { background-image: linear-gradient(145deg, var(--accent), var(--surface-sunken)); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(32,32,30,0.15) 0%, rgba(32,32,30,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-content .eyebrow { color: rgba(255,244,231,0.85); }
.hero-content h1 { color: var(--on-dark); margin: var(--space-3) 0 var(--space-4); }
.hero-content .body-lg { color: rgba(255,244,231,0.9); margin: 0 0 var(--space-5); max-width: 56ch; }
.hero-content .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero-content .eyebrow,
.eyebrow {
  position: relative;
  display: inline-block;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 28px;
  background: currentColor;
  opacity: 0.55;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s ease 0.15s;
}
[data-reveal].is-revealed .eyebrow::after,
[data-reveal-group].is-revealed .eyebrow::after {
  transform: scaleX(1);
}
.hero-content .eyebrow::after { transform: scaleX(1); background: var(--on-dark); }

@media (prefers-reduced-motion: no-preference) {
  .hero-content h1,
  .hero-content .body-lg,
  .hero-content .actions {
    opacity: 0;
    animation: hero-fade-up 0.8s ease forwards;
  }
  .hero-content .eyebrow { opacity: 0; animation: hero-fade-up 0.8s ease forwards; }
  .hero-content .eyebrow { animation-delay: 0.05s; }
  .hero-content h1 { animation-delay: 0.18s; }
  .hero-content .body-lg { animation-delay: 0.32s; }
  .hero-content .actions { animation-delay: 0.46s; }
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: var(--space-5);
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,244,231,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
}
.hero-dot.is-active { background: var(--on-dark); }

.hero-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,244,231,0.5);
  background: rgba(32,32,30,0.25);
  color: var(--on-dark);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-arrow:hover { background: rgba(32,32,30,0.45); }
.hero-arrow.prev { left: var(--space-5); }
.hero-arrow.next { right: var(--space-5); }
@media (max-width: 640px) {
  .hero-arrow { display: none; }
}

.hero-scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: var(--space-3);
  transform: translateX(-50%);
  color: rgba(255,244,231,0.7);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: none;
}
@media (min-width: 768px) {
  .hero-scroll-cue { display: block; }
}

/* ── Cards ──────────────────────────────────────────────── */

.card {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
:root[data-theme="dark"] .card { box-shadow: none; border-color: var(--border); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card { box-shadow: none; border-color: var(--border); }
}

.feature-card.card:hover,
.card.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(32, 32, 30, 0.14);
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .feature-card.card:hover,
  .card.pricing-card:hover { transform: none; }
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 700px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ── Preise (einzelne, zentrierte Karte) ──────────────────── */

.pricing-single {
  display: flex;
  justify-content: center;
  margin-top: var(--space-5);
}
.pricing-card {
  border: 2px solid var(--brand);
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.pricing-amount-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--brand-soft);
  border-radius: var(--radius-lg);
  border-bottom: 3px solid var(--brand);
  padding: var(--space-5) var(--space-4);
  margin: 0 0 var(--space-4);
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: clamp(40px, 12vw, 78px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--brand-ink);
  margin: 0;
  white-space: nowrap;
}
.pricing-amount [data-price-display] { display: inline-block; }

.pricing-features {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.pricing-features li {
  font-size: 14px;
  color: var(--ink);
  padding-left: 26px;
  position: relative;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.pricing-addons {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.pricing-addons-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  margin: 0;
}
.pricing-addon-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.pricing-addon-option input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}
.pricing-addon-price {
  font-weight: 700;
  color: var(--brand-ink);
}
.pricing-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--space-4);
}
.pricing-cta {
  width: 100%;
  text-align: center;
}

.faq-section { position: relative; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 760px;
  margin: var(--space-6) auto 0;
}

.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.faq-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.faq-item[open] {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }

.faq-item-q { flex: 1; }

.faq-item-toggle {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  transition: background 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq-item-toggle::before,
.faq-item-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--brand-ink);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-item-toggle::before { width: 12px; height: 2px; }
.faq-item-toggle::after { width: 2px; height: 12px; }
.faq-item[open] .faq-item-toggle {
  background: var(--brand);
  transform: rotate(180deg);
}
.faq-item[open] .faq-item-toggle::before { background: var(--on-dark); }
.faq-item[open] .faq-item-toggle::after { opacity: 0; }

.faq-item p.body {
  margin: 0;
  padding: 0 var(--space-5) var(--space-5);
  color: var(--ink-muted);
  animation: faq-fade-in 0.3s ease;
}

@keyframes faq-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item, .faq-item-toggle, .faq-item-toggle::before, .faq-item-toggle::after, .faq-item p.body {
    transition: none;
    animation: none;
  }
}

.feature-card { padding: var(--space-5); }
.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-ink);
  margin-bottom: var(--space-4);
}
.icon-badge.icon-badge-accent { background: var(--accent-soft); color: var(--accent-ink); }
.icon-badge svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Schrittnummern (echte Reihenfolge, z. B. "So geht's") — bewusst anders
   als icon-badge, damit Sequenz optisch von parallelen Vorteilen abweicht. */
.feature-card .step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--surface-dark);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}
.feature-card p {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0;
}

/* ── Auth-Formulare (Login/Registrierung) ──────────────────*/

.auth-shell {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-8) var(--space-5);
}
.auth-card h1 { font-size: 24px; margin: 0 0 var(--space-2); }
.auth-card .lead { color: var(--ink-muted); font-size: 14.5px; margin: 0 0 var(--space-5); }

.field { margin-bottom: var(--space-4); }
label.label {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
input[type=text], input[type=email], input[type=password], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-ui);
  background: var(--surface-raised);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 96px; }
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, textarea:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--focus-ring);
}
.hint { color: var(--ink-subtle); font-size: 12.5px; margin-top: var(--space-1); }

main .card {
  max-width: 720px;
  margin: var(--space-8) auto;
  padding: var(--space-5);
}
main .card h1 { font-family: var(--font-ui); font-size: 22px; margin: 0 0 var(--space-2); }
main .card .lead { color: var(--ink-muted); font-size: 14.5px; margin: 0 0 var(--space-4); }
main .card p { font-size: 14.5px; }
main .card a { text-decoration: underline; }
main .card .btn { text-decoration: none; margin-top: var(--space-4); }

select {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface-raised);
}

button[type=submit] {
  width: 100%;
  margin-top: var(--space-3);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 20px;
  background: var(--brand);
  color: var(--on-brand);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
}
button[type=submit]:hover { background: var(--brand-ink); color: var(--on-dark); }

.error {
  background: var(--brand-soft);
  color: var(--brand-ink);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: var(--space-4);
  font-size: 14px;
}
.success {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: var(--space-4);
  font-size: 14px;
}

/* ── Tabellen (Portal) ──────────────────────────────────── */

table { width: 100%; border-collapse: collapse; }
table th, table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
table th { color: var(--ink-subtle); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}
.badge.active { background: var(--accent-soft); color: var(--accent-ink); }
.badge.pending { background: #FBEFD1; color: #8A6D00; }
.badge.suspended { background: var(--brand-soft); color: var(--brand-ink); }
.badge.error { background: #FBE1DA; color: #9B3A1E; }

/* ── Landingpage-Customizer (Portal) ───────────────────────── */

.editor-card {
  max-width: 880px;
  margin: var(--space-8) auto;
  padding: var(--space-5);
}
.editor-card h1 { font-family: var(--font-ui); font-size: 22px; margin: 0 0 var(--space-2); }
.editor-card .lead { color: var(--ink-muted); font-size: 14.5px; margin: 0 0 var(--space-5); }
.editor-card fieldset {
  border: none;
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0 0;
  margin: 0 0 var(--space-6);
}
.editor-card legend {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-ink);
  padding: 0;
  margin-bottom: var(--space-4);
}
.editor-card .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 640px) {
  .editor-card .field-row { grid-template-columns: 1fr; }
}
.editor-card button[type=submit] { width: auto; padding: 13px 32px; }
.editor-card input[type=number] {
  width: 120px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-ui);
  background: var(--surface-raised);
  color: var(--ink);
}
.editor-card .checkbox-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.editor-card .checkbox-row input[type=checkbox] { width: 18px; height: 18px; }
.editor-card .checkbox-row label { font-family: var(--font-ui); font-weight: 600; font-size: 14px; color: var(--ink); margin: 0; }
.editor-card .image-field { display: flex; gap: var(--space-2); align-items: flex-start; }
.editor-card .image-field input[type=text] { flex: 1; }
.editor-card .image-field .upload-btn {
  flex-shrink: 0;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.editor-card .image-field .upload-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.editor-card .upload-status { font-size: 12.5px; color: var(--ink-subtle); margin-top: var(--space-1); }

/* ── Bildergalerie ──────────────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
  perspective: 800px;
}
@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-sunken), var(--brand-soft));
  box-shadow: var(--shadow-md);
}
.gallery-item:nth-child(4n+2) { background: linear-gradient(145deg, var(--brand-soft), var(--accent)); }
.gallery-item:nth-child(4n+3) { background: linear-gradient(145deg, var(--surface-dark), var(--brand)); }
.gallery-item:nth-child(4n+4) { background: linear-gradient(145deg, var(--accent), var(--surface-sunken)); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Anwendungsfälle (Branchen-Showcase) ───────────────────── */

.usecases-section {
  position: relative;
  overflow: hidden;
  background: var(--surface-dark);
  color: var(--on-dark);
}
.usecases-section .eyebrow { color: rgba(255,244,231,0.75); }
.usecases-section .display-lg { color: var(--on-dark); text-transform: none; }
.usecases-section .body-lg { color: rgba(255,244,231,0.82); }

.usecases-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background:
    radial-gradient(closest-side, rgba(230, 95, 60, 0.45), transparent),
    radial-gradient(closest-side, rgba(163, 193, 58, 0.35), transparent) 70% 30% / 55% 55% no-repeat;
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
}

.usecase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-7);
  position: relative;
  z-index: 1;
}
@media (min-width: 700px) {
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .usecase-grid { grid-template-columns: repeat(4, 1fr); }
}

.usecase-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--on-dark);
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-ink) 55%, var(--surface-dark) 100%);
  background-size: cover;
  background-position: center;
  border: 1.5px solid rgba(255, 244, 231, 0.14);
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.usecase-tile:nth-child(4n+2) { background: linear-gradient(160deg, var(--accent) 0%, var(--accent-ink) 55%, var(--surface-dark) 100%); }
.usecase-tile:nth-child(4n+3) { background: linear-gradient(160deg, var(--brand-soft) 0%, var(--brand) 45%, var(--surface-dark) 100%); }
.usecase-tile:nth-child(4n+4) { background: linear-gradient(160deg, var(--accent-soft) 0%, var(--accent) 45%, var(--surface-dark) 100%); }
.usecase-tile.has-image { background-color: var(--surface-dark); }

.usecase-tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(20,20,18,0.05) 0%, rgba(20,20,18,0.85) 100%);
}
.usecase-tile:not(.has-image) .usecase-tile-overlay {
  background: linear-gradient(180deg, rgba(20,20,18,0.05) 30%, rgba(20,20,18,0.55) 100%);
}

.usecase-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 244, 231, 0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 244, 231, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s ease;
}
.usecase-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--on-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usecase-tile-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.usecase-tile-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.15;
}
.usecase-tile-teaser {
  font-size: 13.5px;
  color: rgba(255, 244, 231, 0.82);
  line-height: 1.5;
}
.usecase-tile-cta {
  margin-top: var(--space-3);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.usecase-tile-cta span { transition: transform 0.3s ease; }

.usecase-tile:hover,
.usecase-tile:focus-visible {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 244, 231, 0.25) inset;
  border-color: rgba(255, 244, 231, 0.4);
}
.usecase-tile:hover .usecase-icon,
.usecase-tile:focus-visible .usecase-icon {
  transform: scale(1.1) rotate(-4deg);
  background: rgba(255, 244, 231, 0.28);
}
.usecase-tile:hover .usecase-tile-cta,
.usecase-tile:focus-visible .usecase-tile-cta {
  opacity: 1;
  transform: translateX(0);
}
.usecase-tile:hover .usecase-tile-cta span,
.usecase-tile:focus-visible .usecase-tile-cta span {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .usecase-tile, .usecase-icon, .usecase-tile-cta, .usecase-tile-cta span {
    transition: none;
  }
  .usecase-tile:hover, .usecase-tile:focus-visible {
    transform: none;
  }
}

/* ── CTA-Banner ─────────────────────────────────────────── */

.cta-banner {
  border-radius: var(--radius-xl);
  background: var(--surface-dark);
  color: var(--on-dark);
  padding: var(--space-8) var(--space-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.cta-banner h2 { color: var(--on-dark); }
.cta-banner p { color: rgba(255,244,231,0.85); max-width: 56ch; margin: 0; }
.cta-banner .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* ── Newsletter ─────────────────────────────────────────── */

.newsletter-card {
  background: var(--surface-raised);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-8) var(--space-5);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.newsletter-card h2 { margin-bottom: var(--space-2); }
.newsletter-card p.body { margin: 0 auto var(--space-5); }
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}
.newsletter-form input[type=email] {
  flex: 1 1 260px;
  max-width: 340px;
}
.newsletter-note {
  margin: var(--space-3) 0 0;
  font-size: 12.5px;
  color: var(--ink-subtle);
}
.newsletter-success {
  display: none;
}
.newsletter-form.is-submitted { display: none; }
.newsletter-form.is-submitted + .newsletter-success { display: block; }

/* ── Sticky CTA ─────────────────────────────────────────── */

.sticky-cta {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 50;
  box-shadow: 0 10px 30px rgba(32,32,30,0.25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .sticky-cta.is-visible {
    animation: sticky-pop 0.4s ease;
  }
}
@keyframes sticky-pop {
  0% { transform: translateY(12px) scale(0.9); }
  60% { transform: translateY(-2px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}
@media (max-width: 640px) {
  .sticky-cta {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
  }
  .sticky-cta .btn { width: 100%; }
}

/* ── Live-Chat-Widget (Vertrieb) ────────────────────────── */

.chat-widget {
  position: fixed;
  right: var(--space-5);
  bottom: calc(var(--space-5) + 68px);
  z-index: 60;
}
.chat-widget-bubble {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--surface-dark);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(32,32,30,0.28);
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.chat-widget-bubble:hover { background: #2b2a27; }
.chat-widget-bubble:active { transform: scale(0.94); }
.chat-widget-bubble svg { width: 24px; height: 24px; position: absolute; transition: opacity 0.15s ease, transform 0.15s ease; }
.chat-widget-icon-close { opacity: 0; transform: scale(0.6); }
.chat-widget.is-open .chat-widget-icon-open { opacity: 0; transform: scale(0.6); }
.chat-widget.is-open .chat-widget-icon-close { opacity: 1; transform: scale(1); }

.chat-widget-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 320px;
  max-width: calc(100vw - 2 * var(--space-5));
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(32,32,30,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chat-panel-in 0.2s ease;
}
.chat-widget-panel[hidden] {
  display: none;
}
@keyframes chat-panel-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-widget-head {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-sunken);
}
.chat-widget-head strong { font-family: var(--font-display); font-size: 15px; }
.chat-widget-messages {
  flex: 1;
  min-height: 160px;
  max-height: 320px;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.chat-widget-form {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  border-top: 1px solid var(--border);
}
.chat-widget-form input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 14px;
}
.chat-widget-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.chat-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
}
.chat-bubble-visitor {
  align-self: flex-end;
  background: var(--brand);
  color: var(--on-brand);
  border-bottom-right-radius: 2px;
}
.chat-bubble-staff {
  align-self: flex-start;
  background: var(--surface-sunken);
  color: var(--ink);
  border-bottom-left-radius: 2px;
}

@media (max-width: 640px) {
  .chat-widget { right: var(--space-4); bottom: calc(var(--space-4) + 60px); }
  .chat-widget-panel { width: calc(100vw - 2 * var(--space-4)); }
}

/* Vertriebs-Portal: Chat-Übersicht */
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
  min-height: 480px;
}
.chat-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-y: auto;
  max-height: 640px;
}
.chat-list-item {
  display: block;
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
}
.chat-list-item:hover { background: var(--surface-sunken); }
.chat-list-item.is-active { background: var(--accent-soft); }
.chat-list-item-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.chat-list-name { font-weight: 700; font-size: 14px; }
.chat-list-preview { margin: 4px 0 0; font-size: 13px; color: var(--ink-muted); }

.chat-detail {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}
.chat-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}
.chat-detail .chat-messages {
  flex: 1;
  min-height: 320px;
  max-height: 480px;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.chat-reply-form {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
}
.chat-reply-form textarea {
  flex: 1;
  resize: vertical;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 14px;
}
@media (max-width: 760px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-list { max-height: 220px; }
}

/* ── Scroll-Reveal ──────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal-group].is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group].is-revealed > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group].is-revealed > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-group].is-revealed > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-group].is-revealed > *:nth-child(4) { transition-delay: 0.35s; }
[data-reveal-group].is-revealed > *:nth-child(5) { transition-delay: 0.45s; }
[data-reveal-group].is-revealed > *:nth-child(6) { transition-delay: 0.55s; }
[data-reveal-group].is-revealed > *:nth-child(7) { transition-delay: 0.65s; }
[data-reveal-group].is-revealed > *:nth-child(8) { transition-delay: 0.75s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Hover-/Interaktions-Effekte ───────────────────────────── */

.gallery-item {
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}
.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(32, 32, 30, 0.22);
}
.gallery-item img {
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,32,30,0) 55%, rgba(32,32,30,0.35) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }

.icon-badge {
  transition: transform 0.35s ease, background 0.35s ease;
}
.feature-card:hover .icon-badge {
  transform: rotate(-6deg) scale(1.08);
}
.feature-card .step-number {
  transition: transform 0.35s ease;
}
.feature-card:hover .step-number {
  transform: scale(1.12);
}

/* Button-Ripple (Klick-Feedback) */
.btn {
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: btn-ripple 0.6s ease-out;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
@keyframes btn-ripple {
  to { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn .ripple { display: none; }
}

/* Newsletter: Eingabefeld-Fokus-Glow */
.newsletter-form input[type=email] {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.newsletter-form input[type=email]:focus {
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Erfolgsmeldung: kleiner Pop statt hartem Umschalten */
.newsletter-success {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.newsletter-form.is-submitted + .newsletter-success {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .newsletter-success { transition: none; }
}

/* Preiskarte: Total-Zeile weich einblenden statt hart togglen */
.pricing-total {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}
.pricing-total[data-visible="true"] {
  opacity: 1;
  max-height: 60px;
}

/* ── Footer ─────────────────────────────────────────────── */

footer.site {
  background: var(--surface-dark);
  color: var(--on-dark);
  padding: var(--space-8) 0;
  margin-top: var(--space-9);
}
footer.site .page-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-5);
}
footer.site .brand { color: var(--on-dark); font-size: 17px; display: flex; align-items: center; gap: var(--space-2); text-decoration: none; }
footer.site p { color: #C9C6BE; font-size: 13.5px; margin: var(--space-2) 0 0; }
footer.site nav a { color: #C9C6BE; font-size: 13.5px; text-decoration: none; margin-right: var(--space-4); }
footer.site nav a:hover { color: var(--on-dark); }
footer.site .footer-legal {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
footer.site .footer-legal nav a { font-size: 12.5px; color: #9C9890; }
footer.site .footer-legal nav a:hover { color: var(--on-dark); }
