/* Zusätzliche Styles für Marlaa Clean – Inter-Edition */

/* Inter: optische Größenanpassung aktivieren */
* {
    font-optical-sizing: auto;
}

/* Runder Avatar/Logo */
.wp-block-site-logo img {
    border-radius: 50%;
}

/* Box-Shadow für Cards */
.wp-block-group[style*="shadow"] {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Entferne WordPress default margin-block-start in Cards */
.wp-block-post-template .wp-block-group.is-layout-constrained > .wp-block-post-date,
.wp-block-post-template .wp-block-group.is-layout-constrained > .wp-block-post-excerpt {
    margin-block-start: 0;
}

/* Abstand zwischen Titel und Meta */
.wp-block-post-template .wp-block-post-date {
    margin-top: var(--wp--preset--spacing--30);
}

/* Padding-top für Card-Content nur wenn kein Featured Image vorhanden */
.wp-block-post:not(:has(.wp-block-post-featured-image)) .wp-block-group[style*="padding-top:0"] {
    padding-top: var(--wp--preset--spacing--30) !important;
}

/* Kompakteres Grid */
.wp-block-post-template.is-flex-container {
    gap: 1.5rem !important;
}

/* Responsive Grid */
@media (max-width: 782px) {
    .wp-block-post-template.is-flex-container.columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 599px) {
    .wp-block-post-template.is-flex-container.columns-3 {
        grid-template-columns: 1fr !important;
    }
}

/* Link-Hover mit Unterstrich */
.wp-block-post-content a:hover:not(:has(img)) {
  border-bottom: 1px solid var(--wp--preset--color--accent);
}

/* Bessere Lesbarkeit */
.wp-block-post-content p {
    margin-bottom: 1em;
}

/* H1 mit Accent-Linie */
.wp-block-post-content h1 {
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--wp--preset--color--accent);
}

/* Blockquotes – Inter braucht weniger Neigung, daher leichte Anpassung */
.wp-block-post-content blockquote {
    border-left: 3px solid var(--wp--preset--color--accent);
    padding-left: 1.5rem;
    color: var(--wp--preset--color--contrast-2);
    font-weight: 400;
}

/* Code Blocks */
.wp-block-post-content code {
    background-color: #f9f7f3;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    border: 1px solid var(--wp--preset--color--border);
    font-size: 0.88em;
    font-family: 'ui-monospace', 'SFMono-Regular', 'Cascadia Code', monospace;
}

.wp-block-post-content pre {
    background-color: #f9f7f3;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 6px;
    padding: 1.2em;
}

.wp-block-post-content pre code {
    font-family: 'ui-monospace', 'SFMono-Regular', 'Cascadia Code', monospace;
}

/* Kommentare */
.wp-block-comments {
    font-family: var(--wp--preset--font-family--lexend);
}

.wp-block-comment-template .wp-block-avatar img {
    border-radius: 50%;
}

.wp-block-comment-content {
    font-size: var(--wp--preset--font-size--medium);
    line-height: 1.7;
}

/* Kommentar-Formular */
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 4px;
    padding: 0.7em;
    font-family: var(--wp--preset--font-family--lexend);
    font-size: var(--wp--preset--font-size--medium);
}

.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]):focus,
.wp-block-post-comments-form textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--accent);
}

.wp-block-post-comments-form input[type="submit"] {
    background-color: var(--wp--preset--color--accent-dark);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.7em 1.5em;
    font-family: var(--wp--preset--font-family--lexend);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wp-block-post-comments-form input[type="submit"]:hover {
    background-color: var(--wp--preset--color--accent);
}

/* Post Navigation */
.wp-block-post-navigation-link {
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 500;
}

.wp-block-post-navigation-link[rel="prev"]::before {
    content: "← ";
    margin-right: 0.25em;
}

.wp-block-post-navigation-link[rel="next"]::after {
    content: " →";
    margin-left: 0.25em;
}

/* Separator in Single Posts */
.single .wp-block-separator,
.page .wp-block-separator {
    border-color: var(--wp--preset--color--border);
    margin-top: var(--wp--preset--spacing--60);
    margin-bottom: var(--wp--preset--spacing--60);
}

/* ── Single-Post-Titel: größer als Card-Titel ── */
.single .wp-block-post-title,
.page .wp-block-post-title {
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
}

/* ── Card-Titel fetter ── */
h2.wp-block-post-title {
    font-weight: 700;
}



/* ── Post Meta (Datum, Autor) kleiner und dezenter ── */
.wp-block-post-date,
.wp-block-post-author-name {
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    font-weight: 400;
    color: var(--wp--preset--color--contrast-2);
}

/* ── Pagination Abstand nach oben ── */

.wp-block-query-pagination {
    margin-top: 3rem;
}

/* ── Mobile Menü Abstände ── */

.wp-block-navigation__responsive-container.is-menu-open {
    padding-top: var(--wp--preset--spacing--40);
    padding-right: var(--wp--preset--spacing--40);
    padding-bottom: var(--wp--preset--spacing--40);
    padding-left: var(--wp--preset--spacing--40);
}

/* ── Cards Mobile ── */

@media (max-width: 800px) {
    .wp-block-group.has-surface-background-color.has-background.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-4517bf3a.wp-block-group-is-layout-constrained {
		min-height: auto;
	}
}

/* ── Abstand ── */

.wp-block-embed {
	margin-block-start: var(--wp--preset--spacing--60);
}

/* ── Lexend hat kein italic ── */

em {
	font-style: normal;
	font-weight: 600;
}