/* ===================================================================
 * NOVOGRAV - Seiten der Kategorie "Software-Entwicklung"
 * Ergänzt style.css / style-legacy.css, nutzt dieselben Farben
 * (Petrol #003D4E) und die Schrift Saira Semi Condensed.
 * Alle Klassen beginnen mit "sw-", damit nichts Bestehendes berührt wird.
 * =================================================================== */

.legacy .sw-lead {
    font-size: 19px;
    line-height: 1.6;
    color: #003D4E;
    font-weight: 500;
    margin: 0 0 22px;
}

/* ---------- Kennzahlen ---------- */
.legacy .sw-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 26px 0 30px;
}
.legacy .sw-fact {
    background: #003D4E;
    color: #fff;
    border-radius: 4px;
    padding: 16px 16px 14px;
}
.legacy .sw-fact__value {
    display: block;
    font-family: "Saira Semi Condensed", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
}
.legacy .sw-fact__value--small {
    font-size: 22px;
    line-height: 1.35;
}
.legacy .sw-fact__label {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.35;
    color: #d5e1e5;
}
@media (max-width: 900px) {
    .legacy .sw-facts { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Abbildungen ---------- */
.legacy .sw-figure {
    margin: 22px 0 28px;
}
.legacy .sw-figure a {
    display: block;
    text-decoration: none;
}
.legacy .sw-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e0e3e6;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    background: #fff;
}
.legacy .sw-figure figcaption {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
    color: #6a6a6a;
}
.legacy .sw-figure figcaption strong {
    color: #003D4E;
}

/* Bild links, Text rechts */
.legacy .sw-split {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 18px 0 30px;
}
.legacy .sw-split .sw-figure {
    margin: 0;
}
.legacy .sw-split h3 {
    margin-top: 0;
}
.legacy .sw-split--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
}
.legacy .sw-split--reverse .sw-figure {
    order: 2;
}
@media (max-width: 1100px) {
    .legacy .sw-split,
    .legacy .sw-split--reverse {
        grid-template-columns: 1fr;
    }
    .legacy .sw-split--reverse .sw-figure {
        order: 0;
    }
    .legacy .sw-split .sw-figure img {
        max-width: 508px;
    }
}

/* ---------- Arbeitsablauf ---------- */
.legacy .sw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0 30px;
    padding: 0;
    list-style: none;
    counter-reset: sw-step;
}
.legacy .sw-steps li {
    counter-increment: sw-step;
    margin: 0;
    padding: 16px 16px 14px;
    background: #e6eef1;
    border-left: 3px solid #003D4E;
    border-radius: 0 4px 4px 0;
    font-size: 15px;
    line-height: 1.45;
}
.legacy .sw-steps li::before {
    content: counter(sw-step);
    display: block;
    font-family: "Saira Semi Condensed", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: #003D4E;
    opacity: 0.45;
    margin-bottom: 6px;
}
.legacy .sw-steps strong {
    display: block;
    font-family: "Saira Semi Condensed", sans-serif;
    font-size: 17px;
    color: #003D4E;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}
@media (max-width: 900px) {
    .legacy .sw-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .legacy .sw-steps,
    .legacy .sw-facts { grid-template-columns: 1fr; }
}

/* ---------- Beispielcode / Texteingabe ---------- */
.legacy .sw-code {
    margin: 12px 0 20px;
    padding: 14px 18px;
    background: #f3f3f3;
    border-left: 3px solid #003D4E;
    border-radius: 0 4px 4px 0;
    font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
    font-size: 15px;
    line-height: 1.5;
    color: #1e2a2e;
    white-space: pre;
    overflow-x: auto;
}
.legacy kbd {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #003D4E;
    background: #f3f3f3;
    border: 1px solid #c8d2d6;
    border-bottom-width: 2px;
    border-radius: 3px;
    padding: 0 5px;
    white-space: nowrap;
}

/* ---------- Hinweisbox ---------- */
.legacy .sw-note {
    margin: 18px 0 26px;
    padding: 14px 18px;
    background: #eef1f3;
    border-left: 4px solid #003D4E;
    font-size: 16px;
}
.legacy .sw-note p:last-child {
    margin-bottom: 0;
}

/* ---------- Tabellen mit Kopfzeile pro Spalte ---------- */
.legacy .sw-table table tr td:first-child {
    width: 30%;
}

/* ---------- Häufige Fragen ---------- */
.legacy .sw-faq details {
    border: 1px solid #e0e3e6;
    border-radius: 4px;
    margin: 0 0 10px;
    background: #fff;
}
.legacy .sw-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 44px 12px 16px;
    position: relative;
    font-family: "Saira Semi Condensed", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #003D4E;
}
.legacy .sw-faq summary::-webkit-details-marker {
    display: none;
}
.legacy .sw-faq summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
}
.legacy .sw-faq details[open] summary::after {
    content: "\2013";
}
.legacy .sw-faq details > div {
    padding: 0 16px 6px;
}

/* ---------- Datenfluss (Kette von Stationen) ---------- */
.legacy .sw-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    margin: 18px 0 28px;
    padding: 0;
    list-style: none;
}
.legacy .sw-flow li {
    flex: 1 1 0;
    min-width: 120px;
    margin: 0;
    padding: 12px 12px 10px;
    background: #e6eef1;
    border-top: 3px solid #003D4E;
    border-radius: 0 0 4px 4px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}
.legacy .sw-flow li strong {
    display: block;
    font-family: "Saira Semi Condensed", sans-serif;
    font-size: 16px;
    color: #003D4E;
    margin-bottom: 2px;
}
.legacy .sw-flow li.sw-flow__main {
    background: #003D4E;
    color: #d5e1e5;
}
.legacy .sw-flow li.sw-flow__main strong {
    color: #fff;
}
.legacy .sw-flow li + li::before {
    content: "\203A";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 700;
    color: #003D4E;
}
@media (max-width: 700px) {
    .legacy .sw-flow { flex-direction: column; }
    .legacy .sw-flow li + li::before { display: none; }
}

/* ---------- Kontakt ---------- */
.legacy .sw-cta {
    margin: 34px 0 10px;
    padding: 22px 24px;
    background: #003D4E;
    color: #fff;
    border-radius: 4px;
}
.legacy .sw-cta h2 {
    color: #fff;
    margin: 0 0 8px;
}
.legacy .sw-cta p {
    color: #e1e6e8;
    margin: 0 0 14px;
}
.legacy .sw-cta a.sw-cta__btn {
    display: inline-block;
    padding: 10px 22px;
    background: #fff;
    color: #003D4E;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 700;
}
.legacy .sw-cta a.sw-cta__btn:hover {
    background: #e6eef1;
}
.legacy .sw-cta a.sw-cta__link {
    color: #fff;
    margin-left: 18px;
}
