/* 
 * digivise - Lokale CSS Styles
 * DSGVO-konform: Keine externen Verbindungen
 * Tailwind wird lokal über js/tailwind.min.js geladen
 */

/* ===== FONT FACES (Lokal) ===== */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-v21-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-v21-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-v21-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-v21-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/poppins-v21-latin-800.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-v12-latin-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== CUSTOM COMPONENTS ===== */
.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #06B6D4 50%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
}

.gradient-border {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #2563EB, #06B6D4) border-box;
}

/* ===== ANIMATIONS ===== */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

.blob {
    position: absolute;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.5;
    animation: blob-float 8s ease-in-out infinite;
}

.blob-2 {
    animation-delay: -4s;
}

/* ===== PATTERNS ===== */
.pattern-dots {
    background-image: radial-gradient(circle, #e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
}

.pattern-grid {
    background-image: linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ===== CARD HOVER ===== */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    color: white;
}

.cookie-btn-accept:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.cookie-btn-reject {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.cookie-btn-reject:hover {
    background: rgba(255,255,255,0.2);
}

.cookie-btn-settings {
    background: transparent;
    color: #94a3b8;
    text-decoration: underline;
}

.cookie-btn-settings:hover {
    color: white;
}

/* ===== BARRIEREFREIHEIT / ACCESSIBILITY ===== */

/* Skip-Link (für Tastaturnavigation) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2563EB;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #06B6D4;
    outline-offset: 2px;
}

/* Fokus-Indikatoren (gut sichtbar) */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid #2563EB;
    outline-offset: 2px;
}

/* Fokus für dunkle Hintergründe */
.gradient-bg a:focus,
.gradient-bg button:focus,
footer a:focus,
.cookie-banner a:focus,
.cookie-banner button:focus {
    outline-color: #06B6D4;
}

/* Fokus-Visible für moderne Browser (nur bei Tastatur) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #2563EB;
    outline-offset: 2px;
}

/* Reduzierte Bewegung für Nutzer mit Vestibularstörungen */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .blob {
        animation: none;
    }
    
    .card-hover:hover {
        transform: none;
    }
}

/* Hoher Kontrast Modus */
@media (prefers-contrast: high) {
    .gradient-text {
        background: none;
        -webkit-text-fill-color: #1e40af;
        color: #1e40af;
    }
    
    .gradient-bg {
        background: #1e40af;
    }
    
    .text-slate-500,
    .text-slate-400 {
        color: #334155 !important;
    }
}

/* Screenreader-only (visuell versteckt, aber für Screenreader zugänglich) */
.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;
}

/* Mindestgröße für Touch-Targets (44x44px nach WCAG) */
@media (pointer: coarse) {
    button,
    a,
    input[type="checkbox"],
    input[type="radio"] {
        min-height: 44px;
        min-width: 44px;
    }
}
