/*
  Styles für vereinfachtes Content-Blog
  - Fokus auf Lesbarkeit
  - Maximale Breite für Beiträge
  - Minimalistisches Design
*/

/* === Reset und Basis === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px für einfachere Berechnungen */
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.8rem;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
}

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

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
}

/* === Container === */
.container {
    width: 100%;
    max-width: 100rem; /* Schmalerer Container für bessere Lesbarkeit */
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Typografie === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}

h1 { font-size: 3.6rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.6rem; }

p {
    margin-bottom: 1.8rem;
}

/* === Blog-Header === */
.blog-header {
    padding: 4rem 0;
    text-align: center;
    background-color: #fff;
    margin-bottom: 4rem;
    border-bottom: 1px solid #eaeaea;
}

.blog-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.blog-description {
    color: #777;
    font-size: 1.8rem;
    max-width: 60rem;
    margin: 0 auto;
}

/* === Main Content === */
.main-content {
    padding-bottom: 6rem;
}

.posts-container {
    max-width: 100rem;
    margin: 0 auto;
}

/* === Blog-Posts === */
.blog-post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 5rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.blog-post-header {
    padding: 3rem 3rem 0;
}

.blog-post-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.blog-post-title a {
    color: #222;
}

.blog-post-title a:hover {
    color: #007bff;
}

.blog-post-meta {
    color: #777;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.blog-post-meta i {
    margin-right: 0.5rem;
}

.blog-post-meta span {
    margin-right: 2rem;
}

.blog-post-image {
    width: 100%;
    height: auto;
}

.blog-post-content {
    padding: 3rem;
}

.blog-post-excerpt {
    margin-bottom: 2rem;
    color: #444;
    font-size: 1.7rem;
    line-height: 1.8;
}

.read-more {
    font-weight: 600;
    font-size: 1.6rem;
    color: #007bff;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.read-more i {
    margin-left: 0.8rem;
    transition: transform 0.3s;
}

.read-more:hover {
    border-bottom-color: #007bff;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* === Paginierung === */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 4rem;
}

.page-item {
    margin: 0 0.5rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    text-decoration: none;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #f8f9fa;
}

.page-item.active .page-link {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* === Footer === */
.footer {
    background-color: #fff;
    border-top: 1px solid #eaeaea;
    padding: 2rem 0;
    color: #555;
    text-align: center;
}

.footer p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #555;
    margin: 0 0.5rem;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-3px);
}

/* === Responsive Design === */
@media (max-width: 768px) {
    html {
        font-size: 58%;
    }

    .container {
        padding: 0 1.5rem;
    }

    .blog-post-header,
    .blog-post-content {
        padding: 2rem;
    }

    .blog-title {
        font-size: 3.4rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }

    .blog-post-meta span {
        display: block;
        margin-bottom: 0.5rem;
    }

    .pagination {
        flex-wrap: wrap;
    }
}