/*
 * PreQ — Seite "Loesungen" (neu.preq.eu), Aufbau und Optik nach dem Seitenentwurf PreQ_Loesungen_Entwurf.
 * Wird NACH preq-neu.css (Seitenrand .pn-wrap, Buttons, Laufband .pn-plat*, KI-Plakette .pn-ki) und preq-neu-ueber.css
 * (.pn-usec, .pn-eyebrow, .pn-uh2) geladen. Eigene Klassen: pn-l*.
 * Texte kommen unveraendert aus preq-loesungen-texte.php; die Nummern (01, 02, ...) setzt dieses CSS per Zaehler.
 *
 * Markenwerte: Cyan #22D3EE, Flaechen #111114 / #1D1D21 (neutral dunkel, kein Navy wie im Entwurf), Blau des Kontaktbereichs
 * (--pn-blau-rgb) fuer das Mehrwert-Band und den Einstieg. Das Design-System setzt h1-h4 per !important: eigene Groessen daher auch.
 */

/* ---------- 1. Hero: Text links, Bild rechts ---------- */
.pn-lhero { position: relative; overflow: hidden; isolation: isolate; background: #111114; padding-top: 94px; border-bottom: 1px solid var(--pn-line); }
/* Stapel: Bild (Rahmen ohne eigenen Kontext) < Schleier (1) < KI-Plakette (2, aus .pn-ki) < Text (3). Lag die Plakette im Bildrahmen mit z-index -2,
   dunkelte der untere Schleier sie ab; auf der Startseite liegt sie ueber allen Schleiern. */
.pn-lhero-media { position: absolute; top: 94px; right: 0; bottom: 0; left: 0; }
.pn-lhero-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 100% 58%; }
/* Schleier: links geht das Bild in die Seitenflaeche (#111114) ueber, unten in den naechsten Abschnitt */
.pn-lhero::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(90deg, #111114 0%, #111114 22%, rgba(17,17,20,.78) 40%, rgba(17,17,20,0) 66%),
        linear-gradient(0deg, #111114 0%, rgba(17,17,20,0) 20%);
}
.pn-lhero-inner { position: relative; z-index: 3; display: flex; align-items: center; min-height: clamp(440px, 33vw, 560px); padding-block: 36px 56px; }
.pn-lhero-text { max-width: 620px; }
.pn-lhero h1 {
    margin: 14px 0 22px; color: #fff; font-weight: 700; letter-spacing: -.02em; line-height: 1.07;
    font-size: clamp(1.9rem, 6.2vw + .5rem, 3.5rem) !important;
}
.pn-lhero-lead { margin: 0 0 30px; max-width: 540px; color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.6; }
.pn-lactions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 860px) {
    .pn-lhero { padding-top: 94px; }
    .pn-lhero::before { display: none; }
    .pn-lhero-media { position: relative; top: auto; height: 210px; margin-top: 0; }
    .pn-lhero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(0deg, #111114, rgba(17,17,20,0)); }
    .pn-lhero-img { object-position: 80% 50%; }
    .pn-lhero-inner { min-height: 0; padding-block: 8px 44px; }
}

/* ---------- gemeinsame Kopfzeile eines Abschnitts ---------- */
.pn-lhead { max-width: 780px; }
/* Das Design-System setzt h2 mit `h2:not(.cms-heading)` (margin 0, font-size !important, Spezifitaet 0,1,1): .pn-uh2 allein verliert beides. */
.pn-lhead .pn-uh2 { margin: 14px 0 0; font-size: clamp(1.75rem, 3vw, 2.5rem) !important; }
.pn-lhead-sub { margin: 16px 0 0; color: rgba(255,255,255,.82); font-size: 1.125rem; line-height: 1.55; }
.pn-lband { background: #1D1D21; }

/* ---------- 2. Prinzip: drei Schritte, Kreise mit durchgehender Linie ---------- */
.pn-lsteps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pn-lstep { position: relative; text-align: center; padding: 0 clamp(12px, 3vw, 48px); }
.pn-lstep-ico {
    display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 50%; color: #fff;
    border: 1px solid rgba(255,255,255,.2); background: radial-gradient(closest-side, rgba(34,211,238,.12), rgba(34,211,238,0)), #17171a;
}
.pn-lstep:not(:last-child)::after {
    content: ""; position: absolute; top: 34px; left: calc(50% + 47px); width: calc(100% - 94px); height: 10px; pointer-events: none;
    background:
        radial-gradient(circle at 0 50%, #22D3EE 0 4px, transparent 5px),
        radial-gradient(circle at 100% 50%, #22D3EE 0 4px, transparent 5px),
        linear-gradient(#22D3EE, #22D3EE) 0 50% / 100% 2px no-repeat;
}
.pn-lstep h3 { margin: 0 0 10px; color: #fff; font-weight: 700; font-size: .95rem !important; letter-spacing: .08em; text-transform: uppercase; }
.pn-lstep-nr { margin-right: .35em; }
.pn-lstep-nr::after { content: "."; }
.pn-lstep p { margin: 0 auto; max-width: 30ch; color: rgba(255,255,255,.74); font-size: .95rem; line-height: 1.55; }
@media (max-width: 760px) {
    .pn-lsteps { grid-template-columns: minmax(0, 1fr); gap: 34px; margin-top: 36px; }
    .pn-lstep { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; text-align: left; padding: 0; }
    .pn-lstep-ico { width: 64px; height: 64px; margin: 0; grid-row: 1 / span 2; }
    .pn-lstep-ico svg { width: 28px; height: 28px; }
    .pn-lstep:not(:last-child)::after { display: none; }
    .pn-lstep p { margin: 0; max-width: none; }
}

/* ---------- 3. Mehrwerte: blaues Band, drei Spalten mit grosser cyaner Nummer ---------- */
.pn-lwert {
    counter-reset: wert; padding: clamp(48px, 5.5vw, 76px) 0;
    background: linear-gradient(180deg, rgba(var(--pn-blau-rgb), .17), rgba(var(--pn-blau-rgb), .07)), #111114;
    border-top: 1px solid rgba(var(--pn-blau-rgb), .3); border-bottom: 1px solid rgba(var(--pn-blau-rgb), .24);
}
.pn-lwert .pn-lhead { margin-bottom: clamp(32px, 4vw, 52px); }
.pn-lwert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pn-lwert-col { counter-increment: wert; padding: 0 clamp(18px, 3.2vw, 48px); border-left: 1px solid rgba(255,255,255,.14); }
.pn-lwert-col:first-child { padding-left: 0; border-left: 0; }
.pn-lwert-col::before {
    content: counter(wert, decimal-leading-zero); display: block; width: fit-content; margin-bottom: 16px; padding-top: 10px;
    border-top: 4px solid #22D3EE; color: #22D3EE; font-family: 'Inter', sans-serif; font-weight: 800; font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1;
}
.pn-lwert-col h3 { margin: 0 0 12px; color: #fff; font-weight: 600; font-size: clamp(1.2rem, 1.7vw, 1.45rem) !important; line-height: 1.25; }
.pn-lwert-col p { margin: 0; color: rgba(255,255,255,.8); font-size: 1rem; line-height: 1.6; }
@media (max-width: 820px) {
    .pn-lwert-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .pn-lwert-col, .pn-lwert-col:first-child { padding: 0; border-left: 0; }
    .pn-lwert-col + .pn-lwert-col { padding-top: 30px; border-top: 1px solid rgba(255,255,255,.14); }
}

/* ---------- 4. Plattformen: Text links, Laufband der Startseite rechts (wie im Entwurf) ----------
   Die Plattformbilder tragen eine eingebrannte "KI-generiert"-Plakette (ein Viertel der Bildbreite). Sie darf nicht groesser wirken als auf der
   Startseite (dort ~235 px breite Karten): --pn-visible ist deshalb so gewaehlt, dass eine Karte etwa 250-320 px misst. */
.pn-lplat { --pn-visible: 2.2; --pn-gap: 16px; padding: clamp(56px, 6.5vw, 88px) 0; }
.pn-lplat-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 36px clamp(32px, 4.5vw, 72px); align-items: center; }
.pn-lplat-text .pn-lhead { max-width: 480px; }
.pn-lplat-outro { max-width: 480px; margin: 28px 0 0; color: rgba(255,255,255,.74); font-size: 1rem; line-height: 1.65; }
.pn-lplat-rail { min-width: 0; }
.pn-lplat .pn-plat-body { gap: 6px; padding: 14px 16px 62px; }
.pn-lplat .pn-plat .pn-plat-domain { font-size: 17px; }
.pn-lplat .pn-plat-name { margin: 2px 0 2px; color: rgba(255,255,255,.94); font-size: .98rem !important; font-weight: 600; line-height: 1.3; }
.pn-lplat .pn-plat-desc { font-size: 13.5px; line-height: 1.55; }
.pn-plat-items { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.pn-plat-items li { padding: 3px 10px; border: 1px solid rgba(34,211,238,.3); border-radius: 999px; background: rgba(34,211,238,.06); color: #fff; font-size: 12px; line-height: 1.4; }
/* Punkte links, Pfeile rechts unter den Karten */
.pn-lplat-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; min-height: 36px; }
.pn-lplat .pn-plat-dots { justify-content: flex-start; margin-top: 0; }
@media (min-width: 1400px) { .pn-lplat { --pn-visible: 2.7; } }
@media (max-width: 1100px) {
    .pn-lplat { --pn-visible: 3.2; }
    .pn-lplat-grid { grid-template-columns: minmax(0, 1fr); }
    .pn-lplat-text .pn-lhead, .pn-lplat-outro { max-width: 780px; }
}
@media (max-width: 860px) { .pn-lplat { --pn-visible: 2.5; } }
@media (max-width: 700px) { .pn-lplat { --pn-visible: 2.2; } }
@media (max-width: 560px) { .pn-lplat { --pn-visible: 1.8; } }
@media (max-width: 480px) { .pn-lplat { --pn-visible: 1.3; } }

/* ---------- 5. Einordnung: 2x2 Anbieter-Typen, Pointe, Schnellvergleich ---------- */
.pn-lein-grid { counter-reset: ein; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; }
.pn-lein-item { counter-increment: ein; padding: 28px 36px 34px 0; border-top: 1px solid rgba(255,255,255,.12); }
.pn-lein-item:nth-child(even) { padding: 28px 0 34px 36px; border-left: 1px solid rgba(255,255,255,.12); }
.pn-lein-item::before { content: counter(ein, decimal-leading-zero); display: block; margin-bottom: 10px; color: #22D3EE; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem; }
.pn-lein-item h3 { margin: 0 0 10px; color: #fff; font-weight: 600; font-size: 1.3rem !important; line-height: 1.25; }
.pn-lein-item p { margin: 0; max-width: 56ch; color: rgba(255,255,255,.76); font-size: .98rem; line-height: 1.6; }
.pn-lein-pointe {
    margin: 12px 0 0; padding: 24px 0 0; border-top: 2px solid #22D3EE; /* Linie ueber die gesamte Inhaltsbreite (Betreiberwunsch 2026-10-02) */
    color: #fff; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; line-height: 1.45;
}
/* h3/h4 tragen im Design-System `h3:not(.cms-heading)` (Spezifitaet 0,1,1, font-size !important): eine blosse Klasse verliert, deshalb mit Vorfahr */
.pn-lein .pn-ltab-title { margin: 60px 0 16px; color: #fff; font-weight: 600; font-size: 1.15rem !important; }
.pn-ltab-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pn-ltab { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.pn-ltab th, .pn-ltab td { padding: 14px 16px; text-align: left; vertical-align: top; color: rgba(255,255,255,.82); border-bottom: 1px solid rgba(255,255,255,.1); }
.pn-ltab thead th { color: rgba(255,255,255,.62); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.22); }
.pn-ltab tbody th { color: #fff; font-weight: 600; }
.pn-ltab-dash { color: rgba(255,255,255,.3); }
.pn-ltab tr.is-preq > * { background: rgba(34,211,238,.08); color: #fff; border-bottom-color: rgba(34,211,238,.35); }
.pn-ltab tr.is-preq > :first-child { box-shadow: inset 3px 0 0 #22D3EE; }
.pn-ltab--detail thead td { border-bottom: 1px solid rgba(255,255,255,.22); }
.pn-ltab--detail thead th.is-preq { background: rgba(34,211,238,.1); color: #fff; border-top: 3px solid #22D3EE; font-size: 14px; letter-spacing: 0; text-transform: none; }
.pn-ltab--detail td.is-preq { background: rgba(34,211,238,.07); color: #fff; font-weight: 600; }
.pn-lein-close { max-width: 820px; margin: 36px 0 0; color: #fff; font-size: 1.15rem; line-height: 1.6; font-weight: 500; }
@media (max-width: 820px) {
    .pn-lein-grid { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
    .pn-lein-item, .pn-lein-item:nth-child(even) { padding: 24px 0 26px; border-left: 0; }
}

/* ---------- 6. Einstieg: Gespraech/Anfrage links, vCard-QR rechts ---------- */
.pn-lcta {
    background:
        radial-gradient(760px 340px at 92% 40%, rgba(var(--pn-blau-rgb), .14), rgba(var(--pn-blau-rgb), 0) 70%),
        radial-gradient(620px 320px at 4% 100%, rgba(34,211,238,.05), rgba(34,211,238,0) 70%),
        #111114;
}
.pn-lcta-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.pn-lcta-grid.has-qr { grid-template-columns: minmax(0, 1fr) auto; }
.pn-lcta-text .pn-uh2 { max-width: 16ch; margin: 0; font-size: clamp(2rem, 4.2vw, 3.4rem) !important; line-height: 1.06; letter-spacing: -.02em; }
.pn-lcta-text .pn-lhead-sub { max-width: 560px; }
.pn-lcta-text .pn-lactions { margin-top: 30px; }
.pn-lcta-qr { display: flex; flex-direction: column; align-items: center; gap: 22px; align-self: stretch; justify-content: center; padding-left: clamp(32px, 6vw, 96px); border-left: 1px solid rgba(255,255,255,.14); }
.pn-lcta-qrbox {
    width: clamp(124px, 11vw, 152px); height: clamp(124px, 11vw, 152px); padding: 12px; background: #fff; border-radius: 14px; line-height: 0;
    box-shadow: 0 0 0 8px #111114, 0 0 0 12px #22D3EE, 0 0 30px 8px rgba(34,211,238,.28);
}
.pn-lcta-qrbox svg { display: block; width: 100%; height: 100%; }
.pn-lcta-qrtext { color: rgba(255,255,255,.85); font-size: .95rem; font-weight: 600; }
@media (max-width: 820px) {
    .pn-lcta-grid.has-qr { grid-template-columns: minmax(0, 1fr); }
    .pn-lcta-qr { flex-direction: row; justify-content: flex-start; padding: 32px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
}

/* ---------- 7. Branchen: Kopf links, neun nummerierte Eintraege rechts ---------- */
.pn-lbr-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.65fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.pn-lbr-grid .pn-lhead { position: sticky; top: 118px; }
/* Raster wie im Entwurf: zwei Spalten, unter jedem Eintrag eine waagerechte Linie, zwischen den Spalten eine senkrechte -- beide je Zelle abgesetzt,
   die Linien treffen sich nicht. Unter den letzten beiden Eintraegen keine Linie (nichts mehr darunter). */
.pn-lbr-list { --pn-lbr-line: rgba(255,255,255,.17); counter-reset: br; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.pn-lbr-item { counter-increment: br; position: relative; padding: 24px 28px 28px 0; }
.pn-lbr-item:nth-child(even) {
    padding: 24px 0 28px 36px;
    background: linear-gradient(var(--pn-lbr-line), var(--pn-lbr-line)) 0 14px / 1px calc(100% - 28px) no-repeat;
}
.pn-lbr-item::after { content: ""; position: absolute; left: 0; right: 28px; bottom: 0; height: 1px; background: var(--pn-lbr-line); }
.pn-lbr-item:nth-child(even)::after { left: 28px; right: 0; }
.pn-lbr-item:nth-last-child(-n+2)::after { display: none; }
.pn-lbr-item::before { content: counter(br, decimal-leading-zero); display: block; margin-bottom: 8px; color: #22D3EE; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem; }
.pn-lbr-item h3 { margin: 0 0 8px; color: #fff; font-weight: 600; font-size: 1.2rem !important; line-height: 1.25; }
.pn-lbr-item p { margin: 0; color: rgba(255,255,255,.74); font-size: .93rem; line-height: 1.6; }
@media (max-width: 1100px) {
    .pn-lbr-grid { grid-template-columns: minmax(0, 1fr); }
    .pn-lbr-grid .pn-lhead { position: static; }
}
@media (max-width: 700px) {
    /* eine Spalte: keine senkrechte Linie, die waagerechte unter jedem Eintrag ausser dem letzten */
    .pn-lbr-list { grid-template-columns: minmax(0, 1fr); }
    .pn-lbr-item, .pn-lbr-item:nth-child(even) { padding: 22px 0 24px; background: none; }
    .pn-lbr-item::after, .pn-lbr-item:nth-child(even)::after { left: 0; right: 0; }
    .pn-lbr-item:nth-last-child(2)::after { display: block; }
    .pn-lbr-item:last-child::after { display: none; }
}

/* ---------- 8. Szenarien: Tabs, darunter drei nummerierte Spalten ---------- */
.pn-ltablist { display: flex; flex-wrap: wrap; gap: 4px 36px; margin-top: 36px; border-bottom: 1px solid rgba(255,255,255,.18); }
.pn-ltabbtn { position: relative; padding: 14px 2px; border: 0; background: none; color: rgba(255,255,255,.7); font: 500 .98rem/1.3 'Inter', sans-serif; cursor: pointer; }
.pn-ltabbtn:hover { color: #fff; }
.pn-ltabbtn[aria-selected="true"] { color: #22D3EE; }
.pn-ltabbtn[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: #22D3EE; }
.pn-ltabbtn:focus-visible { outline: 2px solid #22D3EE; outline-offset: 4px; }
.pn-lsz .pn-ltabpanel-title { margin: 38px 0 0; color: #fff; font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.9rem) !important; letter-spacing: -.01em; }
.pn-lsz-cols { counter-reset: sz; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; }
.pn-lsz-col { counter-increment: sz; padding: 0 clamp(16px, 2.6vw, 38px); border-left: 1px solid rgba(255,255,255,.14); }
.pn-lsz-col:first-child { padding-left: 0; border-left: 0; }
.pn-lsz-col::before { content: counter(sz, decimal-leading-zero); display: block; margin-bottom: 10px; color: #22D3EE; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem; }
.pn-lsz-col h4 { margin: 0 0 12px; color: #fff; font-weight: 600; font-size: 1.2rem !important; line-height: 1.25; }
.pn-lsz-col p { margin: 0; color: rgba(255,255,255,.78); font-size: .97rem; line-height: 1.6; }
@media (max-width: 820px) {
    .pn-ltablist { gap: 0 24px; }
    .pn-lsz-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pn-lsz-col, .pn-lsz-col:first-child { padding: 26px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
    .pn-lsz-col:first-child { border-top: 0; padding-top: 6px; }
}

