/* Gemeinsame Styles für alle Seiten - moddy-blossom.at */

/* CSS Variablen für zentrale Farbverwaltung */
:root {
    /* Primärfarben */
    --primary-blue: #0056b3;
    --primary-blue-dark: #004494;
    --primary-blue-light: #90caf9;
    --primary-blue-lighter: #bbdefb;

    /* Sekundärfarben */
    --secondary-blue: rgba(16, 74, 112, 0.9);
    --secondary-blue-alt: rgba(12, 77, 135, 0.98);

    /* Hintergründe */
    --bg-dark: #0a0e14;
    --bg-light: rgba(255, 255, 255, 0.95);
    --bg-light-transparent: rgba(255, 255, 255, 0.1);
    --bg-semi-transparent: rgba(245, 245, 245, 0.1);

    /* Text */
    --text-dark: #333;
    --text-light: white;
    --text-muted: rgba(255, 255, 255, 0.9);

    /* Borders & Shadows */
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 4px 20px rgba(0, 0, 0, 0.25);
}

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

/* Body Grundstil */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: none;
    position: relative;
    z-index: 1;
}

/* Vanta.js Hintergrund */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 2;
    background-color: var(--bg-semi-transparent);
    border-radius: 10px;
    backdrop-filter: blur(3px);
    padding: 20px;
    box-shadow: var(--shadow-heavy);
}

/* Header */
header {
    background-color: rgba(16, 74, 112, 0.9);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3px);
}

h1, h2 {
    margin: 0;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Links in dunklen Bereichen */
.download-card a,
.app-info a,
header a:not(.nav-links a):not(.nav-brand a) {
    color: #90caf9;
}

.download-card a:hover,
.app-info a:hover {
    color: #bbdefb;
}

/* Buttons */
.button, .back-button, .download-button, .screenshot-button, .app-button, .doc-button {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin: 5px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.back-button {
    background-color: #555;
    color: white;
}

.back-button:hover {
    background-color: #333;
}

.download-button {
    background-color: #156e32;
    color: white;
}

.download-button:hover {
    background-color: #0e4921;
}

.screenshot-button {
    background-color: #8c6310;
    color: white;
}

.screenshot-button:hover {
    background-color: #634609;
}

.app-button {
    background-color: #0c4d87;
    color: white;
}

.app-button:hover {
    background-color: #083761;
}

.doc-button {
    background-color: #0c4d87;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.doc-button:hover {
    background-color: #083761;
}

.button {
    background-color: #0078d7;
    color: white;
}

.button:hover {
    background-color: #005fa3;
}

.download-button-disabled {
    background-color: #555555;
    color: #aaaaaa;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Button Container */
.button-container, .button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Tags */
.tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* File Meta Info */
.file-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.file-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    margin-top: 50px;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

/* Section Navigation (Button-Leiste) */
.section-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: rgba(3, 7, 18, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
}

/* Body Offset wenn section-nav-bar vorhanden */
body:has(.section-nav-bar) {
    padding-top: 52px !important;
}

@media (max-width: 768px) {
    body:has(.section-nav-bar) {
        padding-top: 48px !important;
    }
}

.section-nav-bar .nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-nav-bar .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.section-nav-bar .nav-links a {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.section-nav-bar .nav-links a:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.section-nav-bar .nav-links a.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

@media (max-width: 768px) {
    .section-nav-bar .nav-links {
        gap: 6px;
    }

    .section-nav-bar .nav-links a {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* Main Navigation Menu */
.main-nav-menu {
    background: linear-gradient(135deg, rgba(16, 74, 112, 0.98), rgba(12, 77, 135, 0.98));
    padding: 0;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: block;
}

.nav-brand a:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-toggle.active {
    transform: rotate(90deg);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 5px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(16, 74, 112, 0.98);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    margin-top: 5px;
    padding: 10px 0;
    list-style: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.dropdown.active > .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Sub-Sub-Menu (verschachtelte Dropdowns) */
.dropdown.submenu {
    position: relative;
}

.dropdown.submenu > .dropdown-toggle {
    cursor: pointer;
}

.dropdown.submenu > .dropdown-toggle::after {
    content: " ▸";
    float: right;
}

.dropdown.submenu .submenu-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 5px;
    display: none;
}

/* Desktop: Hover und Click */
@media (min-width: 769px) {
    .dropdown.submenu:hover > .submenu-menu,
    .dropdown.submenu.active > .submenu-menu {
        display: block;
        animation: fadeIn 0.2s ease;
    }
}

/* Mobile: Nur Click */
@media (max-width: 768px) {
    .dropdown.submenu.active > .submenu-menu {
        display: block;
        animation: fadeIn 0.2s ease;
    }
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 5px 0;
}

.dropdown-menu li.submenu-title {
    padding: 8px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: default;
}

.dropdown-menu a {
    padding: 12px 20px;
    border-radius: 0;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(16, 74, 112, 0.98);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        border-top: 2px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        padding: 15px 20px;
        border-radius: 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(12, 77, 135, 0.98);
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
        border-radius: 0;
    }

    .dropdown-menu a {
        padding-left: 40px;
    }

    /* Sub-Sub-Menu für Mobile */
    .dropdown.submenu > .dropdown-toggle::after {
        content: " ▾";
        float: right;
    }

    .dropdown.submenu .submenu-menu {
        position: static;
        margin-left: 0;
        margin-top: 5px;
        background: rgba(8, 55, 97, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown.submenu .submenu-menu a {
        padding-left: 40px;
        font-size: 0.9rem;
    }
}

/* Grid Layouts */
.app-list, .download-container, .app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Cards */
.app-card, .download-card {
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(3px);
}

.app-card {
    border: 1px solid #ddd;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.download-card {
    background-color: rgba(16, 74, 112, 0.8);
    color: white;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.app-card h2, .app-card h3 {
    margin-top: 0;
    color: #0056b3;
}

.app-card p {
    color: #333;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    aspect-ratio: 16 / 9;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Utility Classes */
.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    .download-container, .app-list, .app-grid, .gallery {
        grid-template-columns: 1fr;
    }

    .button-container, .button-group {
        flex-direction: column;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }
}
