/*
Theme Name: Impreza Child
Template: Impreza
Version: 1.0
Author: Westarp Science
Theme URI: https://handbuch-der-religionen.de
Author URI: https://westarp.de
Description: Handbuch der Religionen - Eigenes Theme auf Impreza-Basis
*/

/* ===========================================
   CSS VARIABLEN
   =========================================== */

:root {
    /* Farben */
    --hdr-primary: #1e3a5f;
    --hdr-primary-light: #2d5a87;
    --hdr-accent: #c9a227;
    --hdr-accent-light: #dbb84a;
    --hdr-text: #2d3748;
    /* WCAG-AA-konform: #718096 ergab nur 4,02:1 auf Weiß / 3,74:1 auf #f7f7f5.
       #5a6678 erreicht ca. 5,4:1 (Weiß) bzw. 5,0:1 (Hellgrau) für Sekundärtext. */
    --hdr-text-light: #5a6678;
    --hdr-bg: #f7f7f5;
    --hdr-white: #ffffff;
    --hdr-border: #e2e8f0;
    
    /* Schriften */
    --hdr-font-heading: 'Cormorant Garamond', 'Cormorant Garamond Fallback', Georgia, serif;
    --hdr-font-body: 'Source Sans 3', 'Source Sans 3 Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Abstände */
    --hdr-container-width: 1200px;
    --hdr-gap: 2rem;
}

/* ===========================================
   BARRIEREFREIHEIT
   =========================================== */

/* Globaler Focus-Visible-Indikator für Tastaturnavigation */
:focus-visible {
    outline: 2px solid var(--hdr-accent);
    outline-offset: 2px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* Skip-Link: Für Tastaturnutzer sichtbar wenn fokussiert */
.hdr-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--hdr-primary);
    color: var(--hdr-white);
    padding: 0.75rem 1.5rem;
    z-index: 10000;
    text-decoration: none;
    border-radius: 0 0 6px 6px;
    font-weight: 600;
    transition: top 0.2s;
}
.hdr-skip-link:focus {
    top: 0;
}

/* Screen-Reader-Only (WCAG-konform, kein display:none) */
.sr-only,
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===========================================
   RESET & GRUNDLAGEN
   =========================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--hdr-font-body);
    color: var(--hdr-text);
    background: var(--hdr-bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ===========================================
   HEADER
   =========================================== */

.hdr-site-header {
    background: var(--hdr-primary);
    color: var(--hdr-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hdr-header-container {
    max-width: var(--hdr-container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 70px;
}

/* Logo */
.hdr-header-brand {
    flex-shrink: 0;
}

.hdr-logo-link {
    text-decoration: none;
    color: var(--hdr-white);
    display: flex;
    flex-direction: column;
}

.hdr-logo-title {
    font-family: var(--hdr-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.hdr-logo-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* Suche */
.hdr-header-search {
    flex: 1;
    max-width: 400px;
}

.hdr-header-search-form {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    box-shadow: none !important;
}

.hdr-header-search-form:focus-within {
    background: rgba(255,255,255,0.15);
    border-color: var(--hdr-accent);
}

/* Suchfeld - Alle Browser-Defaults überschreiben */
.hdr-header-search-form input[type="search"],
.hdr-header-search-input,
input.hdr-header-search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--hdr-white) !important;
    font-size: 0.9rem;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
}

/* Safari/Chrome Search-Feld X-Button entfernen */
.hdr-header-search-input::-webkit-search-cancel-button,
.hdr-header-search-input::-webkit-search-decoration,
.hdr-header-search-input::-webkit-search-results-button,
.hdr-header-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
    display: none !important;
}

/* Autofill-Styles überschreiben (Chrome zeigt sonst weißen Hintergrund) */
.hdr-header-search-input:-webkit-autofill,
.hdr-header-search-input:-webkit-autofill:hover,
.hdr-header-search-input:-webkit-autofill:focus,
.hdr-header-search-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--hdr-white) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--hdr-primary) inset !important;
    box-shadow: 0 0 0 1000px var(--hdr-primary) inset !important;
    background-color: var(--hdr-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.hdr-header-search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* Focus: Mausklick unsichtbar, Tastatur sichtbar */
.hdr-header-search-input:focus,
.hdr-header-search-form input:focus {
    outline: none;
    box-shadow: none;
    border: none !important;
    background: transparent !important;
}
.hdr-header-search-input:focus-visible,
.hdr-header-search-form input:focus-visible {
    outline: 2px solid var(--hdr-accent);
    outline-offset: -2px;
}

.hdr-header-search-btn,
button.hdr-header-search-btn {
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.15) !important;
    background-color: rgba(255,255,255,0.15) !important;
    border: none !important;
    border-left: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 0 25px 25px 0 !important;
    color: var(--hdr-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    min-width: 44px;
    transition: background 0.2s ease;
}

.hdr-header-search-btn:hover,
button.hdr-header-search-btn:hover {
    background: rgba(255,255,255,0.25) !important;
    background-color: rgba(255,255,255,0.25) !important;
    color: var(--hdr-accent);
}

.hdr-header-search-btn:focus,
button.hdr-header-search-btn:focus {
    outline: none;
    box-shadow: none;
}
.hdr-header-search-btn:focus-visible,
button.hdr-header-search-btn:focus-visible {
    outline: 2px solid var(--hdr-accent);
    outline-offset: -2px;
}

.hdr-header-search-btn svg {
    display: block;
}

/* Navigation */
.hdr-header-nav {
    flex-shrink: 0;
}

.hdr-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hdr-nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--hdr-white);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.hdr-nav-link:hover,
.hdr-nav-link.active {
    background: rgba(255,255,255,0.12);
    /* Weiß statt Gold: Gold auf aufgehelltem Header ergab nur 2,42:1.
       Der aktive Zustand wird stattdessen mit goldenem Unterstrich markiert. */
    color: var(--hdr-white);
    box-shadow: inset 0 -2px 0 var(--hdr-accent);
}

.hdr-nav-icon .hdr-nav-link {
    padding: 0.5rem;
}

.hdr-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--hdr-accent);
    color: var(--hdr-primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
}

