/* ============================================
   Roman Werkt – Custom Styles
   Farben: Schwarz (#1A1A1A), Weiß, Dunkelgrün (#1A6B1A)
   
   WICHTIG: Kein @apply – funktioniert nicht mit Tailwind CDN!
   Alle Styles sind reines CSS.
   ============================================ */

/* ---- Base Typography (Fallback bis Cookie-Consent) ---- */
body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
}

/* ---- Alpine.js Cloak ---- */
[x-cloak] { display: none !important; }

/* ---- Smooth scrolling offset for fixed header ---- */
html {
    scroll-padding-top: 80px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,0.8);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s ease;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-link-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1A6B1A;
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
}
.nav-link-cta:hover {
    background: #2D8A2D;
    box-shadow: 0 10px 25px rgba(26,107,26,0.3);
    transform: translateY(-2px);
}

.mobile-nav-link {
    display: block;
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.mobile-nav-link-cta {
    display: block;
    text-align: center;
    background: #1A6B1A;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 1rem;
}
.mobile-nav-link-cta:hover {
    background: #2D8A2D;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-link {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: #2D8A2D;
}

/* ============================================
   HERO
   ============================================ */
.hero-gradient {
    background: linear-gradient(135deg, rgba(26,26,26,0.95) 0%, rgba(26,107,26,0.85) 50%, rgba(26,26,26,0.9) 100%);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.5s ease;
    border: 1px solid #f3f4f6;
}
.service-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: translateY(-8px);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1A6B1A, #2D8A2D);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 10;
}
.service-card:hover::before {
    transform: scaleX(1);
}

/* ============================================
   PRICE CARDS
   ============================================ */
.price-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}
.price-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.price-card-featured {
    background: #1A1A1A;
    color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 2px solid #1A6B1A;
    position: relative;
    overflow: hidden;
    transform: scale(1.05);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-btn-accept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1A6B1A;
    color: #fff;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cookie-btn-accept:hover {
    background: #2D8A2D;
    box-shadow: 0 4px 15px rgba(26,107,26,0.3);
}

.cookie-btn-essential {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}
.cookie-btn-essential:hover {
    background: rgba(255,255,255,0.2);
}

.cookie-btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: rgba(255,255,255,0.6);
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-btn-details:hover {
    color: #fff;
}

.cookie-category {
    background: rgba(255,255,255,0.05);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.cookie-toggle-track {
    width: 2.75rem;
    height: 1.5rem;
    background: rgba(255,255,255,0.2);
    border-radius: 9999px;
    position: relative;
    transition: background 0.3s ease;
}
.cookie-toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background: #fff;
    border-radius: 9999px;
    transition: transform 0.3s ease;
}
/* When checked (peer-checked equivalent) */
.cookie-toggle input:checked + .cookie-toggle-track {
    background: #1A6B1A;
}
.cookie-toggle input:checked + .cookie-toggle-track::after {
    transform: translateX(1.25rem);
}
.cookie-toggle input:focus + .cookie-toggle-track {
    box-shadow: 0 0 0 3px rgba(26,107,26,0.3);
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-input {
    width: 100%;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    color: #1A1A1A;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.form-input::placeholder {
    color: #9ca3af;
}
.form-input:focus {
    border-color: #1A6B1A;
    box-shadow: 0 0 0 4px rgba(26,107,26,0.1);
}
select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}
textarea.form-input {
    resize: none;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4A4A4A;
    margin-bottom: 0.5rem;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
    width: 5rem;
    height: 0.25rem;
    background: linear-gradient(90deg, #1A6B1A, #2D8A2D);
    border-radius: 9999px;
    margin: 0 auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-fade-up {
    animation: fadeUp 0.6s ease forwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content h2 {
    font-size: 1.5rem;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-weight: 700;
    color: #1A1A1A;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.legal-content h3 {
    font-size: 1.25rem;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-weight: 600;
    color: #1A1A1A;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.legal-content p {
    color: #4A4A4A;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.legal-content ul {
    list-style-type: disc;
    list-style-position: inside;
    margin-bottom: 1rem;
    color: #4A4A4A;
}
.legal-content ul li {
    margin-bottom: 0.5rem;
}
.legal-content a {
    color: #1A6B1A;
    text-decoration: underline;
    transition: color 0.2s ease;
}
.legal-content a:hover {
    color: #2D8A2D;
}
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.legal-content th,
.legal-content td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.legal-content th {
    background: #F5F5F0;
    font-weight: 600;
}
.legal-content code {
    background: #F5F5F0;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.8em;
}

/* ============================================
   DIAGONAL CUT
   ============================================ */
.diagonal-cut {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
}
@media (max-width: 768px) {
    .diagonal-cut {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
    }
}

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
.noise-overlay {
    position: relative;
}
.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   FLOATING WHATSAPP BUTTON (Mobile)
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    width: 3.5rem;
    height: 3.5rem;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}
.whatsapp-float svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: #fff;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@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;
    }
}

:focus-visible {
    outline: 3px solid #1A6B1A;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* ============================================
   PRINT
   ============================================ */
@media print {
    header, footer, .cookie-banner, [x-data="cookieBanner()"], .whatsapp-float {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}
