/* ==========================================================================
   CSS Variablen & Setup
   ========================================================================== */
:root {
    /* Helles / Crafty Theme (Basis) */
    --bg-color: #f8f9fa;
    --text-color: #333333;
    --text-muted: #666666;
    --primary: #2b7a78;
    --primary-hover: #3aafa9;
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
    
    /* Neon Floor Theme */
    --neon-bg: #0B0920;
    --neon-pink: #FF2E97;
    --neon-cyan: #00F0DC;
    --neon-text: #ffffff;
    
    /* Schriften (Lokal bereitstellen) */
    --font-base: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
    --font-pixel: 'Press Start 2P', monospace; /* Alternative für Retro */
}

/* Platzhalter für lokale Schriften. 
   Lade die WOFF2 Dateien herunter (z.B. via google-webfonts-helper) und lege sie im /fonts Ordner ab. */
/*
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Press Start 2P';
    src: url('../fonts/press-start-2p.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
*/

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

body {
    font-family: var(--font-base);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Footer
   ========================================================================== */
.main-header {
    background-color: #ffffff;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
}
.main-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}
.main-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.main-header nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s;
}
.main-header nav a:hover {
    color: var(--primary);
}
.header-small {
    padding: 20px 0;
}
.header-small h1 {
    font-size: 1.8rem;
}

.main-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}
.main-footer nav a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
}
.main-footer nav a:hover {
    color: #fff;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: 60px 0;
    border-bottom: 1px solid var(--card-border);
}
.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}
.section > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* ==========================================================================
   3D Druck Gallery
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 6 Produkte = 3×2 */
    gap: 20px;
    margin-bottom: 30px;
}
@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .gallery-grid { gap: 12px; }
    .gallery-caption { padding: 8px; font-size: 0.85rem; }
}
.gallery-item {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.gallery-caption {
    padding: 12px 15px;
    font-weight: bold;
    text-align: center;
}
.gallery-item:hover .gallery-caption {
    color: var(--primary);
}
.action-area {
    text-align: center;
}

/* ==========================================================================
   Apps & Spiele Cards
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
    align-items: start; /* Karten nicht auf die Höhe der Neon-Karte strecken */
}

.card {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
    min-width: 0; /* sonst macht die Screenshot-Leiste die Karte breiter als den Bildschirm */
}
.card:hover {
    transform: translateY(-5px);
}
.card-img-top {
    width: 100%;
    height: auto; /* volles Titelbild, Seitenverhältnis aus width/height im HTML */
    object-fit: cover;
    background-color: #eee; /* Fallback */
}
.card-img-small {
    height: 150px;
    object-fit: contain;
    padding: 20px;
    background-color: #fafafa;
}
.card-img-screenshot {
    height: 220px;
    object-position: top; /* Zeigt den oberen Bereich des Screenshots (oft relevanter als die Mitte) */
}
.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.app-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
}
.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
}
.card-content p {
    margin-bottom: 15px;
}

/* Theme: Light (ShapeCraft, Schätzlabor) */
.theme-light {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Theme: Neon (Neon Floor Manager) */
.theme-neon {
    background-color: var(--neon-bg);
    color: var(--neon-text);
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 46, 151, 0.3);
}
.theme-neon h3 {
    color: var(--neon-cyan);
    margin-bottom: 0;
    /* font-family: var(--font-pixel); */ /* Aktivieren, wenn Pixel-Font lokal liegt */
}
.theme-neon .neon-text {
    color: var(--neon-pink);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.theme-neon .features {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}
.theme-neon .features li::before {
    content: '▶ ';
    color: var(--neon-cyan);
    font-size: 0.8rem;
}

/* Screenshot Galerie */
.app-screenshots {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-pink) var(--neon-bg);
}
.app-screenshots::-webkit-scrollbar {
    height: 6px;
}
.app-screenshots::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}
.app-screenshots::-webkit-scrollbar-thumb {
    background-color: var(--neon-pink);
    border-radius: 3px;
}
.app-screenshots img {
    height: 180px; /* Screenshots im Hochformat */
    width: auto;
    border-radius: 6px;
    border: 1px solid var(--neon-pink);
}
.theme-light .app-screenshots {
    scrollbar-color: var(--primary) var(--card-border);
}
.theme-light .app-screenshots::-webkit-scrollbar-track {
    background: var(--card-border);
}
.theme-light .app-screenshots::-webkit-scrollbar-thumb {
    background-color: var(--primary);
}
.theme-light .app-screenshots img {
    height: 300px;
    border-color: var(--card-border);
}
.theme-neon .usk-note {
    font-size: 0.85rem;
    color: #aaa;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    margin-bottom: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    margin-top: auto;
}
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}
.btn-secondary {
    background-color: #e2e8f0;
    color: #333;
}
.btn-secondary:hover {
    background-color: #cbd5e1;
}
.btn-neon {
    background-color: var(--neon-pink);
    color: white;
    box-shadow: 0 0 10px rgba(255, 46, 151, 0.5);
}
.btn-neon:hover {
    background-color: #d11c78;
    box-shadow: 0 0 15px rgba(255, 46, 151, 0.8);
}

/* ==========================================================================
   Text Pages (Impressum)
   ========================================================================== */
.text-content {
    max-width: 800px;
    margin: 0 auto;
}
.text-content > p {
    text-align: left;
    max-width: none;
    margin: 0 0 15px 0;
}
.text-content h2, .text-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}
.text-content p, .text-content ul {
    margin-bottom: 15px;
}
.text-content ul {
    padding-left: 20px;
}
.text-content hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid var(--card-border);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2rem;
    }
    .main-header nav a {
        display: block;
        margin: 10px 0;
    }
}
