/* Der KassenDoc – Beratungs- & Präsentationstool
   Navy · Petrol · Weiß · Eisblau · Tablet-first */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-latin-600.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-latin-700.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}

:root {
  --navy: #101820;
  --navy-2: #162029;
  --navy-3: #1c2a36;
  --petrol: #2c6b66;
  --petrol-2: #3a857f;
  --ice: #eef3f5;
  --ice-2: #d7e2e6;
  --white: #ffffff;
  --text: #eef2f4;
  --muted: #95a3ab;
  --line: rgba(238, 243, 245, 0.12);
  --shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
  --radius: 0.65rem;
  --touch: 48px;
  --font-d: 'IBM Plex Sans', system-ui, sans-serif;
  --font-b: 'IBM Plex Sans', system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-b);
  background: var(--navy);
  color: var(--text);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--ice-2); }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--petrol); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 50;
  padding: calc(.65rem + var(--safe-t)) 1rem .65rem;
  background: var(--navy-2);
  border-bottom: 1px solid var(--line);
}
.top__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; color: var(--white); min-height: var(--touch);
}
.brand__logo { height: 2rem; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-d); font-size: 1rem; }
.brand__text small { font-size: .72rem; color: var(--muted); }
@media (max-width: 520px) {
  .brand__logo { display: none; }
}

.nav-toggle {
  margin-left: auto;
  min-height: var(--touch); min-width: var(--touch);
  padding: 0 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--navy-3); cursor: pointer;
}
.nav { width: 100%; }
.nav ul {
  list-style: none; margin: .5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch); padding: 0 .9rem;
  border-radius: .45rem; text-decoration: none; color: var(--text);
  border: 1px solid transparent; background: transparent;
  font-size: .92rem;
}
.nav a.is-active, .nav a:active {
  background: var(--navy-3);
  border-color: var(--line);
}
.nav__present { border-color: var(--line) !important; }
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .nav { width: auto; margin-left: auto; }
  .nav ul { margin: 0; }
}

body.is-present .nav,
body.is-present .nav-toggle,
body.is-present .foot,
body.is-present .flash,
body.is-present .price-hint,
body.is-present .notes,
body.is-present .disclaimer,
body.is-present .offer-card__badge,
body.is-present .pay-assist { display: none !important; }
body.is-present .top { border-bottom-color: transparent; }

.present-exit {
  position: fixed; right: .5rem; bottom: .5rem; z-index: 80;
  width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: transparent;
  text-decoration: none;
}

.main {
  max-width: 1200px; margin: 0 auto;
  padding: 1.25rem 1.15rem calc(2.5rem + var(--safe-b));
}

.hero { margin: 1rem 0 1.75rem; max-width: 40rem; }
.hero--compact { margin-bottom: 1.25rem; }
.eyebrow {
  margin: 0 0 .4rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--petrol-2);
}
.hero h1, .flyer__content h1, .summary h1 {
  margin: 0; font-family: var(--font-d); font-weight: 600;
  font-size: clamp(1.65rem, 4.2vw, 2.2rem); letter-spacing: -.01em; line-height: 1.15;
}
.lead { margin: .75rem 0 0; color: var(--muted); font-size: 1.05rem; }
.muted { color: var(--muted); }
.tagline { font-size: 1.1rem; color: var(--ice-2); }

