/* ============================================================
   Grundeinstellungen
   ANPASSEN: Farben und Schrift zentral hier unter :root
   ============================================================ */
:root {
  --ink: #16120f;          /* Grundfarbe für Text und dunkle Flächen */
  --ink-soft: #3d3630;
  --muted: #6f665e;        /* Nebentexte */
  --paper: #ffffff;
  --paper-warm: #f7f4f0;   /* leicht abgesetzte Abschnitte */
  --line: rgba(22, 18, 15, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --accent: #b23a2f;       /* Akzentfarbe, aufgenommen vom Rot des Automaten */
  --accent-dark: #8f2c23;

  --wrap: 1160px;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* damit Ankerlinks nicht unter der Kopfzeile landen */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 650;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* Kleine Überschrift über den Abschnitten */
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  max-width: 20ch;
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ============================================================
   Kopfzeile
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.wordmark {
  font-weight: 680;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--ink); }

.nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--ink) !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover { background: var(--ink); color: #fff !important; border-color: var(--ink); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--ink);
  color: #f3efea;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero .kicker { color: rgba(243, 239, 234, 0.62); }

.hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 4rem);
  margin-bottom: 22px;
  max-width: 15ch;
}

.hero .lead {
  color: rgba(243, 239, 234, 0.78);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 34px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line-light);
  font-size: 0.9rem;
  color: rgba(243, 239, 234, 0.7);
}

.hero-facts li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
  vertical-align: middle;
}

/* Rahmen um das Hochformat-Video */
.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #241d19;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  aspect-ratio: 9 / 14;
  max-height: 620px;
  margin: 0 auto;
}

.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 570;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  border-color: rgba(243, 239, 234, 0.32);
  color: #f3efea;
}

.btn-ghost:hover { border-color: #f3efea; }

.btn-block { display: block; text-align: center; margin-top: 26px; }

/* ============================================================
   Abschnitte
   ============================================================ */
.section { padding: clamp(64px, 9vw, 120px) 0; }

.section-alt { background: var(--paper-warm); }

.section-dark {
  background: var(--ink);
  color: #f3efea;
}

.section-dark .kicker { color: rgba(243, 239, 234, 0.62); }
.section-dark .lead { color: rgba(243, 239, 234, 0.78); }

/* Nutzen-Kacheln */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  margin-top: 52px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  background: var(--paper);
  padding: 34px 30px 38px;
}

.card-num {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.16rem;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.97rem;
  color: var(--muted);
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9e4de;
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery figure:hover img { transform: scale(1.03); }

.gallery .wide { grid-column: span 3; }

.gallery .wide img { aspect-ratio: 16 / 7; }

.gallery figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  padding: 14px 4px 16px;
  background: var(--paper-warm);
}

/* Software-Demo */
.demo-note {
  max-width: 62ch;
  margin: 22px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--paper-warm);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.demo-frame {
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1b1613;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
  aspect-ratio: 16 / 9;
}

.demo-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.demo-hint {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--muted);
}

.demo-hint a { text-decoration: underline; }

/* Ablauf */
.steps {
  list-style: none;
  counter-reset: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 34px 30px;
}

.steps li { position: relative; padding-top: 24px; border-top: 1px solid var(--line); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 620;
  margin-bottom: 16px;
}

.steps h3 { font-size: 1.08rem; margin-bottom: 10px; }

.steps p { font-size: 0.95rem; color: var(--muted); }

/* Kontakt */
.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 32px 30px;
}

.contact-list { margin: 0; }

.contact-list > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
}

.contact-list > div:first-child { padding-top: 0; }
.contact-list > div:last-child { border-bottom: 0; padding-bottom: 0; }

.contact-list dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 239, 234, 0.55);
  margin-bottom: 5px;
}

.contact-list dd {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 540;
}

.contact-list a {
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 239, 234, 0.35);
  padding-bottom: 1px;
}

.contact-list a:hover { border-bottom-color: #f3efea; }

/* Impressum und ähnliche Textseiten */
.legal h2 {
  font-size: 1.05rem;
  margin: 40px 0 4px;
}

.legal-block {
  margin-top: 14px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.legal-block a {
  text-decoration: underline;
}

/* Fußzeile */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.footer-inner nav { display: flex; gap: 22px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

/* ============================================================
   Einblenden beim Scrollen
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery img { transition: none; }
}

/* ============================================================
   Mobil und Tablet
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner,
  .contact-inner { grid-template-columns: 1fr; }

  .hero-inner { gap: 40px; }

  .media-frame { max-height: 520px; max-width: 400px; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .wide { grid-column: span 2; }

  .demo-frame { aspect-ratio: 4 / 3; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  .wrap { padding: 0 20px; }

  .nav { gap: 16px; font-size: 0.86rem; }
  .nav a:not(.nav-cta) { display: none; } /* auf kleinen Displays bleibt nur der Kontakt-Button */

  .hero h1 { max-width: 100%; }

  .hero-actions .btn { flex: 1 1 auto; text-align: center; }

  .section-title { max-width: 100%; }

  .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: span 1; }

  .card { padding: 28px 24px 32px; }
}