.hdr-nav-item {
    position: relative;
}

/* Mobile Menu Toggle */
.hdr-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.hdr-hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--hdr-white);
    position: relative;
}

.hdr-hamburger::before,
.hdr-hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--hdr-white);
    left: 0;
}

.hdr-hamburger::before { top: -7px; }
.hdr-hamburger::after { bottom: -7px; }

/* Mobile Menu */
.hdr-mobile-menu {
    display: none;
    background: var(--hdr-primary-light);
    padding: 1rem;
}

.hdr-mobile-menu.open {
    display: block;
}

.hdr-mobile-search-form {
    display: flex;
    margin-bottom: 1rem;
}

.hdr-mobile-search-input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
}

.hdr-mobile-search-btn {
    padding: 0.75rem 1rem;
    background: var(--hdr-accent);
    color: var(--hdr-primary);
    border: none;
    border-radius: 0 6px 6px 0;
    font-weight: 600;
    cursor: pointer;
}

.hdr-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hdr-mobile-nav-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hdr-mobile-nav-list a {
    display: block;
    padding: 1rem 0;
    color: var(--hdr-white);
    text-decoration: none;
}

/* ===========================================
   CONTENT AREA
   =========================================== */

.hdr-site-content {
    min-height: calc(100vh - 200px);
}

/* ===========================================
   HERO (Frontpage)
   =========================================== */

.hdr-hero-frontpage {
    background: linear-gradient(135deg, var(--hdr-primary) 0%, var(--hdr-primary-light) 100%);
    color: var(--hdr-white);
    padding: 4rem 1.5rem;
    text-align: center;
}