/* Tiles */
.tiles {
  display: grid; gap: .85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

.tile {
  display: flex; flex-direction: column; gap: .3rem;
  min-height: 7.5rem; padding: 1.1rem 1.15rem;
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: var(--navy-3);
  border: 1px solid var(--line);
}
.tile:active { background: var(--navy-2); }
.tile--primary {
  background: var(--petrol);
  border-color: color-mix(in srgb, var(--petrol-2) 40%, transparent);
}
.tile__icon {
  width: 2rem; height: 2rem; border-radius: .4rem;
  background: rgba(255,255,255,.06);
  margin-bottom: .25rem;
  position: relative;
}
.tile__icon::after {
  content: ''; position: absolute; inset: 30%;
  border: 1.5px solid var(--ice-2); border-radius: 2px; opacity: .7;
}
.tile__title { font-family: var(--font-d); font-weight: 600; font-size: 1.05rem; }
.tile__desc { color: var(--muted); font-size: .9rem; }

.home-continue { margin-top: 1.5rem; }

/* Cards / buttons */
.card {
  background: var(--navy-3);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.2rem; margin-bottom: 1rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch); padding: 0 1.15rem; border-radius: .5rem;
  border: 1px solid var(--line); background: var(--navy-2);
  color: var(--text); text-decoration: none; cursor: pointer; gap: .4rem;
}
.btn--primary {
  background: var(--petrol);
  border-color: transparent; color: #fff; font-weight: 600;
}
.btn--ghost { background: transparent; }
.btn--sm { min-height: 40px; padding: 0 .9rem; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; align-items: center; }
.sticky-actions {
  position: sticky; bottom: calc(.5rem + var(--safe-b));
  padding: .75rem; background: color-mix(in srgb, var(--navy) 90%, transparent);
  border-radius: var(--radius); backdrop-filter: blur(10px);
}
.badge {
  display: inline-flex; align-items: center; min-height: 2rem;
  padding: 0 .7rem; border-radius: 999px; font-size: .8rem;
  background: color-mix(in srgb, var(--petrol) 30%, transparent);
}
.flash {
  max-width: 1200px; margin: .75rem auto 0; padding: .85rem 1.15rem;
  border-radius: .75rem;
}
.flash--ok { background: color-mix(in srgb, var(--petrol) 35%, var(--navy)); }
.flash--err { background: color-mix(in srgb, #a33 40%, var(--navy)); }

/* Choices */
.choice-grid { display: grid; gap: .55rem; grid-template-columns: 1fr 1fr; }
.choice-grid--2 { grid-template-columns: 1fr 1fr; }
.choice-grid--3 { grid-template-columns: 1fr; }
.choice-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 640px) {
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
  .choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.choice {
  display: flex; align-items: stretch; cursor: pointer;
  min-height: var(--touch);
}
.choice input {
  position: absolute; opacity: 0; pointer-events: none;
}
.choice span {
  flex: 1; display: grid; place-items: center; text-align: center;
  padding: .7rem .85rem; border-radius: .85rem;
  border: 1px solid var(--line); background: var(--navy-2);
  font-weight: 600;
}
.choice input:checked + span,
.choice input:focus-visible + span {
  border-color: var(--petrol-2);
  background: color-mix(in srgb, var(--petrol) 28%, var(--navy-2));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--petrol) 40%, transparent);
}
.q { margin-bottom: 1rem; }
.q legend {
  font-family: var(--font-d); font-weight: 700; font-size: 1.05rem;
  margin-bottom: .75rem; padding: 0;
}

.recommend__cols {
  display: grid; gap: 1rem;
}
@media (min-width: 720px) { .recommend__cols { grid-template-columns: repeat(3, 1fr); } }
.recommend h3 { margin: 0 0 .35rem; color: var(--ice-2); font-size: .95rem; }
.recommend ul { margin: 0; padding-left: 1.1rem; }
.notes { margin-top: 1rem; color: var(--muted); }

