/*
Theme Name: Nico Brodersen
Theme URI: https://nicobrodersen.de
Author: Für Nico Brodersen
Description: Klassisches Block-Theme für die Künstlerinnenseite von Nico Brodersen: Startseite mit kommenden Terminen, Portfolios für Zeichnungen, Aquarell und Ausstellungsansichten, Biografie, Ausstellungen und Kontaktformular. Nach der Aktivierung richtet „Design › Einrichtung“ Bilder, Seiten und Menü ein.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nico-brodersen
*/

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { height: auto; }
::selection { background: #141414; color: #fff; }

/* ---------- Kopf- und Fußbereich ---------- */
.nb-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.nb-header > .wp-block-group { padding-block: 1.75rem; gap: 1rem 2.5rem; }
.nb-header .wp-block-site-title a { color: var(--wp--preset--color--ink); }
.nb-header .wp-block-site-tagline { margin: 0.1rem 0 0; }
.nb-nav .wp-block-navigation-item__content { padding: 0.6rem 0.4rem; }
.nb-nav .current-menu-item > .wp-block-navigation-item__content { text-decoration: underline; text-underline-offset: 6px; }

.nb-footer { border-top: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--muted); font-size: 0.875rem; }
.nb-footer > .wp-block-group { padding-block: 1.5rem; gap: 0.6rem 1.75rem; }
.nb-footer a { color: var(--wp--preset--color--muted); }
.nb-footer p { margin: 0; }

/* ---------- Abschnitte ---------- */
.nb-section { padding-block: var(--wp--preset--spacing--60); }
.nb-section > * + * { margin-block-start: 1.75rem; }
.nb-tint { background: var(--wp--preset--color--tint); border-block: 1px solid var(--wp--preset--color--line); }
.nb-rule { border-top: 1px solid var(--wp--preset--color--line); }
.nb-hero { padding-block: var(--wp--preset--spacing--60); }
.nb-hero .wp-block-columns { gap: 3.5rem; }
.nb-lead { color: var(--wp--preset--color--body); max-width: 32em; margin-left: max(0px, calc((100% - 1200px) / 2)) !important; }
.nb-hero figure img { max-height: 680px; width: 100%; object-fit: contain; }
.nb-kicker { font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.nb-kicker a { color: var(--wp--preset--color--muted); }

/* Kopfzeile eines Abschnitts mit Link rechts */
.nb-section-head { gap: 0.75rem 2rem; }
.nb-section-head > * { margin: 0 !important; }
.nb-section-head + *, .nb-section > h2 + * { margin-block-start: 1.75rem !important; }

/* ---------- Portfolio-Karten ---------- */
.nb-cards { gap: 2.25rem; }
.nb-card figure { margin: 0 0 0.9rem; }
.nb-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--wp--preset--color--line); }
.nb-card .nb-card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; border-top: 1px solid var(--wp--preset--color--ink); padding-top: 0.75rem; margin: 0; }
.nb-card .nb-card-title a { font-family: var(--wp--preset--font-family--serif); font-size: 1.75rem; font-weight: 600; text-decoration: none; }
.nb-card .nb-card-title span { font-size: 0.875rem; color: var(--wp--preset--color--muted); }

/* ---------- Tabellen (Lebenslauf, Ausstellungen) ---------- */
.nb-table { margin: 0; }
.nb-table table { border-collapse: collapse; width: 100%; border-top: 1px solid var(--wp--preset--color--ink); }
.nb-table td, .nb-table th { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.85rem 1.5rem 0.85rem 0; vertical-align: top; text-align: left; }
.nb-table td:first-child { font-weight: 600; white-space: nowrap; width: 8.5rem; }
.nb-tint .nb-table td { border-bottom-color: #C9C9C6; }
.nb-table td:last-child { color: var(--wp--preset--color--muted); }
.nb-table.nb-cv td:last-child { color: inherit; }
@media (max-width: 640px) {
	.nb-table tr { display: grid; padding: 0.75rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
	.nb-table td { border: 0; padding: 0.1rem 0; width: auto !important; }
}

/* ---------- Galerien ---------- */
.wp-block-gallery.nb-gallery { display: block; columns: 3 280px; column-gap: 2.5rem; }
.wp-block-gallery.nb-gallery > figure.wp-block-image { width: 100% !important; margin: 0 0 2.5rem !important; break-inside: avoid; display: block; }
.wp-block-gallery.nb-gallery > figure.wp-block-image img { width: 100%; height: auto !important; border: 1px solid #ECECEC; }
.wp-block-gallery.nb-gallery > figure.wp-block-image figcaption.wp-element-caption {
	position: static; background: none; color: var(--wp--preset--color--ink); text-shadow: none;
	font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 1.375rem; line-height: 1.25;
	border-top: 1px solid var(--wp--preset--color--ink); margin-top: 0.75rem; padding: 0.6rem 0 0; text-align: left; max-height: none; overflow: visible;
}
.wp-block-gallery.nb-gallery > figure.wp-block-image figcaption::before { display: none; }
.wp-block-gallery.nb-views { gap: 1.25rem; }
.wp-block-gallery.nb-views > figure.wp-block-image { flex-grow: 0 !important; }
.wp-block-gallery.nb-views figure.wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--wp--preset--color--tint); }
.nb-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; border-top: 1px solid var(--wp--preset--color--ink); padding-top: 0.9rem; margin-top: 3rem !important; }
.nb-group-head h2 { font-size: 2.125rem; margin: 0; }
.nb-group-head p { margin: 0; color: var(--wp--preset--color--muted); font-size: 0.9375rem; }

