/* ================================================
   KOREANDER - Unified Stylesheet
   Der Bücherblog
   ================================================ */

/* ================================================
   CSS VARIABLES & ROOT STYLES
   ================================================ */
:root {
    /* Colors */
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #777;
    --bg-white: #fff;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    
    /* Fonts */
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ================================================
   RESET & BASE STYLES
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: #c0392b;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
    transition: all var(--transition-normal);
    z-index: 1000;
}

.navbar-brand .logo {
    height: 50px;
    width: auto;
    transition: transform var(--transition-normal);
}

.navbar-brand .logo:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    color: var(--text-color) !important;
    position: relative;
    transition: color var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}

.btn-search {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.btn-search:hover {
    background-color: var(--accent-color);
    color: white;
    transform: rotate(90deg);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    margin-top: 4rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-normal);
}

.footer a:hover {
    color: white;
}

/* ================================================
   COOKIE NOTICE
   ================================================ */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 1.5rem 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

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

.cookie-notice p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-notice .btn {
    padding: 0.5rem 2rem;
    border-radius: 25px;
    font-weight: 600;
}

/* ================================================
   BUTTONS & FORMS
   ================================================ */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

.form-control {
    font-family: var(--font-sans);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all var(--transition-normal);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.15);
    outline: none;
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: all var(--transition-normal);
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-fadeIn {
    animation: fadeIn 1s ease;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease;
}

/* ================================================
   HOME PAGE STYLES - BOOK CARDS (FIXED)
   ================================================ */

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Book Card - Overlay Effect */
.book-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 2/3;
    background: #000;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Book Cover - Full Size */
.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.1);
    filter: brightness(0.3);
}

/* Book Info - СКРЫТО ПО УМОЛЧАНИЮ */
.book-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* При наведении - показываем текст */
.book-card:hover .book-info {
    opacity: 1;
    visibility: visible;
}

.book-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.3;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.book-card:hover .book-title {
    transform: translateY(0);
}

.book-author {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.15s;
}

.book-card:hover .book-author {
    transform: translateY(0);
}

.book-genre {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.2s;
}

.book-card:hover .book-genre {
    transform: translateY(0);
}

/* Book Rating (Optional) */
.book-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #ffd700;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.25s;
}

.book-card:hover .book-rating {
    transform: translateY(0);
}

.book-rating i {
    font-size: 0.85rem;
}

/* Quick Action Buttons (Optional) */
.book-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    z-index: 2;
}

.book-card:hover .book-actions {
    opacity: 1;
    transform: translateX(0);
}

.book-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.book-action-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.15);
}

/* Альтернативный вариант - градиент снизу */
.book-card.gradient-overlay .book-info {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    top: auto;
    bottom: 0;
    padding: 3rem 1.5rem 2rem;
}

