/* ============================================
   zeitigo — Marketing-Website
   Design-Tokens laut Konzept: warme Palette,
   Fraunces (Headlines) + Inter (Fließtext),
   16–24px Radius, ruhige, konsumentenfreundliche UI
   ============================================ */

:root {
  --petrol: #0F6E5D;
  --petrol-dark: #0B5747;
  --amber: #FF8A5B;
  --amber-dark: #E5713F;
  --sandpaper: #FAF6EF;
  --graphite: #1F2933;
  --mist: #EDEAE3;
  --success: #2E9E6D;
  --warning: #F5A623;
  --error: #E5484D;

  --bg: var(--sandpaper);
  --surface: #ffffff;
  --text: var(--graphite);
  --text-muted: #5B6572;
  --border: var(--mist);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(31, 41, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 41, 51, 0.08);
  --shadow-lg: 0 20px 48px rgba(31, 41, 51, 0.14);

  --container: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --petrol: #1FA588;
    --amber: #FF8A5B;
    --bg: #14181D;
    --surface: #1B2129;
    --text: #F3F1EA;
    --text-muted: #A7AFB9;
    --border: #2A323C;
    --mist: #232B34;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

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

ul { margin: 0; padding: 0; list-style: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--petrol);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--amber);
  color: #241109;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--amber-dark); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--petrol); color: var(--petrol); }

.btn-outline {
  background: transparent;
  color: var(--petrol);
  border-color: var(--petrol);
}
.btn-outline:hover { background: var(--petrol); color: #fff; }

.btn-sm { padding: 0.6em 1.25em; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.96rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--petrol); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--petrol);
  background: color-mix(in srgb, var(--petrol) 12%, transparent);
  padding: 0.45em 1em;
  border-radius: 999px;
  margin-bottom: 1.25em;
}
.eyebrow.center { display: block; width: fit-content; margin-left: auto; margin-right: auto; }

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.02em;
}
.text-petrol { color: var(--petrol); }

.lead { font-size: 1.15rem; max-width: 46ch; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 1.75em 0 1em; }
.hero-note { font-size: 0.88rem; color: var(--text-muted); }

/* Hero visual: stacked app mockups */
.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 8px;
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
}

.mock-kiosk {
  background: linear-gradient(160deg, var(--petrol), var(--petrol-dark));
  color: #fff;
  text-align: center;
  padding: 34px 24px;
}
.mock-kiosk-time { font-family: var(--font-head); font-size: 3rem; font-weight: 600; }
.mock-kiosk-sub { color: rgba(255,255,255,0.82); margin: 4px 0 18px; font-size: 0.95rem; }
.mock-kiosk-btn {
  display: inline-block;
  background: var(--amber);
  color: #241109;
  font-weight: 700;
  padding: 0.7em 1.6em;
  border-radius: 999px;
}

.mock-widget { display: flex; justify-content: space-between; align-items: center; }
.mock-widget-row { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-weight: 500; font-size: 0.92rem; }
.mock-widget-time { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-live { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent); }

.mock-approval-title { font-weight: 700; font-size: 0.98rem; margin-bottom: 2px; }
.mock-approval-name { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }
.mock-approval-actions { display: flex; gap: 10px; }

.pill { font-size: 0.82rem; font-weight: 600; padding: 0.45em 1em; border-radius: 999px; }
.pill-approve { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.pill-reject { background: color-mix(in srgb, var(--error) 12%, transparent); color: var(--error); }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--graphite);
  color: #fff;
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--amber);
  margin-bottom: 4px;
}
.stat span { color: rgba(255,255,255,0.75); font-size: 0.88rem; line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--surface); }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.01em;
}
.section-title.center { text-align: center; max-width: 44ch; margin-left: auto; margin-right: auto; }

.section-lead {
  font-size: 1.05rem;
  max-width: 60ch;
}
.section-lead.center { margin-left: auto; margin-right: auto; text-align: center; margin-bottom: 3rem; }
.center { text-align: center; }

