/*
Theme Name: SparUmzug
Theme URI: https://sparumzug.de
Author: SparUmzug Team
Author URI: https://sparumzug.de
Description: Professional moving and clearance services theme for SparUmzug - Umzug & Entrümpelung. Features a comprehensive cost calculator, multilingual support (DE/EN), and modern responsive design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sparumzug
Tags: custom-logo, custom-menu, featured-images, translation-ready, one-column, two-columns

SparUmzug WordPress Theme
Copyright 2024 SparUmzug

This theme is based on a React website conversion.
Critical Feature: Cost Calculator must work exactly as original.
*/

/* ==========================================================================
   CSS VARIABLES (Design System)
   ========================================================================== */

:root {
    /* Colors - Light Mode */
    --background: hsl(210, 20%, 98%);
    --foreground: hsl(220, 30%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(220, 30%, 15%);
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(220, 30%, 15%);
    --primary: hsl(220, 60%, 25%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(35, 95%, 55%);
    --secondary-foreground: hsl(220, 30%, 15%);
    --muted: hsl(210, 15%, 93%);
    --muted-foreground: hsl(220, 15%, 45%);
    --accent: hsl(35, 95%, 55%);
    --accent-foreground: hsl(220, 30%, 15%);
    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(0, 0%, 100%);
    --border: hsl(220, 15%, 88%);
    --input: hsl(220, 15%, 88%);
    --ring: hsl(220, 60%, 25%);
    --radius: 0.75rem;

    /* Custom tokens */
    --navy-deep: hsl(220, 60%, 18%);
    --navy-light: hsl(220, 40%, 35%);
    --amber-warm: hsl(35, 95%, 55%);
    --amber-light: hsl(40, 100%, 65%);
    --gray-warm: hsl(220, 10%, 96%);
    --success: hsl(145, 60%, 40%);
    --whatsapp: #25D366;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(220, 60%, 18%) 0%, hsl(220, 50%, 28%) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(35, 95%, 55%) 0%, hsl(40, 100%, 60%) 100%);
    --gradient-card: linear-gradient(180deg, hsl(0, 0%, 100%) 0%, hsl(210, 20%, 98%) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 hsla(220, 30%, 15%, 0.05);
    --shadow-md: 0 4px 6px -1px hsla(220, 30%, 15%, 0.08), 0 2px 4px -2px hsla(220, 30%, 15%, 0.05);
    --shadow-lg: 0 10px 15px -3px hsla(220, 30%, 15%, 0.1), 0 4px 6px -4px hsla(220, 30%, 15%, 0.05);
    --shadow-xl: 0 20px 25px -5px hsla(220, 30%, 15%, 0.1), 0 8px 10px -6px hsla(220, 30%, 15%, 0.05);
    --shadow-glow: 0 0 40px hsla(35, 95%, 55%, 0.3);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--amber-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding: 0 2rem;
    }
}

.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 0;
    }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-hero {
    background: var(--gradient-accent);
    color: var(--accent-foreground);
    box-shadow: var(--shadow-md);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--accent-foreground);
}

.btn-hero-outline {
    background: transparent;
    color: var(--primary-foreground);
    border: 2px solid var(--primary-foreground);
}

.btn-hero-outline:hover {
    background: var(--primary-foreground);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: var(--navy-light);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    background: var(--muted);
    border-color: var(--muted-foreground);
}

/* Cards */
.card {
    background: var(--card);
    border-radius: calc(var(--radius) * 1.5);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.card-hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    background: hsla(35, 95%, 55%, 0.2);
    color: var(--accent);
}

/* Forms */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--foreground);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition-normal);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px hsla(35, 95%, 55%, 0.2);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

/* ==========================================================================
   GRADIENTS & BACKGROUNDS
   ========================================================================== */

.gradient-hero {
    background: var(--gradient-hero);
}

.gradient-accent {
    background: var(--gradient-accent);
}

.bg-background {
    background-color: var(--background);
}

.bg-muted {
    background-color: var(--muted);
}

.bg-card {
    background-color: var(--card);
}

.bg-primary {
    background-color: var(--primary);
}

/* ==========================================================================
   TEXT UTILITIES
   ========================================================================== */

.text-foreground {
    color: var(--foreground);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.text-primary-foreground {
    color: var(--primary-foreground);
}

.text-accent {
    color: var(--accent);
}

.text-accent-foreground {
    color: var(--accent-foreground);
}

.font-display {
    font-family: var(--font-display);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

.hover-lift {
    transition: all var(--transition-slow) ease-out;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* ==========================================================================
   WORDPRESS SPECIFIC
   ========================================================================== */

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
}

.alignnone {
    margin-bottom: 1rem;
}

/* WordPress caption */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

/* Gutenberg blocks */
.wp-block-image {
    margin-bottom: 1.5rem;
}

.wp-block-image img {
    border-radius: var(--radius);
}

/* ==========================================================================
   RESPONSIVE GRID
   ========================================================================== */

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .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)); }
}

@media (min-width: 1024px) {
    .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\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.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; }

/* Spacing utilities */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.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; }
.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; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* Border radius */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: calc(var(--radius) * 1.33); }
.rounded-xl { border-radius: calc(var(--radius) * 1.5); }
.rounded-2xl { border-radius: calc(var(--radius) * 2); }
.rounded-3xl { border-radius: calc(var(--radius) * 2.5); }
.rounded-full { border-radius: 9999px; }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text sizes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

/* Width */
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:block { display: block; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:block { display: block; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
}

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-20 { top: 5rem; }
.top-24 { top: 6rem; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.right-6 { right: 1.5rem; }
.bottom-6 { bottom: 1.5rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* Transitions */
.transition-all {
    transition: all var(--transition-normal);
}

.transition-colors {
    transition: color var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
}

.transition-opacity {
    transition: opacity var(--transition-normal);
}

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* Truncate */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Flex shrink */
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }

/* Border */
.border { border: 1px solid var(--border); }
.border-2 { border-width: 2px; }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-border { border-color: var(--border); }
.border-accent { border-color: var(--accent); }
.border-transparent { border-color: transparent; }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-card { box-shadow: var(--shadow-md); }

/* Background opacity variants */
.bg-accent\/10 { background-color: hsla(35, 95%, 55%, 0.1); }
.bg-accent\/20 { background-color: hsla(35, 95%, 55%, 0.2); }
.bg-primary-foreground\/10 { background-color: hsla(0, 0%, 100%, 0.1); }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* List styles */
.list-disc { list-style-type: disc; }
.list-none { list-style-type: none; }

/* Leading */
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Tracking */
.tracking-wider { letter-spacing: 0.05em; }
.tracking-tight { letter-spacing: -0.025em; }

/* Uppercase */
.uppercase { text-transform: uppercase; }

/* Whitespace */
.whitespace-nowrap { white-space: nowrap; }

/* Resize */
.resize-none { resize: none; }

/* Appearance */
.appearance-none { appearance: none; }
