/* ==========================================
   RAYLEAKS CSS - Zentrales Stylesheet
   ========================================== */

/* 1. CSS Variablen & Root */
:root {
    --labor-white: #f4f7f6;
    --text-main: #2d3436;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --accent-blue: #0984e3;
    --blueprint-dark: #0a192f;
    --blueprint-light: #00d2ff;
    --partner-orange: #ff9900;
    --error-red: #ff3e3e;
    --header-height: 70px;
}

/* 2. Reset & Globale Styles */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--labor-white);
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

/* 3. Header & Navigation */
header {
    background-color: var(--header-bg);
    height: var(--header-height);
    padding: 0 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .logo {
    flex-shrink: 0;
}

header nav {
    margin-left: auto;
}

header .search-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo { 
    font-weight: 800; 
    font-size: 1.5rem; 
    color: #1e272e; 
    text-decoration: none; 
}

.logo span { color: var(--accent-blue); }

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #636e72;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent-blue);
}

/* 4. Suchformular */
.search-wrapper {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.search-wrapper:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
}

.search-category {
    background-color: #ffffff;
    border: none;
    border-right: 1px solid #dfe6e9;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: #2d3436;
    cursor: pointer;
    outline: none;
    min-width: 140px;
    height: 42px;
}

.search-category:hover {
    background-color: #f1f2f6;
}

.search-category:focus {
    background-color: #f1f2f6;
}

.search-input {
    flex: 1;
    min-width: 180px;
    max-width: 300px;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    outline: none;
    height: 42px;
    background-color: transparent;
}

.search-input::placeholder {
    color: #b2bec3;
}

.search-button {
    background-color: var(--accent-blue);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.1s;
}

.search-button:hover {
    background-color: #0770c2;
}

.search-button:active {
    transform: scale(0.98);
}

@media (max-width: 900px) {
    header .search-category {
        min-width: 120px;
        padding: 0.5rem 0.75rem;
    }
    .search-input {
        min-width: 150px;
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
    }
    header .logo {
        font-size: 1.2rem;
    }
    header .search-container {
        order: 2;
        width: 100%;
        margin: 0.5rem 0 0 0;
    }
    .search-wrapper {
        flex-direction: column;
        gap: 0.5rem;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .search-wrapper:focus-within {
        border: none;
        box-shadow: none;
    }
    .search-category {
        width: 100%;
        min-width: unset;
        border: 1px solid #dfe6e9;
        border-radius: 6px;
        height: 40px;
    }
    .search-category:hover {
        border-color: var(--accent-blue);
    }
    .search-input {
        width: 100%;
        min-width: unset;
        max-width: unset;
        background-color: #f8f9fa;
        border: 1px solid #dfe6e9;
        border-radius: 6px;
        height: 40px;
    }
    .search-wrapper:focus-within .search-input {
        border-color: var(--accent-blue);
        box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
    }
    .search-button {
        width: 100%;
        height: 40px;
        border-radius: 6px;
    }
    header nav {
        order: 1;
        margin-left: auto;
        margin-top: 0;
    }
    nav ul {
        gap: 0.6rem;
        margin: 0;
    }
    nav a {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem 0.4rem;
    }
    header .logo {
        font-size: 1rem;
    }
    nav ul {
        gap: 0.5rem;
    }
    nav a {
        font-size: 0.65rem;
    }
    .search-category {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        height: 38px;
    }
    .search-input {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        height: 38px;
    }
    .search-button {
        padding: 0.4rem 0.6rem;
        height: 38px;
    }
    .search-button svg {
        width: 18px;
        height: 18px;
    }
}

/* 5. Container & Layout */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 0.75rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }
}

/* 6. Produktkarten (Wiederverwendbar) */
.products-grid,
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none !important;
    color: #2d3436 !important;
    display: block;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-decoration: none !important;
    color: #2d3436 !important;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain; 
    padding: 0.5rem;
}

.products-section .product-card img,
.results-grid .product-card img {
    background: #ffffff;
}

.product-card-content {
    padding: 1rem;
}

.product-card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    text-decoration: none !important;
    color: #2d3436 !important;
}

.product-card-content p {
    color: #636e72;
    font-size: 0.9rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
}

.no-products,
.no-results {
    text-align: center;
    padding: 3rem;
    color: #636e72;
}

.no-products {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.no-products p,
.no-results h2 {
    margin-bottom: 1rem;
}

.products-section {
    margin-top: 2rem;
}

.products-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e272e;
    font-size: 1.8rem;
}

