/*
Theme Name: Stratona
Theme URI: https://stratonologie.com
Author: Stratonologie®
Description: Minimalistisches, elegantes Theme für STRATONOLOGIE® - Die Wissenschaft der Strategischen Persona
Version: 1.1.2
Text Domain: stratona
*/

/* ==========================================================================
   Variables & Reset
   ========================================================================== */

:root {
    --stratona-primary: #0a0a0a;
    --stratona-secondary: #1a1a1a;
    --stratona-accent: #d4af37;
    --stratona-text: #e8e8e8;
    --stratona-text-muted: #a0a0a0;
    --stratona-border: #2a2a2a;
    --stratona-hover: #252525;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    
    --base-font-size: 18px;
    --max-width: 1600px; /* Increased max-width for the new layout */
    --content-width: 900px;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--stratona-text);
    background-color: var(--stratona-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--stratona-accent);
}

h1 { 
    font-size: 2.2rem; 
    margin-bottom: var(--spacing-md);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--stratona-text);
}

strong, b {
    font-weight: 600;
    color: var(--stratona-text);
}

em, i {
    font-style: italic;
}

blockquote {
    border-left: 4px solid var(--stratona-accent);
    padding-left: var(--spacing-md);
    margin: var(--spacing-md) 0;
    font-style: italic;
    color: var(--stratona-text-muted);
}

code {
    background: var(--stratona-secondary);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background: var(--stratona-secondary);
    padding: var(--spacing-md);
    border-radius: 8px;
    overflow-x: auto;
    margin: var(--spacing-md) 0;
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.site-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.site-title a {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.site-description {
    font-size: 0.9rem;
    color: var(--stratona-text-muted);
    margin: 0;
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.main-navigation a {
    color: var(--stratona-text-muted);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition);
    display: block;
    font-size: 0.95rem;
    position: relative;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--stratona-accent);
    transition: transform 0.3s ease;
}

.main-navigation a:hover {
    color: var(--stratona-accent);
    background: rgba(212, 175, 55, 0.05);
}

.main-navigation a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: var(--stratona-accent);
    background: rgba(212, 175, 55, 0.1);
}

.main-navigation .current-menu-item a::before,
.main-navigation .current_page_item a::before {
    transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--stratona-accent);
    color: var(--stratona-accent);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--stratona-accent);
    color: var(--stratona-primary);
}


/* ==========================================================================
   Content Area Layout
   ========================================================================== */
   
/* Default (single column) content area */
.site-content {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    flex: 1;
}

/* Dictionary Single (two columns) - 75/25 layout for better readability */
.site-content.dictionary-single-content {
    display: grid !important;
    grid-template-columns: 1fr minmax(280px, 340px) !important; /* Much more space for content, narrower sidebar */
    gap: 2.5rem !important;
    max-width: min(1920px, 94vw) !important; /* Use 94% of viewport width */
    margin: 0 auto !important;
    padding: 2.5rem 1.5rem !important; /* Less padding to maximize content area */
}

.dictionary-single-content .content-area {
    min-width: 0;
}

/* NEU: Flexbox-Ausrichtung für die Sidebar-Spalte */
.dictionary-single-content .content-sidebar {
    display: flex;
    justify-content: flex-start; /* Richtet den Inhalt linksbündig aus */
}

.dictionary-single-content .entry-content {
    max-width: 100%; 
    overflow-wrap: break-word;
}

.dictionary-single-content .sidebar-inner {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 1rem;
    
    max-width: 400px; /* Behält die maximale Breite bei */
    width: 100%; /* Stellt sicher, dass es den Container ausfüllt (bis max-width) */
}

/* Dictionary Archive (single column, wider) */
.post-type-archive-stratono_term .site-content {
    max-width: min(1800px, 94vw);
    padding: 2.5rem 1.5rem;
}

/* Dictionary Single Page - Fix huge headlines */
.single-stratono_term .entry-title {
    font-size: 2rem !important;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}


/* ==========================================================================
   Dictionary & Archive General Styles
   ========================================================================== */