/* ---------- Positioning segments ---------- */
.segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.segment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.segment-card h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.segment-examples { font-size: 0.86rem; font-weight: 600; color: var(--petrol); margin-bottom: 0.75em; }
.segment-card p:last-child { margin-bottom: 0; font-size: 0.94rem; }

.segment-card--zeitigo {
  background: linear-gradient(165deg, var(--petrol), var(--petrol-dark));
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(-8px);
}
.segment-card--zeitigo h3,
.segment-card--zeitigo .segment-examples,
.segment-card--zeitigo p { color: #fff; }
.segment-card--zeitigo .segment-examples { color: rgba(255,255,255,0.85); }
.segment-card--zeitigo p:last-child { color: rgba(255,255,255,0.92); }
.segment-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--amber);
  color: #241109;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35em 0.9em;
  border-radius: 999px;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card--wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.feature-card--wide h3 { grid-column: 2; margin-top: -1.6em; }
.feature-card--wide p { grid-column: 2; margin-bottom: 0; }
.feature-card--wide .feature-icon { grid-row: span 2; }

.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--petrol) 12%, transparent);
  color: var(--petrol);
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 { font-size: 1.08rem; margin-bottom: 0.4em; }
.feature-card p { font-size: 0.93rem; margin-bottom: 0; }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  min-width: 640px;
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: top;
}
.compare-table thead th {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  background: var(--mist);
}
.compare-table tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
.compare-table td { color: var(--text-muted); }
.col-zeitigo { background: color-mix(in srgb, var(--petrol) 8%, transparent); color: var(--text) !important; font-weight: 500; }
.compare-table thead .col-zeitigo { background: var(--petrol); color: #fff !important; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card--highlight {
  background: var(--graphite);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}
.price-card--highlight h3,
.price-card--highlight .price-amount,
.price-card--highlight .price-per { color: #fff; }
.price-card--highlight .price-audience { color: rgba(255,255,255,0.65); }
.price-card--highlight .price-features li { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.12); }
.price-card--highlight .price-amount span { color: rgba(255,255,255,0.6); }

.price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--amber);
  color: #241109;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35em 0.9em;
  border-radius: 999px;
}

.price-card h3 { font-size: 1.2rem; margin-bottom: 0.2em; }
.price-audience { font-size: 0.85rem; margin-bottom: 1.2em; }
.price-amount { font-family: var(--font-head); font-size: 2rem; font-weight: 600; margin-bottom: 0.1em; color: var(--text); }
.price-amount span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.price-per { font-size: 0.88rem; margin-bottom: 1.5em; }

.price-features { margin-bottom: 1.75em; flex-grow: 1; }
.price-features li {
  padding: 0.6em 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text);
}
.price-features li:first-child { border-top: none; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--petrol);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 18px; margin: 0; font-size: 0.95rem; }

/* ---------- CTA / Early access ---------- */
.cta-section { background: var(--mist); }
.cta-inner { text-align: center; }

.early-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}
.early-form input {
  flex: 1;
  padding: 0.9em 1.2em;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--surface);
  color: var(--text);
}
.early-form input:focus {
  outline: none;
  border-color: var(--petrol);
}
.form-message {
  margin-top: 1em;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
  color: var(--success);
}
.form-message.is-error { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--graphite);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { color: rgba(255,255,255,0.55); margin-top: 12px; font-size: 0.9rem; max-width: 26ch; }
.footer-brand .brand-name { color: #fff; }

.footer-nav h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1em;
  font-weight: 600;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.75em; }
.footer-nav a { color: rgba(255,255,255,0.75); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-nav a:hover { color: var(--amber); }

.footer-bottom { padding: 24px 0; }
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 0.82rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .segments { grid-template-columns: 1fr; }
  .segment-card--zeitigo { transform: none; order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--wide { grid-column: span 2; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card--highlight { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow-md);
  }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; grid-template-columns: 1fr; }
  .feature-card--wide h3, .feature-card--wide p { grid-column: 1; margin-top: 0; }

  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .early-form { flex-direction: column; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
}
