/* =============================================================================
   nemione Blog Design
   Gleicht das Theme Björk an die nemione-Homepage (nemi.one) an.
   Farben und Formen stammen aus dem Webflow-CSS der Homepage.
   Überschriften nutzen Roboto Black statt Uni Neue (Lizenz gilt nicht für die Blogs).
   ============================================================================= */

/* ---------- Schrift: Roboto, lokal aus dem Plugin ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/roboto-300.woff") format("woff"); }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 300; font-display: swap; src: url("fonts/roboto-300i.woff") format("woff"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-400.woff") format("woff"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-700.woff") format("woff"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/roboto-900.woff") format("woff"); }

/* ---------- Farben der Homepage ---------- */
:root {
	--nemi-tuerkis: #2fa5bc;
	--nemi-tuerkis-dunkel: #1c7a8c;
	--nemi-dunkel: #003945;
	--nemi-hell: #ecf7f9;
	--nemi-linie: #e3e6e8;
	--nemi-text: #111111;
	--nemi-text-leise: #5c7c84;
	--nemi-ecke: 3px 16px 3px 3px;      /* Schaltflächen: obere rechte Ecke betont */
	--nemi-ecke-gross: 4px 36px 4px 4px; /* Flächen und Karten */

	--wp--preset--color--primary: #2fa5bc;
	--wp--preset--color--secondary: #5c7c84;
	--wp--preset--color--tertiary: #e3e6e8;
	--wp--preset--color--quaternary: #ecf7f9;
	--wp--preset--color--foreground: #111111;
	--wp--preset--color--background: #ffffff;
}

/* ---------- Grundlage ---------- */
body {
	background-color: #ffffff !important;
	color: var(--nemi-text);
	font-family: "Roboto", Arial, sans-serif !important;
	font-size: 18px;
	font-weight: 300;
	letter-spacing: 0;
	line-height: 1.6;
}

body strong, body b { font-weight: 700; }

body h1, body h2, body h3, body h4, body h5, body h6,
body .wp-block-post-title, body .wp-block-site-title {
	color: var(--nemi-dunkel);
	font-family: "Roboto", Arial, sans-serif;
	font-weight: 900;
	letter-spacing: -0.01em;
	line-height: 1.2;
	text-wrap: balance;
}

body a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
body a:hover { color: var(--nemi-tuerkis-dunkel); }

body ::selection { background: var(--nemi-tuerkis); color: #fff; }

/* ---------- Schaltflächen ---------- */
body .wp-element-button,
body .wp-block-button__link,
body input[type="submit"] {
	background-color: var(--nemi-tuerkis);
	border: 0;
	border-radius: var(--nemi-ecke);
	color: #ffffff;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0;
	padding: 0.75em 1.5em;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

body .wp-element-button:hover,
body .wp-block-button__link:hover,
body input[type="submit"]:hover {
	background-color: var(--nemi-dunkel);
	color: #ffffff;
}

body .wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	border: 2px solid var(--nemi-dunkel);
	color: var(--nemi-dunkel);
}

body a:focus-visible, body button:focus-visible {
	outline: 2px solid var(--nemi-tuerkis);
	outline-offset: 3px;
}

/* ---------- Seitenleiste (Desktop) ---------- */
body .site-sidebar > .wp-block-group.is-vertical {
	gap: 1.75rem;
	justify-content: flex-start;
}

body .site-sidebar .wp-block-image.is-resized img:not([style*="40px"]) {
	height: auto;
	margin-left: -14px; /* Leerraum im Logo-Bild ausgleichen */
	width: 210px !important;
}

body .site-sidebar nav.wp-block-navigation {
	border-top: 1px solid var(--nemi-linie);
	padding-top: 1.5rem;
	width: 100%;
}

body .site-sidebar .wp-block-navigation .wp-block-navigation__container { gap: 0.15rem; }

body .site-sidebar .wp-block-navigation-item__content {
	color: var(--nemi-dunkel);
	font-size: 17px;
	font-weight: 400;
	padding: 0.25em 0;
	text-decoration: none;
}

body .site-sidebar .wp-block-navigation-item__content:hover,
body .site-sidebar .current-menu-item > .wp-block-navigation-item__content {
	color: var(--nemi-tuerkis-dunkel);
}

body .site-sidebar .current-menu-item > .wp-block-navigation-item__content { font-weight: 700; }

/* Unterpunkte (Produkte): eingerückt mit Linie */
body .site-sidebar .wp-block-navigation-item.has-tiny-font-size {
	border-left: 2px solid var(--nemi-linie);
	padding-left: 0.9em;
}

body .site-sidebar .wp-block-navigation-item.has-tiny-font-size .wp-block-navigation-item__content {
	color: var(--nemi-text-leise);
	font-size: 15px;
	font-weight: 300;
	padding: 0.15em 0;
}

body .site-sidebar .wp-block-navigation-item.has-tiny-font-size .wp-block-navigation-item__content:hover { color: var(--nemi-tuerkis-dunkel); }

body .site-sidebar .wp-block-social-links .wp-social-link { color: var(--nemi-dunkel); }
body .site-sidebar .wp-block-social-links .wp-social-link:hover { color: var(--nemi-tuerkis); }

/* ---------- Kopfzeile (Mobil) ---------- */
body .site-header .wp-block-site-title a {
	color: var(--nemi-dunkel);
	text-decoration: none;
}

body .site-header .wp-block-navigation__responsive-container-open,
body .site-header .wp-block-navigation__responsive-container-close { color: var(--nemi-dunkel); }

body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--nemi-dunkel);
	font-weight: 400;
}

