/* Demo-Landingpage demo.ibus-system.de – Design-Tokens nach ibus-system.de
   (Ink/Paper-Palette, Rot als Primäraktion, Orange für Eyebrows, Geist als
   Schrift, falls lokal vorhanden, sonst System-Stack). */

:root {
  --ink: #111417;
  --ink-soft: #1b2024;
  --ink-line: rgba(255, 255, 255, 0.16);
  --ink-muted: #b7bbb6;
  --paper: #f2f0e9;
  --paper-bright: #fbfaf6;
  --line: #c9c6bd;
  --muted: #666963;
  --red: #ad0707;
  --red-bright: #cc1717;
  --orange: #ef981c;
  --orange-bright: #f7a52c;
  --white: #fff;
  --footer: #0b0d0f;

  --font-sans:
    "Geist", "Geist Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Arial, Helvetica, sans-serif;
  --font-mono:
    "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;

  --content-width: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --phone-width: clamp(240px, 70vw, 320px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 620;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 650;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--orange-bright);
  outline-offset: 3px;
}

/* Eyebrow: Mono, Versalien, Orange (auf dunklem Grund) bzw. Rot (auf Papier) */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--orange-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.eyebrow-dark {
  color: var(--red);
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 2 * var(--gutter), 1420px);
  height: 74px;
  margin-inline: auto;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(120px, 28vw, 164px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.header-link:hover {
  text-decoration: underline;
}

.header-link-accent {
  padding: 8px 12px;
  color: var(--ink);
  background: var(--orange-bright);
}

.header-link-accent:hover {
  background: #ffb54a;
  text-decoration: none;
}

@media (max-width: 479px) {
  .header-nav .header-link:not(.header-link-accent) {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  width: min(100% - 2 * var(--gutter), var(--content-width));
  margin-inline: auto;
  padding: 120px 0 64px;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 -100vw;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(173, 7, 7, 0.32), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
}

.hero-copy {
  max-width: 620px;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(40px, 9vw, 82px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

h1 span {
  display: block;
  color: var(--orange-bright);
}

.lead {
  max-width: 560px;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 560;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange-bright);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* Buttons – eckig, 56px, wie auf der Homepage */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button-group-stack {
  flex-direction: column;
  margin-top: 0;
}

@media (max-width: 719px) {
  .button-group .button {
    width: 100%;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  padding: 10px 18px 10px 20px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    transform 0.18s;
}

.button:hover {
  transform: translateY(-1px);
}

.button-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.button-platform {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.button-arrow {
  font-size: 16px;
}

.button-primary {
  color: var(--white);
  background: var(--red);
}

.button-primary:hover {
  background: var(--red-bright);
}

.button-light {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button-light:hover {
  border-color: var(--ink);
}

.button-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.button-outline:hover {
  border-color: var(--white);
}

/* Noch nicht freigegebene Links: sichtbar, aber nicht klickbar */
.button-pending {
  cursor: default;
  border-style: dashed;
}

.button-pending:hover {
  transform: none;
}

.button-pending.button-primary {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.38);
}

.button-pending.button-light {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.button-status {
  flex-shrink: 0;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: #ffc36d;
}

.pending-hint {
  display: none;
  max-width: 560px;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.76);
}

.pending-hint[data-state="pending"] {
  display: block;
}

.pending-hint a {
  color: var(--white);
}

/* Screenshots: freigestellte Geräte-Mockups (iPhone/iPad/Monitor) mit Alpha */
.shot {
  margin: 0;
  flex-shrink: 0;
}

.shot-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 32px 40px rgba(0, 0, 0, 0.35));
}

.section-paper .shot-image {
  filter: drop-shadow(0 24px 32px rgba(17, 20, 23, 0.22));
}

.shot-phone {
  width: var(--phone-width);
}

.shot-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 26px 24px 34px;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, 0.06) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.06) 39px 40px),
    linear-gradient(160deg, #1d2a34 0%, #0f151b 100%);
  filter: none;
}

.placeholder-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-bright);
}

