/* ================================================
   BuildingSketcher – Website Stylesheet
   Farbschema aus App-Icon: Dunkelblau, Orange, Weiß
   ================================================ */

:root {
    --color-primary: #2b4c7e;
    --color-primary-dark: #1e3a5f;
    --color-accent: #e8872b;
    --color-accent-hover: #d0751f;
    --color-bg: #ffffff;
    --color-bg-light: #f5f7fa;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 1100px;
    --radius: 8px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

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

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Navigation ---- */
.navbar {
    background: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-brand img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

/* Hamburger toggle (CSS-only) */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-label span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ---- Sections ---- */
.section {
    padding: 4rem 1.5rem;
}

.section--alt {
    background: var(--color-bg-light);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    max-width: 700px;
    margin: 0 auto 1rem;
    line-height: 1.25;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--accent {
    background: var(--color-accent);
    color: #fff;
}

.btn--accent:hover {
    background: var(--color-accent-hover);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
    border-color: #fff;
    color: #fff;
}

/* ---- Cards Grid ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ---- Workflow Steps ---- */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content h3 {
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ---- Target Audiences ---- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    text-align: center;
}

.audience-item {
    padding: 1.5rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.audience-item .card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.audience-item h3 {
    color: var(--color-primary);
    font-size: 1rem;
}

/* ---- Shortcuts Table ---- */
.shortcuts-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
}

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

.shortcuts-table th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.shortcuts-table tr:hover {
    background: var(--color-bg-light);
}

.shortcuts-table kbd {
    display: inline-block;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ---- Download ---- */
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.15s;
}

.download-btn:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.download-btn .dl-icon {
    font-size: 1.5rem;
}

/* ---- Footer ---- */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.9rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
}

.footer a:hover {
    color: #fff;
}

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

/* ---- Legal Pages ---- */
.legal {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.legal h1 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.legal h2 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.legal h3 {
    color: var(--color-primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.legal p,
.legal ul {
    margin-bottom: 0.75rem;
}

.legal ul {
    padding-left: 1.5rem;
}

.legal .placeholder {
    background: #fff3cd;
    color: #856404;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    /* Mobile nav */
    .nav-toggle-label {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-primary);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-toggle:checked ~ .nav-links {
        max-height: 300px;
    }

    .nav-links li {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        display: block;
        padding: 0.9rem 1.5rem;
    }

    /* Hamburger animation */
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

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

    .section-title {
        font-size: 1.6rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
    }

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

    .section {
        padding: 2.5rem 1rem;
    }

    .nav-brand span {
        font-size: 1rem;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