/* 7. Full Width Card (Content Pages) */
.full-width-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.full-width-card h1 { 
    font-size: 2rem; 
    margin-top: 0; 
    color: #1e272e; 
    border-bottom: 2px solid var(--labor-white); 
    padding-bottom: 0.5rem; 
}

.full-width-card h2 { 
    font-size: 1.2rem; 
    color: var(--accent-blue); 
    margin-top: 2rem; 
}

.full-width-card h3 { 
    font-size: 1.1rem; 
    color: #1e272e; 
    margin-top: 1.5rem; 
}

/* 8. Produktdetails (produkt.html spezifisch) */
.product-card-detail {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.product-image { 
    flex: 1; 
    min-width: 280px; 
    background: #ffffff; 
    padding: 0.5rem; 
    border-radius: 8px; 
}

.product-image img { 
    width: 100%; 
    border-radius: 8px; 
    display: block; 
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    padding: 0 !important;
}

.product-details { 
    flex: 1.2; 
    min-width: 280px; 
}

/* Produkt Metadaten */
.product-metadata {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.product-details h1 { 
    font-size: 1.8rem; 
    margin-top: 0; 
    margin-bottom: 1rem; 
    color: #1e272e; 
}

.feature-list { 
    list-style: none; 
    padding: 0; 
    margin: 1.5rem 0; 
}

.feature-list li { 
    margin-bottom: 0.8rem; 
    padding-left: 1.5rem; 
    position: relative; 
    font-size: 0.95rem; 
}

.feature-list li::before { 
    content: "✓"; 
    position: absolute; 
    left: 0; 
    color: var(--accent-blue); 
    font-weight: bold; 
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.affiliate-button {
    display: inline-block;
    background-color: var(--partner-orange);
    color: black;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    margin: 0.5rem 0;
    transition: background 0.2s;
    text-align: center;
}

.affiliate-button:hover { 
    background-color: #e68a00; 
}

.quick-jump-link {
    display: block;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}

.quick-jump-link:hover { 
    text-decoration: underline; 
}

.cart-icon {
    display: inline-block;
    filter: grayscale(1) brightness(0);
    margin-right: 8px;
    vertical-align: middle;
}

.partner-disclaimer-small { 
    font-size: 0.75rem; 
    color: #636e72; 
    margin-top: 0.5rem; 
    font-style: italic; 
    max-width: 450px; 
}

.partner-disclaimer {
    font-size: 0.75rem;
    color: #555;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* 9. R.A.Y. Speech Bubbles */
.ray-speech-bubble {
    width: 100%;
    background: rgba(0, 210, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(0, 210, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ray-speech-bubble::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 220px;
    border-width: 0 15px 15px;
    border-style: solid;
    border-color: rgba(0, 210, 255, 0.1) transparent;
    display: block;
    width: 0;
}

.ray-speech-bubble-dark {
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(0, 210, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ray-speech-bubble-dark::after {
    content: '';
    position: absolute;
    top: -15px;
    right: 220px;
    border-width: 0 15px 15px;
    border-style: solid;
    border-color: rgba(10, 25, 47, 0.85) transparent;
    display: block;
    width: 0;
}

.ray-speech-bubble-dark .ray-text {
    color: #ecf0f1;
}

.ray-avatar {
    font-size: 2rem;
    background: var(--blueprint-dark);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--blueprint-light);
}

.ray-text { 
    font-style: italic; 
    font-size: 0.95rem; 
    color: #ecf0f1; 
    flex: 1; 
}

.ray-mission-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--blueprint-light);
    text-decoration: underline;
    font-weight: 600;
    font-style: normal;
}

/* 10. Info Grid & Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    text-align: center;
    transition: transform 0.2s ease;
}

.info-card h3 { 
    text-align: left; 
}

.info-card p { 
    text-align: left; 
}

.related-img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* 11. Full Gradient Section & Terminal */
.full-gradient-section {
    background: linear-gradient(
        to bottom, 
        var(--labor-white) 0%, 
        rgba(10, 25, 47, 0.1) 10%, 
        rgba(10, 25, 47, 0.3) 20%, 
        rgba(10, 25, 47, 0.6) 30%, 
        var(--blueprint-dark) 50%
    );
    position: relative;
    min-height: 150px;
}

.full-gradient-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent 35%, black 65%, transparent 100%);
}

.merging-section {
    position: relative;
    padding-bottom: 50px;
    padding-top: 0;
    margin-top: 0;
}

.terminal-section {
    background: transparent;
    color: #ffffff;
    padding: 4rem 1rem;
    font-family: 'Inter', sans-serif;
}

.terminal-container {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(0, 210, 255, 0.2);
    padding: 2.5rem;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.status-terminal {
    background: #f8f9fa;
    border-left: 4px solid var(--accent-blue);
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.quote-box {
    background: #f8f9fa;
    border-left: 4px solid var(--accent-blue);
    padding: 1rem;
    font-style: italic;
    margin: 1rem 0;
}

/* Forum Post Styles */
.satire-disclaimer {
    border-left: 4px solid var(--blueprint-light);
    padding: 1.5rem;
    margin-bottom: 3rem;
    font-size: 0.95rem;
    line-height: 1.5;
    background: rgba(0, 210, 255, 0.03);
    color: #bdc3c7;
}

.satire-disclaimer h2 {
    color: var(--blueprint-light);
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.3rem;
}

.forum-post {
    margin-bottom: 2rem;
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(0, 210, 255, 0.1);
    padding-top: 25px;
}

.forum-reply {
    margin-left: 40px;
    border-left: 2px solid rgba(0, 210, 255, 0.2);
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 2rem;
}

.blueprint-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    margin: 0 auto 10px auto;
    border: 2px solid rgba(0, 210, 255, 0.3);
}

.avatar-kevin {
    background: rgba(189, 195, 199, 0.1);
    color: #bdc3c7;
    border-color: rgba(189, 195, 199, 0.3);
}

.avatar-ray {
    background: rgba(0, 210, 255, 0.1);
    color: var(--blueprint-light);
    border-color: var(--blueprint-light);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.user-info {
    width: 130px;
    font-size: 0.8rem;
    text-align: center;
    word-wrap: break-word;
}

.user-info strong { 
    color: var(--blueprint-light); 
}

.post-content {
    flex: 1;
    font-size: 0.95rem;
    color: #ecf0f1;
}

.post-header {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Audit Box */
.audit-box {
    border: 1px solid var(--blueprint-light);
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.audit-box h3 { 
    color: var(--blueprint-light); 
    margin-top: 0; 
}

.audit-btn {
    background: transparent;
    border: 1px solid var(--blueprint-light);
    color: var(--blueprint-light);
    padding: 12px 28px;
    cursor: pointer;
    font-family: inherit;
    margin: 10px;
    transition: all 0.3s;
    border-radius: 4px;
    font-weight: 600;
}

.audit-btn:hover { 
    background: var(--blueprint-light); 
    color: var(--blueprint-dark); 
}

.hidden { 
    display: none; 
}

.error-state { 
    border-color: var(--error-red); 
    color: var(--error-red); 
}

.audit-ui-success {
    border-color: #ffd700;
}

.countdown { 
    font-size: 2.5rem; 
    margin: 1rem 0; 
    font-weight: bold; 
    color: var(--error-red); 
}

/* 12. Anomaly Cards */
.anomaly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.anomaly-frame {
    border: 1px solid rgba(0, 210, 255, 0.3);
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #2d3436;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.anomaly-frame:hover {
    border-color: var(--blueprint-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.3);
}

.anomaly-img {
    width: 100%;
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.anomaly-text {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #2d3436;
    text-align: center;
    font-weight: 500;
}

.anomaly-cards-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.anomaly-card-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #2d3436;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    max-width: 180px;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.anomaly-card-small:hover {
    border-color: var(--blueprint-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.25);
}

.anomaly-card-img {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.anomaly-card-text {
    font-size: 0.75rem;
    line-height: 1.3;
    color: #2d3436;
    text-align: center;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    width: 100%;
}

/* 13. Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 1.5rem;
}

.social-invite-box {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 210, 255, 0.2);
    text-align: center;
}

.social-icon-only {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.3s ease;
    padding: 10px;
}

.social-icon-only img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icon-only:hover {
    background: rgba(0, 210, 255, 0.2);
    border-color: var(--blueprint-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}

/* 14. Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--blueprint-dark);
    border: 2px solid var(--blueprint-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--blueprint-light);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--blueprint-light);
    color: var(--blueprint-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

/* 15. Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background-color: var(--card-bg);
    border: 1px solid #dfe6e9;
    border-radius: 4px;
    color: #2d3436;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.pagination-btn-disabled):not(.pagination-btn-active) {
    background-color: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

.pagination-btn-active {
    background-color: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    font-weight: 600;
}

.pagination-btn-disabled {
    background-color: #f1f2f6;
    color: #b2bec3;
    border-color: #dfe6e9;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #636e72;
    font-size: 1rem;
}

.pagination-btn-prev,
.pagination-btn-next {
    padding: 0 1rem;
}

@media (max-width: 600px) {
    .pagination {
        gap: 0.25rem;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    .pagination-btn-prev,
    .pagination-btn-next {
        font-size: 0.75rem;
        padding: 0 0.75rem;
    }
}

/* 16. Footer */
footer {
    background-color: var(--blueprint-dark);
    padding: 4rem 1rem;
    border-top: 1px solid rgba(0, 210, 255, 0.1);
    color: #7f8c8d;
    text-align: center;
}

footer .logo span { 
    color: var(--blueprint-light); 
}

.footer-links {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover { 
    color: var(--blueprint-light); 
}

/* Footer Light Variant */
.footer-light {
    background-color: var(--labor-white);
    padding: 4rem 1rem;
    border-top: 1px solid #e0e0e0;
    color: #636e72;
    text-align: center;
}

.footer-light .logo {
    color: #1e272e;
}

.footer-light .logo span {
    color: var(--accent-blue);
}

.footer-light .footer-links a {
    color: #636e72;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-light .footer-links a:hover {
    color: var(--accent-blue);
}

.footer-light .partner-disclaimer {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* 17. Search Header */
.search-header {
    margin-bottom: 2rem;
}

.search-header h1 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.search-header p {
    color: #636e72;
    margin: 0;
}

/* 18. Utility Classes */
.text-center {
    text-align: center;
}

/* 19. Responsive Adjustments */
@media (max-width: 768px) {
    .product-card-detail { 
        flex-direction: column; 
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .forum-post { 
        flex-direction: column; 
        gap: 10px; 
    }
    
    .user-info { 
        text-align: left; 
        display: flex; 
        align-items: center; 
        gap: 15px; 
        min-width: auto; 
    }
    
    .blueprint-avatar { 
        margin: 0; 
        width: 40px; 
        height: 40px; 
        font-size: 1.2rem; 
    }
    
    .forum-reply { 
        margin-left: 15px; 
        padding-left: 15px; 
    }
}

@media (max-width: 400px) {
    .product-card-detail { 
        padding: 1rem; 
    }
    
    .product-image { 
        min-width: 100%; 
    }
    
    .product-details { 
        min-width: 100%; 
    }
    
    .product-details h1 { 
        font-size: 1.4rem; 
    }
    
    .info-grid { 
        grid-template-columns: 1fr; 
    }
    
    .info-card { 
        padding: 1rem; 
    }
}

/* 20. Impressum Grid */
.impressum-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 600px) {
    .impressum-grid { 
        grid-template-columns: 1fr; 
    }
}

/* 21. Terminal Section overrides */
.terminal-section .ray-speech-bubble {
    background: rgba(0, 210, 255, 0.05);
    border-color: rgba(0, 210, 255, 0.2);
    margin-bottom: 2rem;
    margin-top: 0;
}

.terminal-section .ray-speech-bubble::after {
    border-color: rgba(0, 210, 255, 0.1) transparent;
    top: auto;
    bottom: -15px;
    border-width: 15px 15px 0;
}

.terminal-section .ray-text { 
    color: #ecf0f1; 
}

/* 22. Additional Inline Styles Overrides */
.merging-section-no-padding {
    padding-top: 0;
}

.container-no-margin {
    margin-top: 0;
}

.container-padding-top {
    padding-top: 2rem;
}

.similar-products-heading {
    margin-bottom: 1.5rem;
    color: #1e272e;
}

.system-log {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

.post-user-name {
    font-size: 0.7rem;
    color: #7f8c8d;
}

.audit-ui-success {
    border-color: #ffd700;
}

.audit-success-heading {
    color: #ffd700;
}

.post-response-date {
    color: var(--blueprint-light);
}

.post-response-footer {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* 23. Quiz and Audit Styles */
.quiz-question {
    color: #bdc3c7;
}

.error-step-heading {
    color: var(--error-red);
}

.success-step-heading {
    color: #ffd700;
}

.forum-reply-post {
    border-top: none;
    padding-top: 0;
}
