/* ==========================================================================
   Bonus Page Specific Styles (from bonus/index.njk)
   ========================================================================== */

/* Hero with background image (specific to Bonus page) */
.hero {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.95), rgba(126, 151, 195, 0.85)), url('/assets/images/buch.jpg') center/cover no-repeat;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Download Grid and Cards (Bonus page specific) */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.download-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 51, 102, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 51, 102, 0.06);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 51, 102, 0.18);
}

.download-card .card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.download-card .card-icon.icon-doc {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.download-card .card-icon.icon-excel {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.download-card .card-icon.icon-pdf {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.download-card .card-icon.icon-quiz {
    background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
}

.download-card .card-icon.icon-glossar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.download-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
}

.download-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.download-card .download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #004080 100%);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.25);
}

.download-card .download-link:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.35);
    transform: translateY(-2px);
}

.download-card .download-link.link-quiz {
    background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
    color: var(--primary);
}

.download-card .download-link.link-quiz:hover {
    background: linear-gradient(135deg, #f59e0b 0%, var(--accent) 100%);
}

/* Category Headers */
.category-header {
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-header:first-of-type {
    margin-top: 0;
}

.category-header h3 {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
}

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

.file-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.file-badge.docx { background: #dbeafe; color: #1d4ed8; }
.file-badge.xlsx { background: #dcfce7; color: #16a34a; }
.file-badge.pdf { background: #fee2e2; color: #dc2626; }
.file-badge.html { background: #fef3c7; color: #d97706; }

/* Password Protection (Bonus page specific) */
#password-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 16, 36, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
    color: white;
}

.password-dialog {
    background: rgba(10, 28, 56, 0.85);
    padding: 2.5rem 2rem;
    border-radius: 18px;
    width: min(420px, 100%);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.password-dialog h2 {
    color: white;
    margin-bottom: 1rem;
}

.password-dialog p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.password-dialog label {
    display: block;
    text-align: left;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.password-dialog input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: none;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.password-dialog button {
    width: 100%;
    padding: 0.9rem;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: var(--black);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.password-dialog button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(255, 215, 0, 0.35);
}

.password-hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.password-error {
    color: #ff7a7a;
    font-size: 0.9rem;
    min-height: 1.2rem;
    margin-bottom: 1rem;
}

body.locked #page-content {
    filter: blur(12px);
    pointer-events: none;
    user-select: none;
}

body.unlocked #page-content {
    filter: none;
    pointer-events: auto;
}

/* Intro section */
.intro {
    text-align: center;
    margin-bottom: 3rem;
}

/* Bonus Page Responsive Adjustments */
@media (max-width: 960px) {
    .download-card h3 {
        min-height: auto;
    }
}

/* ==========================================================================
   Glossar Page Specific Styles (from bonus/glossar.njk)
   ========================================================================== */

.glossar-root-vars {
    --primary: #003366;
    --secondary: #7e97c3;
    --accent: #ffd700;
    --light: #ffffff;
    --dark: #333333;
    --text-gray: #555555;
    --bg-gray: #f8fafc;
    --success: #66cc99;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, #004080 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.3);
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.header p {
    opacity: 0.9;
    font-size: 1rem;
}

.back-link {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.8;
}

/* Search */
.search-container {
    max-width: 600px;
    margin: -1.5rem auto 2rem;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.search-box {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 51, 102, 0.15);
    outline: none;
    transition: box-shadow 0.3s;
}

.search-box:focus {
    box-shadow: 0 10px 50px rgba(0, 51, 102, 0.25);
}

.search-icon {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    font-size: 1.1rem;
}

.search-count {
    text-align: center;
    margin-top: 0.75rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Alphabet Navigation */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.alphabet-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alphabet-nav a:hover, .alphabet-nav a.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.alphabet-nav a.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Letter Section */
.letter-section {
    margin-bottom: 2.5rem;
}

.letter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
}

.letter-header span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
}

.letter-header h2 {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 400;
}

/* Term Cards */
.term-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.term-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.12);
}

.term-card.highlight {
    border-left-color: var(--accent);
    background: linear-gradient(135deg, #fffef0 0%, white 100%);
}

.term-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.term-title .english {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 400;
    font-style: italic;
}

.term-definition {
    color: var(--dark);
    line-height: 1.7;
}

.term-example {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-gray);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.term-example strong {
    color: var(--primary);
}

.term-tags {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.term-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(0, 51, 102, 0.1);
    color: var(--primary);
    font-weight: 500;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
}

.no-results i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .back-link {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .alphabet-nav a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .term-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