.placeholder-title {
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.shot figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-line);
  font-size: 13px;
}

.section-paper .shot figcaption {
  border-top-color: var(--line);
}

.figure-index {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--orange-bright);
  line-height: 1.9;
}

.section-paper .figure-index {
  color: var(--red);
}

.figure-caption {
  font-weight: 650;
  color: var(--white);
}

.section-paper .figure-caption {
  color: var(--ink);
}

.figure-note {
  color: var(--ink-muted);
}

.section-paper .figure-note {
  color: var(--muted);
}

.shot-hero figcaption {
  display: none;
}

/* Abschnitte */
.section {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0;
}

.section-inner {
  width: min(100% - 2 * var(--gutter), var(--content-width));
  margin-inline: auto;
}

.section-paper {
  background: var(--paper);
  color: var(--ink);
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

h2 {
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

h3 {
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-lead {
  max-width: 620px;
  margin-top: 18px;
  font-size: 17px;
  color: var(--muted);
}

.section-dark .section-lead {
  color: var(--ink-muted);
}

/* Schritte */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 8px 18px;
  padding: 22px 22px 24px;
  background: var(--paper-bright);
  border: 1px solid var(--line);
}

.step-index,
.platform-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--red);
  line-height: 1.9;
}

.steps .step-index {
  grid-row: 1 / span 2;
}

.steps p {
  color: var(--muted);
  font-size: 15px;
}

/* Galerie */
.gallery {
  display: flex;
  gap: 28px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 8px var(--gutter) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.gallery .shot {
  scroll-snap-align: start;
  width: min(72vw, 300px);
}

/* Workflow: iPad + drei Monitore */
.workflow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 32px;
  align-items: end;
}

.workflow .shot-tablet {
  width: min(100%, 360px);
  justify-self: center;
}

.section-tight {
  padding-top: 0;
}

/* Plattformen */
.platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.platform {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  padding: 22px;
  background: var(--paper-bright);
  border: 1px solid var(--line);
}

.platform .platform-index {
  grid-row: 1 / span 2;
}

.platform p {
  color: var(--muted);
  font-size: 15px;
}

.notes {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 720px;
  color: var(--muted);
  font-size: 14px;
}

.notes li {
  position: relative;
  padding-left: 18px;
}

.notes li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--red);
}

/* Interessenbekundung (/interesse) */
.hero-compact {
  padding-bottom: 56px;
}

.hero-compact .hero-copy {
  max-width: 760px;
}

.hero-compact h1 {
  font-size: clamp(36px, 7vw, 68px);
}

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

.interest-form {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  max-width: 920px;
}

.interest-form[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.form-block {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form-block legend {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin-bottom: 22px;
  padding: 0;
}

.form-step {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--red);
  line-height: 1.9;
}

.form-legend {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.form-legend-note {
  font-size: 14px;
  color: var(--muted);
}

/* Modul-Kacheln: natives Kontrollkästchen bleibt fokussierbar, die Kachel ist das Label */
.choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.choice {
  position: relative;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}

.choice-input {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
}

.choice-label {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  padding: 20px 22px 22px;
  cursor: pointer;
}

.choice-index {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--red);
  line-height: 1.9;
}

.choice-title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.choice-text {
  grid-column: 2;
  font-size: 14px;
  color: var(--muted);
}

.choice-mark {
  grid-column: 3;
  grid-row: 1;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink);
  background: var(--white);
  transition:
    background 0.15s,
    border-color 0.15s;
}

.choice-mark::after {
  content: "";
  display: block;
  width: 6px;
  height: 11px;
  margin: 2px auto 0;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s;
}

.choice:hover {
  border-color: var(--ink);
}

.choice-input:checked ~ .choice-label .choice-mark {
  background: var(--red);
  border-color: var(--red);
}

.choice-input:checked ~ .choice-label .choice-mark::after {
  transform: rotate(45deg) scale(1);
}