.page-header,
.single-stratono_term .entry-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 4rem 2rem;
    background: 
        radial-gradient(ellipse at top, rgba(212, 175, 55, 0.1), transparent),
        radial-gradient(ellipse at bottom, rgba(212, 175, 55, 0.05), transparent);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.page-header::before,
.single-stratono_term .entry-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--stratona-accent), transparent);
}

.page-title,
.entry-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    line-height: 1.1;
}

.archive-description,
.term-meta {
    font-size: 1.2rem;
    color: var(--stratona-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.term-meta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.term-category, .term-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--stratona-secondary);
    border: 1px solid var(--stratona-accent);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--stratona-accent);
    transition: var(--transition);
}

.term-category:hover, .term-tag:hover {
    background: var(--stratona-accent);
    color: var(--stratona-primary);
    transform: translateY(-2px);
}

/* Entry Content specific styles */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--stratona-text);
}

.entry-content p,
.entry-content li,
.entry-content td {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.entry-content h1,
.entry-content .wp-block-heading:is(h1) {
    font-size: 1.8rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: var(--stratona-text) !important;
    scroll-margin-top: 140px;
}

.entry-content h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    scroll-margin-top: 140px;
}

.entry-content h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--stratona-accent), transparent);
}

.entry-content h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    scroll-margin-top: 140px;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin: 0.8rem 0;
    line-height: 1.8;
}

.entry-content ul li::marker {
    color: var(--stratona-accent);
    font-size: 1.2em;
}

.entry-content ol li::marker {
    color: var(--stratona-accent);
    font-weight: 600;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-md) 0;
    background: var(--stratona-secondary);
    border-radius: 8px;
    overflow: hidden;
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.entry-content table th,
.entry-content table td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--stratona-border);
}

.entry-content table th {
    background: var(--stratona-primary);
    color: var(--stratona-accent);
    font-weight: 600;
}

.entry-content table tr:last-child td {
    border-bottom: none;
}

.entry-content table tr:hover {
    background: var(--stratona-hover);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: var(--spacing-md) 0;
}

/* ==========================================================================
   Sidebar & TOC
   ========================================================================== */

.sidebar-inner::-webkit-scrollbar {
    width: 6px;
}

.sidebar-inner::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.sidebar-inner::-webkit-scrollbar-thumb {
    background: var(--stratona-accent);
    border-radius: 3px;
}

/* Table of Contents */
.table-of-contents {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-left: 4px solid var(--stratona-accent);
    border-radius: 16px;
    padding: 2rem;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.table-of-contents h3 {
    font-size: 1.2rem;
    margin: 0 0 1.5rem 0;
    color: var(--stratona-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.table-of-contents h3::before {
    content: '📑';
    font-size: 1.3rem;
}

.table-of-contents ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.table-of-contents li {
    margin: 0;
    padding: 0;
}

.table-of-contents li a {
    display: block;
    padding: 0.7rem 1rem;
    color: var(--stratona-text-muted);
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
}

.table-of-contents li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 60%;
    background: rgba(212, 175, 55, 0.1);
    transition: width 0.3s ease;
    border-radius: 0 6px 6px 0;
    z-index: -1;
}

.table-of-contents li a:hover {
    color: var(--stratona-accent);
    border-left-color: var(--stratona-accent);
    padding-left: 1.3rem;
}

.table-of-contents li a:hover::before {
    width: 100%;
}

.table-of-contents li a.active {
    color: var(--stratona-accent);
    border-left-color: var(--stratona-accent);
    font-weight: 600;
    background: rgba(212, 175, 55, 0.1);
    padding-left: 1.3rem;
}

.table-of-contents li.toc-h2 {
    margin-top: 0.8rem;
}

.table-of-contents li.toc-h2:first-child {
    margin-top: 0;
}

.table-of-contents li.toc-h2 a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--stratona-text);
}