/* Werkangaben neben einem Einzelwerk */
.nb-work-facts { border-top: 1px solid var(--wp--preset--color--ink); padding-top: 1rem; }
.nb-work-facts h2 { font-style: italic; font-size: 2.5rem; }

/* Unternavigation der Portfolios */
.nb-subnav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.9375rem; }
.nb-subnav strong a { text-decoration: none; }

/* Fußleiste der Portfolioseiten */
.nb-pager { padding-block: 2.5rem; }
.nb-pager p { margin: 0; }

/* ---------- Termine ---------- */
.nb-events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wp--preset--color--ink); }
.nb-events li { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0.4rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid #C9C9C6; align-items: baseline; }
.nb-events .nb-event-date { font-family: var(--wp--preset--font-family--serif); font-size: 1.625rem; font-weight: 600; line-height: 1.2; }
.nb-events .nb-event-title { display: flex; flex-direction: column; }
.nb-events .nb-event-title a { font-weight: 600; text-decoration: none; }
.nb-events .nb-event-type { color: var(--wp--preset--color--muted); font-size: 0.9375rem; }
.nb-events .nb-event-more { justify-self: start; }
* + .nb-events, * + .nb-events-empty { margin-block-start: 1.5rem !important; }
.nb-events-empty { border-top: 1px solid var(--wp--preset--color--ink); padding-top: 1.25rem; color: var(--wp--preset--color--body); }
.nb-event-facts { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.5rem; margin: 0 0 2rem; border-top: 1px solid var(--wp--preset--color--ink); padding-top: 1rem; }
.nb-event-facts dt { color: var(--wp--preset--color--muted); }
.nb-event-facts dd { margin: 0; }

/* ---------- Kontakt ---------- */
.nb-contact-facts { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.nb-contact-facts dt { color: var(--wp--preset--color--muted); }
.nb-contact-facts dd { margin: 0; }
.nb-form { display: flex; flex-direction: column; gap: 1rem; }
.nb-form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; }
.nb-form input[type="text"], .nb-form input[type="email"], .nb-form textarea {
	font: inherit; font-weight: 400; color: var(--wp--preset--color--ink); background: #fff;
	border: 1px solid #8A8A8A; border-radius: 0; padding: 0.75rem; width: 100%; box-sizing: border-box;
}
.nb-form input:focus, .nb-form textarea:focus { outline: 2px solid var(--wp--preset--color--ink); outline-offset: 2px; }
.nb-form button {
	align-self: flex-start; font: inherit; font-weight: 600; cursor: pointer;
	background: var(--wp--preset--color--ink); color: #fff; border: 1px solid var(--wp--preset--color--ink); padding: 0.8rem 1.5rem; min-height: 44px;
}
.nb-form button:hover { background: var(--wp--preset--color--body); }
.nb-form .nb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nb-form-note { font-size: 0.875rem; color: var(--wp--preset--color--muted); margin: 0; }
.nb-notice { padding: 0.9rem 1rem; border: 1px solid var(--wp--preset--color--ink); margin: 0 0 1rem; }
.nb-notice.is-error { border-color: #8E1B1B; color: #8E1B1B; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 781px) {
	.nb-hero .wp-block-columns { gap: 2rem; }
	.nb-header > .wp-block-group { padding-block: 1.25rem; }
}