.hdr-hero-title {
    font-family: var(--hdr-font-heading);
    font-size: 3rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.hdr-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hdr-stats {
    font-size: 1rem;
    opacity: 0.8;
}

/* ===========================================
   FRONTPAGE SECTIONS
   =========================================== */

.hdr-frontpage-content {
    max-width: var(--hdr-container-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Intro */
.hdr-intro-card {
    background: var(--hdr-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.hdr-intro-card h2 {
    font-family: var(--hdr-font-heading);
    font-size: 1.75rem;
    color: var(--hdr-primary);
    margin: 0 0 1rem;
}

.hdr-intro-card p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.hdr-intro-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.hdr-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s;
}

.hdr-button:hover {
    text-decoration: none !important;
}

.hdr-button-primary {
    background: var(--hdr-primary);
    color: var(--hdr-white);
}

.hdr-button-primary:hover {
    background: var(--hdr-primary-light);
    color: #ffffff !important;
}

.hdr-button-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--hdr-accent) !important;
    color: var(--hdr-primary) !important;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.hdr-button-large:hover {
    background: var(--hdr-accent-light) !important;
    color: var(--hdr-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.hdr-button-secondary {
    background: var(--hdr-accent);
    color: var(--hdr-primary);
}

.hdr-button-secondary:hover {
    background: var(--hdr-accent-light);
    color: var(--hdr-primary) !important;
}

.hdr-button-accent {
    background: transparent;
    color: var(--hdr-primary) !important;
    border: 2px solid var(--hdr-primary);
}

.hdr-button-accent:hover {
    background: var(--hdr-primary);
    color: var(--hdr-white) !important;
}

/* Features */
.hdr-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hdr-feature-card {
    background: var(--hdr-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hdr-feature-card h3 {
    font-family: var(--hdr-font-heading);
    color: var(--hdr-primary);
    margin: 0 0 0.75rem;
}

.hdr-feature-card p {
    color: var(--hdr-text-light);
    margin: 0;
    line-height: 1.7;
}

/* Latest Articles */
.hdr-latest-section h2,
.hdr-topics-section h2,
.hdr-access-section h2 {
    font-family: var(--hdr-font-heading);
    font-size: 1.5rem;
    color: var(--hdr-primary);
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--hdr-accent);
}

.hdr-latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.hdr-latest-card {
    background: var(--hdr-white);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 3px solid var(--hdr-accent);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.hdr-latest-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.hdr-latest-badge {
    display: inline-block;
    background: var(--hdr-primary);
    color: var(--hdr-white);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0;
}

.hdr-latest-el {
    display: inline-block;
    background: var(--hdr-accent);
    color: var(--hdr-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.hdr-el-badge {
    display: inline-block;
    background: var(--hdr-accent);
    color: var(--hdr-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.hdr-latest-intro {
    text-align: center;
    color: var(--hdr-text-light);
    margin: -1rem 0 1.5rem;
    font-size: 0.95rem;
}

.hdr-latest-card h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.hdr-latest-card h3 a {
    color: var(--hdr-text);
    text-decoration: none;
}

.hdr-latest-card h3 a:hover {
    color: var(--hdr-primary);
}

.hdr-latest-meta {
    font-size: 0.85rem;
    color: var(--hdr-text-light);
    margin: 0;
}

.hdr-latest-year {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--hdr-border);
}

.hdr-latest-more {
    text-align: center;
    margin-top: 1.5rem;
}

.hdr-latest-more a {
    color: var(--hdr-primary);
    font-weight: 600;
    text-decoration: none;
}

.hdr-latest-more a:hover {
    color: var(--hdr-accent);
}

/* Topics */
.hdr-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.hdr-topic-card {
    background: var(--hdr-white);
    padding: 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.hdr-topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hdr-topics-more {
    text-align: center;
    margin-top: 1rem;
}

.hdr-topics-more a {
    color: var(--hdr-primary);
    text-decoration: none;
    font-weight: 600;
}

.hdr-topics-more a:hover {
    text-decoration: underline;
}

/* Sektion Intro-Text */
.hdr-section-intro {
    color: var(--hdr-text-light);
    margin: -0.5rem 0 1.5rem 0;
    font-size: 1rem;
}

/* Zufalls-Artikel Sektion */
.hdr-random-section {
    margin-bottom: 3rem;
}

.hdr-random-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.hdr-random-card {
    background: linear-gradient(135deg, var(--hdr-white) 0%, #f8f9fa 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--hdr-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.hdr-random-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.hdr-random-badge {
    display: inline-block;
    background: var(--hdr-primary);
    color: var(--hdr-white);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hdr-random-card h3 {
    font-family: var(--hdr-font-heading);
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.hdr-random-card h3 a {
    color: var(--hdr-text);
    text-decoration: none;
}

.hdr-random-card h3 a:hover {
    color: var(--hdr-primary);
}

.hdr-random-excerpt {
    color: var(--hdr-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.hdr-topic-card h3 {
    font-family: var(--hdr-font-heading);
    color: var(--hdr-primary);
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.hdr-topic-card p {
    color: var(--hdr-text-light);
    font-size: 0.85rem;
    margin: 0;
}

/* Access Cards */
.hdr-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hdr-access-card {
    background: var(--hdr-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hdr-access-card h3 {
    font-family: var(--hdr-font-heading);
    color: var(--hdr-primary);
    margin: 0 0 0.5rem;
}

.hdr-access-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--hdr-accent);
    margin: 0 0 1rem;
}

.hdr-access-card p {
    color: var(--hdr-text-light);
    margin-bottom: 1rem;
}

.hdr-access-status {
    display: inline-block;
    background: var(--hdr-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--hdr-text-light);
}

.hdr-access-link {
    display: inline-block;
    background: var(--hdr-primary);
    color: var(--hdr-white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.hdr-access-link:hover {
    background: var(--hdr-primary-light);
    color: #ffffff !important;
}

.hdr-access-link-primary {
    background: var(--hdr-accent);
    color: var(--hdr-primary);
}

.hdr-access-link-primary:hover {
    background: var(--hdr-accent-light);
    color: var(--hdr-primary) !important;
}

.hdr-access-card-highlight {
    border: 2px solid var(--hdr-accent);
}

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

.hdr-footer-info p {
    margin: 0.25rem 0;
    opacity: 0.9;
}

.hdr-footer-info a {
    color: var(--hdr-accent);
}

/* ===========================================
   FOOTER
   =========================================== */

.hdr-site-footer {
    background: var(--hdr-primary);
    color: var(--hdr-white);
}

.hdr-footer-main {
    padding: 3rem 0;
}

.hdr-footer-container {
    max-width: var(--hdr-container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.hdr-footer-title {
    font-family: var(--hdr-font-heading);
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--hdr-accent);
}

.hdr-footer-text {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.9;
}

.hdr-footer-publisher {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 1rem;
}

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

.hdr-footer-links li {
    margin-bottom: 0.5rem;
}

.hdr-footer-links a {
    color: var(--hdr-white);
    text-decoration: none;
    opacity: 0.9;
    font-size: 0.9rem;
}

.hdr-footer-links a:hover {
    color: var(--hdr-accent);
    opacity: 1;
}

.hdr-footer-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.hdr-footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 1rem 0;
}

.hdr-footer-bottom .hdr-footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hdr-footer-copyright,
.hdr-footer-edition {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===========================================
   ARTIKEL META (für Einzelansicht)
   =========================================== */

.hdr-artikel-meta {
    background: #f8f9fa;
    border-left: 4px solid var(--hdr-accent);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

.hdr-artikel-meta h3 {
    color: var(--hdr-primary);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
    border-bottom: 1px solid var(--hdr-border);
    padding-bottom: 0.25rem;
}

.hdr-artikel-meta h3:first-of-type {
    margin-top: 0;
}

.hdr-artikel-meta p {
    margin: 0.5rem 0;
    line-height: 1.7;
}

.hdr-badge {
    display: inline-block;
    background: var(--hdr-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.hdr-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.hdr-info-item strong {
    display: block;
    font-size: 0.75rem;
    color: var(--hdr-text-light);
    text-transform: uppercase;
}

.hdr-preview-link {
    display: inline-block;
    background: var(--hdr-primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 1rem;
}

.hdr-preview-link:hover {
    background: var(--hdr-primary-light);
    color: #ffffff !important;
}

.hdr-abstract-en {
    background: var(--hdr-white);
    border: 1px solid var(--hdr-border);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-style: italic;
}

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

@media (max-width: 768px) {
    .hdr-header-container {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }
    
    .hdr-header-search {
        display: none;
    }
    
    .hdr-header-nav {
        display: none;
    }
    
    .hdr-mobile-menu-toggle {
        display: block;
    }
    
    .hdr-hero-title {
        font-size: 2rem;
    }
    
    .hdr-footer-bottom .hdr-footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ===========================================
   ADMIN BAR KORREKTUR
   =========================================== */

.admin-bar .hdr-site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .hdr-site-header {
        top: 46px;
    }
}

/* ===========================================
   ARTIKEL-EINZELSEITE
   =========================================== */

.hdr-artikel-page {
    background: var(--hdr-bg);
    min-height: 100vh;
}

/* Container */
.hdr-container {
    max-width: var(--hdr-container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Breadcrumb */
.hdr-breadcrumb-bar {
    background: var(--hdr-white);
    border-bottom: 1px solid var(--hdr-border);
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.hdr-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.hdr-breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: var(--hdr-text-light);
}
.hdr-breadcrumb-list [aria-current="page"] {
    color: var(--hdr-text-light);
}

.hdr-breadcrumb-bar a {
    color: var(--hdr-primary);
    text-decoration: none;
}

.hdr-breadcrumb-bar a:hover {
    text-decoration: underline;
}

/* Hero-Bereich */
.hdr-artikel-hero {
    background: linear-gradient(135deg, var(--hdr-primary) 0%, var(--hdr-primary-light) 100%);
    color: var(--hdr-white);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hdr-hero-badges {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hdr-gliederung-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--hdr-white);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hdr-lang-badge {
    display: inline-block;
    background: var(--hdr-accent);
    color: var(--hdr-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Abstract-Tabs */
.hdr-abstracts-section {
    background: var(--hdr-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hdr-abstract-tabs {
    display: flex;
    border-bottom: 2px solid var(--hdr-border);
    background: var(--hdr-bg);
}

.hdr-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hdr-text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.hdr-tab:hover {
    color: var(--hdr-primary);
    background: rgba(255,255,255,0.5);
}

.hdr-tab.active {
    color: var(--hdr-primary);
    background: var(--hdr-white);
}

.hdr-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--hdr-accent);
}

.hdr-tab-panels {
    padding: 1.5rem;
}

.hdr-tab-panel {
    display: none;
}

.hdr-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.hdr-abstract-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--hdr-text);
}

.hdr-abstract-text p {
    margin-bottom: 1rem;
}

.hdr-text-en {
    font-style: italic;
}

.hdr-keywords-inline {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hdr-border);
    font-size: 0.9rem;
    color: var(--hdr-text-light);
}

.hdr-keywords-inline strong {
    color: var(--hdr-primary);
    margin-right: 0.5rem;
}

.hdr-title-en-display {
    font-size: 1.25rem;
    color: var(--hdr-primary);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.hdr-subtitle-en-display {
    font-size: 1rem;
    color: var(--hdr-text-light);
    margin: 0 0 1.5rem;
    font-style: italic;
}

.hdr-no-content {
    color: var(--hdr-text-light);
    padding: 1rem;
    background: var(--hdr-bg);
    border-radius: 6px;
    text-align: center;
}

/* Sprachbadges für verschiedene Kontexte */
.hdr-lang-badge-small {
    font-size: 0.8rem;
}

.hdr-lang-inline {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    opacity: 0.7;
}

.hdr-artikel-item:hover .hdr-lang-inline {
    opacity: 1;
}

.hdr-artikel-hero h1 {
    font-family: var(--hdr-font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hdr-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    margin: 0 0 0.5rem 0;
}

.hdr-title-en {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0 0 1rem 0;
}

.hdr-author-line {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hdr-author-line .label {
    opacity: 0.8;
    margin-right: 0.25rem;
}

.hdr-author-line .names {
    font-weight: 600;
}

.hdr-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.hdr-meta-pills .pill {
    background: rgba(255,255,255,0.15);
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Artikel Content Grid */
.hdr-artikel-content {
    padding-bottom: 3rem;
}

.hdr-artikel-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

/* Hauptinhalt */
.hdr-artikel-main {
    background: var(--hdr-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.hdr-content-section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--hdr-border);
}

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

.hdr-content-section h2 {
    font-family: var(--hdr-font-heading);
    font-size: 1.35rem;
    color: var(--hdr-primary);
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.hdr-section-muted {
    background: var(--hdr-bg);
}

.hdr-abstract-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--hdr-text);
}

.hdr-abstract-text p {
    margin: 0 0 1rem 0;
}

.hdr-abstract-text p:last-child {
    margin-bottom: 0;
}

.hdr-text-en {
    font-style: italic;
    color: var(--hdr-text-light);
}

/* Schlagwörter */
.hdr-keywords-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hdr-keyword-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.hdr-keyword-row .lang {
    background: var(--hdr-primary);
    color: var(--hdr-white);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.hdr-keyword-row .words {
    color: var(--hdr-text);
    line-height: 1.6;
}

/* Preview Section */
.hdr-preview-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0e8 100%);
}

.hdr-preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--hdr-white);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--hdr-border);
    margin-top: 1rem;
}

.hdr-preview-icon {
    font-size: 2rem;
}

.hdr-preview-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hdr-preview-details strong {
    font-size: 0.95rem;
    color: var(--hdr-text);
}

.hdr-preview-details span {
    font-size: 0.85rem;
    color: var(--hdr-text-light);
}

.hdr-btn-preview {
    background: var(--hdr-primary);
    color: var(--hdr-white) !important;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.hdr-btn-preview:hover {
    background: var(--hdr-primary-light);
    color: #ffffff !important;
}

/* Sidebar */
.hdr-artikel-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 100px;
}

.hdr-sidebar-card {
    background: var(--hdr-white);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hdr-sidebar-card h3 {
    font-family: var(--hdr-font-heading);
    font-size: 1.1rem;
    color: var(--hdr-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--hdr-accent);
}

/* Kaufen-Box */
.hdr-card-buy {
    background: linear-gradient(135deg, var(--hdr-primary) 0%, var(--hdr-primary-light) 100%);
    color: var(--hdr-white);
    text-align: center;
}

.hdr-card-buy h3 {
    color: var(--hdr-white);
    border-bottom-color: var(--hdr-accent);
}

.hdr-price-display {
    margin-bottom: 1rem;
}

.hdr-price-display .price {
    font-family: var(--hdr-font-heading);
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.hdr-price-display .info {
    font-size: 0.85rem;
    opacity: 0.85;
}

.hdr-btn-buy {
    display: block;
    width: 100%;
    background: var(--hdr-accent);
    color: var(--hdr-primary);
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

a.hdr-btn-buy {
    color: var(--hdr-primary);
}

a.hdr-btn-buy:visited {
    color: var(--hdr-primary);
}

.hdr-btn-buy:hover:not(:disabled) {
    background: var(--hdr-accent-light);
    color: var(--hdr-primary) !important;
    transform: translateY(-1px);
}

.hdr-btn-buy:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hdr-buy-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    opacity: 0.85;
}

.hdr-buy-note a {
    color: var(--hdr-accent);
    text-decoration: underline;
}

/* Datenliste */
.hdr-data-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    margin: 0;
}

.hdr-data-list dt {
    font-size: 0.85rem;
    color: var(--hdr-text-light);
}

.hdr-data-list dd {
    margin: 0;
    font-weight: 500;
    color: var(--hdr-text);
}

.hdr-data-list code {
    background: var(--hdr-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Tag-Liste */
.hdr-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hdr-tag {
    display: inline-block;
    background: var(--hdr-bg);
    color: var(--hdr-primary);
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid var(--hdr-border);
    transition: all 0.2s ease;
}

.hdr-tag:hover {
    background: var(--hdr-primary);
    color: var(--hdr-white);
    border-color: var(--hdr-primary);
}

/* Navigation */
.hdr-artikel-nav-bar {
    background: var(--hdr-white);
    border-top: 1px solid var(--hdr-border);
    padding: 1.25rem 0;
    margin-top: 2rem;
}

.hdr-nav-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.hdr-nav-grid a {
    color: var(--hdr-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hdr-nav-grid a:hover {
    color: var(--hdr-primary-light);
}

.nav-prev a,
.nav-next a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
    justify-content: flex-end;
}

.nav-next a {
    justify-content: flex-end;
}

.nav-center {
    text-align: center;
}

.nav-center a {
    background: var(--hdr-bg);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.nav-center a:hover {
    background: var(--hdr-primary);
    color: var(--hdr-white);
}

.hdr-nav-grid .arrow {
    font-size: 1.25rem;
    font-weight: bold;
}

.hdr-nav-grid .text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===========================================
   ARTIKEL-SEITE RESPONSIVE
   =========================================== */

@media (max-width: 1024px) {
    .hdr-artikel-grid {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 768px) {
    .hdr-artikel-hero h1 {
        font-size: 1.75rem;
    }
    
    .hdr-artikel-grid {
        grid-template-columns: 1fr;
    }
    
    .hdr-artikel-sidebar {
        position: static;
    }
    
    .hdr-content-section {
        padding: 1.25rem 1.25rem;
    }
    
    .hdr-preview-card {
        flex-direction: column;
        text-align: center;
    }
    
    .hdr-nav-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .nav-prev, .nav-next, .nav-center {
        text-align: center;
    }
    
    .nav-prev a, .nav-next a {
        justify-content: center;
    }
}

/* ===========================================
   SUCHSEITE
   =========================================== */

.hdr-search-main {
    background: var(--hdr-bg);
    min-height: 100vh;
}

/* Hero-Bereich für Suchergebnisse */
.hdr-search-hero {
    background: linear-gradient(135deg, var(--hdr-primary) 0%, var(--hdr-primary-light) 100%);
    color: var(--hdr-white);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.hdr-search-hero .hdr-hero-title {
    font-family: var(--hdr-font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.hdr-search-hero .hdr-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.hdr-search-hero .hdr-stats {
    margin-top: 1.5rem;
    font-size: 1rem;
    opacity: 0.85;
}

/* Suchformular im Hero - Breite begrenzen */
.hdr-search-hero .hdr-search-form,
.hdr-hero-frontpage .hdr-search-form {
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.hdr-search-form {
    display: flex;
    background: var(--hdr-white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.hdr-search-form:focus-within {
    border-color: var(--hdr-accent);
    box-shadow: 0 4px 25px rgba(0,0,0,0.2);
}

.hdr-search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    color: var(--hdr-text);
    background: transparent;
    outline: none;
}

.hdr-search-input::placeholder {
    color: var(--hdr-text-light);
}

.hdr-search-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    background: var(--hdr-primary);
    color: var(--hdr-white);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hdr-search-button:hover {
    background: var(--hdr-primary-light);
    color: #ffffff !important;
}

.hdr-search-button svg {
    flex-shrink: 0;
}

/* Responsive: Mobile volle Breite */
@media (max-width: 768px) {
    .hdr-search-hero .hdr-search-form,
    .hdr-hero-frontpage .hdr-search-form {
        max-width: 100%;
        margin: 1.5rem 1rem 0;
    }
    
    .hdr-search-form {
        border-radius: 12px;
    }
    
    .hdr-search-input {
        padding: 0.875rem 1rem;
    }
    
    .hdr-search-button {
        padding: 0.875rem 1.25rem;
    }
}

/* Hero-Bereich Archiv-Seite */
.hdr-archive-main .hdr-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%) !important;
    color: #ffffff !important;
    padding: 3rem 1.5rem;
}

.hdr-archive-main .hdr-hero-content {
    max-width: var(--hdr-container-width);
    margin: 0 auto;
    text-align: center;
}

.hdr-archive-main .hdr-hero-title {
    font-family: var(--hdr-font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #ffffff !important;
}

.hdr-archive-main .hdr-hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin: 0 0 1.5rem 0;
    color: #ffffff !important;
}

.hdr-archive-main .hdr-search-form {
    max-width: 700px;
    margin: 0 auto 1rem;
    display: flex;
    gap: 0;
}

.hdr-archive-main .hdr-search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    background: #ffffff !important;
    color: #2d3748 !important;
}

.hdr-archive-main .hdr-search-input::placeholder {
    color: #718096 !important;
}

.hdr-archive-main .hdr-search-button {
    padding: 1rem 1.5rem;
    background: var(--hdr-accent);
    color: var(--hdr-white);
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hdr-archive-main .hdr-search-button:hover {
    background: var(--hdr-accent-dark, #b8941f);
    color: #ffffff !important;
}

.hdr-archive-main .hdr-stats {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Content-Wrapper mit Sidebar */
.hdr-content-wrapper {
    max-width: var(--hdr-container-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* Sidebar */
.hdr-sidebar {
    background: var(--hdr-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.hdr-filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--hdr-border);
}

.hdr-filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hdr-filter-section h3 {
    font-family: var(--hdr-font-heading);
    font-size: 1rem;
    color: var(--hdr-primary);
    margin: 0 0 0.75rem 0;
}

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

.hdr-filter-list li {
    margin-bottom: 0.35rem;
}

.hdr-filter-list a {
    display: block;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    color: var(--hdr-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.hdr-filter-list a:hover {
    background: var(--hdr-bg);
    color: var(--hdr-primary);
}

.hdr-filter-list a.active,
.hdr-filter-list li.active a {
    background: var(--hdr-primary);
    color: var(--hdr-white);
}

/* Kapitel-Filter Styles */
.hdr-filter-list .kapitel-code {
    display: inline-block;
    font-weight: 600;
    min-width: 45px;
    color: var(--hdr-primary);
}

.hdr-filter-list li.active .kapitel-code {
    color: inherit;
}

.hdr-filter-list .hdr-subchapter {
    padding-left: 1rem;
}

.hdr-filter-list .hdr-subchapter a {
    font-size: 0.85rem;
}

.hdr-filter-list .count {
    float: right;
    opacity: 0.6;
    font-size: 0.8rem;
}

.hdr-clear-filter {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: #f0f0f0;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
}

.hdr-clear-filter:hover {
    background: #e0e0e0;
    color: #333;
}

/* Artikel-Bereich */
.hdr-articles {
    min-width: 0;
}

.hdr-articles-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.hdr-articles-header h2 {
    font-family: var(--hdr-font-heading);
    font-size: 1.35rem;
    color: var(--hdr-primary);
    margin: 0;
}

.hdr-results-count {
    color: var(--hdr-text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Artikel-Grid */
.hdr-articles-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Artikel-Karte */
.hdr-article-card {
    background: var(--hdr-white);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: start;
    transition: all 0.2s ease;
}

.hdr-article-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.hdr-article-badges {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

.hdr-article-badge {
    background: var(--hdr-primary);
    color: var(--hdr-white);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.hdr-article-lang-badge {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.hdr-article-card:hover .hdr-article-lang-badge {
    opacity: 1;
}

.hdr-article-main {
    min-width: 0;
}

.hdr-article-title {
    font-family: var(--hdr-font-heading);
    font-size: 1.1rem;
    margin: 0 0 0.35rem 0;
    line-height: 1.35;
}

.hdr-article-title a {
    color: var(--hdr-text);
    text-decoration: none;
}

.hdr-article-title a:hover {
    color: var(--hdr-primary);
}

.hdr-article-subtitle {
    font-size: 0.95rem;
    color: var(--hdr-text-light);
    margin: 0 0 0.35rem 0;
}

.hdr-article-authors {
    font-size: 0.9rem;
    color: var(--hdr-primary);
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

.hdr-article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--hdr-text-light);
    margin-bottom: 0.5rem;
}

.hdr-article-abstract {
    font-size: 0.9rem;
    color: var(--hdr-text);
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
}

.hdr-article-actions {
    align-self: center;
}

.hdr-article-cta {
    display: inline-block;
    background: var(--hdr-bg);
    color: var(--hdr-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.hdr-article-cta:hover {
    background: var(--hdr-primary);
    color: var(--hdr-white);
}

/* Keine Ergebnisse */
.hdr-no-results {
    background: var(--hdr-white);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
}

.hdr-no-results h2 {
    font-family: var(--hdr-font-heading);
    color: var(--hdr-primary);
    margin: 0 0 1rem 0;
}

.hdr-no-results p {
    color: var(--hdr-text-light);
}

/* Pagination */
.hdr-pagination {
    margin-top: 2rem;
    text-align: center;
}

.hdr-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hdr-pagination a,
.hdr-pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}

.hdr-pagination a {
    background: var(--hdr-white);
    color: var(--hdr-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hdr-pagination a:hover {
    background: var(--hdr-primary);
    color: var(--hdr-white);
}

.hdr-pagination .current {
    background: var(--hdr-primary);
    color: var(--hdr-white);
}

/* Pagination Screen Reader Text: sr-only-Klasse greift global */

/* Pagination dots */
.hdr-pagination .dots {
    background: transparent;
    color: var(--hdr-text);
}

/* Sortier-Liste in Sidebar */
.hdr-sort-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hdr-sort-list li {
    margin-bottom: 0.5rem;
}

.hdr-sort-list a {
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    color: var(--hdr-text);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-size: 0.9rem;
}

.hdr-sort-list a:hover {
    background: var(--hdr-bg);
    color: var(--hdr-primary);
}

.hdr-sort-list li.active a {
    background: var(--hdr-primary);
    color: var(--hdr-white);
    font-weight: 600;
}

/* Suchseite Responsive */
@media (max-width: 900px) {
    .hdr-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hdr-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .hdr-filter-section {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .hdr-archive-main .hdr-hero-title {
        font-size: 1.75rem;
    }
    
    .hdr-archive-main .hdr-hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .hdr-article-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .hdr-article-badges {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .hdr-article-badge {
        width: fit-content;
    }
    
    .hdr-article-actions {
        align-self: start;
    }
}
