/* Critical CSS for above-the-fold content - Version 1.1 */
:root {
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-300: #86efac;
    --primary-400: #4ade80;
    --primary-500: #22c55e;
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;
    --primary-900: #14532d;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    background-color: #f9fafb;
}

/* Layout utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.relative {
    position: relative;
}

.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-50 {
    z-index: 50;
}

/* Spacing utilities */
.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-1 {
    margin-top: 0.25rem;
}
.mb-4 {
    margin-bottom: 1rem;
}
.mb-8 {
    margin-bottom: 2rem;
}
.mb-12 {
    margin-bottom: 3rem;
}
.mr-4 {
    margin-right: 1rem;
}
.mb-6 {
    margin-bottom: 1.5rem;
}
.ml-3 {
    margin-left: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}
.gap-8 {
    gap: 2rem;
}

/* Typography */
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}
.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}
.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-bold {
    font-weight: 700;
}
.font-semibold {
    font-weight: 600;
}
.font-medium {
    font-weight: 500;
}

.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}

/* Colors - ALLE GRAUSTUFEN DEFINIERT */
.bg-primary-50 {
    background-color: var(--primary-50);
}
.bg-primary-100 {
    background-color: var(--primary-100);
}
.bg-primary-500 {
    background-color: var(--primary-500);
}
.bg-primary-600 {
    background-color: var(--primary-600);
}
.bg-primary-700 {
    background-color: var(--primary-700);
}

.bg-gray-50 {
    background-color: #f9fafb;
}
.bg-gray-100 {
    background-color: #f3f4f6;
}
.bg-gray-200 {
    background-color: #e5e7eb;
}
.bg-gray-300 {
    background-color: #d1d5db;
}
.bg-gray-400 {
    background-color: #9ca3af;
}
.bg-gray-500 {
    background-color: #6b7280;
}

.bg-white {
    background-color: #ffffff;
}
.bg-gray-900 {
    background-color: #111827;
}
.bg-gray-800 {
    background-color: #1f2937;
}
.bg-opacity-50 {
    --tw-bg-opacity: 0.5;
}

.text-white {
    color: white;
}
.text-primary-600 {
    color: var(--primary-600);
}
.text-primary-700 {
    color: var(--primary-700);
}
.text-gray-600 {
    color: #4b5563;
}
.text-gray-400 {
    color: #9ca3af;
}

/* Elements */
.rounded-lg {
    border-radius: 0.5rem;
}
.rounded-full {
    border-radius: 9999px;
}
.rounded-md {
    border-radius: 0.375rem;
}
.rounded {
    border-radius: 0.25rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.w-16 {
    width: 4rem;
}
.h-16 {
    height: 4rem;
}
.w-64 {
    width: 16rem;
}
.h-full {
    height: 100%;
}
.w-full {
    width: 100%;
}
.w-8 {
    width: 2rem;
}
.h-8 {
    height: 2rem;
}
.w-6 {
    width: 1.5rem;
}
.h-6 {
    height: 1.5rem;
}
.h-5 {
    height: 1.25rem;
}
.w-4 {
    width: 1rem;
}
.h-4 {
    height: 1rem;
}

.max-w-3xl {
    max-width: 48rem;
}
.max-w-4xl {
    max-width: 56rem;
}
.max-w-none {
    max-width: none;
}

/* Forms */
.border {
    border-width: 1px;
}
.border-t {
    border-top-width: 1px;
}
.border-gray-300 {
    border-color: #d1d5db;
}
.border-gray-700 {
    border-color: #374151;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.focus\:ring-primary-500:focus {
    --tw-ring-color: var(--primary-500);
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:border-primary-500:focus {
    border-color: var(--primary-500);
}

/* Transitions */
.transition {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}
.hover\:bg-primary-500:hover {
    background-color: var(--primary-500);
}
.hover\:bg-primary-700:hover {
    background-color: var(--primary-700);
}
.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.hover\:text-white:hover {
    color: white;
}
.hover\:text-primary-200:hover {
    color: var(--primary-200);
}
.hover\:underline:hover {
    text-decoration: underline;
}

/* Navigation and Header */
header {
    background-color: var(--primary-600);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Spinner for loading states */
.animate-spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Fade-in animation for images */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Loading placeholder for skeleton screens */
.loading-placeholder {
    display: inline-block;
    width: 100px;
    height: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Responsive utilities */
@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    .md\:hidden {
        display: none;
    }
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    .md\:text-left {
        text-align: left;
    }
    .sm\:flex-row {
        flex-direction: row;
    }
}