/* Альтернативный вариант - размытие фона */
.book-card.blur-overlay .book-info {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ================================================
   RESPONSIVE - Book Cards
   ================================================ */
@media (max-width: 1199px) {
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 991px) {
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 767px) {
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .book-info {
        padding: 1.5rem 1rem;
    }
    
    .book-title {
        font-size: 1rem;
    }
    
    .book-author {
        font-size: 0.85rem;
    }
    
    .book-genre {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
}

@media (max-width: 575px) {
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* На мобильных - показываем текст по клику, а не по ховеру */
@media (hover: none) and (pointer: coarse) {
    .book-card.active .book-info {
        opacity: 1;
        visibility: visible;
    }
    
    .book-card.active .book-cover {
        filter: brightness(0.3);
    }
    
    .book-card.active .book-title,
    .book-card.active .book-author,
    .book-card.active .book-genre,
    .book-card.active .book-rating {
        transform: translateY(0);
    }
}


/* ================================================
   INHALTSVERZEICHNIS (TABLE OF CONTENTS) PAGE
   ================================================ */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease;
}

.page-description {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 1s ease;
}

.alphabet-nav {
    position: sticky;
    top: 76px;
    z-index: 100;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.alphabet-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.alphabet-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.alphabet-link:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.2);
}

.tags-content {
    background: var(--bg-light);
}

.tag-section {
    margin-bottom: 3rem;
}

.section-letter {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.tag-list {
    list-style: none;
    padding: 0;
    columns: 1;
    column-gap: 2rem;
}

.tag-list li {
    padding: 0.5rem 0;
    break-inside: avoid;
}

.tag-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-block;
}

.tag-list a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

.tag-count {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* ================================================
   IMPRESSUM (LEGAL) PAGE
   ================================================ */
.legal-content {
    background-color: var(--bg-white);
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.legal-section h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-section h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.legal-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

.contact-info {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin: 1rem 0;
}

.source-link {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 2rem;
}

.privacy-section {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.section-main-title {
    font-size: 2rem !important;
    color: var(--primary-color) !important;
    margin-bottom: 2rem !important;
    text-align: center;
}

#gaOptout {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
}

#gaOptout:hover {
    background-color: rgba(231, 76, 60, 0.2);
}

.last-updated {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    text-align: center;
}

/* ================================================
   REZENSIONSANFRAGEN (REVIEW REQUESTS) PAGE
   ================================================ */
.content-section {
    background-color: var(--bg-light);
}

.content-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.greeting-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.greeting {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.main-content {
    line-height: 1.8;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.highlight-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-normal);
}

.highlight-link:hover {
    border-bottom-color: var(--accent-color);
}

.important-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid #ffc107;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.notice-icon {
    font-size: 2.5rem;
    color: #f39c12;
    flex-shrink: 0;
}

.notice-content h3 {
    font-size: 1.3rem;
    color: #856404;
    margin-bottom: 0.75rem;
}

.notice-content p {
    margin: 0;
    color: #856404;
    font-size: 1rem;
}

.exception-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 5px solid #28a745;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.exception-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.exception-header i {
    font-size: 1.5rem;
    color: #28a745;
}

.exception-header h3 {
    font-size: 1.3rem;
    color: #155724;
    margin: 0;
}

.exception-box p {
    margin: 0;
    color: #155724;
}