.table-of-contents li.toc-h3 a {
    padding-left: 2rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.table-of-contents li.toc-h3 a:hover,
.table-of-contents li.toc-h3 a.active {
    padding-left: 2.3rem;
}

/* Sidebar Info Box */
.sidebar-info-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sidebar-info-box h4 {
    font-size: 1rem;
    color: var(--stratona-accent);
    margin: 0 0 1rem 0;
}

.sidebar-info-box p {
    font-size: 0.85rem;
    color: var(--stratona-text-muted);
    line-height: 1.6;
    margin: 0.5rem 0;
}

.sidebar-info-box .back-to-dictionary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.sidebar-info-box .back-to-dictionary a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--stratona-accent);
    text-decoration: none;
    transition: var(--transition);
}

/* Sidebar Widgets */
.sidebar, .content-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: var(--stratona-secondary);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px solid var(--stratona-border);
    margin-bottom: var(--spacing-md);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--stratona-accent);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--stratona-border);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--stratona-text-muted);
    display: block;
    transition: var(--transition);
}

.widget ul li a:hover {
    color: var(--stratona-accent);
    padding-left: var(--spacing-xs);
}


/* ==========================================================================
   Archive/Dictionary Grid
   ========================================================================== */

.dictionary-search-section {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.dictionary-filters {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.dictionary-filters h3 {
    margin-bottom: var(--spacing-md);
    color: var(--stratona-text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: var(--stratona-secondary);
    border: 2px solid var(--stratona-border);
    border-radius: 25px;
    color: var(--stratona-text);
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: var(--stratona-accent);
    color: var(--stratona-accent);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--stratona-accent);
    border-color: var(--stratona-accent);
    color: var(--stratona-primary);
}

.filter-btn .count {
    opacity: 0.7;
    font-size: 0.9em;
}

.letter-section {
    margin-bottom: var(--spacing-xl);
}

.letter-heading {
    font-size: 3rem;
    color: var(--stratona-accent);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--stratona-accent);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.term-card {
    background: var(--stratona-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--stratona-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
    border-color: var(--stratona-accent);
}

.card-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.term-card:hover .card-thumbnail img {
    transform: scale(1.1);
}

.card-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.card-title a {
    color: var(--stratona-accent);
}

.card-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--stratona-primary);
    border: 1px solid var(--stratona-accent);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--stratona-accent);
    margin-bottom: var(--spacing-sm);
    width: fit-content;
}

