/* ==========================================================================
   SLAWINSKI Fotografie - Lokales Stylesheet
   Ersetzt Tailwind CDN + Google Fonts für DSGVO-konforme Produktion
   ========================================================================== */

/* ==========================================================================
   1. FONTS (Lokal gehostet)
   ========================================================================== */

/* Inter - Body Font */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/inter-v20-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* Space Grotesk - Headline Font */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/space-grotesk-v22-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-v22-latin-700.woff2') format('woff2');
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */

*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

body {
    margin: 0;
    line-height: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

b, strong {
    font-weight: bolder;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button {
    cursor: pointer;
    background-color: transparent;
    background-image: none;
}

img, svg {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   3. TAILWIND UTILITIES
   ========================================================================== */

/* Layout */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.top-1\/2 { top: 50%; }
.-top-4 { top: -1rem; }
.right-0 { right: 0; }
.right-3 { right: 0.75rem; }
.right-4 { right: 1rem; }
.bottom-3 { bottom: 0.75rem; }
.bottom-4 { bottom: 1rem; }
.-bottom-4 { bottom: -1rem; }
.left-0 { left: 0; }
.left-3 { left: 0.75rem; }
.left-4 { left: 1rem; }
.left-6 { left: 1.5rem; }
.left-1\/2 { left: 50%; }

.z-50 { z-index: 50; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-grow { flex-grow: 1; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* Grid */
.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)); }

/* Gap */
.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; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-24 { gap: 6rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-y-3 { row-gap: 0.75rem; }
.gap-y-4 { row-gap: 1rem; }

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

/* Sizing */
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-48 { width: 12rem; }
.w-56 { width: 14rem; }
.w-full { width: 100%; }

.h-1 { height: 0.25rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-48 { height: 12rem; }
.h-56 { height: 14rem; }
.h-full { height: 100%; }

.min-w-full { min-width: 100%; }
.min-h-\[48px\] { min-height: 48px; }
.min-h-screen { min-height: 100vh; }

.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-7xl { max-width: 80rem; }

.max-h-\[85vh\] { max-height: 85vh; }

/* Aspect Ratio */
.aspect-\[4\/5\] { aspect-ratio: 4/5; }
.aspect-\[3\/2\] { aspect-ratio: 3/2; }
.aspect-\[3\/4\] { aspect-ratio: 3/4; }
.aspect-square { aspect-ratio: 1/1; }

/* Spacing - Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-2 { margin-left: 0.5rem; }

/* Spacing - Padding */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.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; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.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-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-20 { padding-top: 5rem; }
.pt-32 { padding-top: 8rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-20 { padding-bottom: 5rem; }
.pr-8 { padding-right: 2rem; }

/* Typography */
.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; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.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; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }

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

.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }

.whitespace-nowrap { white-space: nowrap; }

.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* Colors - Text */
.text-black { color: #000000; }
.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-green-600 { color: #16a34a; }

/* Colors - Background */
.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.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-red-600 { background-color: #dc2626; }
.bg-green-100 { background-color: #dcfce7; }
.bg-transparent { background-color: transparent; }

/* Colors - Background with Opacity */
.bg-white\/90 { background-color: rgb(255 255 255 / 0.9); }
.bg-white\/95 { background-color: rgb(255 255 255 / 0.95); }
.bg-black\/50 { background-color: rgb(0 0 0 / 0.5); }
.bg-black\/70 { background-color: rgb(0 0 0 / 0.7); }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-black { border-color: #000000; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Effects */
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }

.opacity-60 { opacity: 0.6; }

.backdrop-blur-sm { backdrop-filter: blur(4px); }

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

/* Object Fit */
.object-cover { object-fit: cover; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Resize */
.resize-none { resize: none; }

/* Transform */
.transform { transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-1\/2.-translate-y-1\/2 { transform: translate(-50%, -50%); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }

/* Transitions */
.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-all { transition-property: all; 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-opacity { transition-property: opacity; 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-300 { transition-duration: 300ms; }
.duration-400 { transition-duration: 400ms; }
.duration-500 { transition-duration: 500ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Antialiased */
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ==========================================================================
   4. HOVER STATES
   ========================================================================== */

.hover\:bg-black:hover { background-color: #000000; }
.hover\:bg-gray-800:hover { background-color: #1f2937; }
.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:text-black:hover { color: #000000; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:border-black:hover { border-color: #000000; }
.hover\:opacity-60:hover { opacity: 0.6; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }

.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* ==========================================================================
   5. FOCUS STATES
   ========================================================================== */

.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #000000; }

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #000000;
}

/* ==========================================================================
   6. RESPONSIVE - SM (640px+)
   ========================================================================== */

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
    .sm\:gap-4 { gap: 1rem; }
    .sm\:p-6 { padding: 1.5rem; }
    .sm\:p-8 { padding: 2rem; }
    .sm\:space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:top-6 { top: 1.5rem; }
    .sm\:right-6 { right: 1.5rem; }
    .sm\:mb-4 { margin-bottom: 1rem; }
    .sm\:mb-10 { margin-bottom: 2.5rem; }
}

/* ==========================================================================
   7. RESPONSIVE - MD (768px+)
   ========================================================================== */

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
    .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\:w-56 { width: 14rem; }
    .md\:h-56 { height: 14rem; }
    .md\:gap-8 { gap: 2rem; }
    .md\:space-y-0 > :not([hidden]) ~ :not([hidden]) { margin-top: 0; }
    .md\:mb-0 { margin-bottom: 0; }
}

/* ==========================================================================
   8. RESPONSIVE - LG (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
    .lg\:flex-row { flex-direction: row; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:items-start { align-items: flex-start; }
    .lg\:items-center { align-items: center; }
    .lg\:items-end { align-items: flex-end; }
    .lg\:justify-between { justify-content: space-between; }
    .lg\:self-center { align-self: center; }
    .lg\:order-1 { order: 1; }
    .lg\:order-2 { order: 2; }
    .lg\:gap-12 { gap: 3rem; }
    .lg\:gap-24 { gap: 6rem; }
    .lg\:p-10 { padding: 2.5rem; }
    .lg\:p-12 { padding: 3rem; }
    .lg\:px-12 { padding-left: 3rem; padding-right: 3rem; }
    .lg\:mb-12 { margin-bottom: 3rem; }
    .lg\:left-12 { left: 3rem; }
    .lg\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .lg\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .lg\:text-5xl { font-size: 3rem; line-height: 1; }
    .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .lg\:text-right { text-align: right; }
    .lg\:aspect-\[3\/4\] { aspect-ratio: 3/4; }
}

/* ==========================================================================
   9. CUSTOM COMPONENTS
   ========================================================================== */

/* Navigation Link */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: black;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Gallery Item */
.gallery-item {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Price Card & Category Card */
.price-card,
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Category Text Animation */
.category-text {
    transition: transform 0.4s ease;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.category-card:hover .category-text {
    transform: translateY(-8px);
}

/* Modal Content */
.modal-content {
    max-height: 90vh;
}

/* Section */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Error Message & Validation */
.error-message {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.field-error {
    border-color: #dc2626 !important;
}

/* Modal Animations - Mobile (Bottom Sheet) */
@media (max-width: 640px) {
    .modal-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }
    
    .modal-content {
        max-height: 90vh;
        border-radius: 1.5rem 1.5rem 0 0;
        animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
}

/* Modal Animations - Desktop */
@media (min-width: 641px) {
    .modal-content {
        max-height: 85vh;
        border-radius: 0;
        animation: fadeInScale 0.2s ease;
    }
    
    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}

/* Space utilities */
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }
.space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 3rem; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
.space-x-12 > :not([hidden]) ~ :not([hidden]) { margin-left: 3rem; }

/* ==========================================================================
   10. RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 640px) {
    .section {
        min-height: auto;
    }
    
    h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .modal-content {
        max-height: 85vh;
    }
}
