:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --accent-color: #38bdf8;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --terminal-bg: #000;
}

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

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: url('img/local-ai-bg.jpg'), radial-gradient(circle at top right, #1e293b, #0f172a);
    background-size: contain, cover;
    background-repeat: no-repeat;
    background-position: top center, center;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: 50vh; /* Start at 50% of the viewport height */
    margin-bottom: 100px; /* Space for the fixed footer */
}

.questions {
    list-style: none;
    width: 100%;
    margin: 0 auto 4rem auto;
    text-align: left;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
}

.questions li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.questions li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
}

.btn-download {
    padding: 0.6rem 1.2rem;
    background-color: rgba(15, 23, 42, 0.8);
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    border-radius: 0.4rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

.btn-inline-more {
    background-color: rgba(15, 23, 42, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-inline-more:hover {
    background-color: var(--accent-color);
    color: #000;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

footer a {
    color: #f8fafc; /* Hellere Farbe als --text-secondary */
    text-decoration: none;
    font-size: 1.1rem; /* Etwas größer */
    font-weight: 500;
}

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

/* Overlays Base */
.overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.overlay.show {
    transform: translateY(0);
}

.overlay-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--accent-color);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Impressum Styles */
.impressum-grid {
    display: flex;
    gap: 3rem;
    padding-top: 1rem;
}

.impressum-contact {
    flex: 1;
}

.impressum-contact p {
    margin-bottom: 0.5rem;
}

.impressum-disclaimer {
    flex: 2;
}

.scrollable-box {
    height: 300px;
    overflow-y: auto;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.scrollable-box p {
    margin-bottom: 1rem;
}

.scrollable-box::-webkit-scrollbar {
    width: 8px;
}

.scrollable-box::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.scrollable-box::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.impressum-email {
    color: var(--text-primary);
    text-decoration: none;
}

.impressum-email:hover {
    text-decoration: none;
    color: var(--text-primary);
}

.impressum-email:visited {
    color: var(--text-primary);
}

/* Buttons & Hidden States */
.show-extra {
    display: block !important;
    max-height: 1000px;
    opacity: 1;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
        max-width: 100%;
    }

    .questions {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .questions li {
        padding-left: 1.2rem;
    }

    .impressum-grid {
        flex-direction: column;
        gap: 2rem;
    }

    main {
        margin-top: 24vh;
    }
}

/* New specific styles for cards */
.card .questions {
    margin: 0;
    padding: 0.5rem;
    border: none;
    background: transparent;
}

@media (orientation: portrait) {
    main {
        margin-top: 24vh;
    }
}

.contact-icon-link {
    font-size: 8rem;
    transition: transform 0.3s ease;
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
}

.contact-icon-link:hover {
    transform: scale(1.1);
}

#page-title {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    padding: 1rem 2rem;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    font-size: 2.0rem;
    font-weight: bold;
    color: var(--accent-color);
    transition: opacity 3s ease;
    text-align: center;
    max-width: 1200px;
    width: 90%;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: normal;
    color: #ffffff;
    margin-top: 0.2rem;
}