.card-excerpt {
    color: var(--stratona-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-link {
    color: var(--stratona-accent);
    font-weight: 600;
    align-self: flex-start;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

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

.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--stratona-secondary);
    border-radius: 12px;
    border: 1px solid var(--stratona-border);
}

.no-results h2 {
    margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   Blog & Post Styles
   ========================================================================== */
.post {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--stratona-border);
}

.post:last-child {
    border-bottom: none;
}

.entry-meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--stratona-text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.entry-thumbnail {
    margin-bottom: var(--spacing-md);
    border-radius: 12px;
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.entry-thumbnail:hover img {
    transform: scale(1.05);
}

.entry-footer {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--stratona-border);
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

.read-more {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--stratona-accent);
    color: var(--stratona-primary);
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    background: var(--stratona-text);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   Term Navigation (Prev/Next)
   ========================================================================== */

.term-navigation {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--stratona-secondary);
    border-radius: 12px;
    border: 1px solid var(--stratona-border);
}

.term-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.term-navigation a {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    background: var(--stratona-primary);
    border-radius: 8px;
    border: 2px solid var(--stratona-border);
    transition: var(--transition);
    text-decoration: none;
}

.term-navigation a:hover {
    border-color: var(--stratona-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.term-navigation .nav-label {
    font-size: 0.85rem;
    color: var(--stratona-text-muted);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.term-navigation .nav-title {
    color: var(--stratona-accent);
    font-size: 1.1rem;
    font-weight: 600;
}


/* ==========================================================================
   Related Terms
   ========================================================================== */

.related-terms {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--stratona-secondary);
    border-radius: 12px;
    border: 1px solid var(--stratona-border);
}

.related-terms h3 {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.related-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.related-term-card {
    background: var(--stratona-primary);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 1px solid var(--stratona-border);
    transition: var(--transition);
}

.related-term-card:hover {
    border-color: var(--stratona-accent);
    transform: translateY(-3px);
}

.related-term-card h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.related-term-card h4 a {
    color: var(--stratona-accent);
    text-decoration: none;
}

.related-excerpt {
    color: var(--stratona-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-xl) 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 var(--spacing-sm);
    background: var(--stratona-secondary);
    border: 1px solid var(--stratona-border);
    border-radius: 6px;
    color: var(--stratona-text);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--stratona-accent);
    color: var(--stratona-primary);
    border-color: var(--stratona-accent);
    transform: translateY(-2px);
}

.pagination .current {
    background: var(--stratona-accent);
    color: var(--stratona-primary);
    border-color: var(--stratona-accent);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--stratona-border);
}

.comments-title {
    margin-bottom: var(--spacing-lg);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: var(--stratona-secondary);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    border-left: 3px solid var(--stratona-accent);
}

.comment-author {
    font-weight: 600;
    color: var(--stratona-accent);
    margin-bottom: var(--spacing-xs);
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--stratona-text-muted);
    margin-bottom: var(--spacing-sm);
}

.comment-content {
    line-height: 1.7;
}

.reply {
    margin-top: var(--spacing-sm);
}

.reply a {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--stratona-accent);
    color: var(--stratona-primary);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.comment-form {
    background: var(--stratona-secondary);
    padding: var(--spacing-lg);
    border-radius: 12px;
    margin-top: var(--spacing-lg);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--stratona-primary);
    border: 1px solid var(--stratona-border);
    border-radius: 6px;
    color: var(--stratona-text);
    font-family: var(--font-primary);
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--stratona-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.comment-form input[type="submit"] {
    background: var(--stratona-accent);
    color: var(--stratona-primary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form input[type="submit"]:hover {
    background: var(--stratona-text);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}


/* ==========================================================================
   Content Enhancements
   ========================================================================== */

.notice {
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.notice.info {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
}

.notice.warning {
    background: rgba(241, 196, 15, 0.1);
    border-color: #f1c40f;
}

.notice.success {
    background: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
}

.notice.error {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

/* ==========================================================================
   Social Share & Meta
   ========================================================================== */
.social-share {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.share-label {
    font-weight: 600;
    color: var(--stratona-text-muted);
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--stratona-primary);
    color: var(--stratona-text);
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid var(--stratona-border);
}

.social-share-btn:hover {
    background: var(--stratona-accent);
    color: var(--stratona-primary);
    border-color: var(--stratona-accent);
    transform: translateY(-3px);
}

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--stratona-accent);
    margin-top: var(--spacing-sm);
}

.reading-time-icon {
    font-size: 1.1rem;
}

.updated-date {
    font-size: 0.9rem;
    color: var(--stratona-text-muted);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    padding: var(--spacing-md) 0;
    font-size: 0.9rem;
    color: var(--stratona-text-muted);
    margin-bottom: var(--spacing-md);
}

.breadcrumbs a {
    color: var(--stratona-text-muted);
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--stratona-accent);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
}

/* ==========================================================================
   Utility & Components
   ========================================================================== */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--stratona-accent), #f4d03f, var(--stratona-accent));
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--stratona-accent) 0%, #f4d03f 100%);
    color: var(--stratona-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(212, 175, 55, 0.6);
}

.stratona-loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--stratona-border);
    border-top-color: var(--stratona-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--stratona-secondary);
    border-top: 1px solid var(--stratona-border);
    margin-top: auto; /* Pushes footer to bottom */
}

.footer-widgets {
    padding: var(--spacing-xl) var(--spacing-md);
}

.footer-widgets-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-widget {
    padding: var(--spacing-md);
}

.footer-widget .widget-title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--stratona-accent);
    font-family: var(--font-heading);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--stratona-border);
}

.footer-widget ul li:last-child {
    border-bottom: none;
}

.footer-widget ul li a {
    color: var(--stratona-text-muted);
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--stratona-accent);
    padding-left: 5px;
}

