/* Startseite: jede Section setzt das Zwölf-Spalten-Raster anders. */

/* Hero */
.hero { padding-top: clamp(32px, 5vw, 72px); }
.hero__grid { display: grid; gap: 2.5rem var(--gap); }
.hero__line { display: block; }
.hero__lead { margin-top: 1.75rem; max-width: 52ch; }
.hero__visual { position: relative; margin: 0 22px 8% 12%; max-width: 560px; aspect-ratio: 480 / 680; }
.facade { width: 100%; height: 100%; }
.hero__plate { position: absolute; left: -16%; bottom: -8%; width: 62%; aspect-ratio: 1 / 1.05; background: var(--color-accent); mix-blend-mode: multiply; }

.cross { position: absolute; width: 44px; height: 44px; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--color-dark); }
.cross::before { left: 50%; top: 0; width: 1px; height: 100%; }
.cross::after { top: 50%; left: 0; height: 1px; width: 100%; }
.cross--top { top: -22px; left: -22px; }
.cross--bottom { right: -22px; bottom: -22px; }

.rail li { border-top: 1px solid var(--color-border); }
.rail li:first-child { border-top: 1px solid var(--color-dark); }
.rail a { display: grid; padding-block: 1rem; text-decoration: none; }
.rail__no { color: var(--color-accent-text); font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; }
.rail strong { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.6rem; text-transform: uppercase; }
.rail a span:last-child { color: var(--color-text-2); font-size: var(--text-small); }
.rail a:hover strong { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }

.refs { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; margin-top: clamp(40px, 5vw, 72px); padding-block: 1.25rem; }
.refs__label { margin: 0; color: var(--color-text-2); }
.refs img { mix-blend-mode: multiply; } /* Logo mit weißem Grund verschmilzt mit dem Papier */

@media (min-width: 768px) and (max-width: 1279px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero__copy { grid-column: 1 / -1; }
  .hero__visual { grid-column: 2 / span 6; margin-inline: 0; }
  .rail { grid-column: 9 / -1; align-self: center; }
}

@media (min-width: 1280px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .hero__copy { grid-column: 1 / span 7; }
  .hero__visual { grid-column: 8 / span 3; margin: 0 0 8%; }
  .hero__plate { left: -24%; }
  .rail { grid-column: 11 / span 2; align-self: center; padding-left: 1rem; border-left: 1px solid var(--color-dark); }
}

/* Drei Arbeitsbereiche: unterschiedlich große Ansichten auf gemeinsamer Grundlinie */
.showcase { padding-block: clamp(40px, 6vw, 80px); background: var(--color-band); overflow: clip; }
.showcase__grid { display: grid; gap: 2.5rem var(--gap); }
.showcase__title { margin-bottom: 0.75rem; color: var(--color-text); font-size: var(--text-small); line-height: 1.5; }
.showcase__item { min-width: 0; }
.showcase__item--phone { max-width: 240px; }
.showcase__item figcaption { margin-top: 0.85rem; font-size: var(--text-small); }
.showcase__item figcaption strong { display: block; font-family: var(--font-display); font-size: 1.1875rem; text-transform: uppercase; }

@media (min-width: 900px) {
  .showcase__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .showcase__head { grid-column: 1 / span 2; align-self: start; padding-bottom: 3rem; border-bottom: 1px solid var(--color-dark); }
  .showcase__item--phone { grid-column: 3 / span 2; max-width: none; }
  .showcase__item--screen { grid-column: 5 / span 5; }
  .showcase__item--client { grid-column: 10 / span 3; }
  .showcase__item--client .device { width: calc(100% + var(--gutter) + 120px); border-right: 0; border-radius: 6px 0 0 6px; }
  .showcase__item--client .device img { max-width: none; }
}

/* Problem */
.problem__list > div { padding-block: 1.1rem; border-top: 1px solid var(--color-border); }
.problem__list > div:first-child { border-top-color: var(--color-dark); }
.problem__list dt { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; line-height: 1.25; }
.problem__list dd { margin-top: 0.25rem; color: var(--color-text-2); max-width: 62ch; }

@media (min-width: 900px) {
  .problem__head { grid-column: 1 / span 6; }
  .problem__list { grid-column: 8 / span 5; }
}

/* Funktionen: drei verschiedene Kompositionen */
.features__title { max-width: 16em; }
.feature { display: grid; gap: 2rem var(--gap); margin-top: clamp(56px, 8vw, 120px); }
.feature__copy { min-width: 0; }
.feature__copy > p { margin-top: 1rem; max-width: 60ch; }
.feature__copy .label { margin-bottom: 0.9rem; }
.feature__view { min-width: 0; }
.feature__view figcaption, .feature__phones figcaption, .security__view figcaption { margin-top: 0.6rem; }
.facts { margin-top: 1.25rem; }
.facts li { padding-block: 0.7rem; border-top: 1px solid var(--color-border); }
.feature__phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.feature__phones figure { min-width: 0; }
.feature__phones figure:last-child { margin-top: 2.5rem; }
.langs__intro { margin-top: 1.75rem !important; }
.langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0.75rem; border-top: 1px solid var(--color-dark); }
.langs li { padding: 0.5rem 0.25rem; border-bottom: 1px solid var(--color-border); font-size: 1.0625rem; font-weight: 500; }

