/*
Theme Name: EDV-Service Bach
Theme URI: https://www.edv-service-bach.de/
Author: EDV-Service Bach
Author URI: https://www.edv-service-bach.de/
Description: Eigenständiges WordPress-Theme für EDV-Service Bach, den IT-Lotsen in Ostfriesland.
Version: 1.0.10
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: edv-service-bach
Domain Path: /languages
Tags: one-column, custom-logo, custom-menu, featured-images, block-patterns, accessibility-ready
*/

:root {
	--color-navy: #0b2438;
	--color-sea: #2f718c;
	--color-sand: #e8ddc7;
	--color-red: #b4473a;
	--color-white: #ffffff;
	--color-ink: #263238;
	--color-mist: #f6f8f7;
	--shadow: 0 18px 44px rgba(11, 36, 56, 0.13);
	--radius: 8px;
	--max: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 92px;
}

body {
	margin: 0;
	color: var(--color-ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 18px;
	line-height: 1.6;
	background: var(--color-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
	letter-spacing: 0;
}

h1,
h2,
h3 {
	color: var(--color-navy);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.12;
	margin: 0 0 0.7em;
}

h1 {
	color: var(--color-white);
	font-size: clamp(2.4rem, 7vw, 5.25rem);
	max-width: 930px;
}

h2 {
	font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
	font-size: 1.35rem;
}

a {
	color: var(--color-sea);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--color-red);
}

img {
	display: block;
	height: auto;
	max-width: 100%;
}

:focus-visible {
	outline: 3px solid var(--color-red);
	outline-offset: 4px;
}

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	z-index: 10000;
	top: 12px;
	left: 12px;
	padding: 0.8rem 1rem;
	background: var(--color-white);
	color: var(--color-navy);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.container {
	width: min(calc(100% - 2rem), var(--max));
	margin-inline: auto;
}

.container--narrow {
	max-width: 820px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid rgba(11, 36, 56, 0.1);
	backdrop-filter: blur(12px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	width: min(calc(100% - 2rem), 1320px);
	min-height: 82px;
	margin-inline: auto;
}

.site-brand {
	flex: 0 0 210px;
}

.site-brand img {
	width: 210px;
}

.primary-navigation {
	display: flex;
	flex: 1;
	justify-content: center;
}

.menu,
.footer-links {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu a {
	color: var(--color-navy);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
}

.menu a:hover {
	color: var(--color-red);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.header-phone {
	color: var(--color-navy);
	font-weight: 600;
	white-space: nowrap;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.72rem 1rem;
	border: 2px solid currentColor;
	border-radius: var(--radius);
	background: transparent;
	color: var(--color-navy);
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
}

.button--primary {
	border-color: var(--color-red);
	background: var(--color-red);
	color: var(--color-white);
}

.button--primary:hover {
	border-color: var(--color-navy);
	background: var(--color-navy);
	color: var(--color-white);
}

.button--light {
	border-color: rgba(255, 255, 255, 0.8);
	color: var(--color-white);
}

.button--light:hover {
	background: var(--color-white);
	color: var(--color-navy);
}

.menu-toggle {
	display: none;
	width: 48px;
	height: 48px;
	border: 2px solid var(--color-navy);
	border-radius: var(--radius);
	background: var(--color-white);
}

.menu-toggle span:not(.screen-reader-text) {
	display: block;
	width: 22px;
	height: 2px;
	margin: 5px auto;
	background: var(--color-navy);
}

.hero {
	position: relative;
	overflow: hidden;
	min-height: calc(100vh - 82px);
	background: var(--color-navy);
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__overlay {
	position: relative;
	z-index: 1;
	display: grid;
	min-height: calc(100vh - 82px);
	align-items: center;
	padding: 5rem 0;
	background: linear-gradient(90deg, rgba(11, 36, 56, 0.9), rgba(11, 36, 56, 0.62) 54%, rgba(11, 36, 56, 0.2));
}

.hero__content {
	color: var(--color-white);
}

.hero__content p {
	max-width: 760px;
}

.hero__lead {
	font-size: clamp(1.3rem, 2.2vw, 1.8rem);
	font-weight: 700;
}

.eyebrow {
	margin: 0 0 0.8rem;
	color: var(--color-red);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.hero .eyebrow {
	color: var(--color-sand);
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin: 2rem 0;
}

.hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	padding: 0;
	margin: 2rem 0 0;
	list-style: none;
}

.hero__facts li,
.trust-grid span,
.stamp {
	border: 1px solid rgba(255, 255, 255, 0.36);
	border-radius: 999px;
	padding: 0.55rem 0.8rem;
	background: rgba(255, 255, 255, 0.12);
	color: var(--color-white);
	font-weight: 600;
}

.hero__facts a {
	color: var(--color-white);
}

.trust-band {
	background: var(--color-navy);
	color: var(--color-white);
}

.trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	padding: 1rem 0;
}

.trust-grid span {
	display: grid;
	place-items: center;
	min-height: 76px;
	text-align: center;
}

.section {
	padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--sand {
	background: var(--color-sand);
}

.section--blue {
	background: var(--color-navy);
	color: var(--color-white);
}

.section--blue h2,
.section--blue h3,
.section--blue .eyebrow {
	color: var(--color-white);
}

.section-intro {
	max-width: 760px;
	margin-bottom: 2.4rem;
}

.card-grid,
.benefit-grid,
.price-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.service-card,
.benefit-grid article,
.price-card,
.contact-card,
.region-card,
.post-summary {
	border-radius: var(--radius);
	background: var(--color-white);
	box-shadow: var(--shadow);
}

.service-card,
.benefit-grid article,
.price-card,
.contact-card,
.region-card,
.post-summary {
	padding: 1.3rem;
}

.service-card ul,
.check-list {
	display: grid;
	gap: 0.45rem;
	padding-left: 1.1rem;
	margin: 0;
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.split--image {
	align-items: start;
}

.check-list li::marker {
	color: var(--color-red);
}

.compact {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefit-grid {
	grid-template-columns: repeat(4, 1fr);
	margin-top: 2rem;
}

.price-grid {
	grid-template-columns: repeat(2, 1fr);
}

.price-card table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.price-card th,
.price-card td {
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(11, 36, 56, 0.12);
	text-align: left;
	vertical-align: top;
}

.price-card td:last-child,
.price-card th:last-child {
	text-align: right;
	font-weight: 600;
}

.price-note {
	max-width: 900px;
	margin-top: 1.3rem;
	color: rgba(255, 255, 255, 0.85);
}

.stamp {
	display: inline-flex;
	background: var(--color-red);
	border-color: var(--color-red);
}

.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	padding: 0;
	list-style: none;
	counter-reset: steps;
}

.steps li {
	position: relative;
	padding: 4.2rem 1.1rem 1.1rem;
	border: 1px solid rgba(11, 36, 56, 0.12);
	border-radius: var(--radius);
	background: var(--color-mist);
	counter-increment: steps;
}

.steps li::before {
	content: counter(steps);
	position: absolute;
	top: 1rem;
	left: 1rem;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--color-sea);
	color: var(--color-white);
	font-weight: 700;
}

.steps span {
	display: block;
	margin-top: 0.45rem;
}

.profile-image {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.region-card {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.8rem;
	background: linear-gradient(135deg, var(--color-sea), var(--color-navy));
	color: var(--color-white);
}

.region-card span {
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--radius);
	padding: 0.8rem;
	text-align: center;
	font-weight: 600;
}

.faq-list {
	display: grid;
	gap: 0.8rem;
}

details {
	border: 1px solid rgba(11, 36, 56, 0.12);
	border-radius: var(--radius);
	background: var(--color-white);
}

summary {
	padding: 1rem;
	color: var(--color-navy);
	font-weight: 700;
	cursor: pointer;
}

details p {
	padding: 0 1rem 1rem;
	margin: 0;
}

.contact-form {
	display: grid;
	gap: 1rem;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

label {
	display: grid;
	gap: 0.35rem;
	color: var(--color-navy);
	font-weight: 600;
}

input,
select,
textarea {
	width: 100%;
	min-height: 48px;
	border: 2px solid rgba(11, 36, 56, 0.2);
	border-radius: var(--radius);
	padding: 0.7rem 0.8rem;
	background: var(--color-white);
	color: var(--color-ink);
	font: inherit;
}

textarea {
	resize: vertical;
}

.privacy-check {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-weight: 400;
	line-height: 1.45;
	max-width: 760px;
}

.privacy-check input {
	flex: 0 0 22px;
	width: 22px;
	min-width: 22px;
	min-height: 22px;
	margin-top: 0.2rem;
}

.privacy-check span {
	display: block;
	min-width: 0;
	overflow-wrap: anywhere;
}

.privacy-check a {
	white-space: normal;
}

.hp-field {
	position: absolute;
	left: -10000px;
}

.form-message {
	padding: 1rem;
	border-radius: var(--radius);
	font-weight: 600;
}

.form-message--success {
	background: #d8efe3;
	color: #0f5132;
}

.form-message--error {
	background: #f5d6d3;
	color: #842029;
}

.contact-card {
	align-self: start;
}

.site-footer {
	padding: 3rem 0;
	background: var(--color-navy);
	color: var(--color-white);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1.1fr repeat(3, 1fr);
	gap: 2rem;
	width: min(calc(100% - 2rem), var(--max));
	margin-inline: auto;
}

.site-footer h2 {
	color: var(--color-white);
	font-size: 1.2rem;
}

.site-footer a,
.site-footer button {
	color: var(--color-white);
}

.footer-brand img {
	width: 220px;
	padding: 0.6rem;
	border-radius: var(--radius);
	background: var(--color-white);
}

.footer-links {
	display: grid;
	gap: 0.5rem;
}

.footer-cookie-link {
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.content-page h1 {
	color: var(--color-navy);
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 650;
}

.content-page {
	font-weight: 400;
}

.content-page p,
.content-page li {
	max-width: 72ch;
}

.cookie-panel {
	position: fixed;
	z-index: 2000;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(11, 36, 56, 0.62);
}

.cookie-panel[hidden] {
	display: none;
}

.cookie-panel__box {
	position: relative;
	width: min(100%, 640px);
	padding: 1.5rem;
	border-radius: var(--radius);
	background: var(--color-white);
	box-shadow: var(--shadow);
}

.cookie-panel__box h2 {
	font-size: 1.7rem;
}

.cookie-panel form {
	display: grid;
	gap: 0.8rem;
}

.cookie-panel label {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.cookie-panel input {
	width: 22px;
	min-width: 22px;
	min-height: 22px;
}

.cookie-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 0.7rem;
}

.cookie-panel__close {
	position: absolute;
	top: 0.7rem;
	right: 0.7rem;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: var(--color-mist);
	color: var(--color-navy);
	font-size: 1.6rem;
	cursor: pointer;
}

.cookie-panel__meta {
	font-size: 0.95rem;
	color: #52616a;
}

@media (max-width: 1180px) {
	.site-header__inner {
		flex-wrap: wrap;
		padding: 0.65rem 0;
	}

	.primary-navigation {
		order: 3;
		flex-basis: 100%;
		justify-content: flex-start;
	}

	.menu {
		flex-wrap: wrap;
	}
}

@media (max-width: 820px) {
	html {
		scroll-padding-top: 74px;
	}

	body {
		font-size: 17px;
	}

	.site-header__inner {
		min-height: 74px;
	}

	.site-brand {
		flex-basis: 170px;
	}

	.site-brand img {
		width: 170px;
	}

	.menu-toggle {
		display: block;
	}

	.primary-navigation {
		justify-content: flex-end;
		order: 0;
		flex: 0 0 auto;
		margin-left: auto;
	}

	.menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		padding: 1rem;
		background: var(--color-white);
		border-top: 1px solid rgba(11, 36, 56, 0.12);
		box-shadow: var(--shadow);
	}

	.menu.is-open {
		display: grid;
	}

	.menu a {
		display: block;
		min-height: 44px;
		padding: 0.4rem 0;
	}

	.header-actions {
		flex-basis: 100%;
		justify-content: space-between;
	}

	.hero,
	.hero__overlay {
		min-height: auto;
	}

	.hero__overlay {
		padding: 4rem 0;
		background: linear-gradient(90deg, rgba(11, 36, 56, 0.94), rgba(11, 36, 56, 0.74));
	}

	.trust-grid,
	.card-grid,
	.benefit-grid,
	.price-grid,
	.steps,
	.split,
	.site-footer__inner,
	.form-grid {
		grid-template-columns: 1fr;
	}

	.compact {
		grid-template-columns: 1fr;
	}

	.price-card table,
	.price-card thead,
	.price-card tbody,
	.price-card tr,
	.price-card th,
	.price-card td {
		display: block;
	}

	.price-card thead {
		position: absolute;
		left: -10000px;
	}

	.price-card tr {
		padding: 0.8rem 0;
		border-bottom: 1px solid rgba(11, 36, 56, 0.12);
	}

	.price-card td {
		border: 0;
		padding: 0.15rem 0;
	}

	.price-card td:last-child {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}


/* Price cards sit on a dark section; keep their own content readable. */
.price-card {
	color: var(--color-ink);
}

.section--blue .price-card h3,
.price-card th {
	color: var(--color-navy);
}

.price-card td,
.price-card p {
	color: var(--color-ink);
}
