/* Custom Styles für das Verlag Theme */

/* Book Cover Optimierungen */
.book-cover-large img {
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Content Prose Styling */
.prose {
    max-width: none !important;
    color: #374151;
}

.prose h1 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 2px solid #e5e7eb !important;
    padding-bottom: 0.75rem !important;
    line-height: 1.25 !important;
}

.prose h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 0.5rem !important;
    line-height: 1.375 !important;
}

.prose h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.5 !important;
}

.prose h4 {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.5 !important;
}

.prose p {
    color: #374151 !important;
    line-height: 1.625 !important;
    margin-bottom: 1rem !important;
    font-size: 1rem !important;
}

.prose strong {
    font-weight: 700 !important;
    color: #111827 !important;
}

.prose em {
    font-style: italic !important;
}

.prose blockquote {
    border-left: 4px solid #3b82f6 !important;
    padding-left: 1rem !important;
    font-style: italic !important;
    color: #6b7280 !important;
    margin: 1rem 0 !important;
}

.prose ul, .prose ol {
    margin-bottom: 1rem !important;
    margin-left: 1.5rem !important;
    padding-left: 0 !important;
}

.prose ul {
    list-style-type: disc !important;
}

.prose ol {
    list-style-type: decimal !important;
}

.prose li {
    margin-bottom: 0.5rem !important;
    line-height: 1.625 !important;
}

.prose a {
    color: #2563eb !important;
    text-decoration: underline !important;
}

.prose a:hover {
    color: #1d4ed8 !important;
}

.prose code {
    background-color: #f3f4f6 !important;
    color: #1f2937 !important;
    padding: 0.125rem 0.25rem !important;
    border-radius: 0.25rem !important;
    font-size: 0.875rem !important;
}

.prose pre {
    background-color: #1f2937 !important;
    color: white !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    overflow-x: auto !important;
    margin: 1rem 0 !important;
}

.prose pre code {
    background-color: transparent !important;
    color: white !important;
    padding: 0 !important;
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Book Card Hover Effects */
.book-card {
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-4px);
}

/* Custom Gradient Backgrounds */
.hero-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
}

/* Purchase Button Styling */
.purchase-links a {
    transition: all 0.2s ease;
}

.purchase-links a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Typography */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .book-details {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .purchase-section,
    .social-sharing,
    header,
    footer {
        display: none !important;
    }
    
    .book-page {
        margin: 0;
        padding: 0;
    }
    
    .content.prose {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Loading Animations */
.book-cover img {
    transition: opacity 0.3s ease;
}

.book-cover img[src=""],
.book-cover img:not([src]) {
    opacity: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus States für Accessibility */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Middle Section Background */
.main-content-background {
    background-image: url('/images/cloud-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

.main-content-background > * {
    position: relative;
    z-index: 2;
}

/* Custom Cookie Consent Styling Overrides */
/* Overrides for vanilla-cookieconsent v3 */

/* Custom color scheme to match site design */
:root {
    --cc-bg: #1f2937;
    --cc-text: #f9fafb;
    --cc-btn-primary-bg: #3b82f6;
    --cc-btn-primary-text: white;
    --cc-btn-primary-hover-bg: #2563eb;
    --cc-btn-secondary-bg: rgba(255, 255, 255, 0.1);
    --cc-btn-secondary-text: white;
    --cc-btn-secondary-hover-bg: rgba(255, 255, 255, 0.2);
    --cc-toggle-bg-off: #d1d5db;
    --cc-toggle-bg-on: #3b82f6;
    --cc-toggle-bg-readonly: #9ca3af;
    --cc-toggle-knob-bg: white;
    --cc-separator: rgba(255, 255, 255, 0.1);
}

/* Ensure cookieconsent appears above all other content */
#cc-main {
    z-index: 1000 !important;
}

/* Custom badge styling for "Always active" */
.pm__badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
    background: #d1fae5;
    border-radius: 0.25rem;
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .content.prose {
        color: #e5e7eb;
    }

    .content.prose h2,
    .content.prose h3 {
        color: #f9fafb;
    }

    .main-content-background::before {
        background-color: rgba(31, 41, 55, 0.85);
    }
}
