/*
===============================================================================
                        BLOG-SPEZIFISCHES STYLING (blog.css)
===============================================================================

ZWECK:
Diese CSS-Datei erweitert und überschreibt das Haupt-Styling (styles.css)
spezifisch für die Blog-Seite (blog.html).

BESONDERHEITEN:
- Entfernt Graustufenfilter von Hero-Bildern
- Angepasste Hero-Section-Höhe (70vh statt Standard)
- Weißer Hintergrund statt grau
- Optimiert für Artikel-Darstellung
- Erweiterte Hover-Effekte für Bilder

LADE-REIHENFOLGE:
1. styles.css (Basis-Styling)
2. blog.css (Überschreibungen)
3. fix-768px.css (Responsive Fixes)

WICHTIG FÜR ENTWICKLER:
- Diese Datei wird NUR von blog.html eingebunden
- Änderungen hier betreffen nur die Blog-Seite
- CSS-Spezifität beachten bei Überschreibungen
- Responsive Design wird von Haupt-CSS übernommen

VORSICHT:
- Nicht für andere Seiten verwenden
- Basis-Styling nicht komplett überschreiben
- Konsistenz mit OVGU-Design-Guidelines beachten

===============================================================================
*/

/* =========================================================================
   BLOG-SPEZIFISCHE GRUNDEINSTELLUNGEN
   ========================================================================= 
   
   ÜBERSCHREIBUNGEN gegenüber styles.css:
   - Hintergrundfarbe: Weiß statt Grau
   - Schrifteinstellungen für bessere Lesbarkeit
   - Optimiert für längere Texte
   ========================================================================= */
/* Allgemeine Einstellungen */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    /*color: #333;*/
    background-color: #fff; /* Hintergrund von grau zu weiß geändert */
}

/* Header-Stile wurden entfernt, um die Standard-OVGU-Designelemente zu verwenden */

.container {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

#page-content {
	background-color: var(--body-bg-color);
}

/* =========================================================================
   BLOG HERO-SECTION - Angepasst für Artikel-Darstellung
   ========================================================================= 
   
   UNTERSCHIEDE ZUR HAUPT-HERO-SECTION:
   - Höhe: 70vh statt 60vh (mehr Platz für Artikel-Header)
   - Kein 3D-Slider (nur statisches Bild)
   - Entfernter Graustufenfilter für bessere Bildqualität
   - Optimiert für einzelne Artikel-Vorschau
   
   WICHTIG: Diese Hero-Section ist NUR für blog.html!
   ========================================================================= */
/* Hero-Bereich */
.hero-section {
    position: relative;
    height: 70vh; /* Größer als Standard für bessere Artikel-Präsentation */
    min-height: 500px;
    margin-bottom: 3rem;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* =========================================================================
   BLOG HERO-BILDER - Ohne Graustufenfilter
   ========================================================================= 
   
   KRITISCHE ÜBERSCHREIBUNG:
   - filter: none; überschreibt den globalen grayscale(95%) Filter
   - Bilder werden in voller Farbe angezeigt (nicht grau)
   - Sanfter Hover-Effekt mit scale(1.02) statt scale(1.05)
   
   WARUM KEINE GRAUSTUFENFILTER?
   - Blog-Artikel sollen ansprechend und farbig wirken
   - Bessere Artikel-Präsentation ohne Ablenkung
   - Konsistent mit modernen Blog-Designs
   ========================================================================= */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none; /* KRITISCH: Überschreibt globalen Graustufenfilter! */
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%); /* Angepasster Verlauf für bessere Sichtbarkeit der Farben */
    z-index: 2;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    z-index: 3;
}

.hero-content * {
    color: white;
}

.article-category-tag {
    display: inline-block;
    background-color: #5a0038; /* OVGU Beere */
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin: 0;
    width: fit-content; /* Beschränkt die Breite auf den Inhalt */
    max-width: 200px; /* Maximale Breite setzen */
    position: relative; /* Stellt sicher, dass es sich nicht dehnt */
}

.article-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
    color: white;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
    flex-wrap: wrap;
    align-items: center;
}

