/* Software listing (/software) and detail (/software/<ref>) pages. All rules are scoped with the sw- prefix. */

.sw-page {
    overflow-wrap: break-word;
    min-width: 0;
}

.sw-page :focus-visible {
    outline: 3px solid #FF8C00;
    outline-offset: 3px;
}

/* Sections */

.sw-section {
    padding: 80px 0;
    background: #fff;
}

.sw-section--alt {
    background: #f8f9fa;
}

.sw-h2 {
    text-align: center;
    font-size: 2.5rem;
    line-height: 1.25;
    margin-bottom: 50px;
    color: #333;
}

.sw-h2--sub {
    font-size: 1.8rem;
    line-height: 1.3;
    color: #01574c;
    margin-bottom: 24px;
}

/* Hero (gradient band) */

.sw-hero {
    background: linear-gradient(135deg, #01574c 0%, #FF8C00 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.sw-hero__inner {
    max-width: 780px;
    margin: 0 auto;
}

.sw-hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.sw-hero__icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 16px;
}

.sw-hero__lead {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 24px;
}

.sw-hero__desc {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 24px;
}

.sw-hero__pills {
    margin-bottom: 20px;
}

.sw-hero__pills .sw-pill {
    margin: 0 4px 8px;
}

.sw-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 50px;
    background: #fff;
    color: #b85c00;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Badge */

.sw-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: #FF8C00;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
}

.sw-hero .sw-badge {
    background: #fff;
    color: #b85c00;
}

/* Pills */

.sw-pill {
    display: inline-block;
    margin: 0 6px 8px 0;
    padding: 4px 12px;
    border-radius: 50px;
    background: #e6f2f0;
    color: #01574c;
    font-size: 0.8rem;
    font-weight: 600;
}

.sw-hero .sw-pill {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

/* Buttons */

.sw-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.sw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
}

.sw-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.sw-btn--primary {
    background: #fff;
    border-color: #fff;
    color: #01574c;
}

.sw-btn--primary:hover {
    background: #f1f7f6;
    color: #01574c;
}

.sw-btn--ghost {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.sw-btn--ghost:hover {
    background: #fff;
    color: #01574c;
}

/* Links */

.sw-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    align-self: flex-start;
    color: #01574c;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid #01574c;
    transition: color 0.3s, border-color 0.3s;
}

.sw-link:hover {
    color: #FF8C00;
    border-bottom-color: #FF8C00;
}

.sw-breadcrumb-bar {
    background: #f8f9fa;
    padding: 16px 0;
    font-size: 0.9rem;
}

.sw-breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #666;
}

.sw-breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: #999;
}

.sw-breadcrumb a {
    color: #01574c;
    text-decoration: none;
    font-weight: 600;
}

.sw-breadcrumb a:hover {
    text-decoration: underline;
}

/* Cards and grids */

.sw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.sw-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.sw-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 36px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.sw-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.sw-card--compact {
    padding: 24px 22px;
}

.sw-card__icon {
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: 16px;
}

.sw-card__label {
    color: #FF8C00;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.sw-card h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    color: #333;
    margin-bottom: 12px;
}

.sw-card--compact h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.sw-card p {
    color: #666;
    margin-bottom: 16px;
}

.sw-card .sw-pill {
    margin-top: auto;
}

.sw-card__pills {
    margin-bottom: 16px;
}

.sw-card .sw-badge {
    align-self: flex-start;
    margin-bottom: 16px;
}

.sw-card__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sw-card__head .sw-card__icon {
    margin-bottom: 0;
}

/* Benefit list (features on the detail page) */

.sw-benefit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    padding: 24px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.sw-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.sw-benefit h3 {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 6px;
}

.sw-benefit p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sw-check {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e6f2f0;
    color: #01574c;
    font-size: 0.95rem;
}

/* More from SCHULE */

.sw-more-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    padding: 24px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sw-more-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.sw-more-card__icon {
    font-size: 2rem;
    line-height: 1;
}

.sw-more-card h3 {
    font-size: 1.1rem;
    color: #01574c;
    margin-bottom: 4px;
}

.sw-more-card p {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.45;
}

/* Responsive */

@media (max-width: 768px) {
    .sw-page .container {
        padding: 0 16px;
    }

    .sw-hero {
        padding: 56px 0;
    }

    .sw-hero h1 {
        font-size: 2.2rem;
    }

    .sw-h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .sw-section {
        padding: 56px 0;
    }

    .sw-grid,
    .sw-grid--compact {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sw-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sw-actions .sw-btn {
        width: 100%;
    }

    .sw-hero__pills .sw-pill,
    .sw-card .sw-pill {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sw-card,
    .sw-benefit,
    .sw-more-card,
    .sw-btn,
    .sw-link {
        transition: none;
    }

    .sw-card:hover,
    .sw-benefit:hover,
    .sw-more-card:hover,
    .sw-btn:hover {
        transform: none;
    }
}

/* Hero entrance, same timing as the home page hero (fadeInUp is defined in base.html) */
@media (prefers-reduced-motion: no-preference) {
    .sw-hero h1 {
        animation: fadeInUp 1s ease-out;
    }

    .sw-hero__lead,
    .sw-hero__desc {
        animation: fadeInUp 1s ease-out 0.2s both;
    }

    .sw-hero__pills {
        animation: fadeInUp 1s ease-out 0.4s both;
    }
}

