/* =============================================================================
   RustDesk Download Page - Inspiriert vom EverLinux Design
   Dunkles Theme, modern, clean
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;700&display=swap');

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

/* Variablen */
:root {
    --bg-primary: #1c1d26;
    --bg-secondary: #242530;
    --bg-card: #2a2b38;
    --accent: #e44c65;
    --accent-hover: #ff5f7a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border: rgba(255, 255, 255, 0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --transition: 0.3s ease;
}

/* Base */
html, body {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    min-height: 100vh;
    -webkit-text-size-adjust: none;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
    border-bottom: 1px dotted var(--accent);
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin-bottom: 1.5em;
}

strong, b {
    color: var(--text-primary);
    font-weight: 400;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header / Banner */
.banner {
    padding: 6rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border);
}

.banner .logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
}

.banner h1 {
    margin-bottom: 0.5rem;
}

.banner p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Info Box */
.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin: 3rem auto;
    max-width: 700px;
    text-align: center;
}

.info-box p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.info-box .icon-check {
    color: #34c759;
    margin-right: 0.5rem;
}

/* Downloads Section */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-muted);
}

/* Download Grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Download Card */
.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.download-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.download-card h3 {
    margin-bottom: 0.5rem;
}

.download-card .card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: none;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(228, 76, 101, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    margin-top: 0.75rem;
}

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

.btn + .btn {
    margin-left: 0.5rem;
}

.card-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Setup Section */
.setup-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0;
}

.setup-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.setup-box h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.setup-box ol {
    list-style: none;
    counter-reset: steps;
    padding: 0;
}

.setup-box ol li {
    counter-increment: steps;
    padding: 0.75rem 0 0.75rem 3rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.setup-box ol li:last-child {
    border-bottom: none;
}

.setup-box ol li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 2rem;
    height: 2rem;
    background: var(--accent);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer a {
    color: var(--text-muted);
    border-bottom-color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 768px) {
    .banner {
        padding: 4rem 0 3rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .download-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .setup-box {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 3rem 0 2rem;
    }

    .download-card {
        padding: 2rem 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
}