@media (min-width: 900px) {
  .feature { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .feature--portal .feature__copy { grid-column: 1 / span 4; }
  .feature--portal .feature__view { grid-column: 5 / span 8; }
  .feature--app .feature__phones { grid-column: 1 / span 5; }
  .feature--app .feature__copy { grid-column: 7 / span 6; }
  .feature--client { align-items: end; }
  .feature--client .feature__view { grid-column: 1 / span 8; }
  .feature--client .feature__copy { grid-column: 9 / span 4; }
}

/* Ablauf: aufgebaut wie die Zeilen eines Stundenzettels */
.ablauf { background: var(--color-surface); }
.ablauf__title { max-width: 18em; margin-bottom: 2.5rem; }
.ledger__head { display: none; }
.ledger { border-top: 2px solid var(--color-dark); }
.ledger li { display: grid; gap: 0.35rem; padding-block: 1.25rem; border-bottom: 1px solid var(--color-border); }
.ledger__no { color: var(--color-accent-text); font-family: var(--font-mono); font-weight: 500; }
.ledger h3 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; line-height: 1.25; }
.ledger__where, .ledger__result { font-family: var(--font-mono); font-size: var(--text-small); }
.ledger__result { color: var(--color-ok); font-weight: 500; }
.ledger__label { color: var(--color-text-2); font-weight: 400; }

@media (min-width: 900px) {
  .ledger__head, .ledger li { grid-template-columns: 3.5rem 2fr 4fr 2.25fr 1.25fr; column-gap: var(--gap); align-items: baseline; }
  .ledger__head { display: grid; padding-bottom: 0.6rem; color: var(--color-text-2); font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.1em; text-transform: uppercase; }
  .ledger__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* Nachweis: das Datenformat selbst ist das Bild */
.doc__lead { margin-block: 1.5rem 1rem; }
.doc__code { min-width: 0; }
.doc__code figcaption { margin-bottom: 0.75rem; }
.doc__code pre { margin: 0; padding: 1.25rem; overflow-x: auto; border: 1px solid var(--color-border-dark); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.65; }

@media (min-width: 900px) {
  .doc__copy { grid-column: 1 / span 6; }
  .doc__code { grid-column: 7 / span 6; align-self: end; }
}

/* Bereitstellung: Gegenüberstellung als echte Tabelle */
.ops__lead { margin-top: 1.25rem; }
.ops__table { min-width: 0; }
.ops__table table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.ops__table th, .ops__table td { padding: 0.8rem 0.75rem 0.8rem 0; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.ops__table thead th { border-bottom: 2px solid var(--color-dark); font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; }
.ops__table thead td { border-bottom: 2px solid var(--color-dark); }
.ops__table tbody th { width: 24%; color: var(--color-text-2); font-family: var(--font-mono); font-size: var(--text-label); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; }
.ops__price td { font-size: var(--text-body); font-weight: 600; }
.ops__note { margin-top: 1rem; }

@media (min-width: 900px) {
  .ops__head { grid-column: 1 / span 5; }
  .ops__table { grid-column: 6 / span 7; }
  .ops__table table { font-size: var(--text-body); }
}

/* Sicherheit */
.security { background: var(--color-band); }
.security__view { max-width: 240px; }
.security__list { display: grid; gap: 0 var(--gap); margin-top: 2rem; }
.security__list > div { padding-block: 0.9rem; border-top: 1px solid var(--color-muted); }
.security__list dt { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.security__list dd { margin-top: 0.3rem; }

@media (min-width: 900px) {
  .security__view { grid-column: 1 / span 3; max-width: none; }
  .security__body { grid-column: 5 / span 8; }
  .security__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Unternehmen */
.who__text { font-size: var(--text-h3); line-height: 1.3; }

@media (min-width: 900px) {
  .who__head { grid-column: 1 / span 4; }
  .who__text { grid-column: 5 / span 8; }
}

/* Kontakt */
.next__lead { margin-top: 1.25rem; }
.next__phone { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--color-dark); }
.next__phone span { display: block; }
.next__phone a { display: inline-flex; align-items: center; min-height: var(--touch); font-family: var(--font-display); font-size: var(--text-h3); font-weight: 700; text-decoration: none; white-space: nowrap; }

@media (min-width: 900px) {
  .next__copy { grid-column: 1 / span 6; }
  .next__form { grid-column: 8 / span 5; }
}
