/* ============================================
   Überweisungen — Website Theme
   ============================================ */

:root {
    --color-primary: #0071e3;
    --color-primary-dark: #0058b0;
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-border: #d2d2d7;
    --color-accent-blue: #0071e3;
    --color-accent-green: #34c759;
    --color-accent-orange: #ff9500;
    --color-accent-red: #ff3b30;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --max-width: 1100px;
    --header-height: 60px;
}

/* ---- Reset & Base ---- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 600;
}

/* ---- Header ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-logo-img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.download-icon {
    width: 128px;
    height: 128px;
    border-radius: 22px;
    margin-bottom: 16px;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}

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

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 980px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

/* ---- Hero ---- */

.hero {
    padding: 80px 0 60px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* ---- App Window Mock ---- */

.app-window {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f5f5f7;
    border-bottom: 1px solid var(--color-border);
}

.window-bar .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.window-title {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.window-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 320px;
}

/* Sidebar mock */

.sidebar-mock {
    background: #f9f9fb;
    border-right: 1px solid var(--color-border);
    padding: 12px;
    font-size: 0.78rem;
}

.search-mock {
    padding: 8px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    font-size: 0.75rem;
}

.list-item {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    cursor: default;
    align-items: flex-start;
}

.list-item.active {
    background: var(--color-primary);
    color: white;
}

.list-item.active .amount,
.list-item.active span {
    color: rgba(255,255,255,0.85);
}

.list-item.active strong {
    color: white;
}

.dot-blue {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.list-item.active .dot-blue {
    background: white;
}

.dot-clear {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    margin-top: 4px;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.item-row strong {
    font-weight: 600;
}

.amount {
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
}

/* Stats mock */

.stats-mock {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.stats-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.72rem;
    color: var(--color-text-secondary);
}

/* Detail mock */

.detail-mock {
    padding: 20px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.detail-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.detail-meta {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

.badge-open {
    display: inline-block;
    background: var(--color-accent-orange);
    color: white;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.detail-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

.detail-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.field {
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 50px;
}

.field span:last-child {
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag.blue {
    background: rgba(0, 113, 227, 0.1);
    color: var(--color-accent-blue);
}

.tag.orange {
    background: rgba(255, 149, 0, 0.1);
    color: var(--color-accent-orange);
}

.tag.green {
    background: rgba(52, 199, 89, 0.1);
    color: var(--color-accent-green);
}

/* ---- Features Overview ---- */

.features-overview {
    padding: 80px 0;
    background: var(--color-surface);
}

.features-overview h2,
.workflow h2,
.tech-highlights h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ---- Workflow ---- */

.workflow {
    padding: 80px 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
}

.step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 24px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    padding-top: 36px;
}

/* ---- Tech Highlights ---- */

.tech-highlights {
    padding: 80px 0;
    background: var(--color-surface);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.tech-item strong {
    font-size: 1rem;
    margin-bottom: 4px;
}

.tech-item span {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* ---- Footer ---- */

.site-footer {
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.footer-brand .logo-icon {
    width: 24px;
    height: 24px;
    font-size: 0.5rem;
    border-radius: 6px;
}

.version {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-weight: 400;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* ---- Single Page / Content ---- */

.page-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.page-content h2 {
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.page-content h3 {
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.page-content p {
    margin-bottom: 16px;
    color: var(--color-text-secondary);
}

.page-content ul, .page-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}

.page-content strong {
    color: var(--color-text);
}

.page-content code {
    background: #f0f0f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}

.page-content pre {
    background: #1d1d1f;
    color: #f0f0f5;
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin-bottom: 16px;
    line-height: 1.5;
}

.page-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.85em;
    color: inherit;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.page-content th,
.page-content td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.page-content th {
    background: #f5f5f7;
    font-weight: 600;
    color: var(--color-text);
}

.page-content td {
    color: var(--color-text-secondary);
}

.page-content td code {
    font-size: 0.85em;
}

/* ---- Download Page ---- */

.download-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin: 32px 0;
}

.download-box h3 {
    margin-top: 0;
}

.download-box .btn {
    margin-top: 16px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.requirements-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
}

.requirements-list li:last-child {
    border-bottom: none;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .step-arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .window-content {
        grid-template-columns: 1fr;
    }

    .sidebar-mock {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions {
        flex-direction: column;
    }

    .main-nav {
        gap: 16px;
    }
}