/* ---------- Startseite: Begrüßungsfläche ---------- */
body main > .wp-block-cover {
	background-color: var(--nemi-hell);
	border-radius: var(--nemi-ecke-gross);
	min-height: 0 !important;
	padding: clamp(28px, 4vw, 56px) !important;
}

body main > .wp-block-cover .wp-block-cover__background { background-color: transparent !important; }

body main > .wp-block-cover h1.has-extra-large-font-size,
body main > .wp-block-cover .has-secondary-color {
	color: var(--nemi-tuerkis-dunkel) !important;
	font-size: 20px !important;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0 0 0.6em;
}

body main > .wp-block-cover h1.has-heading-2-font-size {
	color: var(--nemi-text);
	font-size: clamp(30px, 3.2vw, 46px) !important;
	margin: 0;
	max-width: 22em;
}

/* ---------- Startseite: Beitragsliste als Karten ---------- */
body ul.wp-block-latest-posts__list.wp-block-latest-posts[class] {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	list-style: none;
	margin-top: 40px;
	padding: 0;
}

body ul.wp-block-latest-posts__list.wp-block-latest-posts[class] > li {
	background: #ffffff;
	border: 1px solid var(--nemi-linie);
	border-radius: var(--nemi-ecke-gross);
	display: flex;
	flex-direction: column;
	margin: 0 !important;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: auto !important;
}

body ul.wp-block-latest-posts__list.wp-block-latest-posts[class] > li:hover {
	border-color: var(--nemi-tuerkis);
	box-shadow: 0 8px 24px rgba(0, 57, 69, 0.08);
}

body ul.wp-block-latest-posts__list.wp-block-latest-posts[class] .wp-block-latest-posts__featured-image {
	background: var(--nemi-hell);
	margin: 0;
	order: -1;
}

body ul.wp-block-latest-posts__list.wp-block-latest-posts[class] .wp-block-latest-posts__featured-image a { display: block; }

body ul.wp-block-latest-posts__list.wp-block-latest-posts[class] .wp-block-latest-posts__featured-image img {
	display: block;
	height: 200px !important; /* wie im Archiv: Bild vollständig zeigen, nicht beschneiden */
	max-width: none;
	object-fit: contain;
	width: 100% !important;
}

body ul.wp-block-latest-posts__list.wp-block-latest-posts[class] a.wp-block-latest-posts__post-title {
	color: var(--nemi-dunkel);
	display: block;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	padding: 22px 26px 0;
	text-decoration: none;
}

body ul.wp-block-latest-posts__list.wp-block-latest-posts[class] a.wp-block-latest-posts__post-title:hover { color: var(--nemi-tuerkis-dunkel); }

body ul.wp-block-latest-posts__list.wp-block-latest-posts[class] .wp-block-latest-posts__post-excerpt {
	color: var(--nemi-text-leise);
	font-size: 15.5px;
	line-height: 1.6;
	margin: 0;
	padding: 12px 26px 26px;
}

body ul.wp-block-latest-posts__list.wp-block-latest-posts[class] a.wp-block-latest-posts__read-more {
	color: var(--nemi-tuerkis-dunkel);
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-top: 14px;
	text-decoration: none;
}

body ul.wp-block-latest-posts__list.wp-block-latest-posts[class] a.wp-block-latest-posts__read-more:hover { text-decoration: underline; }

/* ---------- Archiv / Kategorie: Karten ---------- */
body .wp-block-query .wp-block-post-template.is-layout-grid { gap: 28px; }

