/**
 * LUPE.AT - Stylesheet
 * Klassisches Zeitungsdesign
 */

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

:root {
    --color-primary: #1a1a2e;
    --color-secondary: #16213e;
    --color-accent: #e94560;
    --color-text: #2d2d2d;
    --color-text-light: #666;
    --color-border: #e0e0e0;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Source Sans Pro', -apple-system, sans-serif;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 4px;
    --max-width: 1280px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* ===== HEADER ===== */
.site-header {
    background: var(--color-bg);
    border-bottom: 3px solid var(--color-primary);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo a {
    display: block;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    letter-spacing: -1px;
}

.logo-tagline {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: -0.25rem;
}

.header-search {
    display: flex;
}

.header-search input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.9rem;
    width: 200px;
}

.header-search button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--color-bg-light);
    cursor: pointer;
}

.header-date {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ===== NAVIGATION ===== */
.main-nav {
    background: var(--color-primary);
}

.nav-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.nav-list li a {
    display: block;
    padding: 0.85rem 1.25rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.nav-list li a:hover,
.nav-list li a.active {
    background: var(--color-accent);
}

/* ===== MAIN ===== */
.site-main {
    padding: 2rem 0;
}

/* ===== TOP STORY ===== */
.top-story {
    margin-bottom: 2rem;
}

.top-story-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.top-story-card a {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.top-story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.top-story-content {
    padding: 2rem 2rem 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.top-story-content h1 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    line-height: 1.3;
    margin: 0.75rem 0;
}

.top-story-content .excerpt {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* ===== CATEGORY BADGE ===== */
.category-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius);
}

.category-badge.large {
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
}

.category-badge.small {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
}

/* ===== ARTICLE CARDS ===== */
.articles-grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.article-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.article-card a {
    display: block;
}

.article-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1rem;
}

.article-card h2,
.article-card h3,
.article-card h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0.5rem 0;
}

.article-card .excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.article-card .date,
.article-card .meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* ===== ARTICLE LIST ===== */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-row {
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.2s;
}

.article-row:hover {
    box-shadow: var(--shadow);
}

.article-row a {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
}

.article-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-info {
    padding: 1rem 1rem 1rem 0;
}

.article-info h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin: 0.25rem 0 0.5rem;
}

.article-info .excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.article-info .date {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header .section-title {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.more-link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== MAIN CONTENT GRID ===== */
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
}

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

.content-area section {
    margin-bottom: 3rem;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: 1rem;
    height: fit-content;
}

.sidebar-widget {
    background: var(--color-bg-light);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.category-list {
    list-style: none;
}

.category-list li {
    border-bottom: 1px solid var(--color-border);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

.category-list a:hover {
    color: var(--color-accent);
}

.category-list .count {
    color: var(--color-text-light);
    font-size: 0.8rem;
}

.category-list li.active a {
    color: var(--color-accent);
    font-weight: 600;
}

/* ===== SINGLE ARTICLE ===== */
.single-article {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.article-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.article-lead {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 1rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.article-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
}

.article-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
}

.article-content {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2,
.article-content h3 {
    font-family: var(--font-sans);
    margin: 2rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

.article-content img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.article-sidebar {
    position: sticky;
    top: 1rem;
    height: fit-content;
}

.share-widget {
    background: var(--color-bg-light);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.share-widget h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    display: block;
    padding: 0.5rem 1rem;
    text-align: center;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.9;
    color: #fff !important;
}

.share-btn.whatsapp { 
    background: #25d366 !important; 
    color: #fff !important;
}
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000; }
.share-btn.email { background: #374151; }
.share-btn.copy-link { 
    background: #1f2937 !important; 
    color: #fff !important;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
}
.share-btn.copy-link:hover { 
    background: #111827 !important; 
}

.copy-success {
    background: #10b981;
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ===== RELATED ARTICLES ===== */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

/* ===== CATEGORY PAGE ===== */
.category-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.category-header h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 0.5rem;
}

.article-count {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.page-link:hover {
    background: var(--color-bg-light);
}

.page-link.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ===== ADS ===== */
.ad-container {
    margin: 1.5rem 0;
    text-align: center;
}

.ad-container img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-primary);
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.site-footer h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
}

.site-footer p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.site-footer ul {
    list-style: none;
}

.site-footer ul li {
    margin-bottom: 0.5rem;
}

.site-footer ul a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.site-footer ul a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== ERROR PAGE ===== */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-page a {
    color: var(--color-accent);
    font-weight: 600;
}

/* ===== NO ARTICLES ===== */
.no-articles {
    text-align: center;
    padding: 3rem;
    background: var(--color-bg-light);
    border-radius: var(--radius);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-body {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        display: flex;
        gap: 1rem;
    }
    
    .article-sidebar > * {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .nav-list {
        justify-content: center;
    }
    
    .nav-list li a {
        padding: 0.75rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .top-story-card a {
        grid-template-columns: 1fr;
    }
    
    .top-story-content {
        padding: 1.5rem;
    }
    
    .top-story-content h1 {
        font-size: 1.75rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .article-row a {
        grid-template-columns: 1fr;
    }
    
    .article-thumb {
        aspect-ratio: 16/9;
    }
    
    .article-info {
        padding: 1rem;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-sidebar {
        flex-direction: column;
    }
}

/* ===== SEARCH PAGE ===== */
.search-page {
    padding: 40px 0;
}

.search-form-large {
    margin-bottom: 40px;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
    max-width: 600px;
}

.search-input-large {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.3s ease;
}

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

.search-btn-large {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn-large:hover {
    background: #d63850;
}

.search-info {
    margin-bottom: 30px;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--color-bg-light);
    border-radius: var(--radius);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.category-suggestions {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.category-suggestions li a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.category-suggestions li a:hover {
    background: var(--color-accent);
}

.search-suggestions {
    padding: 40px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    display: block;
    padding: 25px;
    background: var(--color-bg-light);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
}

.category-card .category-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card .category-description {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ===== ERROR PAGES ===== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 10px;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.error-message {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.error-suggestions {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.error-suggestions h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* ===== STATIC PAGES ===== */
.static-page {
    padding: 40px 0;
}

.static-page .page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
}

.static-page .page-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
}

.static-page .page-content {
    line-height: 1.8;
}

.static-page .page-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--color-primary);
}

.static-page .page-content h3 {
    font-size: 1.2rem;
    margin: 25px 0 10px;
}

.static-page .page-content p {
    margin-bottom: 15px;
}

.static-page .page-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.static-page .page-content ul li {
    margin-bottom: 8px;
}

.contact-info,
.contact-address,
.contact-social {
    margin: 30px 0;
    padding: 25px;
    background: var(--color-bg-light);
    border-radius: var(--radius);
}

.contact-info h3,
.contact-address h3,
.contact-social h3 {
    margin-top: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background: #d63850;
}

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

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

/* ===== READING PROGRESS BAR ===== */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--color-accent);
    z-index: 1001;
    width: 0;
    transition: width 0.1s ease;
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    color: white;
    padding: 20px;
    z-index: 1000;
}

#cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

#cookie-banner p {
    flex: 1;
    margin: 0;
}

#cookie-banner a {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .error-code {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .static-page .page-title {
        font-size: 1.75rem;
    }
}
