/* ====================.article-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 750px;
}=============================================
   Single Post Article Layout - Ralph Ammer Theme
   ========================================================================== */

/* Section Title */
.section-title {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.section-title-text {
    font-family: "Crimson Pro", serif;
    font-size: 2rem;
    font-weight: 100;
    color: #111;
    margin: 0;
    padding-left: 1rem;
    text-align: left;
}

.section-title-text a {
    color: inherit; /* Übernimmt die Farbe vom Parent (#111) */
    text-decoration: none !important; /* Entfernt Unterstreichung - forciert */
    transition: color 0.3s ease; /* Sanfte Farbübergänge */
}

.section-title-text a:hover {
    color: #555; /* Etwas heller beim Hover */
    text-decoration: none !important; /* Auch beim Hover keine Unterstreichung */
}

/* Article Container */
.article-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 850px;
}

/* Article Content Box - Only the main content gets white background */
.article-content-box {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Remove old article styling */
article {
    width: 100%;
}

/* Article Typography */
article h2 {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 2rem;
}

article h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

article h4 {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

article p {
    margin-bottom: 1rem;
}

/* Quote Styling */
.entry-content .wp-block-pullquote {
    /* border-left: 1px solid #666; */
    border-left: 2px #ccc solid !important;
    border-top: none !important;
    border-bottom: none !important;
    border-right: none !important;
    margin: 1.5rem 0 !important;
    padding: 0 0 0 1rem !important;
    font-size: 1rem !important;
}

.entry-content .wp-block-pullquote blockquote {
    font-style: italic !important;
    margin: 0.5rem 2rem !important;
    font-size: 1.5rem !important;
    text-align: left !important;
    padding: 0 !important;
}

.entry-content .wp-block-pullquote blockquote p {
    margin: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.01rem !important;
    color: #666 !important;
    font-size: 1.5rem !important;
}

.entry-content .wp-block-pullquote blockquote p::before {
    content: """ !important;
    margin-left: -0.6rem !important;
}

.entry-content .wp-block-pullquote blockquote p::after {
    content: """ !important;
}

.entry-content .wp-block-pullquote cite {
    font-size: 0.875rem !important;
    color: #999 !important;
    font-style: normal !important;
    text-transform: none !important;
    text-align: right !important;
    margin-top: 0.5rem !important;
    display: block !important;
}

.entry-content .wp-block-pullquote cite::before {
    content: "— " !important;
}

.entry-content .wp-block-pullquote cite a {
    text-decoration: none !important;
    color: #999 !important;
}

.entry-content .wp-block-pullquote cite a:hover {
    text-decoration: underline !important;
}

/* List Styling */
.entry-content ul,
.entry-content .wp-block-list {
    list-style-position: outside; /* Bulletpoints außerhalb des Textblocks */
  padding-left: 0; /* Entfernt die standardmäßige Einrückung der Liste */
  margin-left: 0em; /* Gibt Platz für die Bulletpoints links vom Text */
}

figcaption {
    font-size: 0.8rem;
    text-align: right;
    color: #666;
    margin: 0rem 2rem;
}

/* Image Styling */
article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.img-left {
    float: left;
    margin: 0 1rem 1rem 0;
    max-width: 50%;
}

.img-right {
    float: right;
    margin: 0 0 1rem 1rem;
    max-width: 50%;
}

.img-center {
    margin: 1rem auto;
    max-width: 80%;
}

.img-full {
    width: 100%;
    max-width: none;
    margin: 1rem 0;
}

.img-full-window {
    width: 100vw;
    max-width: none;
    margin: 1rem 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Clearfix for float problems */
article::after {
    content: "";
    display: table;
    clear: both;
}

/* Post Navigation */
.post-navigation {
    margin: 1rem 0;
    padding: 2rem; /* Same padding as article content */
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    width: 100%; /* Full width of container */
    box-sizing: border-box; /* Include padding in width calculation */
}

.post-nav-item {
    display: flex;
    align-items: center;
    width: 48%;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

/* --- Post-Navigation-Boxen gleiche Mindesthöhe --- */
.post-nav-item {
    min-height: 120px;
}

.post-nav-item.prev {
    margin-right: auto;
    justify-content: flex-start;
    text-align: left;
}

.post-nav-item.next {
    margin-left: auto;
    justify-content: flex-start;
    text-align: left;
}

.post-nav-item.prev img {
    order: -1;
    margin-right: 1rem;
}

.post-nav-item.next img {
    margin-left: 1rem;
}

.post-nav-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.post-nav-item span {
    font-family: "Crimson Pro", serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #444;
}

.post-nav-item:hover {
    border-color: #666;
    color: #666;
}

.post-nav-item:hover span {
    text-decoration: underline;
}

.post-nav-item:hover img {
    transform: scale(1.05);
}

.nav-arrow {
    display: flex;
    align-items: center;
    height: 1em;
}

.nav-arrow-left {
    order: -1;
}

.nav-arrow-right {
    order: 1;
}

/* --- SVG-Pfeile exakt vertikal mittig neben dem Linktext --- */
.post-nav-item {
    display: flex;
    align-items: center;
}
.post-nav-item .nav-arrow {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-top: -2px; /* Feintuning für optische Mitte */
}
.post-nav-item.prev .nav-arrow-left {
    margin-right: 0.75rem;
}
.post-nav-item.next .nav-arrow-right {
    margin-left: 0.75rem;
}

/* Wenn ein Link fehlt, bleibt die andere Seite leer */
.post-navigation .post-nav-item:empty {
    visibility: hidden;
    flex: 1;
}

/* --- Label über Titel in der Post-Navigation --- */
.post-nav-text {
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: start;
    min-height: 3.5em;
}
.post-nav-label {
    grid-row: 1;
    align-self: start;
}
.post-nav-text span {
    grid-row: 2;
    align-self: start;
}

.post-nav-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start;
    flex: 1;
}
.post-nav-label {
    min-height: 1.2em;
}

/* --- Labels in der Navigation immer auf gleicher Höhe --- */
.post-navigation {
    align-items: flex-start;
}
.post-nav-label {
    min-height: 1.2em;
    align-self: flex-start;
}

/* Comments Section */
.comments-section {
    margin-top: 2rem;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comments-section h3 {
    font-family: "Crimson Pro", serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #000;
}

.comments-section h4 {
    font-family: "Crimson Pro", serif;
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    color: #000;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 2rem;
}

.comments-list {
    margin-bottom: 2rem;
}

.comment {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: none;
}

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

.comment-author {
    font-family: "Crimson Pro", serif;
    font-weight: 600;
    font-size: 1rem;
    color: #000;
}

.comment-date {
    font-family: "Crimson Pro", serif;
    font-optical-sizing: auto;
    color: #999;
    font-weight: 300;
    font-style: normal;
    font-size: 1rem !important;
    line-height: 1rem;
    text-align: left;
    margin-top: 0rem;
    margin-bottom: 0.5rem;
}

/* Remove link styling from comment date */
.comment-date a {
    color: inherit;
    text-decoration: none;
}

.comment-date a:hover {
    color: inherit;
    text-decoration: none;
}

.comment-text {
    font-family: "Crimson Pro", serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.comment-text p{
    margin-bottom: 0rem;
}

/* Comment Replies */
.comment-replies {
    margin-top: 1rem;
}
.comment-reply-link {
    font-size: 0.75rem !important;
}

.comment-replies .comment {
    margin-left: 2rem;
    background-color: #ebebeb;
    border: 1px solid #d5d5d5;
}

/* Comment Form */
.comment-form {
    margin-top: 2rem;
}

/* Comment Form Notes */
.comment-notes,
.logged-in-as,
.must-log-in {
    font-family: "Crimson Pro", serif;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.logged-in-as a {
    color: #333;
    text-decoration: none;
}

.logged-in-as a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-family: "Crimson Pro", serif;
    font-size: 1rem;
    font-weight: 400;
    color: #000;
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    font-family: "Crimson Pro", serif;
    font-size: 1rem;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f0f0f0;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-family: "Crimson Pro", serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: #e8e8e8;
}

.form-group textarea {
    min-height: 120px;
}

.comment-form button[type="submit"],
.comment-form .submit-comment,
.comment-form input[type="submit"] {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ddd;
    border: 1.5px solid #333;
    border-radius: 12px;
    padding: 4px 16px;
    font-family: "Crimson Pro", serif;
    font-optical-sizing: auto;
    font-weight: 350;
    font-style: normal;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block;
}

.comment-form button[type="submit"]:hover,
.comment-form .submit-comment:hover,
.comment-form input[type="submit"]:hover {
    background-color: rgba(250, 250, 250, 0.7);
    color: black;
    border: 1.5px solid #333;
}

/* --- Post-Navigation exakt so breit wie Artikel und bündig ausgerichtet --- */
.article-content-box,
.post-navigation,
.comments-section {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}
.post-navigation {
    padding: 0;
    box-sizing: border-box;
}
.post-nav-item.prev {
    justify-content: flex-start;
    text-align: left;
}
.post-nav_item.next {
    justify-content: flex-start;
    text-align: left;
}

/* --- Styling für Previous/Next Label --- */
.post-nav-label {
    display: block;
    font-family: 'Crimson Pro', serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #888;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

/* --- Post-Navigation-Boxen immer gleich hoch --- */
.post-navigation {
    align-items: stretch;
}
.post-nav-item {
    height: 100%;
}

/* --- Textbreite im Artikel wie Primary Menu (680px) --- */
.article-content-box{
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .post-nav-item {
        width: 100%;
    }

    .post-nav-item.next {
        justify-content: flex-start;
        text-align: left;
    }

    .post-nav-item.next img {
        margin-left: 0;
        margin-right: 1rem;
    }

    .post-nav-item img {
        width: 50px;
        height: 50px;
    }

    .nav-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .comment-form .rounded-button {
        align-self: stretch;
    }

    .post-nav-item {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
    }

    .post-nav-item.prev img,
    .post-nav-item.next img {
        margin: 0.5rem 0;
    }

    .post-nav-item span {
        font-size: 0.9rem;
    }
}
