/* Nick & Sielker – Hero, Inhalt, Seitenmenü, Tabellen, Buttons, Formulare */

.site-main {
	flex: 1 0 auto;
}

/* Hero */
.ns-hero {
	position: relative;
	overflow: hidden;
}

.ns-hero__img {
	display: block;
	width: 100%;
	height: auto;
}

.ns-hero__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(to top, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.45));
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	animation: ns-slide-up 0.7s ease 0.4s both;
}

.ns-hero__slogan {
	margin: 0;
	padding: 20px 0 20px 20px;
	border-left: 3px solid var(--ns-olive);
	font-family: var(--ns-font-head);
	font-size: 2.125rem;
	font-weight: 300;
	letter-spacing: 0.12em;
	line-height: 1.35;
	text-transform: uppercase;
}

@keyframes ns-slide-up {
	from {
		opacity: 0;
		transform: translateY(100%);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 1199.98px) {
	.ns-hero__slogan {
		font-size: 1.625rem;
	}
}

@media (max-width: 979.98px) {
	.ns-hero__slogan {
		font-size: 1.125rem;
	}
}

@media (max-width: 767.98px) {
	.ns-hero__img {
		min-height: 150px;
		object-fit: cover;
		object-position: left center;
	}

	.ns-hero__slogan {
		padding: 8px 0 6px;
		font-size: 0.875rem;
	}
}

/* Inhaltsbereich */
.ns-content {
	padding-top: 48px;
	padding-bottom: 96px;
}

.ns-content > .ns-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}

@media (min-width: 992px) {
	.ns-content > .ns-layout--sidebar {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 56px;
	}
}