body .wp-block-query .wp-block-post-template > li.wp-block-post {
	background: #ffffff;
	border: 1px solid var(--nemi-linie);
	border-radius: var(--nemi-ecke-gross);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body .wp-block-query .wp-block-post-template > li.wp-block-post:hover {
	border-color: var(--nemi-tuerkis);
	box-shadow: 0 8px 24px rgba(0, 57, 69, 0.08);
}

body .wp-block-query .wp-block-post .wp-block-post-featured-image {
	background: var(--nemi-hell);
	margin: 0 !important;
}

body .wp-block-query .wp-block-post .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

body .wp-block-query .wp-block-post > .wp-block-group {
	margin: 0 !important;
	padding: 20px 24px 24px;
}

body .wp-block-query .wp-block-post .wp-block-post-date {
	color: var(--nemi-tuerkis-dunkel) !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

body .wp-block-query .wp-block-post h2.wp-block-post-title {
	font-size: 19px !important;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
	margin: 0.35em 0 0;
}

body .wp-block-query .wp-block-post h2.wp-block-post-title a {
	color: var(--nemi-dunkel);
	text-decoration: none;
}

body .wp-block-query .wp-block-post h2.wp-block-post-title a:hover { color: var(--nemi-tuerkis-dunkel); }

body .wp-block-query-pagination { border-top: 1px solid var(--nemi-linie); padding-top: 28px; }

body .wp-block-query-pagination a,
body .wp-block-query-pagination .page-numbers {
	color: var(--nemi-dunkel);
	font-weight: 700;
	text-decoration: none;
}

body .wp-block-query-pagination a:hover,
body .wp-block-query-pagination .page-numbers.current { color: var(--nemi-tuerkis-dunkel); }

/* ---------- Einzelner Beitrag ---------- */
body h1.wp-block-post-title {
	color: var(--nemi-text);
	font-size: clamp(30px, 3.4vw, 48px) !important;
}

body .wp-block-post-featured-image img { border-radius: var(--nemi-ecke-gross); }

body .wp-block-post-content { font-size: 18px; }

body .wp-block-post-content h2 { font-size: clamp(26px, 2.4vw, 34px); margin: 1.6em 0 0.6em; }
body .wp-block-post-content h3 { font-size: clamp(21px, 1.9vw, 26px); font-weight: 700; margin: 1.5em 0 0.5em; }
body .wp-block-post-content h4 { font-size: 20px; font-weight: 700; margin: 1.4em 0 0.5em; }

body .wp-block-post-content a:not(.wp-element-button) {
	color: var(--nemi-tuerkis-dunkel);
	font-weight: 400;
	text-decoration: underline;
}

body .wp-block-post-content a:not(.wp-element-button):hover { color: var(--nemi-dunkel); }

body .wp-block-post-content img,
body .wp-block-post-content .wp-block-embed__wrapper iframe,
body .wp-block-post-content video { border-radius: 4px; }

body .wp-block-post-content blockquote,
body .wp-block-post-content .wp-block-quote {
	background: var(--nemi-hell);
	border: 0;
	border-left: 4px solid var(--nemi-tuerkis);
	border-radius: 0 20px 0 0;
	margin-left: 0;
	margin-right: 0;
	padding: 1.2em 1.5em;
}

body .wp-block-post-content table { border-collapse: collapse; font-size: 16px; }
body .wp-block-post-content th { background: var(--nemi-dunkel); color: #fff; font-weight: 700; text-align: left; }
body .wp-block-post-content th,
body .wp-block-post-content td { border: 1px solid var(--nemi-linie); padding: 0.6em 0.9em; }
body .wp-block-post-content tbody tr:nth-child(even) td { background: #f7fbfc; }

body .wp-block-post-content figcaption,
body .wp-element-caption { color: var(--nemi-text-leise); font-size: 14px; }

/* Kategorie und Schlagwörter */
body .wp-block-post-terms { color: var(--nemi-text-leise); font-size: 14px; line-height: 2.3; }

body .taxonomy-post_tag.wp-block-post-terms { color: transparent; font-size: 0; }

body .taxonomy-post_tag.wp-block-post-terms a {
	background: var(--nemi-hell);
	border-radius: 3px 10px 3px 3px;
	color: var(--nemi-dunkel);
	display: inline-block;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	margin: 0 6px 8px 0;
	padding: 4px 10px;
	text-decoration: none;
}

body .taxonomy-post_tag.wp-block-post-terms a:hover { background: var(--nemi-tuerkis); color: #fff; }

body .taxonomy-category.wp-block-post-terms a { color: var(--nemi-tuerkis-dunkel); font-weight: 700; text-decoration: none; }

/* Vorheriger / nächster Beitrag */
body .wp-block-post-navigation-link a {
	color: var(--nemi-dunkel) !important;
	font-weight: 700;
	text-decoration: none;
}

body .wp-block-post-navigation-link a:hover { color: var(--nemi-tuerkis-dunkel) !important; }

body hr.wp-block-separator {
	background: var(--nemi-linie) !important;
	border: 0;
	color: var(--nemi-linie) !important;
	height: 1px;
}

/* ---------- Kommentare und Formulare ---------- */
body input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body textarea,
body select {
	border: 1px solid #c9d3d6;
	border-radius: 3px;
	font-family: "Roboto", Arial, sans-serif;
	font-weight: 300;
}

body input:focus, body textarea:focus, body select:focus {
	border-color: var(--nemi-tuerkis);
	outline: 2px solid rgba(47, 165, 188, 0.25);
}

/* ---------- Fußzeile ---------- */
body .site-footer > .wp-block-group {
	border-top: 1px solid var(--nemi-linie);
	color: var(--nemi-text-leise);
	font-size: 14px;
	margin-top: 56px;
	padding-top: 24px !important;
}

body .site-footer strong { color: var(--nemi-dunkel); }
body .site-footer .theme-credit { display: none !important; }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	body { font-size: 17px; }
	body ul.wp-block-latest-posts__list.wp-block-latest-posts[class] { grid-template-columns: 1fr; }
	body main > .wp-block-cover { border-radius: 4px 24px 4px 4px; }
}

@media (prefers-reduced-motion: reduce) {
	body * { transition: none !important; }
}
