/* PinRepair - Vollständiges CSS-System ohne Tailwind */

/* CSS Design-Variablen - Können dynamisch geändert werden */
:root {
    /* Farben - Light Mode */
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-secondary: #6b7280;
    --color-secondary-hover: #4b5563;
    --color-success: #10b981;
    --color-success-hover: #059669;
    --color-danger: #ef4444;
    --color-danger-hover: #dc2626;
    --color-warning: #f59e0b;
    --color-warning-hover: #d97706;
    --color-info: #3b82f6;
    --color-info-hover: #2563eb;
    
    /* Hintergrundfarben */
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-tertiary: #e5e7eb;
    
    /* Textfarben */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    
    /* Border */
    --border-color: #e5e7eb;
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    
    /* Container */
    --container-max-width: 1280px;
}

/* Dark Mode Variablen */
.dark {
    --bg-primary: #1f2937;
    --bg-secondary: #18181b;
    --bg-tertiary: #111827;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --border-color: #374151;
}

/* CSS Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container und Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-around { justify-content: space-around; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Spacing */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-2 { padding-left: 0.5rem; }
.pr-2 { padding-right: 0.5rem; }

.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

/* Width und Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1/2 { width: 50%; }
.w-1/3 { width: 33.333333%; }
.w-2/3 { width: 66.666667%; }
.w-1/4 { width: 25%; }
.w-3/4 { width: 75%; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.static { position: static; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Display */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }

/* Text */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.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-5xl { font-size: 3rem; line-height: 1; }

.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.underline { text-decoration: underline; }
.no-underline { text-decoration: none; }

.whitespace-nowrap { white-space: nowrap; }
.whitespace-normal { white-space: normal; }
.break-words { word-wrap: break-word; }