/* Hauptinhalt-Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

/* Artikel-Styling */
.blog-article {
    margin-bottom: 3rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--article-content-color);
}

.article-highlight {
    position: relative;
    background-color: var(--article-highlight-bg-color);
    padding: 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.3rem;
    color: #333;
    border-radius: 5px;
}

/* Entferne das alte Gänsefüßchen */
/* .article-highlight::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 20px;
    font-size: 5rem;
    color: #5a0038;
    font-family: Georgia, serif;
    line-height: 1;
} */

/* Neue Gänsefüßchen-Formatierung */
.quote-marks {
    position: absolute;
    font-size: 5rem;
    color: #5a0038; /* OVGU Beere */
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 1;
}

.quote-start {
    top: -20px;
    left: 15px;
}

.quote-end {
    bottom: -45px;
    right: 15px;
}

/* Fremdwörter-Erklärung */
.glossary-section {
    background-color: var(--article-card-bg-color);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--top-article-title-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #5a0038; /* OVGU Beere */
}

.glossary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.glossary-item {
    background-color: var(--glossary-item-bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glossary-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.glossary-term {
    font-weight: 700;
    color: var(--sidebar-section-title-color); /* OVGU Beere */
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.glossary-definition {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--article-excerpt-color);
}

/* Kommentarbereich */
.comments-section {
    margin-bottom: 3rem;
}

.comment-form {
    background-color: var(--article-card-bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.comment-input {
    width: 100%;
    height: 150px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.comment-input:focus {
    border-color: #5a0038; /* OVGU Beere */
    outline: none;
}

.comment-policy-check-label {
	color: var(--article-content-color);
}

.form-actions {
    display: flex;
    justify-content: space-between;
}

.like-button, .submit-button {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.like-button {
    background-color: #f0f0f0;
    color: #ff3366;
    font-size: 1.2rem;
}

.submit-button {
    background-color: #5a0038; /* OVGU Beere */
    color: white;
}

.like-button:hover, .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Bestehende Kommentare */
.existing-comments {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.comment {
    background-color: var(--article-card-bg-color);
    padding: 1.8rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.comment:hover {
    transform: translateY(-3px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8rem;
}

.comment-author {
    font-weight: 700;
    color: var(--top-article-title-color);
}

.comment-date {
    font-size: 0.9rem;
    color: #777;
}

.comment-content {
    margin-bottom: 1.2rem;
    color: var(--article-content-color);
}

.comment-content p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 0.8rem;
}

.reply-button {
    background: none;
    border: none;
    border-radius: 5px;
    color: #5a0038; /* OVGU Beere */
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.reply-button:hover {
    color: #7a0048;
}

.like-count {
    color: #ff3366;
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-section {
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #5a0038; /* OVGU Beere */
}

/* Social Media Box */
.social-media-box {
    background-color: #5a0038; /* OVGU Beere */
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.social-media-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1.2rem;
    text-align: center;
}

.social-media-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.social-media-icons .social-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #5a0038; /* OVGU Beere */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.social-media-icons .social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* PDF Download Button */
.pdf-download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #5a0038; /* OVGU Beere */
    color: white;
    padding: 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.pdf-download-button:hover {
    background-color: #7a0048;
    transform: translateY(-3px);
}

.pdf-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Share Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-color: var(--sidebar-section-share-bg-color);
    color: var(--sidebar-section-share-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.share-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/*
.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.linkedin {
    background-color: #0077b5;
}

.share-button.email {
    background-color: #666;
}
*/


/* Weitere Artikel Bereich */
/*.more-articles-section {
    background-color: var(--pre-footer-section-color);
    padding: 4rem 0;
    margin-top: 3rem;
}

.more-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}*/

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

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

.more-article {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(90, 0, 56, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.more-article:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(90, 0, 56, 0.25);
}

.more-article-image {
    height: 200px;
    position: relative;
}

.more-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Graustufen-Effekt bei normaler Ansicht */
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.more-article-image:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.more-article-image .article-category-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    margin: 0;
    z-index: 2;
}

.more-article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: var(--more-articles-box-bg-color);
}

.more-article-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.3;
}

.more-article-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--more-article-excerpt-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.more-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.more-article-date {
    font-size: 0.85rem;
    color: #888;
}

.read-more-link {
    color: var(--read-more-color); /* OVGU Beere */
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #7a0048;
}

/* Dark Mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .article-content p,
body.dark-mode .more-article-excerpt,
body.dark-mode .glossary-definition,
body.dark-mode .comment-content p,
body.dark-mode .author-bio {
    color: #b0b0b0;
}

body.dark-mode .article-highlight,
body.dark-mode .glossary-section,
body.dark-mode .comment-form,
body.dark-mode .comment,
body.dark-mode .sidebar-section,
body.dark-mode .author-box,
body.dark-mode .more-article {
    background-color: #2a2a2a;
}

body.dark-mode .section-title,
body.dark-mode .sidebar-title,
body.dark-mode .more-article-title,
body.dark-mode .author-name,
body.dark-mode .related-post-title,
body.dark-mode .comment-author {
    color: #e0e0e0;
}

body.dark-mode .glossary-item {
    background-color: #333;
}

body.dark-mode .more-articles-section {
    background-color: #222;
}

body.dark-mode .comment-input {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .comment-header,
body.dark-mode .comment-actions,
body.dark-mode .more-article-meta {
    border-color: #444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start; /* Linksbündige Ausrichtung */
    }
    
    .article-category-tag {
        margin-left: 0; /* Entfernt den linken Abstand für linksbündige Ausrichtung */
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 40vh;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .article-content p {
        font-size: 1rem;
    }
    
    .article-highlight {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
    
    .section-title,
    .sidebar-title {
        font-size: 1.5rem;
    }
}

/* Sticky Sidebar */
@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: 20px;
    }
}

/* Autor Box Styling */
.author-box {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid #5a0038; /* OVGU Beere */
}

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

.author-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.author-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

/* PDF Download Button verbessert */
.pdf-download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #5a0038; /* OVGU Beere */
    color: white;
    padding: 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.pdf-download-button:hover {
    background-color: #7a0034; /* Bordeaux für Hover */
}

.pdf-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Teilen-Buttons Styling */
.share-section {
    margin-bottom: 2rem;
}

.share-buttons-container {
    /*display: flex;
    flex-direction: column;*/
    
	display: grid;
	grid-template-columns: repeat(2,1fr);
	grid-template-rows: repeat(2,50px);
	gap: 0.8rem;
	justify-content: center;
}

.share-button.share-button-1 {
	grid-column-start: 1;
	grid-column-end: 2;
}

.share-button.share-button-2 {
	grid-column-start: 2;
	grid-column-end: 3;
}

.share-button.share-button-3 {
	grid-column-start: 1;
	grid-column-end: 2;
	grid-row-start: 2;
	grid-row-end: 3;
}

.share-button.share-button-4 {
	grid-column-start: 2;
	grid-column-end: 3;
	grid-row-start: 2;
	grid-row-end: 3;
}

.share-button.share-button-5 {
	grid-column-start: 2;
	grid-column-end: 3;
	grid-row-start: 2;
	grid-row-end: 3;
}

.share-button.share-button-6 {
	grid-column-start: 3;
	grid-column-end: 4;
	grid-row-start: 2;
	grid-row-end: 3;
}


.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 10px;
    font-style: normal;
    font-weight: bold;
}

.share-text {
    flex-grow: 1;
}

/* Plattform-spezifische Farben */
/*
.share-button.facebook {
    background-color: #1877F2;
}

.share-button.twitter {
    background-color: #000000;
}

.share-button.linkedin {
    background-color: #0A66C2;
}

.share-button.whatsapp {
    background-color: #25D366;
}

.share-button.email {
    background-color: #5a0038;
}
*/
/* Dark Mode für Share Buttons */
body.dark-mode .share-button {
    background-color: #7a0048; /* Dunklere Beere-Farbe für Dark Mode */
}

body.dark-mode .author-box {
    background-color: #2a2a2a;
}

body.dark-mode .author-name {
    color: #e0e0e0;
}

body.dark-mode .author-title,
body.dark-mode .author-bio {
    color: #b0b0b0;
}
