/*
 * PreQ — neue Startseite (neu.preq.eu). Nur Klassen mit Praefix "pn-".
 * Basis (Fonts, Farbvariablen, Navigation, Kontaktblock) kommt aus
 * preq-homepage.css / preq-theme.css und wird hier NICHT wiederholt.
 *
 * Markenwerte: Cyan #22D3EE, Flaechen #111114 / #1D1D21 (neutral dunkel, kein Navy),
 * Headlines Inter (per Theme), Fliesstext Open Sans. Kein Glow ausser Hero-PreQ (n/a hier).
 */

.pn-wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 40px; }
.pn-accent { color: #22D3EE; }

/* ---------- Buttons / Links / Pfeile ---------- */
.pn-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border-radius: 8px;
    background: #22D3EE; color: #0f172a !important; text-decoration: none;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pn-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(34,211,238,.28); }
.pn-btn:focus-visible, .pn-dot:focus-visible, .pn-textlink:focus-visible,
.pn-pcard:focus-visible, .pn-plat:focus-visible { outline: 2px solid #22D3EE; outline-offset: 3px; }

.pn-textlink {
    display: inline-flex; align-items: center; gap: 8px;
    color: #22D3EE; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.pn-textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

.pn-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1.5px solid #22D3EE; color: #22D3EE; flex: none;
    transition: background .2s ease, color .2s ease;
}
.pn-arrow--small { width: 34px; height: 34px; }
.pn-arrow--small svg { width: 15px; height: 15px; }
a:hover > .pn-arrow, a:focus-visible > .pn-arrow,
a:hover .pn-pcard-body > .pn-arrow { background: #22D3EE; color: #0f172a; }

.pn-overline {
    display: block; font-size: 12px; font-weight: 600; letter-spacing: .32em;
    text-transform: uppercase; color: rgba(255,255,255,.72);
}

/* ---------- 1. Hero ---------- */
.pn-hero {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: clamp(560px, 46vw, 700px);
    display: flex; align-items: center;
    padding: 130px 0 90px;
    background: #111114;
}
.pn-hero-slides { position: absolute; inset: 0; z-index: -2; }
.pn-hero-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 70% 50%;
    opacity: 0; transition: opacity 1s ease; will-change: opacity;
}
.pn-hero-slide.is-active { opacity: 1; }
/* Text-Lesbarkeit: links dunkel auslaufend, unten weich in die Folgesektion */
.pn-hero-shade {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(17,17,20,.96) 0%, rgba(17,17,20,.86) 30%, rgba(17,17,20,.35) 56%, rgba(17,17,20,0) 74%),
        linear-gradient(0deg, rgba(17,17,20,.9) 0%, rgba(17,17,20,0) 26%);
}
.pn-hero-inner { position: relative; }
.pn-hero-text { max-width: 560px; }
.pn-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.06; font-weight: 700;
    letter-spacing: -.02em; color: #fff; margin: 0 0 24px;
}
.pn-hero-sub {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55;
    color: rgba(255,255,255,.86); max-width: 500px; margin: 0 0 32px;
}

/* Punkte: der aktive dehnt sich zur Leiste und fuellt sich in der Wechselzeit */
.pn-hero-dots-wrap { position: absolute; left: 0; right: 0; bottom: 30px; }
.pn-hero-dots { display: flex; align-items: center; gap: 10px; }
.pn-dot {
    position: relative; height: 10px; width: 10px; padding: 0; border: 0; cursor: pointer;
    border-radius: 999px; background: rgba(255,255,255,.35); overflow: hidden;
    transition: width .35s ease, background .2s ease;
}
.pn-dot:hover { background: rgba(255,255,255,.6); }
.pn-dot.is-active { width: 44px; background: rgba(255,255,255,.28); }
.pn-dot-fill {
    position: absolute; inset: 0; background: #22D3EE; border-radius: inherit;
    transform: scaleX(0); transform-origin: left center;
}
.pn-dot.is-active .pn-dot-fill { animation: pn-dot-fill var(--pn-interval, 6s) linear forwards; }
.pn-hero.is-paused .pn-dot.is-active .pn-dot-fill { animation-play-state: paused; }
@keyframes pn-dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
    .pn-hero-slide { transition: none; }
    .pn-dot { transition: none; }
    .pn-dot.is-active .pn-dot-fill { animation: none; transform: scaleX(1); }
}

/* ---------- 2. Das PreQ-Prinzip ---------- */
.pn-prinzip { background: #111114; padding: 56px 0 0; border-top: 1px solid rgba(255,255,255,.08); }
.pn-prinzip-head {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr) auto;
    gap: 40px; align-items: center; padding-bottom: 40px;
}
.pn-prinzip-title h2 {
    margin: 10px 0 0; color: #fff; font-weight: 700; letter-spacing: -.015em;
    font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.12;
}
.pn-prinzip-text {
    margin: 0; padding-left: 40px; border-left: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.6;
}

.pn-pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.08); border-top: 1px solid rgba(255,255,255,.08); }
.pn-pcard {
    position: relative; display: block; min-height: 220px; overflow: hidden;
    background: #1D1D21; color: #fff; text-decoration: none; isolation: isolate;
}
.pn-pcard-img {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
    object-fit: cover; object-position: 70% 50%; transition: transform .6s ease;
}
.pn-pcard::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, rgba(29,29,33,.96) 0%, rgba(29,29,33,.78) 40%, rgba(29,29,33,0) 78%);
}
.pn-pcard:hover .pn-pcard-img { transform: scale(1.04); }
.pn-pcard-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; min-height: 220px; padding: 30px 36px 28px 40px; max-width: 66%; }
.pn-pcard h3 { margin: 0; color: #fff; font-size: 1.4rem; font-weight: 700; line-height: 1.15; }
.pn-pcard-text { color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.5; }
.pn-pcard-body .pn-arrow { margin-top: auto; }

/* ---------- 3. Loesungsplattformen ---------- */
.pn-plattformen { background: #111114; padding: 26px 0 72px; border-top: 1px solid rgba(255,255,255,.08); }
.pn-plat-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.pn-plat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pn-plat {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: #1D1D21; border: 1px solid rgba(255,255,255,.09); border-radius: 10px;
    color: #fff; text-decoration: none; transition: border-color .2s ease, transform .2s ease;
}
.pn-plat:hover { border-color: rgba(34,211,238,.55); transform: translateY(-2px); }
.pn-plat-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #252529; }
.pn-plat-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pn-plat-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 56px; }
.pn-plat .pn-plat-domain { display: block; margin: 0; font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: normal; word-break: normal; }
.pn-plat .pn-plat-domain b { color: #22D3EE; font-weight: 700; white-space: nowrap; }
.pn-plat-sub { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.92); }
.pn-plat-desc { font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.66); }
.pn-plat .pn-arrow { position: absolute; right: 12px; bottom: 12px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
    .pn-plat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .pn-prinzip-head { grid-template-columns: 1fr; gap: 18px; }
    .pn-prinzip-text { padding-left: 0; border-left: 0; }
    .pn-pcards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .pn-wrap { padding: 0 20px; }
    .pn-hero { padding: 112px 0 84px; min-height: 620px; }
    .pn-hero-slide { object-position: 78% 50%; }
    .pn-hero-shade {
        background:
            linear-gradient(0deg, rgba(17,17,20,.94) 0%, rgba(17,17,20,.78) 50%, rgba(17,17,20,.45) 100%);
    }
    .pn-pcard-body { max-width: 78%; }
    .pn-plat-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .pn-plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
    .pn-plat-grid { grid-template-columns: 1fr; }
}