.footer-navigation {
    text-align: center;
    padding: var(--spacing-md);
    border-top: 1px solid var(--stratona-border);
    border-bottom: 1px solid var(--stratona-border);
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-navigation a {
    color: var(--stratona-text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-navigation a:hover {
    color: var(--stratona-accent);
}

.site-info {
    padding: var(--spacing-lg) var(--spacing-md);
}

.site-info-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.copyright {
    margin-bottom: var(--spacing-md);
}

.copyright p {
    margin: 0.5rem 0;
    color: var(--stratona-text-muted);
    font-size: 0.95rem;
}

.copyright a {
    color: var(--stratona-accent);
    font-weight: 600;
}

.tagline {
    font-style: italic;
    font-size: 0.9rem;
}

.site-credits {
    font-size: 0.85rem;
    color: var(--stratona-text-muted);
    margin-top: var(--spacing-sm);
}

.site-credits a {
    color: var(--stratona-text-muted);
    text-decoration: underline;
}

.site-credits a:hover {
    color: var(--stratona-accent);
}

.privacy-policy {
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
}

.privacy-policy a {
    color: var(--stratona-text-muted);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .site-content.dictionary-single-content {
        gap: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
    }

    .footer-widgets-inner {
        grid-template-columns: 1fr;
    }
    
    .site-content.dictionary-single-content {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
    .dictionary-single-content .content-sidebar {
        order: -1; /* Display sidebar above content */
        width: 100%;
        justify-content: center; /* Center content on mobile */
    }
    .dictionary-single-content .sidebar-inner {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
        max-width: none; /* Remove max-width on mobile */
    }
}

@media (max-width: 768px) {
    :root {
        --base-font-size: 16px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .header-inner {
        padding: 0.8rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .site-branding .site-title {
        font-size: 1.2rem;
    }
    
    /* Hamburger-Menü auf Mobile verstecken */
    .menu-toggle {
        display: none !important;
    }
    
    /* Navigation auf Mobile immer sichtbar */
    .main-navigation {
        position: static !important;
        display: flex !important;
        justify-content: flex-end;
        flex: 0 0 auto;
        background: transparent;
        border: none;
        width: auto !important;
    }
    
    .main-navigation ul {
        flex-direction: row !important;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
        display: flex !important;
    }
    
    .main-navigation li {
        margin: 0;
    }
    
    .main-navigation a {
        display: block;
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
        white-space: nowrap;
        background: rgba(212, 175, 55, 0.1);
        border: 1px solid var(--stratona-accent);
        border-radius: 4px;
    }
    
    .main-navigation a:hover,
    .main-navigation .current-menu-item a {
        background: var(--stratona-accent);
        color: var(--stratona-primary);
    }
    
    .site-content,
    .site-content.dictionary-single-content {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .terms-grid {
        grid-template-columns: 1fr;
    }
    
    .letter-heading {
        font-size: 2rem;
    }
    
    .filter-buttons {
        justify-content: flex-start;
    }
    
    .social-share {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .term-navigation .nav-links {
        grid-template-columns: 1fr;
    }
    
    .related-terms-grid {
        grid-template-columns: 1fr;
    }

    .footer-navigation ul {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}


/* ==========================================================================
   Utility & WordPress Core
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .scroll-progress,
    .social-share,
    .term-navigation,
    .related-terms,
    .comments-area,
    .content-sidebar {
        display: none;
    }
    
    .entry-content {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .entry-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   Case Studies Specific Styles
   ========================================================================== */

/* Case Studies Archive Page */
.post-type-archive-stratono_case .site-content {
    max-width: min(1920px, 94vw);
    padding: 2.5rem 1.5rem;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.case-study-card {
    background: var(--stratona-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--stratona-border);
}

.case-study-card:hover {
    transform: translateY(-5px);
    border-color: var(--stratona-accent);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.case-study-card .card-content {
    padding: 1.5rem;
}

.case-study-card .card-title {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.case-study-card .card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.case-study-card .card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--stratona-accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Case Study Single Page - Override huge headlines */
.single-stratono_case .entry-title {
    font-size: 2rem !important; /* Reduced for better fit */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Two column layout for case studies - wider content area */
.site-content.case-study-content {
    display: grid !important;
    grid-template-columns: 1fr minmax(280px, 340px) !important; /* Much more space for content */
    gap: 2.5rem !important;
    max-width: min(1920px, 94vw) !important; /* Use 94% of viewport width */
    margin: 0 auto !important;
    padding: 2.5rem 1.5rem !important; /* Less padding to maximize content area */
}

.case-study-content .content-area {
    min-width: 0;
    max-width: none;
}

.case-study-content .content-sidebar {
    display: flex;
    justify-content: flex-start;
}

.case-study-content .sidebar-inner {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    width: 100%;
}

/* Case Study Content Typography Hierarchy */
.stratono_case_single .entry-content h2 {
    font-size: 1.8rem !important; /* Reduce from 2.5rem */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--stratona-accent);
}

.stratono_case_single .entry-content h3 {
    font-size: 1.4rem !important; /* Reduce from 2rem */
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--stratona-text);
}

.stratono_case_single .entry-content h4 {
    font-size: 1.2rem !important; /* Reduce from 1.5rem */
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Case Study Content Sections */
.stratono_case_single .entry-content ul,
.stratono_case_single .entry-content ol {
    margin: 1rem 0 1.5rem 2rem;
    line-height: 1.8;
}

.stratono_case_single .entry-content li {
    margin-bottom: 0.5rem;
}

/* Key Sections Styling */
.stratono_case_single .entry-content p strong:first-child {
    color: var(--stratona-accent);
    font-size: 1.1rem;
}

/* Info Box in Sidebar - Professional Style */
.case-study-content .sidebar-info-box {
    background: var(--stratona-secondary);
    border: 1px solid var(--stratona-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.case-study-content .sidebar-info-box h4 {
    font-size: 1.2rem;
    color: var(--stratona-accent);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--stratona-border);
}

.case-study-content .sidebar-info-box p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.case-study-content .sidebar-info-box strong {
    color: var(--stratona-text);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Back to Case Studies Link */
.back-to-dictionary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--stratona-border);
}

.back-to-dictionary a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.back-to-dictionary a:hover {
    background: var(--stratona-accent);
    color: var(--stratona-primary);
}

/* Related Case Studies Grid */
.related-terms {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--stratona-secondary);
    border-radius: 12px;
}

.related-terms h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--stratona-accent);
}

.related-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-term-card {
    padding: 1.25rem;
    background: var(--stratona-primary);
    border-radius: 8px;
    border: 1px solid var(--stratona-border);
    transition: var(--transition);
}

.related-term-card:hover {
    border-color: var(--stratona-accent);
    transform: translateY(-3px);
}

.related-term-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-term-card h4 a {
    color: var(--stratona-accent);
}

.related-excerpt {
    font-size: 0.9rem;
    color: var(--stratona-text-muted);
    line-height: 1.5;
}

/* Responsive Adjustments for Case Studies */
@media (max-width: 1600px) and (min-width: 1200px) {
    .site-content.dictionary-single-content,
    .site-content.case-study-content {
        grid-template-columns: 1fr minmax(300px, 360px);
        gap: 2rem;
        max-width: min(1400px, 94vw);
    }
    
    .single-stratono_case .entry-title,
    .single-stratono_term .entry-title {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 1024px) {
    .site-content.dictionary-single-content,
    .site-content.case-study-content {
        grid-template-columns: 1fr;
        max-width: 900px;
    }
    
    .dictionary-single-content .content-sidebar,
    .case-study-content .content-sidebar {
        order: -1;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .dictionary-single-content .sidebar-inner,
    .case-study-content .sidebar-inner {
        position: relative;
        top: 0;
        max-height: none;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .single-stratono_case .entry-title {
        font-size: 1.8rem !important;
    }
    
    .stratono_case_single .entry-content h2 {
        font-size: 1.5rem !important;
    }
    
    .stratono_case_single .entry-content h3 {
        font-size: 1.25rem !important;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}