.choice:has(.choice-input:checked) {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.choice-input:focus-visible ~ .choice-label {
  outline: 3px solid var(--orange-bright);
  outline-offset: -3px;
}

.choice-extra {
  display: grid;
  gap: 8px;
  margin: 0 22px 22px 60px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.choice-extra[hidden] {
  display: none;
}

.choice-extra input {
  max-width: 200px;
}

/* Felder */
.fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 24px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field label,
.choice-extra label {
  font-size: 14px;
  font-weight: 650;
}

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

.field input,
.field textarea,
.choice-extra input {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover,
.choice-extra input:hover {
  border-color: var(--ink);
}

.field input:focus-visible,
.field textarea:focus-visible,
.choice-extra input:focus-visible {
  outline: 3px solid var(--orange-bright);
  outline-offset: 0;
  border-color: var(--ink);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.field input::placeholder,
.field textarea::placeholder,
.choice-extra input::placeholder {
  color: #8f918b;
}

.field-hint {
  font-size: 13px;
  color: var(--muted);
}

.field-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.field-error::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--red);
}

.field-error[hidden],
.field .field-error[hidden] {
  display: none;
}

.field .field-error {
  margin-top: 0;
}

.field-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  max-width: 720px;
}

.checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--red);
  cursor: pointer;
}

.checkbox a {
  color: var(--ink);
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.form-actions .button {
  min-width: 260px;
}

.button:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}

.form-status {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
}

.form-status:empty {
  display: none;
}

.form-noscript {
  max-width: 620px;
  padding: 18px 20px;
  font-size: 14px;
  color: var(--muted);
  background: var(--paper-bright);
  border: 1px solid var(--line);
}

/* Ergebnis (Erfolg / E-Mail-Fallback) */
.form-result {
  max-width: 760px;
  outline: none;
}

.form-result[hidden] {
  display: none;
}

.form-result .button-group {
  margin-top: 28px;
}

.result-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 24px;
  margin: 32px 0 0;
  padding: 24px;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  font-size: 15px;
}

.result-summary dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.result-summary dd {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

/* Kontakt */
.contact {
  background: var(--ink-soft);
  color: var(--white);
}

.contact .button-group {
  margin-top: 28px;
}

/* Footer */
.site-footer {
  padding: 40px 0 48px;
  color: #c8cbc8;
  background: var(--footer);
  font-size: 13px;
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.footer-claim {
  max-width: 520px;
  color: #e6e8e6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-meta {
  color: #8b8d87;
}

/* Tablet / Desktop */
@media (min-width: 720px) {
  .steps,
  .platforms {
    grid-template-columns: repeat(3, 1fr);
  }

  .platforms {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps li,
  .platform {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .steps .step-index,
  .platform .platform-index {
    grid-row: auto;
    margin-bottom: 8px;
  }

  .gallery {
    margin: 0;
    padding: 0;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    justify-items: center;
  }

  .gallery .shot {
    width: min(100%, 300px);
  }

  .workflow {
    grid-template-columns: repeat(12, 1fr);
  }

  .workflow .shot-tablet {
    grid-column: span 4;
    width: 100%;
  }

  .workflow .shot-monitor:nth-child(2) {
    grid-column: span 8;
  }

  .workflow .shot-monitor:nth-child(n + 3) {
    grid-column: span 6;
  }

  .choices {
    grid-template-columns: repeat(2, 1fr);
  }

  .choice[data-ask-seat-count] {
    grid-column: 1 / -1;
  }

  .fields {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-wide {
    grid-column: 1 / -1;
  }

  .result-summary {
    grid-template-columns: max-content 1fr;
  }

  .result-summary dd {
    margin: 0;
  }
}

@media (min-width: 960px) {
  .site-header {
    height: 90px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 48px;
    padding: 160px 0 96px;
    min-height: 780px;
  }

  .hero-visual {
    justify-content: flex-end;
  }

  .shot-hero {
    width: 360px;
    transform: rotate(-3deg);
  }

  .hero-compact {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 150px 0 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .button:hover {
    transition: none;
    transform: none;
  }
}
