/* Taskschmiede - Product Website */

:root {
    --color-bg: #fff;
    --color-card: #f2f2f2;
    --color-text: #2d2d2d;
    --color-text-secondary: #5a5a5a;
    --color-border: #999;
    --color-border-light: #ddd;
    --color-code-bg: #f2f2f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-wrap: break-word;
}

body.page-home::after {
    content: '';
    position: fixed;
    right: 40px;
    top: 80px;
    width: auto;
    height: 500px;
    aspect-ratio: 847 / 1268;
    background: url('/taskschmiede.png') no-repeat right top / contain;
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--color-text);
    text-decoration: underline;
}

a:hover {
    color: var(--color-text-secondary);
}

/* Navigation */

.nav {
    border-bottom: 1px solid var(--color-border-light);
    padding: 0 1.5rem;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--color-text);
}

.nav-brand:hover {
    color: var(--color-text-secondary);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-family: inherit;
    color: var(--color-text);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text);
}

.nav-links a.active {
    font-weight: 700;
}

/* Main content */

.content {
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Hero */

.hero {
    text-align: center;
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.hero-pitch {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    font-size: 0.9rem;
}

.collab-diagram {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.collab-sep {
    color: var(--color-text-secondary);
}

.hero-sub {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Sections */

.section {
    margin-bottom: 2.5rem;
}

.section h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.section h2:first-child {
    margin-top: 0;
}

.section p,
#compat-loading,
#compat-error {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.section ul,
.section ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.section li {
    margin-bottom: 0.35rem;
}

/* Card grid */

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.card {
    background: var(--color-card);
    border: 1px solid var(--color-border-light);
    padding: 1.25rem;
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* Features page */

.feature {
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature h2 {
    margin-top: 0;
}

.feature p {
    color: var(--color-text-secondary);
}

/* Compatibility tables */

.table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

.compat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.compat-table th,
.compat-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
    white-space: nowrap;
}

.compat-table th {
    font-weight: 700;
    border-bottom: 2px solid var(--color-border);
}

.compat-table tr:last-child td {
    border-bottom: none;
}

/* Comparison table (CE vs Cloud) */

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 1.5rem 0;
}

.compare-table th,
.compare-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
}

.compare-table th {
    font-weight: 700;
    border-bottom: 2px solid var(--color-border);
}

.compare-table td:nth-child(2),
.compare-table td:nth-child(3),
.compare-table th:nth-child(2),
.compare-table th:nth-child(3) {
    text-align: center;
    width: 120px;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.result-pass_distinction {
    font-weight: 700;
}

.result-fail {
    color: var(--color-text-secondary);
}

/* Call to action */

.cta {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-link {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Code blocks */

pre {
    background: var(--color-code-bg);
    border: 1px solid var(--color-border-light);
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.5;
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

pre code {
    font-size: inherit;
}

p code,
li code {
    background: var(--color-code-bg);
    padding: 0.1rem 0.3rem;
    border: 1px solid var(--color-border-light);
    word-break: break-all;
}

/* SaaS callout */

.saas-callout {
    text-align: center;
    border-top: 1px solid var(--color-border-light);
    padding-top: 2rem;
}

.saas-callout p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Etymology */

.etymology {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* 404 */

.section-404 {
    text-align: center;
    padding-top: 4rem;
}

.section-404 h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

/* Maintenance */

.section-maintenance {
    text-align: center;
    padding-top: 4rem;
}

.section-maintenance h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-maintenance p {
    max-width: 480px;
    margin: 0 auto 0.75rem;
}

.section-maintenance p:last-of-type {
    margin-bottom: 1.5rem;
}

/* Footer */

.footer {
    border-top: 1px solid var(--color-border-light);
    padding: 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.footer-inner > * {
    flex: 1;
}

.footer-coded {
    text-align: right;
    color: var(--color-text-secondary);
}

/* Responsive: tablet */

@media (max-width: 768px) {
    body::after {
        right: 30px;
        bottom: 60px;
        height: min(25vh, 1268px);
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 3.5rem;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        z-index: 100;
    }

    .nav-open .nav-links {
        display: flex;
    }

    .nav {
        position: relative;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

}

/* Responsive: phone */

@media (max-width: 480px) {
    body::after {
        display: none;
    }

    html {
        font-size: 13px;
        -webkit-text-size-adjust: 100%;
    }

    .content {
        padding: 1.25rem 0.75rem;
        min-width: 0;
    }

    .nav {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 1.5rem 0 1.25rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .hero-pitch {
        font-size: 0.85rem;
    }

    .collab-diagram {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .collab-sep {
        display: none;
    }

    .cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    pre {
        font-size: 0.6rem;
        padding: 0.5rem;
    }

    .section h1 {
        font-size: 1.3rem;
    }

    .section h2 {
        font-size: 1rem;
    }

    .section p,
    .section li,
    #compat-loading,
    #compat-error {
        font-size: 0.85rem;
    }

    .feature p {
        font-size: 0.85rem;
    }

    .card h3 {
        font-size: 0.9rem;
    }

    .card p {
        font-size: 0.8rem;
    }

    .card {
        padding: 0.75rem;
    }

    .footer {
        padding: 0.75rem;
    }

    .footer-inner {
        font-size: 0.7rem;
    }

    .section-404 h1 {
        font-size: 2.5rem;
    }
}

/* Print */

@media print {
    .nav,
    .nav-toggle {
        display: none;
    }

    body {
        background: white;
    }

    body::after {
        display: none;
    }

    .card {
        border: 1px solid #ccc;
        background: white;
    }

    .footer {
        border-top: 1px solid #ccc;
    }
}
