/* ============================================================
   Yorreck Wagner Solutions — Produktseite DocumentGenerator
   ============================================================

   Einspaltig, von oben nach unten. Abschnitte werden durch
   Haarlinien getrennt, nicht durch Kacheln, Flächen oder
   Animationen. Hervorgehoben wird genau zweimal: die
   Positionierung und die FAQ (.panel).
   ============================================================ */

/* ---------- Textspalte ---------- */
.product {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px 24px;
}

/* Überschreibt das großzügige Abschnittspolster aus styles.css: hier
   gliedert die Haarlinie, nicht der Leerraum. */
.product section {
    padding: 44px 0;
    border-top: 1px solid var(--color-border);
}
.product section.no-rule { border-top: none; padding-top: 0; }
/* Die Argumenteliste schließt bereits mit einer Linie ab. Ein zweiter Strich
   direkt darunter läse sich als leerer vierter Punkt. */
.product-head + section { border-top: none; }

.product h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    margin-bottom: 16px;
}
.product h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 10px;
}
.product p { color: var(--color-text-muted); }
.product p:last-child { margin-bottom: 0; }

/* ---------- Einstieg ---------- */
.product-head { padding: 28px 0 44px; }
/* Auf eine Zeile ausgelegt: bei 42 Zeichen und der Textspalte von 712 px
   passt die Überschrift bis etwa 2,1 rem. 2 rem lässt Luft für abweichende
   Schriftmetriken. Der vw-Anteil zieht sie auf schmalen Fenstern früh genug
   mit, sodass sie erst auf kleinen Telefonen umbricht. */
.product-head h1 {
    font-size: clamp(1.45rem, 3.9vw, 2rem);
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}
.product-lead {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    margin-bottom: 36px;
}
.product-lead-text { flex: 1; min-width: 0; }

.product-figure {
    flex: 0 0 200px;
    /* Der Strich läuft über den linken Rand der Textspalte hinaus, damit die
       Marke als Bild wirkt und nicht als eingerücktes Icon. */
    margin-left: -8px;
    color: var(--color-primary);
}
.product-figure svg { width: 100%; height: auto; display: block; }
/* Die Zahnräder sind flächig in Seitenfarbe gefüllt: nur so verdecken sie das
   Blatt dahinter und das kleinere Rad die Zähne des größeren. */
.product-figure .solid { fill: var(--color-bg); }

.product-intro {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}
.product-actions { margin: 0 0 32px; }

.product-points {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-border);
}
.product-points li {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}
.product-points strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ---------- Listen ---------- */
.product-list {
    margin: 0 0 1em;
    padding-left: 22px;
    color: var(--color-text-muted);
}
.product-list li {
    margin-bottom: 12px;
    line-height: 1.65;
}
.product-list li:last-child { margin-bottom: 0; }
.product-list strong { color: var(--color-text); font-weight: 600; }

/* ---------- Nummerierte Schritte ---------- */
.product-steps {
    list-style: none;
    counter-reset: step;
    margin: 0 0 1em;
    padding: 0;
}
.product-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 42px;
    margin-bottom: 20px;
    color: var(--color-text-muted);
    line-height: 1.65;
}
.product-steps li:last-child { margin-bottom: 0; }
.product-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
}
.product-steps strong {
    display: block;
    color: var(--color-text);
    font-weight: 600;
}

/* ---------- Nebenbemerkung ---------- */
.product-aside {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* ---------- Die beiden hervorgehobenen Flächen ---------- */
.panel {
    padding: 32px 34px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.panel h2 { margin-bottom: 14px; }
.panel p:last-child { margin-bottom: 0; }
.panel strong { color: var(--color-text); font-weight: 600; }

/* ---------- FAQ ---------- */
.panel-faq { padding: 8px 0; }
.panel-faq details + details { border-top: 1px solid var(--color-border); }
.panel-faq summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 26px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    transition: color var(--transition);
}
.panel-faq summary::-webkit-details-marker { display: none; }
.panel-faq summary:hover { color: var(--color-primary); }
.panel-faq summary:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}
.panel-faq summary::after {
    content: "";
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 4px;
    background-color: var(--color-text-muted);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: transform var(--transition);
}
.panel-faq details[open] summary { color: var(--color-primary); }
.panel-faq details[open] summary::after { transform: rotate(180deg); }
.panel-faq details p {
    margin: 0;
    padding: 0 26px 20px;
    font-size: 0.97rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    /* Gestapelt bleibt die Marke sichtbar, nimmt aber nicht den halben
       ersten Bildschirm ein. */
    .product-lead { flex-direction: column; gap: 24px; }
    .product-figure { flex: 0 0 auto; width: 132px; margin-left: 0; }
}

@media (max-width: 700px) {
    .product { padding: 0 20px 16px; }
    .product-head { padding: 40px 0 36px; }
    .product section { padding: 36px 0; }
    .product-actions .btn { width: 100%; justify-content: center; }
    .panel { padding: 26px 22px; }
    .panel-faq { padding: 4px 0; }
    .panel-faq summary { padding: 16px 20px; font-size: 0.96rem; }
    .panel-faq details p { padding: 0 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .panel-faq summary::after { transition: none; }
}
