/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #d97706;
    --primary-dark: #b45309;
    --secondary: #dc2626;
    --accent: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #525a66;
    --gray-700: #3a4451;
    --gray-800: #202938;
    --gray-900: #0f172a;
    --dark-bg: #111827;
    --dark-card: #1f2937;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-200);
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f172a 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--dark-card);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    border-radius: 0;
}

/* Header styles */
header {
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid var(--gray-600);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.025em;
    margin: 0;
}

.nav-subtitle {
    font-size: 0.875rem;
    color: var(--gray-300);
    font-weight: 500;
    padding-left: 1rem;
    border-left: 2px solid var(--gray-500);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    color: var(--gray-300);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gray-300);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: var(--gray-600);
}

/* Language switcher */
.language-switcher {
    display: flex;
    background: var(--gray-600);
    border-radius: 0.5rem;
    padding: 0.25rem;
    gap: 0.25rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--gray-300);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.75rem;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    background: var(--gray-500);
    color: var(--white);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

/* Main content */
main {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Apps section */
.apps-section {
    margin-bottom: 2rem;
}

.apps-section h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.25rem;
    margin-top: 0.75rem;
}

.app-card {
    background: var(--gray-700);
    border: 1px solid var(--gray-600);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.app-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.app-card:hover .app-logo {
    transform: scale(1.05);
}

.app-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

.app-card p {
    color: var(--gray-300);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.app-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.84rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn.secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.legal-link {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}

.legal-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.legal-link:hover {
    color: var(--primary);
}

.legal-link:hover::after {
    width: 100%;
}

/* Info section */
.info-section {
    margin-bottom: 3rem;
}

.info-section h2 {
    color: #1f2937;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.info-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.info-content p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact and Impressum page specific styles */
.contact-info-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-page .contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--gray-700);
    border-radius: 1rem;
    border: 1px solid var(--gray-600);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.contact-info-page .contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.contact-info-page .contact-item .material-icons {
    color: var(--primary);
    font-size: 24px;
    margin-top: 0.125rem;
    transition: transform 0.3s ease;
}

.contact-info-page .contact-item:hover .material-icons {
    transform: scale(1.1);
}

.contact-info-page .contact-item h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

.contact-info-page .contact-item p {
    color: var(--gray-200);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.6;
}

.contact-info-page .contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-info-page .contact-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.contact-text {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gray-700);
    border-radius: 1rem;
    border: 1px solid var(--gray-600);
    box-shadow: var(--shadow-sm);
}

.contact-text p {
    color: var(--gray-200);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.contact-text h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

.contact-text ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-text li {
    color: var(--gray-200);
    padding: 0.75rem 1rem;
    background: var(--gray-600);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.contact-text li:hover {
    background: var(--gray-500);
    transform: translateX(4px);
}

.impressum-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.impressum-info h3 {
    color: var(--white);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.impressum-info p {
    color: var(--gray-200);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.impressum-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.impressum-info a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Document content styles for contact and impressum */
.document-content {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--gray-700);
    border-radius: 1rem;
    border: 1px solid var(--gray-600);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.content-section:hover {
    box-shadow: var(--shadow-md);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
}

.section-content {
    color: var(--gray-200);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--gray-800);
    padding: 2rem;
    text-align: center;
    color: var(--gray-300);
    border-top: 1px solid var(--gray-600);
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 400;
}

footer p {
    margin-bottom: 0.25rem;
}

/* Responsive design */
@media (max-width: 968px) {
    .main-nav {
        padding: 1rem;
    }
    
    .nav-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .nav-subtitle {
        border-left: none;
        padding-left: 0;
        font-size: 0.75rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        box-shadow: none;
    }
    
    .main-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-brand h1 {
        font-size: 1.25rem;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        padding: 1rem 0;
        margin-top: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    .apps-section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .app-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.875rem;
    }
    
    .lang-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .app-card {
        padding: 1.25rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Print styles */
@media print {
    .language-switcher,
    .contact-form,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        box-shadow: none;
        max-width: none;
    }
    
    header {
        background: none !important;
        color: black !important;
        padding: 1rem 0;
    }
    
    .app-card,
    .contact-item {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
}
