/* Landingpages für die Suche (templates/_loesung.html, templates/loesungen/).

   Grundbausteine (lp-*) aus landing.css, pd-grid aus produkt.css. Hier steht
   nur, was diese Seiten zusätzlich haben: Kopf mit Bild rechts, die
   Testnummer, Abschnitte mit Text, Schritte, Vergleichstabelle und die
   Querverweise. Farben und Grundwerte aus site.css. */

/* ── Kopf ─────────────────────────────────────────────────── */

.lo-hero {
  padding-top: clamp(130px, 18vh, 190px);
}

.lo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 48px;
}

.landing-page .lo-hero h1 {
  max-width: 14em;
}

.lo-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--faint);
  font-size: 13.5px;
}

.loesung-page .lo-crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.loesung-page .lo-crumbs a:hover {
  color: var(--accent-strong);
}

.lo-call svg {
  width: 17px;
  height: 17px;
}

/* Gemalte Fläche mit zwei Karten, wie die Bilder der Startseite. */
.lo-hero-art {
  position: relative;
  display: grid;
  min-height: 360px;
  margin: 0;
  padding: 40px 28px;
  align-content: center;
  gap: 16px;
  border-radius: 22px;
  background:
    url('/static/landing-grain.svg?v=20260906a'),
    radial-gradient(ellipse 60% 55% at 0% 100%, rgba(150, 178, 136, 0.5), transparent 70%),
    radial-gradient(ellipse 55% 60% at 100% 0%, rgba(204, 178, 140, 0.5), transparent 70%),
    linear-gradient(180deg, #e3eaee, #eeeae1);
  background-size: 256px 256px, auto, auto, auto;
}

.lo-hero-art .lp-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lo-hero-art .lp-card strong {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 560;
}

.lo-hero-art .lp-card span {
  color: var(--muted);
}

.lo-art-sum {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 2px !important;
  margin-left: auto;
}

.lo-art-label {
  margin: 0 0 4px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lo-art-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 6px rgba(26, 156, 143, 0.18);
}

/* ── Testnummer ───────────────────────────────────────────── */

.lo-try-section {
  padding-top: clamp(56px, 7vw, 88px);
}

.lo-try {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px 56px;
  padding: clamp(28px, 4vw, 44px);
  border: 1.5px solid var(--accent-bright);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--tint) 0%, var(--panel) 75%);
}

.landing-page .lo-try h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 480;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.lo-try p:not(.lp-eyebrow) {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.lo-try-number {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.loesung-page .lo-try-number a {
  color: var(--ink);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.loesung-page .lo-try-number a:hover {
  color: var(--accent-strong);
}

.lo-try-number span {
  color: var(--muted);
  font-size: 14px;
}

/* ── Text ─────────────────────────────────────────────────── */

/* Überschrift links, Fließtext rechts. */
.lo-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 64px;
}

.landing-page .lo-split h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 460;
  letter-spacing: -0.032em;
  line-height: 1.1;
}

.lo-text p,
.lo-text li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.lo-text p {
  margin: 0 0 16px;
}

.lo-text p:last-child {
  margin-bottom: 0;
}

.lo-text strong {
  color: var(--ink);
  font-weight: 560;
}

.loesung-page .lo-text a {
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 3px;
}

.lo-text ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

/* Drei Schritte nebeneinander, nummeriert. */
.lo-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lo-step;
}

.lo-steps li {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  counter-increment: lo-step;
}

.lo-steps li::before {
  content: counter(lo-step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 13.5px;
  font-weight: 560;
}

.landing-page .lo-steps h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 540;
  letter-spacing: -0.018em;
}

.lo-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

/* Vergleich. Auf schmalen Geräten scrollt die Tabelle für sich. */
.lo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.loesung-page .lo-table {
  display: table;
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

/* app.css setzt th global klein, in Versalien und Monospace (für die
   Tabellen im Admin). Hier sind es normale Tabellen im Fließtext. */
.loesung-page .lo-table th,
.loesung-page .lo-table td {
  min-width: 0;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.lo-table th,
.lo-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.lo-table tr:last-child th,
.lo-table tr:last-child td {
  border-bottom: 0;
}

.loesung-page .lo-table thead th {
  color: var(--faint);
  font-size: 13.5px;
  font-weight: 500;
}

.loesung-page .lo-table tbody th {
  color: var(--ink);
  font-weight: 540;
}

.lo-table td {
  color: var(--muted);
}

.lo-table .is-us {
  background: var(--tint);
  color: var(--ink);
}

/* Branchen als Kacheln; die mit Artikel verlinken auf ihn. */
.lo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lo-chips li > * {
  display: inline-flex;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-soft);
  font-size: 15px;
}

.loesung-page .lo-chips a {
  text-decoration: none;
}

.loesung-page .lo-chips a:hover {
  border-color: var(--accent-bright);
  color: var(--accent-strong);
}

/* ── Ausschnitt aus dem Konto ─────────────────────────────── */

/* Anrufliste und geöffneter Anruf nebeneinander auf der gemalten Fläche. */
.loesung-page .lo-ui {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  align-items: start;
  gap: 18px;
  min-height: 0;
}

.lo-ui .lp-card {
  width: 100%;
}

.lo-ui-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: lo-ui;
}

.lo-ui-notes li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  counter-increment: lo-ui;
}

.lo-ui-notes li::before {
  content: counter(lo-ui);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.lo-ui-notes strong {
  color: var(--ink);
  font-weight: 560;
}

/* ── Querverweise ─────────────────────────────────────────── */

.landing-page .lo-more-title {
  margin: 0 0 24px;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 480;
  letter-spacing: -0.028em;
}

.lo-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loesung-page .lo-links a {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.loesung-page .lo-links a:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

.lo-links strong {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 560;
}

.lo-links span {
  color: var(--muted);
  font-size: 14.5px;
}

/* ── Schmale Geräte ───────────────────────────────────────── */

@media (max-width: 960px) {
  .lo-hero-grid,
  .lo-try,
  .lo-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .lo-hero-art {
    min-height: 0;
  }

  .lo-steps,
  .lo-ui-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .loesung-page .lo-ui {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .lo-hero-art {
    padding: 28px 18px;
  }

  .lo-art-sum {
    margin-left: 0;
  }

  .loesung-page .lo-try-number a {
    white-space: normal;
  }
}

.loesung-page .lo-steps a {
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 3px;
}
