/* 
 * alles-wird-gut.de Styles
 * "Ich habe dieses CSS geschrieben. Es ist... funktional." - Marvin
 */

:root {
    --color-primary: #2c3e50;
    --color-secondary: #3498db;
    --color-accent: #e74c3c;
    --color-success: #27ae60;
    --color-warning: #f39c12;
    --color-bg: #f8f9fa;
    --color-text: #2c3e50;
    --color-text-light: #7f8c8d;
    --color-marvin: #5d6d7e;
    
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Courier New', monospace;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-lg);
    padding: 4rem;
    margin-bottom: 3rem;
    color: white;
}

.hero-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: center;
}

.marvin-container {
    display: flex;
    justify-content: center;
}

.marvin-hero {
    width: 100%;
    max-width: 250px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

.marvin-quote {
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid rgba(255,255,255,0.5);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-section,
.clients-section {
    margin-bottom: 3rem;
}

.services-section h2,
.clients-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-intro {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.services-grid,
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card,
.client-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover,
.client-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon,
.client-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.service-card h3,
.client-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p,
.client-card p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--color-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.client-card {
    text-align: center;
}

.client-card a {
    color: var(--color-secondary);
    text-decoration: none;
}

.client-card a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   STATUS PAGE
   ========================================================================== */

.status-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-intro {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.status-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.status-dot.offline {
    background: var(--color-accent);
}

.status-dot.unknown {
    background: var(--color-warning);
}

.service-url {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.status-footer {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
}

.marvin-note {
    font-style: italic;
    color: var(--color-marvin);
    margin-top: 1rem;
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.about-page {
    max-width: 800px;
    margin: 0 auto;
}

.about-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.marvin-about {
    max-width: 200px;
    margin-bottom: 1rem;
}

.about-content blockquote {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-secondary);
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--color-marvin);
}

.about-content h2 {
    margin: 2rem 0 1rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.about-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--color-primary);
    color: white;
    padding: 2rem;
    margin-top: auto;
}

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

.marvin-footer {
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.legal {
    font-size: 0.9rem;
    opacity: 0.7;
}

.legal a {
    color: white;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .marvin-hero {
        max-width: 180px;
    }
    
    .hero {
        padding: 2rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .marvin-quote {
        border-left: none;
        padding-left: 0;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
}