/*
Theme Name: Erdnetz
Theme URI: https://erdnetz.gmbh
Author: Erdnetz ID GmbH
Description: Block-Theme für die Website der Erdnetz ID GmbH – Planung, Vermessung, Dokumentation und Drohnendienstleistungen.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: erdnetz
*/

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }

/* Lange deutsche Wörter (z. B. „Drohnendienstleistungen“) auf dem Handy umbrechen */
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }

/* Überschriften in Seiteninhalten (Impressum, Datenschutz …) nicht größer als der Seitentitel */
.wp-block-post-content h1,
.wp-block-post-content h2 { font-size: var(--wp--preset--font-size--x-large) !important; }
.wp-block-post-content h3,
.wp-block-post-content h4 { font-size: var(--wp--preset--font-size--large) !important; }

/* Kopfbereich */
.erdnetz-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0);
	z-index: 50;
	background: var(--wp--preset--color--weiss);
	border-bottom: 1px solid var(--wp--preset--color--linie);
}
.erdnetz-logo { margin: 0; }
.erdnetz-logo img { height: 34px; width: auto; display: block; }
.erdnetz-wordmark { margin: 0; font-weight: 700; letter-spacing: .2em; font-size: 1.2rem; line-height: 1; }
.erdnetz-wordmark a { color: var(--wp--preset--color--anthrazit); text-decoration: none; }

/* Hero */
.erdnetz-hero {
	background-image: url(assets/netz.svg);
	background-size: cover;
	background-position: center right;
	border-bottom: 6px solid var(--wp--preset--color--rot);
}

/* Wärmebild-Video im Hero */
.erdnetz-hero { position: relative; overflow: hidden; isolation: isolate; }
.erdnetz-hero > .erdnetz-hero-video {
	position: absolute;
	inset: 0;
	z-index: -1;
	margin: 0 !important;
	max-width: none !important;
	width: 100%;
}
.erdnetz-hero-video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 75% 50%;
}
.erdnetz-hero-video::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(18, 18, 18, .94) 0%, rgba(18, 18, 18, .8) 40%, rgba(18, 18, 18, .2) 75%, rgba(18, 18, 18, .1) 100%);
}
@media (max-width: 781px) {
	.erdnetz-hero-video::after { background: rgba(18, 18, 18, .78); }
}

/* Dachzeile */
.erdnetz-kicker {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: .16em;
	font-weight: 700;
	font-size: .85rem;
	color: var(--wp--preset--color--rot-dunkel);
}
.has-dunkel-background-color .erdnetz-kicker,
.has-rot-dunkel-background-color .erdnetz-kicker { color: var(--wp--preset--color--rot); }
.has-rot-dunkel-background-color .erdnetz-kicker { color: var(--wp--preset--color--weiss); opacity: .85; }

/* Werte */
.erdnetz-wert h3::before {
	content: "";
	display: block;
	width: 2.5rem;
	height: 4px;
	margin-bottom: 1rem;
	background: var(--wp--preset--color--rot);
}

/* Karten */
.erdnetz-card {
	background: var(--wp--preset--color--weiss);
	border: 1px solid var(--wp--preset--color--linie);
	border-top: 4px solid var(--wp--preset--color--rot);
	border-radius: 6px;
	padding: 1.75rem;
}
.erdnetz-card.is-dark {
	background: #1b1b1b;
	border-color: #2f2f2f;
	border-top-color: var(--wp--preset--color--rot);
}
.erdnetz-card > * { margin-block: 0; }
.erdnetz-card > * + * { margin-top: .75rem; }
.erdnetz-card h3 { margin-top: 1rem; }
.erdnetz-icon { margin: 0; }
.erdnetz-mehr { font-weight: 700; font-size: .95rem; }
.erdnetz-mehr a { color: var(--wp--preset--color--rot); text-decoration: none; }
.erdnetz-mehr a:hover { text-decoration: underline; }
.erdnetz-icon img { width: 44px; height: 44px; display: block; }

/* Badges */
.erdnetz-badge {
	margin: 0;
	padding: .45rem 1rem;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	font-weight: 600;
	font-size: .9rem;
}
.erdnetz-badge::before {
	content: "";
	display: inline-block;
	width: .5rem;
	height: .5rem;
	margin-right: .55rem;
	border-radius: 50%;
	background: var(--wp--preset--color--rot);
	vertical-align: middle;
}

/* Einblicke (Fotos) */
.erdnetz-foto { margin: 0; }
.erdnetz-foto img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 6px;
}
.erdnetz-foto figcaption {
	margin-top: .75rem;
	font-size: .95rem;
	color: rgba(255, 255, 255, .75);
	text-align: left;
}

/* Ablauf-Schritte (Thermografie-Seite) */
.erdnetz-schritt {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--rot-dunkel);
	color: var(--wp--preset--color--weiss);
	font-weight: 800;
	font-size: 1.1rem;
}

/* Hinweis-Label „In Vorbereitung“ */
.erdnetz-label {
	display: inline-block;
	margin: 0;
	padding: .3rem .8rem;
	border-radius: 4px;
	background: var(--wp--preset--color--rot-dunkel);
	color: var(--wp--preset--color--weiss);
	font-weight: 700;
	font-size: .8rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* FAQ */
.erdnetz-faq .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--linie);
	padding: 1.1rem 0;
}
.erdnetz-faq summary { font-weight: 700; cursor: pointer; font-size: 1.1rem; }
.erdnetz-faq .wp-block-details > p { margin-top: .75rem; color: var(--wp--preset--color--grau); }

/* Kontakt */
.erdnetz-kontakt { border-top: 6px solid var(--wp--preset--color--rot); }
.erdnetz-kontakt a:not(.wp-element-button) { color: inherit; text-decoration: none; }
.erdnetz-kontakt a:not(.wp-element-button):hover { color: var(--wp--preset--color--rot-dunkel); }

/* Kontaktformular (Contact Form 7) */
.wpcf7-form p { margin: 0 0 1rem; }
.wpcf7-form label { display: block; font-weight: 600; font-size: .95rem; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: .35rem;
	padding: .75rem .9rem;
	border: 1px solid #cfccc6;
	border-radius: 4px;
	background: var(--wp--preset--color--weiss);
	font: inherit;
	color: inherit;
}
.wpcf7-form textarea { min-height: 9rem; resize: vertical; }
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--rot-dunkel);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--rot-dunkel);
}
.wpcf7-form .wpcf7-list-item { margin: 0; }
.wpcf7-form .wpcf7-list-item label { font-weight: 400; display: flex; gap: .6rem; align-items: flex-start; }
.wpcf7-form .wpcf7-list-item input { margin-top: .3rem; accent-color: var(--wp--preset--color--rot-dunkel); }
.wpcf7-form input[type="submit"] {
	padding: .9rem 1.6rem;
	border: 0;
	border-radius: 4px;
	background: var(--wp--preset--color--rot-dunkel);
	color: var(--wp--preset--color--weiss);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.wpcf7-form input[type="submit"]:hover { background: var(--wp--preset--color--anthrazit); }
.wpcf7-not-valid-tip { color: var(--wp--preset--color--rot-dunkel); font-size: .9rem; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .75rem 1rem; border-radius: 4px; }

/* Rechtstexte (Impressum, Datenschutz) */
.erdnetz-recht h2 { font-size: var(--wp--preset--font-size--large); margin-top: 2.5rem; }

/* Fußbereich */
.erdnetz-footer a { color: inherit; text-decoration: none; }
.erdnetz-footer a:hover { text-decoration: underline; }
.erdnetz-footer .erdnetz-logo img { height: 30px; }
