/* ==========================================================================
 * HOMEPAGE STYLES - Startseite webdesign-hofer.de
 * Extrahiert aus index.php für bessere Wartbarkeit
 * ========================================================================== */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.smooth-scroll {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
    .smooth-scroll,
    html {
        scroll-behavior: auto;
    }
}
.fade-in {
    animation: fadeIn 0.6s ease-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.glass-dark {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 50%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
}
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 1.2s ease-in-out;
}
.btn-modern:hover::before {
    left: 100%;
}
.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-modern.bg-gradient-to-r,
.cta-button.bg-gradient-to-r {
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: background-position 1.5s ease-in-out, transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
}
.btn-modern.bg-gradient-to-r:hover,
.cta-button.bg-gradient-to-r:hover {
    background-position: 100% 50%;
}
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}
.card-modern {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6, #f43f5e);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}
.card-modern:hover::before {
    opacity: 1;
}
.card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}
.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}
.blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}
.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #8b5cf6, #0ea5e9);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}
.form-step {
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.project-type-option input[type="radio"],
.timeline-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.project-type-option:hover,
.timeline-option:hover {
    background: linear-gradient(135deg, #f0f9ff, #faf5ff);
    transform: translateX(4px);
    transition: all 0.3s ease;
}
.date-cell {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.date-cell:hover {
    background: linear-gradient(135deg, #f0f9ff, #faf5ff);
    transform: scale(1.1);
}
.date-cell.disabled {
    pointer-events: none;
}
.time-slot {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.time-slot:hover {
    background: linear-gradient(135deg, #f0f9ff, #faf5ff);
    transform: scale(1.05);
}
.time-slot.cursor-not-allowed {
    pointer-events: none;
}
.month-calendar {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.card-gradient-border {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 2px;
}
.card-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6, #f43f5e);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}
.card-gradient-border:hover::before {
    opacity: 1;
}
.dark {
    color-scheme: dark;
}
.dark body {
    background-color: #111827;
    color: #f9fafb;
}
.dark .bg-white {
    background-color: #1f2937;
}
.dark .text-gray-900 {
    color: #f9fafb;
}
.dark .text-gray-600 {
    color: #d1d5db;
}
.dark .border-gray-200 {
    border-color: #374151;
}
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}
img.lazy.loaded {
    opacity: 1;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-on-scroll {
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}
.navbar-modern {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0284c7;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}
.skip-link:focus {
    top: 0;
}
*:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
    border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}
.card-modern:hover,
.btn-modern:hover,
.blob {
    will-change: transform;
}
.card-modern {
    contain: layout style paint;
}
.card-modern,
.btn-modern {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@media (pointer: coarse) {
    button, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
}
@media print {
    .navbar-modern,
    .blob,
    #cookie-banner,
    .btn-modern,
    nav,
    footer {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Device Mockup Showcase */
.mockup-showcase {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    height: 540px;
}
.device-frame {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.device-macbook {
    width: 58%;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    z-index: 2;
}
.device-macbook:hover {
    transform: translateX(-50%) translateY(-6px) scale(1.01);
}
.macbook-screen {
    background: #1a1a2e;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.22), 0 8px 20px -6px rgba(0,0,0,0.1);
}
.macbook-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #0f0f1a;
}
.browser-dot { width: 8px; height: 8px; border-radius: 50%; }
.browser-dot--red { background: #ff5f57; }
.browser-dot--yellow { background: #febc2e; }
.browser-dot--green { background: #28c840; }
.browser-url {
    flex: 1;
    margin-left: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    font-family: 'Inter', system-ui, sans-serif;
}
.macbook-viewport {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.macbook-viewport img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    display: block;
}
.macbook-base {
    width: calc(100% + 40px);
    margin-left: -20px;
    height: 14px;
    background: linear-gradient(180deg, #2a2a3e 0%, #1a1a2e 100%);
    border-radius: 0 0 8px 8px;
}
.macbook-base::before {
    content: '';
    display: block;
    width: 80px; height: 4px;
    margin: 0 auto;
    background: rgba(255,255,255,0.06);
    border-radius: 0 0 4px 4px;
}
.device-ipad {
    width: 22%;
    right: 2%;
    top: 60px;
    z-index: 3;
    transform: rotate(2deg);
}
.device-ipad:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.02);
}
.ipad-shell {
    background: #1c1c1e;
    border-radius: 16px;
    padding: 14px 10px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.22), 0 8px 20px -6px rgba(0,0,0,0.1);
}
.ipad-screen {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 3/4;
}
.ipad-screen img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    display: block;
}
.ipad-home {
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin: 8px auto 0;
}
.device-iphone {
    width: 12%;
    left: 5%;
    bottom: 0;
    z-index: 4;
    transform: rotate(-3deg);
}
.device-iphone:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.03);
}
.iphone-shell {
    background: #1c1c1e;
    border-radius: 22px;
    padding: 10px 6px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.22), 0 8px 20px -6px rgba(0,0,0,0.1);
}
.iphone-notch {
    width: 50%; height: 10px;
    background: #1c1c1e;
    border-radius: 0 0 10px 10px;
    margin: 0 auto;
    position: relative;
    top: -2px;
    z-index: 2;
}
.iphone-screen {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 9/19.5;
    margin-top: -8px;
}
.iphone-screen img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    display: block;
}
.iphone-home {
    width: 32px; height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin: 6px auto 0;
}
.device-label {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.device-frame:hover .device-label {
    opacity: 1;
}

@media (max-width: 1023px) {
    .mockup-showcase { height: 440px; }
    .device-macbook { width: 62%; }
    .device-ipad { width: 24%; right: 0; top: 50px; }
    .device-iphone { width: 14%; left: 3%; }
}
@media (max-width: 767px) {
    .mockup-showcase {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-end;
        gap: 20px;
        padding: 0 8px;
    }
    .device-frame {
        position: relative !important;
        transform: none !important;
        left: auto !important; right: auto !important;
        top: auto !important; bottom: auto !important;
    }
    .device-macbook {
        width: 100%;
        order: 1;
    }
    .device-macbook:hover { transform: translateY(-4px) !important; }
    .device-ipad {
        width: 42%;
        order: 2;
    }
    .device-ipad:hover { transform: translateY(-4px) !important; }
    .device-iphone {
        width: 22%;
        order: 3;
    }
    .device-iphone:hover { transform: translateY(-4px) !important; }
    .macbook-base {
        width: calc(100% + 20px);
        margin-left: -10px;
    }
}
