/* base.css - Grundlegende Styles und CSS-Variablen */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Farben */
    --primary-blue: #1e3a5f;
    --secondary-blue: #2c4f7c;
    --light-blue: #e8f0fe;
    --success: #2e7d32;
    --success-light: #e8f5e9;
    --warning: #ff9800;
    --danger: #f44336;
    --gray-light: #f5f5f5;
    --gray: #9e9e9e;
    
    /* Responsive Größen */
    --header-height: 80px;
    --fab-size: 60px;
    --fab-bottom: 30px;
    --card-gap: 20px;
    --container-padding: 30px;
    
    /* Touch-optimierte Größen */
    --min-touch-target: 44px;
}

/* Basis-Typography */
html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

/* Buttons Reset */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* Form Elements Reset */
input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