.contact-section {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.contact-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-section h3 i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.email-box {
    background: white;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1rem;
}

.email-box i {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.guidelines-section {
    margin: 2rem 0;
}

.guidelines-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.guidelines-section h3 i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.guidelines-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guidelines-list li {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.guidelines-list li:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.guidelines-list li i {
    font-size: 1.3rem;
    color: #28a745;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.guidelines-list li div {
    flex: 1;
}

.guidelines-list li strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.guidelines-list li span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.genres-section {
    margin: 2rem 0;
}

.genres-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.genres-section h3 i {
    margin-right: 0.5rem;
    color: #e74c3c;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.genre-tag {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    display: inline-block;
}

.genre-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.not-interested-section {
    margin: 2rem 0;
}

.not-interested-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.not-interested-section h3 i {
    margin-right: 0.5rem;
    color: #dc3545;
}

.not-interested-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.not-tag {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
}

.search-widget {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-widget h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.search-box {
    display: flex;
    gap: 0.75rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color var(--transition-normal);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-box .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background-color: var(--accent-color);
    border: none;
    color: white;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.search-box .btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.sidebar {
    position: sticky;
    top: 100px;
}

.badge-image {
    border-radius: 10px;
    transition: transform var(--transition-normal);
}

.badge-image:hover {
    transform: scale(1.05);
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-social {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all var(--transition-normal);
}

.btn-facebook {
    background-color: #3b5998;
    color: white;
}

.btn-facebook:hover {
    background-color: #2d4373;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 89, 152, 0.3);
}

.btn-twitter {
    background-color: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background-color: #0c85d0;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.3);
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 0.75rem;
}

.quick-links a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all var(--transition-normal);
}

.quick-links a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
    padding-left: 1rem;
}

.quick-links a i {
    color: var(--accent-color);
}

/* ================================================
   ÜBER (ABOUT) PAGE
   ================================================ */
.content-block {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lead-paragraph {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.content-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.25rem;
}

.image-block {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.image-block img {
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-normal);
}

.image-block img:hover {
    transform: scale(1.02);
}

.image-caption {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.philosophy-block {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-left: 5px solid var(--accent-color);
}

.mission-statement {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15);
}

.mission-statement p {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin: 0;
    text-align: center;
    line-height: 1.8;
}

.owner-info {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 0;
}

.author-profile {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.author-photo {
    max-width: 100%;
    height: auto;
    border: 5px solid var(--bg-light);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.author-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.author-bio p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.trivia-section {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.trivia-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.trivia-section h2 i {
    margin-right: 0.75rem;
    color: #f39c12;
}

.trivia-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.trivia-list li {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
    transition: all var(--transition-normal);
}

.trivia-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trivia-list li > i {
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.author-quote {
    background: white;
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem 2rem;
    margin: 1.5rem 0 0 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.8;
    position: relative;
}

.author-quote::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: -1rem;
}

.author-quote footer {
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.9rem;
    text-align: right;
}

.sachbuchpreis-badge {
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 2px solid var(--bg-light);
}

.badge-intro {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.contact-form-section {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.required {
    color: #dc3545;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        flex: 1 1 auto;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .sidebar {
        position: static;
        margin-top: 3rem;
    }
    
    .content-block,
    .author-profile,
    .trivia-section,
    .guidelines-section {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .review-header {
        flex-direction: column;
        text-align: center;
    }
    
    .review-cover {
        margin: 0 auto;
    }
    
    .alphabet-links {
        gap: 0.25rem;
    }
    
    .alphabet-link {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .tag-list {
        columns: 1;
    }
    
    .important-notice,
    .exception-box {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .trivia-list li {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-form .btn-primary {
        width: 100%;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .content-block,
    .author-profile,
    .trivia-section,
    .guidelines-section,
    .contact-form-section {
        padding: 1.5rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .genre-tags,
    .not-interested-tags {
        justify-content: center;
    }
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
    .navbar,
    .btn-search,
    .page-header,
    .cookie-notice,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content-block,
    .legal-section,
    .review-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

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

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --text-color: #000;
        --bg-white: #fff;
        --border-color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================
   END OF STYLESHEET
   ================================================ */

   /* ================================================
   BOOK GRID - UPDATED WITH DESCRIPTION
   ================================================ */

.books-section {
    background: #f8f9fa;
    min-height: 100vh;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Book Card with Hover Overlay */
.book-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 2/3;
    background: #000;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Book Cover */
.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.08);
    filter: brightness(0.3);
}

/* Book Info Overlay - СКРЫТО ПО УМОЛЧАНИЮ */
.book-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.book-card:hover .book-info {
    opacity: 1;
    visibility: visible;
}

/* Book Info Elements */
.book-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.3;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.book-card:hover .book-title {
    transform: translateY(0);
}

.book-author {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
    font-style: italic;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.15s;
}

.book-card:hover .book-author {
    transform: translateY(0);
}

.book-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
}

.book-card:hover .book-description {
    transform: translateY(0);
}

.book-genre {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.25s;
    align-self: flex-start;
}

.book-card:hover .book-genre {
    transform: translateY(0);
}

/* More Links */
.more-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #e74c3c;
}

.separator {
    margin: 0 1rem;
    color: #999;
}

/* Footer Info Section */
.footer-info-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.btn-social {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-facebook {
    background-color: #3b5998;
    color: white;
}

.btn-facebook:hover {
    background-color: #2d4373;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 89, 152, 0.3);
}

.btn-twitter {
    background-color: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background-color: #0c85d0;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.3);
}

/* Footer */
.footer {
    font-size: 0.9rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* ================================================
   RESPONSIVE BREAKPOINTS
   ================================================ */

/* Large Desktop */
@media (min-width: 1400px) {
    .book-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .book-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet */
@media (max-width: 991px) {
    .book-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .book-info {
        padding: 1.25rem;
    }
    
    .book-title {
        font-size: 1rem;
    }
    
    .book-description {
        font-size: 0.8rem;
    }
}

/* Mobile Landscape */
@media (max-width: 767px) {
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .book-info {
        padding: 1rem;
    }
    
    .book-title {
        font-size: 0.95rem;
    }
    
    .book-author {
        font-size: 0.8rem;
    }
    
    .book-description {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .book-genre {
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    .books-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Touch Devices - показываем overlay по клику */
@media (hover: none) and (pointer: coarse) {
    .book-card.active .book-info {
        opacity: 1;
        visibility: visible;
    }
    
    .book-card.active .book-cover {
        filter: brightness(0.3);
    }
    
    .book-card.active .book-title,
    .book-card.active .book-author,
    .book-card.active .book-description,
    .book-card.active .book-genre {
        transform: translateY(0);
    }
}