/* Colors */
.text-gray-50 { color: #f9fafb; }
.text-gray-100 { color: #f3f4f6; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }

.text-red-50 { color: #fef2f2; }
.text-red-100 { color: #fee2e2; }
.text-red-200 { color: #fecaca; }
.text-red-300 { color: #fca5a5; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }
.text-red-900 { color: #7f1d1d; }

.text-green-50 { color: #f0fdf4; }
.text-green-100 { color: #dcfce7; }
.text-green-200 { color: #bbf7d0; }
.text-green-300 { color: #86efac; }
.text-green-400 { color: #4ade80; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.text-green-900 { color: #14532d; }

.text-blue-50 { color: #eff6ff; }
.text-blue-100 { color: #dbeafe; }
.text-blue-200 { color: #bfdbfe; }
.text-blue-300 { color: #93c5fd; }
.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }
.text-blue-900 { color: #1e3a8a; }

.text-indigo-50 { color: #eef2ff; }
.text-indigo-100 { color: #e0e7ff; }
.text-indigo-200 { color: #c7d2fe; }
.text-indigo-300 { color: #a5b4fc; }
.text-indigo-400 { color: #818cf8; }
.text-indigo-500 { color: #6366f1; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-700 { color: #4338ca; }
.text-indigo-800 { color: #3730a3; }
.text-indigo-900 { color: #312e81; }

.text-yellow-50 { color: #fefce8; }
.text-yellow-100 { color: #fef3c7; }
.text-yellow-200 { color: #fde68a; }
.text-yellow-300 { color: #fcd34d; }
.text-yellow-400 { color: #fbbf24; }
.text-yellow-500 { color: #f59e0b; }
.text-yellow-600 { color: #d97706; }
.text-yellow-700 { color: #b45309; }
.text-yellow-800 { color: #92400e; }
.text-yellow-900 { color: #78350f; }

.text-white { color: #ffffff; }
.text-black { color: #000000; }

/* Background Colors */
.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-gray-600 { background-color: #4b5563; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }

.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-200 { background-color: #fecaca; }
.bg-red-300 { background-color: #fca5a5; }
.bg-red-400 { background-color: #f87171; }
.bg-red-500 { background-color: #ef4444; }
.bg-red-600 { background-color: #dc2626; }
.bg-red-700 { background-color: #b91c1c; }
.bg-red-800 { background-color: #991b1b; }
.bg-red-900 { background-color: #7f1d1d; }

.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-200 { background-color: #bbf7d0; }
.bg-green-300 { background-color: #86efac; }
.bg-green-400 { background-color: #4ade80; }
.bg-green-500 { background-color: #22c55e; }
.bg-green-600 { background-color: #16a34a; }
.bg-green-700 { background-color: #15803d; }
.bg-green-800 { background-color: #166534; }
.bg-green-900 { background-color: #14532d; }

.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-200 { background-color: #bfdbfe; }
.bg-blue-300 { background-color: #93c5fd; }
.bg-blue-400 { background-color: #60a5fa; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-blue-800 { background-color: #1e40af; }
.bg-blue-900 { background-color: #1e3a8a; }

.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-indigo-200 { background-color: #c7d2fe; }
.bg-indigo-300 { background-color: #a5b4fc; }
.bg-indigo-400 { background-color: #818cf8; }
.bg-indigo-500 { background-color: #6366f1; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-indigo-700 { background-color: #4338ca; }
.bg-indigo-800 { background-color: #3730a3; }
.bg-indigo-900 { background-color: #312e81; }

.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-100 { background-color: #fef3c7; }
.bg-yellow-200 { background-color: #fde68a; }
.bg-yellow-300 { background-color: #fcd34d; }
.bg-yellow-400 { background-color: #fbbf24; }
.bg-yellow-500 { background-color: #f59e0b; }
.bg-yellow-600 { background-color: #d97706; }
.bg-yellow-700 { background-color: #b45309; }
.bg-yellow-800 { background-color: #92400e; }
.bg-yellow-900 { background-color: #78350f; }

.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }

/* Border */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-r { border-right-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }

.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-400 { border-color: #9ca3af; }
.border-red-400 { border-color: #f87171; }
.border-green-400 { border-color: #4ade80; }
.border-blue-400 { border-color: #60a5fa; }
.border-indigo-500 { border-color: #6366f1; }
.border-transparent { border-color: transparent; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-none { border-radius: 0; }
.rounded-t { border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; }
.rounded-b { border-bottom-left-radius: 0.25rem; border-bottom-right-radius: 0.25rem; }
.rounded-t-md { border-top-left-radius: 0.375rem; border-top-right-radius: 0.375rem; }
.rounded-b-md { border-bottom-left-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }

/* Shadow */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-sm { box-shadow: 0 1px 2px 0 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); }
.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-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-none { box-shadow: none; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-scroll { overflow: scroll; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-default { cursor: default; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Transform */
.transform { transform: translateZ(0); }
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }

/* Transition */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Focus States */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); }
.focus\:ring-indigo-500:focus { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5); }
.focus\:ring-blue-500:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); }
.focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(59, 130, 246, 0.5); }
.focus\:border-indigo-500:focus { border-color: #6366f1; }
.focus\:border-blue-500:focus { border-color: #3b82f6; }

/* Hover States */
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-gray-700:hover { background-color: #374151; }
.hover\:bg-gray-800:hover { background-color: #1f2937; }
.hover\:bg-indigo-50:hover { background-color: #eef2ff; }
.hover\:bg-indigo-100:hover { background-color: #e0e7ff; }
.hover\:bg-indigo-600:hover { background-color: #4f46e5; }
.hover\:bg-indigo-700:hover { background-color: #4338ca; }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:bg-blue-100:hover { background-color: #dbeafe; }
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-red-50:hover { background-color: #fef2f2; }
.hover\:bg-red-100:hover { background-color: #fee2e2; }
.hover\:bg-red-600:hover { background-color: #dc2626; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-red-800:hover { background-color: #991b1b; }
.hover\:bg-green-50:hover { background-color: #f0fdf4; }
.hover\:bg-green-100:hover { background-color: #dcfce7; }
.hover\:bg-yellow-50:hover { background-color: #fefce8; }
.hover\:bg-yellow-100:hover { background-color: #fef3c7; }

.hover\:text-gray-700:hover { color: #374151; }
.hover\:text-gray-800:hover { color: #1f2937; }
.hover\:text-gray-900:hover { color: #111827; }
.hover\:text-indigo-500:hover { color: #6366f1; }
.hover\:text-indigo-600:hover { color: #4f46e5; }
.hover\:text-blue-500:hover { color: #3b82f6; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-red-500:hover { color: #ef4444; }
.hover\:text-red-600:hover { color: #dc2626; }
.hover\:text-red-800:hover { color: #991b1b; }

.hover\:border-gray-300:hover { border-color: #d1d5db; }
.hover\:border-indigo-500:hover { border-color: #6366f1; }

/* Dark Mode Colors */
.dark .text-darktext { color: #e5e7eb; }
.dark .text-darkmuted { color: #6b7280; }
.dark .bg-darkbg { background-color: #18181b; }
.dark .bg-darkcard { background-color: #23232b; }
.dark .bg-darksecondary { background-color: #334155; }
.dark .bg-darkprimary { background-color: #2563eb; }
.dark .border-darkborder { border-color: #27272a; }

.dark .hover\:bg-darkborder:hover { background-color: #27272a; }
.dark .hover\:bg-darkcard:hover { background-color: #23232b; }
.dark .hover\:bg-darksecondary:hover { background-color: #334155; }
.dark .hover\:text-darktext:hover { color: #e5e7eb; }
.dark .hover\:text-indigo-400:hover { color: #818cf8; }
.dark .hover\:text-indigo-300:hover { color: #a5b4fc; }
.dark .hover\:text-red-400:hover { color: #f87171; }
.dark .hover\:text-red-600:hover { color: #dc2626; }
.dark .hover\:text-gray-200:hover { color: #e5e7eb; }
.dark .hover\:text-gray-400:hover { color: #9ca3af; }
.dark .hover\:border-darkborder:hover { border-color: #27272a; }

/* Custom Components */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    color: #ffffff;
    background-color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    background-color: var(--color-primary-hover);
}

.btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    color: var(--color-secondary);
}

.btn-secondary:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.dark .btn-secondary {
    border-color: #27272a;
    color: #e5e7eb;
    background-color: #334155;
}

.dark .btn-secondary:hover {
    background-color: #27272a;
}

.form-input {
    appearance: none;
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: var(--font-size-sm);
    line-height: 1.25rem;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.5);
}

.dark .form-input {
    background-color: #18181b;
    border-color: #27272a;
    color: #e5e7eb;
}

.dark .form-input::placeholder {
    color: #6b7280;
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.dark .form-label {
    color: #e5e7eb;
}

.form-error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
}

.dark .form-error {
    color: #f87171;
}

.card {
    background-color: var(--bg-primary);
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-lg);
}

.dark .card {
    background-color: #23232b;
    color: #e5e7eb;
}

.card-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    background-color: var(--bg-secondary);
}

.dark .card-header {
    background-color: var(--bg-tertiary);
}

.card-body {
    padding: var(--spacing-lg) var(--spacing-xl);
    color: var(--text-primary);
}

.card-footer {
    padding: var(--spacing-md) var(--spacing-xl);
    background-color: var(--bg-secondary);
}

.dark .card-footer {
    background-color: #334155;
}

.alert {
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.dark .alert {
    background-color: #334155;
    color: #e5e7eb;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.dark .alert-success {
    background-color: #14532d;
    color: #bbf7d0;
    border-color: #15803d;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
}

.dark .alert-error {
    background-color: #7f1d1d;
    color: #fecaca;
    border-color: #dc2626;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
    border: 1px solid var(--color-warning);
}

.dark .alert-warning {
    background-color: #78350f;
    color: #fde68a;
    border-color: #d97706;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
    border: 1px solid var(--color-info);
}

.dark .alert-info {
    background-color: #1e3a8a;
    color: #bfdbfe;
    border-color: #3b82f6;
}

/* Navigation */
.nav-link {
    color: #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    background-color: #374151;
    color: #ffffff;
}

.dark .nav-link {
    color: #6b7280;
}

.dark .nav-link:hover {
    background-color: #27272a;
    color: #e5e7eb;
}

.nav-link-active {
    background-color: #111827;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.dark .nav-link-active {
    background-color: #2563eb;
    color: #e5e7eb;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.table-header {
    background-color: #f9fafb;
}

.dark .table-header {
    background-color: #334155;
}

.table-header th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.dark .table-header th {
    color: #6b7280;
    border-bottom-color: #27272a;
}

.table-body {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.dark .table-body {
    background-color: #23232b;
    border-bottom-color: #27272a;
}

.table-row {
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.table-row:hover {
    background-color: #f9fafb;
}

.dark .table-row:hover {
    background-color: #334155;
}

.table-cell {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    color: #6b7280;
}

.dark .table-cell {
    color: #6b7280;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--color-success);
}

.dark .badge-success {
    background-color: #14532d;
    color: #bbf7d0;
}

.badge-error {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--color-danger);
}

.dark .badge-error {
    background-color: #7f1d1d;
    color: #fecaca;
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
}

.dark .badge-warning {
    background-color: #78350f;
    color: #fde68a;
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--color-info);
}

.dark .badge-info {
    background-color: #1e3a8a;
    color: #bfdbfe;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

.-space-y-px > * + * { margin-top: -1px; }

/* Responsive Design */
@media (max-width: 639px) {
    .sm\:hidden { display: none !important; }
    .sm\:block { display: block !important; }
    .sm\:flex { display: flex !important; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
}

@media (min-width: 640px) {
    .sm\:hidden { display: none !important; }
    .sm\:block { display: block !important; }
    .sm\:flex { display: flex !important; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Mobile-Optimierung für Login-Seite */
@media (max-width: 640px) {
  .login-viewport,
  .register-viewport {
    min-height: 0 !important;
    height: 100dvh !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .login-box {
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
  }
  .login-box > form {
    margin-top: 0.5rem !important;
  }
  .login-box h1 {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  .login-box h2 {
    font-size: 1.125rem !important;
    margin-bottom: 0.5rem !important;
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  nav {
    margin-bottom: 0 !important;
  }
  .login-viewport {
    align-items: flex-start !important;
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
  }
  .login-box {
    margin-top: 3.5rem !important;
    margin-bottom: 6rem !important;
  }
  footer.bg-white,
  footer.bg-white > div {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin-top: 0.5rem !important;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .login-box {
    margin-top: 1.5rem !important;
  }
}

@media (max-width: 640px) {
  /* Benutzername in Navbar ausblenden */
  #userDropdown span {
    display: none !important;
  }
  /* Benutzer-Drop-Down in mobiler Ansicht ausblenden */
  #userDropdown,
  #userDropdownMenu {
    display: none !important;
  }
  /* Header-Container bleibt relativ */
  nav .flex.justify-between.h-16 {
    position: relative !important;
  }
  /* Logo links */
  .flex.items-center > .flex-shrink-0 {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10;
  }
  /* Sprachauswahl und Benutzer-Dropdown nebeneinander, rechts */
  nav .flex.items-center:last-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.2rem !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10;
    width: auto !important;
    min-width: unset !important;
  }
  nav .flex.items-center:last-child > .relative {
    display: flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    height: 100% !important;
    margin: 0 !important;
    width: auto !important;
    min-width: unset !important;
    z-index: 20 !important;
  }
  nav .flex.items-center:last-child > .relative:first-child {
    z-index: 30 !important;
  }
  /* Drop-Downs (Sprache und Benutzer) nebeneinander, nicht übereinander */
  nav .flex.items-center:last-child > .relative {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    margin-left: 0.7rem !important;
    margin-right: 0 !important;
    height: 100% !important;
  }
  nav .flex.items-center:last-child > .flex.items-center {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    margin-left: 0.7rem !important;
    margin-right: 0 !important;
    height: 100% !important;
  }
  /* Burger-Menü exakt mittig zwischen Logo und Sprachauswahl */
  #mobileMenuButton {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin-left: 0 !important;
    z-index: 20;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0.3em !important;
  }
  #mobileMenuButton svg {
    width: 1.5em !important;
    height: 1.5em !important;
    color: #222 !important;
    background: none !important;
    box-shadow: none !important;
  }
  /* Abstand zwischen Benutzer- und Sprachauswahl-Dropdown erhöhen */
  nav .flex.items-center:last-child > div,
  nav .flex.items-center:last-child > .relative {
    margin-left: 0.7rem !important;
    margin-right: 0 !important;
    display: inline-flex !important;
    vertical-align: middle !important;
  }
  /* Desktop-Menü in Navbar ausblenden */
  .sm\:flex {
    display: none !important;
  }
  /* Aufklapppfeile in Drop-Down-Menüs ausblenden */
  #userDropdown svg,
  #languageDropdown svg {
    display: none !important;
  }
  /* Mobile Menü sichtbar/unsichtbar: jetzt im Fluss, nicht mehr fixed/overlay */
  #mobileMenu {
    display: none;
    position: static !important;
    top: unset !important;
    left: unset !important;
    height: auto !important;
    width: 100% !important;
    max-width: none !important;
    background: #fff !important;
    z-index: auto !important;
    box-shadow: none !important;
    transform: none !important;
    transition: max-height 0.2s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
  }
  #mobileMenu.open {
    display: block !important;
    max-height: 500px !important;
  }
  a[href$="/machines/create"] {
    min-width: 0 !important;
    padding-left: 1.1em !important;
    padding-right: 1.1em !important;
    font-size: inherit !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }
  a[href$="/machines/create"] i.fa-plus {
    margin-right: 0 !important;
  }
  a[href$="/machines/create"] i.fa-plus ~ * {
    display: none !important;
  }
  a[href$="/machines/create"] i.fa-plus {
    font-size: 1.2em !important;
  }
  a[href$="/machines/create"] {
    color: transparent !important;
  }
  a[href$="/machines/create"] i.fa-plus {
    color: #fff !important;
    filter: none !important;
  }
}

@media (max-width: 640px) {
  .user-new-label { display: none !important; }
}

@media (max-width: 640px) {
  /* Hide desktop language dropdown on mobile */
  #desktopLanguageContainer {
    display: none !important;
  }
  
  /* Show mobile language dropdown on mobile */
  #mobileLanguageContainer {
    display: block !important;
  }
  
  /* Mobile language dropdown positioning */
  #mobileLanguageDropdownMenu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    margin-top: 0.5rem !important;
    z-index: 9999 !important;
  }
}

@media (min-width: 641px) {
  /* Hide mobile language dropdown on desktop */
  #mobileLanguageContainer {
    display: none !important;
  }
  
  /* Show desktop language dropdown on desktop */
  #desktopLanguageContainer {
    display: block !important;
  }
}

/* Zusätzliche Utility-Klassen */
.rounded-none { border-radius: 0; }
.rounded-t { border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; }
.rounded-b { border-bottom-left-radius: 0.25rem; border-bottom-right-radius: 0.25rem; }
.rounded-t-md { border-top-left-radius: 0.375rem; border-top-right-radius: 0.375rem; }
.rounded-b-md { border-bottom-left-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }

/* Main Content */
.main-content {
    flex: 1;
}

/* Footer */
footer {
    margin-top: 3rem;
}

/* Additional responsive utilities */
@media (max-width: 640px) {
    .main-content {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .main-content .max-w-7xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .main-content .mt-6 {
        margin-top: 1rem !important;
    }
    .main-content .mb-4 {
        margin-bottom: 0.75rem !important;
    }
}

/* Zusätzlicher Abstand für Login- und Passwort-vergessen-Seiten */
.login-viewport,
.forgot-password-viewport,
.register-viewport {
    margin-top: 10px !important;
}

/* ============================================
   Inline Styles ausgelagert
   ============================================ */

/* Layout - Flag Icons */
.flag-icon {
    width: 20px;
    height: 14px;
    display: inline;
    vertical-align: middle;
}

.flag-icon-menu {
    width: 20px;
    height: 14px;
    margin-right: 8px;
}

.flag-icon-mobile {
    width: 40px;
    height: 28px;
}

/* Layout - Language Dropdown */
.language-dropdown-column {
    display: flex;
    flex-direction: column;
}

.language-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #374151;
}

.language-dropdown-item.active {
    background-color: #eef2ff;
}

/* Layout - Dynamic Margin */
.main-content-dynamic-margin {
    margin-top: 3.5rem;
}

/* Errors - Mobile List */
.error-mobile-list {
    display: none;
}

@media (max-width: 640px) {
    .error-mobile-list {
        display: block !important;
    }
    .error-mobile-list + div,
    .error-mobile-list ~ div,
    .container > .bg-white.rounded-lg.shadow.overflow-hidden {
        display: none !important;
    }
    /* History-Button bleibt in der mobilen Ansicht sichtbar, nur der Text wird ausgeblendet */
    .history-label {
        display: none !important;
    }
}

/* Errors - Pinball Name Formatting */
.pinball-name-cell,
.pinball-name-mobile {
    white-space: pre-line;
    word-break: break-word;
}

/* Errors - Description Column */
.description-column {
    width: calc(33.333% - 10px);
}

/* Users - Mobile List */
.user-mobile-list {
    display: none;
}

@media (max-width: 640px) {
    .user-mobile-list {
        display: block !important;
    }
    .user-mobile-list + div,
    .user-mobile-list ~ div,
    .container > .bg-white.rounded-lg.shadow.overflow-hidden {
        display: none !important;
    }
}

/* Errors History - Mobile Hide */
@media (max-width: 768px) {
    .errors-history-table,
    .pinball-history-table {
        display: none !important;
    }
}

/* Pinballs - View Toggle */
.view-toggle-btn {
    color: #6b7280;
}

.view-toggle-btn.active {
    background-color: #ffffff;
    color: #374151;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.view-toggle-btn:hover:not(.active) {
    color: #374151;
}

.view-container {
    transition: opacity 0.3s ease-in-out;
}

.view-container.hidden {
    display: none;
}

/* Pinballs - Mobile Flipper Button */
@media (max-width: 640px) {
    .flipper-new-label {
        display: none;
    }
}

/* Pinballs - Mobile View Toggle */
@media (max-width: 768px) {
    .view-toggle-container {
        display: none !important;
    }
}

/* Pinballs - Backglass Image */
.backglass-image-container {
    height: 192px;
}

/* Pinballs - OPDB Suggestions */
.opdb-suggestion-wrapper {
    position: relative;
}

#opdb-suggestions {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    min-width: 0;
    box-sizing: border-box;
    z-index: 1000;
    background: #fff;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 0.375rem;
}

/* Error Report - Image Fallback */
.image-fallback-container {
    height: 192px;
}

.image-fallback-display-none {
    display: none;
}

.image-fallback-display-flex {
    display: flex;
}