/* Anti-Bot und Scraping-Schutz CSS */

/* Hauptschutz für sensible Daten */
.protected-content, .no-copy, .contact-protected {
    /* Verhindere Textauswahl */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    
    /* Verhindere Touch-Aktionen auf Mobile */
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
    
    /* Verhindere Drag & Drop */
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    
    /* Zusätzlicher Pointer-Schutz */
    pointer-events: auto;
    position: relative;
}

/* Anti-Screenshot Overlay (subtil) */
.protected-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.01) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Honeypot-Fallen für Bots */
.honeypot-data {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fake-Daten für SEO/Bots (versteckt für echte Benutzer) */
.bot-bait {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -10000px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* Print-Schutz */
@media print {
    .protected-content, .no-copy, .contact-protected {
        display: none !important;
        visibility: hidden !important;
    }
    
    .protected-content::after, .no-copy::after, .contact-protected::after {
        content: "[Kontaktdaten verfügbar unter: www.villa-zina.com]" !important;
        display: block !important;
        font-size: 10pt !important;
        color: #666 !important;
        font-family: Arial, sans-serif !important;
    }
    
    /* Honeypot auch im Print verstecken */
    .honeypot-data, .bot-bait {
        display: none !important;
    }
}

/* Screen-Reader Accessibility (erlaubt, aber nicht für Bots) */
.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;
}

/* Bot-Detection: Blur-Effekt für verdächtige Zugriffe */
.bot-detected .protected-content {
    filter: blur(4px) contrast(0.5) !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.bot-detected .protected-content::after {
    content: "🔒 Geschützte Daten" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    color: #666 !important;
    font-weight: bold !important;
    z-index: 10 !important;
    border: 1px solid #ddd !important;
}

/* Anti-DevTools: Layout-Shift bei geöffneten DevTools */
@media (max-height: 500px) and (min-width: 800px) {
    .protected-content {
        filter: blur(1px) !important;
        opacity: 0.8 !important;
    }
}

/* Mobile-spezifischer Schutz */
@media (max-width: 768px) {
    .protected-content {
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
}

/* Cursor-Manipulation für geschützte Bereiche */
.protected-content:hover {
    cursor: default !important;
}

/* Anti-Inspection: Verhindere Element-Highlighting */
.protected-content * {
    outline: none !important;
    border: none !important;
}

/* Zusätzliche Sicherheit: Text-Shadow für OCR-Schutz */
.high-security .protected-content {
    text-shadow: 0 0 1px rgba(0,0,0,0.1);
    letter-spacing: 0.1px;
}