/* Sidebar (Seitenmenü + Kontakt) */
.ns-sidebar {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.ns-article {
	animation: ns-fade-in 0.6s ease both;
}

@media (min-width: 768px) {
	.ns-article {
		padding: 56px 64px;
		border-left: 3px solid var(--ns-olive);
		background: #fff;
		box-shadow: var(--ns-shadow-md);
	}
}

@keyframes ns-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.page-header {
	margin: 0 0 28px;
}

.page-title {
	margin: 8px 0 0;
	padding: 0 0 14px;
	font-size: 2rem;
	font-weight: 400;
	letter-spacing: 0.01em;
	border-bottom: 1px solid var(--ns-line);
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content h2 {
	margin-top: 2.25rem;
}

.entry-content h3 {
	margin-top: 1.5rem;
	font-size: 1.25rem;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.5rem 1.5rem;
	padding-left: 0;
}

.entry-content li {
	margin: 0 0 0.4rem;
	padding: 0;
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

.entry-content figure {
	margin: 0 0 1.25rem;
}

.entry-content a:not(.wp-element-button):hover {
	text-decoration: underline;
}

.entry-meta {
	margin: 0;
	color: var(--ns-muted);
	font-size: 0.875rem;
}

/* Bereichs-Hintergrundmotiv (unten links im Content) */
.ns-section-wirtschaftspruefung .ns-content,
.ns-section-steuerberatung .ns-content,
.ns-section-rechtsberatung .ns-content {
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 203px auto;
}

.ns-section-wirtschaftspruefung .ns-content {
	background-image: url("../images/section-wirtschaftspruefung.png");
}

.ns-section-steuerberatung .ns-content {
	background-image: url("../images/section-steuerberatung.png");
}

.ns-section-rechtsberatung .ns-content {
	background-image: url("../images/section-rechtsberatung.png");
}

/* Seitenmenü */
.ns-section-nav {
	background: #fff;
	box-shadow: var(--ns-shadow-md);
}

.ns-section-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ns-section-nav__list li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--ns-line);
}

.ns-section-nav__list li:last-child {
	border-bottom: 0;
}

.ns-section-nav__list a {
	position: relative;
	display: block;
	padding: 13px 40px 13px 14px;
	border-left: 3px solid transparent;
	color: var(--ns-text);
	font-size: 0.9375rem;
	line-height: 1.4;
	text-transform: uppercase;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ns-section-nav__list a::after {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 8px;
	height: 8px;
	border: solid currentcolor;
	border-width: 2px 2px 0 0;
	content: "";
	transform: translateY(-50%) rotate(45deg);
	transition: right 0.2s ease;
}

.ns-section-nav__list a:hover {
	color: var(--ns-olive);
	border-left-color: var(--ns-olive);
	background: var(--ns-light);
}

.ns-section-nav__list a:hover::after {
	right: 12px;
}

.ns-section-nav__list .current_page_item {
	border-left-color: var(--ns-olive);
	color: var(--ns-olive);
	background: var(--ns-light);
	font-weight: 600;
}

/* Kontakt-Sidebar */
.ns-contact-sidebar {
	flex: 1 1 auto;
	background: #fff;
	box-shadow: var(--ns-shadow-md);
}

.ns-contact-sidebar__widgets {
	padding: 24px 24px 20px;
}

.ns-contact-sidebar__widgets .ns-widget + .ns-widget {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid var(--ns-line);
}

.ns-contact-sidebar .ns-widget__title,
.ns-contact-sidebar h2,
.ns-contact-sidebar h3 {
	margin: 0 0 20px;
	color: var(--ns-heading);
	font-size: 1.125rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ns-contact-sidebar .wp-block-image {
	margin: 0 0 16px;
}

.ns-contact-sidebar .wp-block-image img {
	max-width: 180px;
	height: auto;
}

.ns-contact-sidebar p {
	margin: 0 0 12px;
	font-size: 0.9rem;
	line-height: 1.6;
}

/* Kontakt-Einträge: Icon + Titel, darunter Tel/E-Mail mit Icons */
.ns-contact-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ns-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.ns-contact-item__icon {
	flex: 0 0 44px;
}

.ns-contact-item__icon img {
	display: block;
	width: 44px;
	height: auto;
}

.ns-contact-item__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ns-contact-item__title {
	color: var(--ns-heading);
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ns-contact-item .ns-ct-line {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ns-text);
	font-size: 0.875rem;
	line-height: 1.5;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ns-contact-item .ns-ct-line:hover {
	color: var(--ns-olive);
}

.ns-ct-line::before {
	content: "";
	flex: none;
	width: 15px;
	height: 15px;
	background-color: var(--ns-olive);
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
}

.ns-ct-line--tel {
	--icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik0yMiAxNi45MnYzYTIgMiAwIDAgMS0yLjE4IDIgMTkuNzkgMTkuNzkgMCAwIDEtOC42My0zLjA3IDE5LjUgMTkuNSAwIDAgMS02LTYgMTkuNzkgMTkuNzkgMCAwIDEtMy4wNy04LjY3QTIgMiAwIDAgMSA0LjExIDJoM2EyIDIgMCAwIDEgMiAxLjcyYy4xMjcuOTYuMzYxIDEuOTAzLjcgMi44MWEyIDIgMCAwIDEtLjQ1IDIuMTFMOC4wOSA5LjkxYTE2IDE2IDAgMCAwIDYgNmwxLjI3LTEuMjdhMiAyIDAgMCAxIDIuMTEtLjQ1Yy45MDcuMzM5IDEuODUuNTczIDIuODEuN0EyIDIgMCAwIDEgMjIgMTYuOTJ6Ii8+PC9zdmc+");
}

.ns-ct-line--mail {
	--icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxyZWN0IHg9IjIiIHk9IjQiIHdpZHRoPSIyMCIgaGVpZ2h0PSIxNiIgcng9IjIiLz48cGF0aCBkPSJtMjIgNy0xMCA2TDIgNyIvPjwvc3ZnPg==");
}

.ns-contact-sidebar__map {
	position: relative;
	padding: 20px 24px 24px;
}

.ns-contact-map {
	position: relative;
	overflow: hidden;
	height: 260px;
	background: var(--ns-line);
}

/* Vollbreite Karte auf der Kontakt-Seite (wie auf der Karriere-Seite) */
.ns-contact-page__map {
	margin: 0 0 1.5rem;
}

.ns-contact-page__map .ns-contact-map {
	height: 420px;
}

.ns-contact-page__map .ns-contact-map__frame {
	height: 448px; /* +28 px Überlauf, um die OSM-Attribution unten zu beschneiden */
}

/* Kontaktseite: nur die große Karte im Inhalt zeigen, Sidebar-Karte ausblenden */
.ns-section-kontakt-anfahrt .ns-contact-sidebar__map {
	display: none;
}

/* Sidebar-Karte: kompaktere Facade (kleinerer Text, Marker ganz oben) */
.ns-contact-sidebar__map .ns-contact-map__image {
	object-position: center 8%;
}

.ns-contact-sidebar__map .ns-contact-map__placeholder {
	gap: 4px;
	padding: 10px 14px 12px;
}

.ns-contact-sidebar__map .ns-contact-map__address {
	font-size: 0.75rem;
}

.ns-contact-sidebar__map .ns-contact-map__load {
	margin-top: 4px;
	padding: 6px 14px;
	font-size: 0.6875rem;
}

.ns-contact-sidebar__map .ns-contact-map__note {
	font-size: 0.625rem;
	line-height: 1.4;
}

.ns-contact-map__frame {
	display: block;
	width: 100%;
	height: 288px; /* etwas höher als der Rahmen; unten beschnitten, um die OSM-Attribution auszublenden */
	border: 0;
}

/* Karten-Facade: Platzhalter + „Karte laden“ (Click-to-load, DSGVO) */
.ns-contact-map__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	padding: 16px 20px 20px;
	text-align: center;
	overflow: hidden;
	background: linear-gradient(180deg, #f7f7f5 0%, #efefec 100%);
	border: 1px solid var(--ns-line);
}

.ns-contact-map__placeholder[hidden],
.ns-contact-map__frame[hidden] {
	display: none;
}

/* Vorschaubild: vollflächig als Hintergrund; Marker mittig-oben im Rahmen */
.ns-contact-map__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 12%;
}

/* Overlay nur im unteren Bereich, damit die Karte oben frei sichtbar bleibt */
.ns-contact-map__placeholder::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 34%, rgba(255, 255, 255, 0.35) 55%, rgba(255, 255, 255, 0) 72%);
	content: "";
	pointer-events: none;
}

/* Inhalte (Adresse, Button, Hinweis) über dem Bild, im unteren Bereich */
.ns-contact-map__address,
.ns-contact-map__load,
.ns-contact-map__note,
.ns-contact-map__external,
.ns-contact-map__pin {
	position: relative;
	z-index: 1;
}

.ns-contact-map__pin {
	display: block;
	color: var(--ns-olive);
	line-height: 0;
}

.ns-contact-map__pin-icon {
	width: 44px;
	height: 44px;
}

.ns-contact-map__address {
	margin: 0;
	color: var(--ns-heading);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	text-shadow: 0 1px 0 #fff;
}

.ns-contact-map__load {
	margin-top: 6px;
	padding: 8px 18px;
	border: 1px solid var(--ns-olive);
	border-radius: 0;
	color: #fff;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	background: var(--ns-olive);
	box-shadow: 0 2px 8px rgba(23, 25, 30, 0.18);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.ns-contact-map__load:hover {
	color: var(--ns-olive);
	background: #fff;
}

.ns-contact-map__note {
	margin: 6px 0 0;
	color: var(--ns-muted);
	font-size: 0.6875rem;
	line-height: 1.5;
	max-width: 340px;
	text-shadow: 0 1px 0 #fff;
}

.ns-contact-map__external {
	color: var(--ns-olive);
	font-size: 0.75rem;
}

.entry-content table,
.wp-block-table table {
	width: 100%;
	max-width: 100%;
	margin-bottom: 1.25rem;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 8px;
	border: 1px solid var(--ns-line);
	text-align: left;
	vertical-align: top;
}

.entry-content thead th {
	background: #fafafa;
	font-weight: 600;
}

.entry-content tbody tr:nth-child(odd) {
	background: #f6f6f5;
}

.entry-content td p,
.entry-content th p {
	margin: 0;
}

/* Download-Tabelle (Block-Style „Download“ und Klasse ns-downloads) */
.ns-downloads td:first-child,
.is-style-ns-download td:first-child {
	position: relative;
	padding-left: 44px;
}

.ns-downloads td:first-child::before,
.is-style-ns-download td:first-child::before {
	position: absolute;
	top: 50%;
	left: 12px;
	width: 20px;
	height: 24px;
	border: 2px solid var(--ns-olive);
	border-radius: 2px;
	content: "";
	transform: translateY(-50%);
}

.ns-downloads td:first-child::after,
.is-style-ns-download td:first-child::after {
	position: absolute;
	top: 50%;
	left: 12px;
	width: 20px;
	color: var(--ns-olive);
	font-size: 0.5rem;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	content: "PDF";
	transform: translateY(-40%);
}

.ns-downloads td:last-child,
.ns-downloads th:last-child,
.is-style-ns-download td:last-child,
.is-style-ns-download th:last-child {
	width: 160px;
	text-align: center;
}

/* Buttons */
.wp-block-button .wp-block-button__link,
.ns-button,
.entry-content input[type="submit"],
.ns-article button[type="submit"] {
	display: inline-block;
	padding: 13px 28px;
	border: 1px solid var(--ns-olive);
	border-radius: 0;
	color: #fff;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	background: var(--ns-olive);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wp-block-button .wp-block-button__link::after,
.ns-button::after {
	margin-left: 0.5em;
	content: "\203A";
}

.wp-block-button .wp-block-button__link:hover,
.ns-button:hover,
.entry-content input[type="submit"]:hover,
.ns-article button[type="submit"]:hover {
	border-color: var(--ns-olive);
	color: var(--ns-olive);
	background: transparent;
}

/* Formulare (Basis, z. B. für ein später ergänztes Kontaktformular) */
.entry-content label {
	display: block;
	margin-bottom: 4px;
	font-weight: 400;
}

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="url"],
.entry-content input[type="search"],
.entry-content input[type="number"],
.entry-content select,
.entry-content textarea,
.ns-article input[type="search"] {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid var(--ns-line);
	border-radius: 0;
	color: var(--ns-text);
	font: inherit;
	font-size: 1rem;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.entry-content textarea {
	min-height: 200px;
}

.entry-content input:focus,
.entry-content select:focus,
.entry-content textarea:focus,
.ns-article input[type="search"]:focus {
	border-color: var(--ns-olive);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(99, 113, 31, 0.16);
}

.ns-article .ns-search {
	max-width: 420px;
}

.ns-article .ns-search__field {
	margin: 0;
	padding-right: 40px;
}

/* Suchergebnis-Liste */
.ns-excerpt {
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ns-line);
}

.ns-excerpt__title {
	margin-bottom: 0.25em;
	font-size: 1.125rem;
}

.navigation.pagination {
	margin-top: 24px;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.navigation.pagination .page-numbers {
	padding: 8px 15px;
	border: 1px solid var(--ns-line);
	border-radius: 0;
	background: #fff;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.navigation.pagination a.page-numbers:hover {
	border-color: var(--ns-olive);
	color: var(--ns-olive);
}

.navigation.pagination .current {
	border-color: var(--ns-olive);
	color: #fff;
	background: var(--ns-olive);
}
