/* dateien/css/stil.css - Hauptstylesheet */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f5f9fe;
    color: #1a2a3f;
    line-height: 1.55;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Grid Layout - Desktop mit Sidebar */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr 320px;
    }
}

/* Header */
.site-header {
    background: white;
    border-bottom: 1px solid #eef2f8;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-top {
    background: #1a7f9e;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    background: white;
    flex-wrap: wrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #1a2a3f;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.2s;
}

.nav-menu li a:hover {
    background: #1a7f9e10;
    color: #1a7f9e;
}

@media (max-width: 767px) {
    .main-nav {
        display: none;
        flex-direction: column;
        padding: 1rem;
    }
    .main-nav.active {
        display: flex;
    }
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    .nav-menu li a {
        padding: 0.75rem 1rem;
    }
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.lang-current {
    background: #f0f4fa;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 12px;
    z-index: 101;
}

.language-dropdown:hover .lang-dropdown-content {
    display: block;
}

.lang-dropdown-content a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
}

.lang-dropdown-content a:hover {
    background: #f0f4fa;
}

.lang-dropdown-content a.active {
    background: #1a7f9e;
    color: white;
}

/* Story Container (Instagram Style) */
.story-container {
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.story-wrapper {
    display: flex;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.story-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #feda77, #f58529);
    padding: 3px;
}

.story-avatar img, .story-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.story-name {
    font-size: 0.7rem;
    color: #5a6e8a;
    margin-top: 0.3rem;
    font-weight: 500;
    text-align: center;
}

@media (min-width: 768px) {
    .story-avatar {
        width: 80px;
        height: 80px;
    }
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (min-width: 640px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Article Card */
.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #eef2f8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

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

.card-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #1a7f9e;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.card-content {
    padding: 1rem;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-content h3 a {
    text-decoration: none;
    color: #1a2a3f;
}

.card-content h3 a:hover {
    color: #1a7f9e;
}

.card-meta {
    font-size: 0.7rem;
    color: #8a9bb0;
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.card-excerpt {
    font-size: 0.85rem;
    color: #5a6e8a;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.read-more {
    display: inline-block;
    color: #1a7f9e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Ad Infeed */
.ad-infeed {
    grid-column: 1 / -1;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 1rem;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 1.2rem;
    border: 1px solid #eef2f8;
}

.sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1a7f9e;
    display: inline-block;
}

/* Weather Widget */
.weather-info {
    text-align: center;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.weather-main img {
    width: 60px;
    height: 60px;
}

.weather-temp {
    font-size: 2rem;
    font-weight: bold;
    color: #1a7f9e;
}

.weather-condition {
    font-size: 0.9rem;
    color: #5a6e8a;
    margin: 0.5rem 0;
}

.weather-details {
    font-size: 0.75rem;
    color: #8a9bb0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* Top Articles */
.top-articles-list {
    list-style: none;
}

.top-articles-list li {
    margin-bottom: 0.8rem;
}

.top-articles-list li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.top-articles-list li a img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
}

.top-article-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a2a3f;
}

.top-article-views {
    font-size: 0.7rem;
    color: #8a9bb0;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin: 0.8rem 0;
}

.newsletter-form input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.newsletter-form button {
    background: #1a7f9e;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.newsletter-note {
    font-size: 0.7rem;
    color: #8a9bb0;
}

/* Sidebar Ad */
.sidebar-ad {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 1rem;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Article Full Page */
.article-full {
    background: white;
    border-radius: 28px;
    padding: 1.5rem;
}

.breadcrumb {
    font-size: 0.8rem;
    color: #8a9bb0;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #1a7f9e;
    text-decoration: none;
}

.article-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1a2a3f;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f8;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #8a9bb0;
}

.article-image {
    margin: 1rem 0;
    border-radius: 20px;
    overflow: hidden;
}

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

.article-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.article-content h2 {
    margin: 1.5rem 0 0.8rem;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Tags */
.article-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.article-tags a {
    background: #f0f4fa;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    color: #1a7f9e;
}

/* Similar Articles */
.similar-articles {
    margin-top: 2rem;
}

.similar-articles h3 {
    margin-bottom: 1rem;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.similar-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #eef2f8;
    transition: 0.2s;
}

.similar-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.similar-card h4 {
    padding: 0.8rem;
    font-size: 0.9rem;
    color: #1a2a3f;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eef2f8;
}

.event-image {
    height: 160px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    padding: 1rem;
    position: relative;
}

.event-date {
    position: absolute;
    top: -15px;
    left: 15px;
    background: #1a7f9e;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    text-align: center;
    min-width: 50px;
}

.event-day {
    font-size: 1rem;
    font-weight: bold;
    display: block;
}

.event-month {
    font-size: 0.7rem;
}

.event-content h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.event-location {
    font-size: 0.8rem;
    color: #8a9bb0;
    margin-bottom: 0.5rem;
}

.remember-btn {
    background: #f0f4fa;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.remember-btn.remembered {
    background: #28a745;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #eef2f8;
    border-radius: 8px;
    text-decoration: none;
    color: #1a2a3f;
}

.page-btn.active {
    background: #1a7f9e;
    color: white;
    border-color: #1a7f9e;
}

/* Footer */
.site-footer {
    margin-top: 3rem;
}

.exclusive-footer {
    background: #A72764;
    color: white;
    padding: 1rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.partner-logo-img {
    height: 40px;
    width: auto;
}

.partner-link {
    color: #fef0c0;
    text-decoration: none;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1a7f9e;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: 0.2s;
    z-index: 99;
}

.back-to-top:hover {
    background: #0f627c;
    transform: scale(1.05);
}

/* Search Overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
}

#closeSearch {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .article-title {
        font-size: 1.4rem;
    }
    .article-full {
        padding: 1rem;
    }
}

/* Sticky Footer - Seite immer auf volle Fensterhöhe */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Hauptcontainer nimmt verfügbaren Platz ein */
.container {
    flex: 1 0 auto;
}

/* Footer bleibt unten */
.site-footer {
    flex-shrink: 0;
}