/* Software / products */
.soft-card { display: grid; gap: 1.25rem; }
@media (min-width: 800px) {
  .soft-card { grid-template-columns: 220px 1fr; align-items: start; }
}
.soft-card__media {
  background: var(--ice); border-radius: 1rem; padding: 1.5rem;
  display: grid; place-items: center; min-height: 160px;
}
.soft-card__logo { max-height: 72px; width: auto; }
.feature-list { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.feature-list li {
  position: relative; padding: .4rem 0 .4rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.feature-list li::before {
  content: '–'; position: absolute; left: 0; top: .4rem;
  color: var(--petrol-2); font-weight: 600;
}
.chip-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-list li {
  padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem;
}

.pills { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.25rem; }
.pill {
  min-height: 42px; padding: 0 1rem; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; color: var(--text);
  display: inline-flex; align-items: center;
}
.pill.is-active {
  background: color-mix(in srgb, var(--petrol) 35%, transparent);
  border-color: var(--petrol-2);
}

.product-grid, .service-grid, .compare-grid, .auswahl-grid {
  display: grid; gap: 1rem;
}
@media (min-width: 700px) {
  .product-grid, .service-grid, .compare-grid, .auswahl-grid { grid-template-columns: 1fr 1fr; }
}
.pcard, .scard, .offer-card {
  background: var(--navy-3);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.pcard__media { display: block; background: #0e151c; aspect-ratio: 1; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.pcard__body, .scard, .offer-card { padding: 1.15rem 1.2rem 1.25rem; }
.pcard__cat { margin: 0; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--petrol-2); }
.pcard h2, .scard h2, .offer-card h3 {
  margin: .25rem 0 .5rem; font-family: var(--font-d); font-size: 1.2rem;
}
.pcard__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.scard__icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 2.25rem; padding: 0 .45rem;
  border-radius: .4rem; font-size: .75rem; font-weight: 700;
  letter-spacing: .02em; color: var(--ice);
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  margin-bottom: .35rem;
}

/* Flyer */
.flyer {
  display: grid; gap: 1.25rem;
}
@media (min-width: 900px) {
  .flyer { grid-template-columns: minmax(280px, 44%) 1fr; gap: 2rem; align-items: start; }
}
.flyer__stage {
  position: relative; background: #0e151c; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1;
}
.flyer__stage img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.flyer__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: var(--touch); height: var(--touch); border-radius: 999px;
  border: 1px solid var(--line); background: rgba(11,28,44,.72);
  color: #fff; font-size: 1.5rem; cursor: pointer;
}
.flyer__nav--prev { left: .5rem; }
.flyer__nav--next { right: .5rem; }
.flyer__thumbs { display: flex; gap: .45rem; margin-top: .65rem; overflow-x: auto; }
.flyer__thumb {
  flex: 0 0 4.5rem; height: 3.4rem; padding: 0; border-radius: .5rem;
  border: 2px solid transparent; overflow: hidden; background: #071018; cursor: pointer;
}
.flyer__thumb.is-active { border-color: var(--petrol-2); }
.flyer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.flyer__headline {
  font-family: var(--font-d); font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 600; color: var(--ice);
}
.flyer__doc {
  margin-top: 1rem; padding: 1rem 1.1rem;
  border-radius: 1rem; background: color-mix(in srgb, var(--petrol) 18%, var(--navy-2));
  border: 1px solid color-mix(in srgb, var(--petrol) 35%, transparent);
}

/* Payment */
.offer-dl { display: grid; gap: .35rem; margin: .85rem 0; }
.offer-dl div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .35rem 0; }
.offer-dl dt { color: var(--muted); }
.offer-dl dd { margin: 0; font-weight: 600; }
.calc-box {
  background: color-mix(in srgb, var(--ice) 8%, transparent);
  border-radius: .85rem; padding: .85rem 1rem; margin: .75rem 0;
}
.calc-box ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.calc-box__total { margin-top: .35rem; }
.offer-card--best { border-color: color-mix(in srgb, var(--petrol-2) 70%, transparent); }
.offer-card__badge {
  margin: 0 0 .75rem; font-size: .85rem; color: var(--ice);
  background: color-mix(in srgb, var(--petrol) 35%, transparent);
  padding: .55rem .75rem; border-radius: .65rem;
}
.offer-card__logo { height: 1.6rem; width: auto; margin-bottom: .5rem; filter: brightness(1.1); }
.offer-card.is-selected { outline: 2px solid var(--petrol-2); }
.disclaimer, .price-hint {
  font-size: .88rem; color: var(--muted); margin-top: .75rem;
}
.field { display: flex; flex-direction: column; gap: .35rem; margin: .75rem 0; }
.field input, .field textarea {
  min-height: var(--touch); padding: .7rem 1rem;
  border-radius: .75rem; border: 1px solid var(--line);
  background: var(--navy); color: var(--text);
}
.field textarea { min-height: 6rem; }
.form-grid {
  display: grid; gap: .5rem 1rem;
}
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.auswahl-list { list-style: none; padding: 0; margin: 0; }
.auswahl-list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: .65rem 0; border-bottom: 1px solid var(--line); min-height: var(--touch);
}
.linkish {
  background: none; border: 0; color: var(--ice-2); text-decoration: underline; cursor: pointer;
  min-height: 44px; padding: 0 .25rem;
}
.auswahl-item { font-size: 1.15rem; font-weight: 600; margin: .25rem 0; }

.summary {
  background: color-mix(in srgb, var(--navy-3) 92%, #000);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.35rem 2rem; box-shadow: var(--shadow);
}
.summary__logo { height: 2.2rem; width: auto; margin-bottom: 1rem; }
.summary__company { font-family: var(--font-d); font-size: 1.35rem; font-weight: 700; }
.summary__grid {
  display: grid; gap: 1.25rem; margin-top: 1.5rem;
}
@media (min-width: 800px) { .summary__grid { grid-template-columns: 1fr 1fr; } }
.summary__grid h2 { margin: 0 0 .35rem; color: var(--petrol-2); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.summary__grid ul { margin: .25rem 0 0; padding-left: 1.1rem; }

.foot {
  max-width: 1200px; margin: 0 auto; padding: 1rem 1.15rem calc(1.5rem + var(--safe-b));
  border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
}
.foot__claim { margin: 0 0 .25rem; color: var(--ice-2); }

/* Admin */
.admin-wrap { max-width: 480px; margin: 3rem auto; padding: 1.5rem; }
.admin-wrap h1 { font-family: var(--font-d); }

@media print {
  body { background: #fff; color: #0b1c2c; }
  .top, .foot, .no-print, .nav, .nav-toggle, .present-exit, .flash { display: none !important; }
  .summary { box-shadow: none; border: 0; }
  .main { max-width: none; }
}

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