/*
Theme Name: shotbox.de Theme
Theme URI: https://www.shotbox.de
Author: shotbox.de
Author URI: https://www.shotbox.de
Description: Minimal Theme with Topbar, Overlay-Menu and Post-Grid
Version: 1.0
Text Domain: shotbox
----------------------------------
Theme Colors:

Body Background: #EEEEEE, #eee
Top Bar & Footer Background: #7A378B

*/

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    background-color: #eeeeee;
}

/* Topleiste */
.topbar {
    background-color: #7A378B;
    color: #fff;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.container {
    max-width: 1400px;           /* breiter als üblich für Desktop */
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Name / Logo-Bereich */
.site-name {
    color: #fff;
    font-family: Goldman, display;
    font-size: 38px;
    font-weight: 700;
    text-transform:  uppercase;
    text-decoration: none;
    letter-spacing: -1px;
}

.site-name:hover {
    color: #fff;
    text-decoration: none;
}

/* Burger-Button */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 26px;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Aktiver Zustand des Burgers */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.3s ease;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    background-color: #fff;
    color: #222;
    width: 90%;                    /* mehr Fensterbreite auf Desktop */
    max-width: 1400px;             /* noch größer als normale Seitenbreite */
    min-height: 60vh;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.overlay.hidden .overlay-content {
    transform: translateY(30px);
}

/* Schließen-Button */
.close-btn {
    position: absolute;
    top: 28px;
    right: 30px;
    background: none;
    border: none;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.close-btn span {
    position: absolute;
    display: block;
    width: 28px;
    height: 4px;
    background-color: #222;
    border-radius: 3px;
}

.close-btn span:nth-child(1) {
    transform: rotate(45deg);
}

.close-btn span:nth-child(2) {
    transform: rotate(-45deg);
}

.close-btn:hover span {
    background-color: #000;
}

/* Optional: auf Handy etwas kompakter */
@media (max-width: 640px) {
    .close-btn {
        top: 22px;
        right: 25px;
        width: 34px;
        height: 34px;
    }
    .close-btn span {
        width: 24px;
        height: 3.5px;
    }
}

/* Platzhalter-Text */
.overlay-placeholder {
    font-size: 1.4rem;
    color: #555;
    text-align: center;
    margin-top: 80px;
}

/* Responsive: auf sehr kleinen Bildschirmen etwas schmaler */
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
        height: 70px;
    }
    
    .site-name {
        font-size: 28px;
    }
    
    .overlay-content {
        width: 95%;
        min-height: 80vh;
        padding: 30px 20px;
    }
    
    .close-btn {
        top: 15px;
        right: 20px;
        font-size: 24px;
    }
}



/* === ERSETZE in styles.css alles ab /* Content-Bereich – Überlappung endgültig behoben */ bis zum Ende der Datei durch diesen Block === */

/* Content-Bereich – klarer Abstand zur Topbar */
main {
    padding-top: 140px;        /* Header (80px) + deutlicher Puffer */
    padding-bottom: 80px;
}

/* Grid – zentriert und maximal 1200 px breit */
.posts-grid {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

/* Einfache Kachel – wirklich nur das Wesentliche */
.post-card {
    background-color: #fff;
	max-width: 560px; /* if there is only 1 card, make it not full width */
}

.post-card a {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 760px) {
    .post-card {
		max-width: 100%; /* but on smaller screens always full width */
    }
}

/* Bild – Proportionen immer erhalten, proportional skalieren 
.post-image {
    width: 100%;
    height: auto;
    display: block;
}
*/

.post-image {
    width: 100%;
    height: 250px;           /* exakt die Höhe aus add_image_size */
    object-fit: cover;       /* proportionale Skalierung + zentriertes Crop */
    display: block;
}


/* Kategorie */
.post-category {
    display: block;
    margin: 20px 20px 8px 20px;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Titel */
.post-title {
    margin: 0 20px 12px 20px;
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 600;
}

/* Textauszug */
.post-excerpt {
    margin: 0 20px 24px 20px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #555;
}

/* Minimales Responsive */
@media (max-width: 640px) {
    main {
        padding-top: 0;    /* etwas weniger auf Handy, bleibt aber mit Abstand */
    }
    .posts-grid {
        padding: 0 15px;
        gap: 30px;
    }
}




/* === ERSETZE in styles.css den gesamten bisherigen .single-container Block (inkl. aller zugehörigen Regeln wie .single-title, .featured-image usw.) durch diesen kompletten aktualisierten Block === */

/* Container für Einzelpost */
.single-container {
    max-width: 850px;
    margin: 0 auto 80px;
    padding: 40px 20px;
    background-color: #fff;
}

.single-container .post-category {
    margin: 0;
}

/* Titel */
.single-title {
    font-size: 3rem;
    line-height: 1.25;
    font-weight: 700;
    color: #222;
    margin: 20px 0 8px;
}

/* Datum + Uhrzeit unter dem Titel */
.post-meta {
    font-size: 1rem;
    color: #777;
    margin-bottom: 40px;
}

/* Vollbreites Bild-Container (randlos rechts + links) */
.image-full {
    width: calc(100% + 40px);   /* + 2 × 20 px Padding */
    margin-left: -20px;
    margin-right: -20px;
    overflow: hidden;
}

/* Featured Image + weitere Bilder im Content */
.featured-image,
.content-image {
    width: 100%;
    height: auto;
    display: block;
}

/* === ERSETZE in styles.css den gesamten bisherigen .image-meta Block 
     (inkl. .image-caption und .image-source) durch diesen starken, spezifischen Block === */

.image-meta,
.post-content .image-meta {
    margin: 12px 0 50px 20px;
}

/* Explizit alle Absätze in .image-meta zurücksetzen – auch wenn sie in .post-content liegen */
.image-meta p,
.post-content .image-meta p {
    margin-bottom: 4px !important;
    line-height: 1.4;
}

/* Letzter Absatz (die Quelle) soll keinen unteren Abstand mehr haben */
.image-meta .image-source,
.post-content .image-meta .image-source {
    margin-bottom: 0 !important;
}

.image-caption {
    font-size: 0.9rem;
    color: #444;
}

.image-source {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

/* Eigentlicher Artikel-Content */
.post-content {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333;
}

.post-content p {
    margin-bottom: 1.6em;
}

.post-content h2 {
    font-size: 1.6rem;
    margin: 2.2em 0 1em;
    color: #222;
}

/* Weitere Bilder im Content sollen ebenfalls randlos sein */
.post-content img {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 4px;
}

/* Tags */
.post-tags {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    background-color: #f5f5f5;
    color: #666;
    padding: 6px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag:hover {
    background-color: #7A378B;
    color: #fff;
}

/* Mobile Anpassungen */
@media (max-width: 640px) {
    .single-container {
        padding: 40px 15px;
    }
    
    .single-title {
        font-size: 2rem;
    }
    
    .image-full,
    .post-content img {
        width: calc(100% + 30px);
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .image-meta {
        margin-left: 15px;
    }
}





/* === CSS ERSETZEN (den gesamten aktuellen Footer-CSS-Block komplett durch diesen hier ersetzen) === */

.footer {
    background-color: #7A378B;
    color: #fff;
    padding: 45px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.footer .site-name {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

/* Responsive – auf Handy etwas kleiner */
@media (max-width: 640px) {
    .footer {
        padding: 35px 0;
    }
    
    .footer .site-name {
        font-size: 28px;
    }
}