/* ========================================
   o-mai.de – Visitenkarte
   Minimalistisches Editorial-Design
   System-Schriften, keine externen Dependencies
   
   Typografische Logik:
   - Serif (--font-serif) NUR für identitätsstiftende Display-Überschriften
   - Sans (--font-sans) für alles operative (Body, Sub-Headlines, Links)
   ======================================== */

:root {
    /* Old-Style Serif Stack: editoriale Anmutung, stabil auf allen Plattformen */
    --font-serif: "Iowan Old Style", "Apple Garamond", "Baskerville", 
                  "Times New Roman", "Droid Serif", Times, 
                  "Source Serif Pro", serif;
    
    /* System Sans Stack: nutzt native System-Sans (SF Pro/Segoe UI/Roboto etc.) */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, 
                 sans-serif;
    
    /* Farbpalette */
    --color-bg: #fafaf7;
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-text-subtle: #999;
    --color-border: #ccc;
}

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

html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    
    background: var(--color-bg);
    color: var(--color-text);
    
    font-family: var(--font-sans);
    font-weight: 300;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    position: relative;
}

/* Subtile Hintergrund-Atmosphäre */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.015) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0,0,0,0.015) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.card {
    text-align: center;
    position: relative;
    z-index: 1;
    
    opacity: 0;
    animation: fadeIn 1.2s ease-out 0.2s forwards;
}

/* Identitätsstiftender Display-Header: Serif */
.name {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--color-text);
    margin-bottom: 2rem;
}

/* Kontakt-Zeile: Sans */
.contact {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.mail {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.mail:hover,
.mail:focus {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

.footer {
    position: fixed;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1;
    
    opacity: 0;
    animation: fadeIn 1.2s ease-out 0.6s forwards;
}

.footer-link {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
    color: var(--color-text-muted);
}

.footer-separator {
    color: var(--color-border);
    margin: 0 0.5rem;
    font-size: 0.75rem;
}

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

/* Mobile Optimierung */
@media (max-width: 480px) {
    .name {
        margin-bottom: 1.5rem;
    }
    
    .footer {
        bottom: 1rem;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #1a1a1a;
        --color-text: #fafaf7;
        --color-text-muted: #aaa;
        --color-text-subtle: #666;
        --color-border: #555;
    }
    
    body::before {
        background-image: 
            radial-gradient(circle at 20% 30%, rgba(255,255,255,0.025) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(255,255,255,0.025) 0%, transparent 50%);
    }
}
