/* DGH-IT Struktur & Produkte (2026-11-06). Baut auf dgh-design.css auf, nutzt dessen Farben. */

/* Kleine Textbausteine */
.dgh-eyebrow {
	color: var(--dgh-cyan, #09ff10);
	font-family: var(--wp--preset--font-family--monospace, monospace);
	font-size: .82rem;
	letter-spacing: .08em;
	margin-bottom: .35rem !important;
	text-transform: uppercase;
}
.dgh-center { text-align: center; }
.dgh-lead { color: var(--dgh-muted, #c7d4df); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; }
.dgh-lead.dgh-center { margin-inline: auto; max-width: 46rem; }
.dgh-small { color: var(--dgh-muted, #c7d4df); font-size: .9rem; }
.dgh-trust { color: var(--dgh-muted, #c7d4df); font-size: .9rem; margin-top: .6rem !important; }
.dgh-trust::before { color: var(--dgh-cyan, #09ff10); content: "\2713\00a0"; font-weight: 700; }
.dgh-price { font-size: 1.05rem; margin-top: auto !important; }
.dgh-price strong { color: var(--dgh-cyan, #09ff10); font-size: 1.35em; }
.dgh-more a { font-weight: 600; }
.dgh-more a::after { content: "\00a0\2192"; }
.dgh-status {
	border: 1px solid var(--dgh-line-soft, rgba(142, 255, 147, .17));
	border-radius: 999px;
	display: inline-block;
	font-family: var(--wp--preset--font-family--monospace, monospace);
	font-size: .8rem;
	padding: .2rem .75rem;
}

/* Karten gleich hoch, Knöpfe unten bündig */
.dgh-products > .wp-block-column,
.dgh-features > .wp-block-column { display: flex; }
.dgh-products > .wp-block-column > .dgh-card,
.dgh-features > .wp-block-column > .dgh-card { display: flex; flex: 1; flex-direction: column; margin: 0; }
.dgh-card { text-align: left; }
.dgh-card > *, .dgh-product-hero .wp-block-column > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; }
.dgh-card > * { margin-block: 0 .75rem; }
.dgh-card > :last-child { margin-bottom: 0; }
.dgh-card h3, .dgh-card p { text-align: left !important; }
.dgh-card h3 { margin-top: 0; }
.dgh-products .dgh-card .wp-block-buttons { margin-bottom: 0; }

/* Haken-Liste */
.dgh-checks { list-style: none; margin-left: 0 !important; padding-left: 0 !important; }
.dgh-checks li { list-style: none; padding-left: 1.6rem !important; position: relative; }
.dgh-checks li + li { margin-top: .35rem; }
.dgh-checks li::before { color: var(--dgh-cyan, #09ff10); content: "\2713"; font-weight: 700; left: 0; position: absolute; }

/* Produkt-Band */
.dgh-products-band { padding-block: clamp(1rem, 3vw, 2rem); }
.dgh-products-band .dgh-products { margin-top: clamp(1rem, 3vw, 2rem); }

/* Produktseiten */
.dgh-product-hero { padding-block: clamp(.5rem, 2vw, 1.5rem); }
.dgh-hero-title { font-size: clamp(1.8rem, 4vw, 2.7rem) !important; line-height: 1.15; }
.dgh-hero-cols > .wp-block-column:last-child { align-self: center; flex-basis: 30% !important; text-align: center; }
.dgh-hero-cols > .wp-block-column:first-child { flex-basis: 70% !important; }
.dgh-app-icon img {
	border-radius: 26px 9px 30px 12px;
	box-shadow: 0 18px 46px rgba(0, 0, 0, .35), 0 0 0 1px rgba(9, 255, 16, .22);
	height: auto;
	max-width: 160px;
	width: 100% !important;
}
.dgh-hero-cols .dgh-app-icon { display: flex; justify-content: center; margin: 0; }
.dgh-steps { counter-reset: dgh-step; list-style: none; margin-left: 1rem !important; padding-left: 0 !important; }
.dgh-steps li {
	border-left: 2px solid rgba(9, 255, 16, .3);
	counter-increment: dgh-step;
	list-style: none;
	padding: .2rem 0 .9rem 2.2rem !important;
	position: relative;
}
.dgh-steps li::before {
	background: linear-gradient(135deg, var(--dgh-cyan, #09ff10), #7dff82);
	border-radius: 999px 8px 999px 8px;
	color: #041019;
	content: counter(dgh-step);
	font-weight: 700;
	height: 2rem;
	left: -1rem;
	line-height: 2rem;
	position: absolute;
	text-align: center;
	top: 0;
	width: 2rem;
}
.dgh-table table { border-collapse: collapse; width: 100%; }
.dgh-table th, .dgh-table td { border-bottom: 1px solid rgba(9, 255, 16, .16); padding: .7rem .6rem; text-align: left; vertical-align: top; }
.dgh-table thead th { color: var(--dgh-cyan, #09ff10); font-family: var(--wp--preset--font-family--monospace, monospace); font-size: .85rem; }
.dgh-faq .wp-block-details {
	border: 1px solid rgba(9, 255, 16, .18);
	border-radius: 18px 6px 20px 8px;
	margin-block: 0 .7rem;
	padding: .85rem 1.1rem;
}
.dgh-faq summary { cursor: pointer; font-weight: 600; }
.dgh-faq .wp-block-details[open] summary { color: var(--dgh-cyan, #09ff10); margin-bottom: .5rem; }
.dgh-doclist { columns: 2 16rem; padding-left: 1.2rem !important; }
.dgh-card .dgh-doclist { columns: 1; }
.dgh-anchor { scroll-margin-top: 6rem; }

/* Abstand zwischen Abschnitten der neuen Seiten */
.page-id-1279 .wp-block-post-content > * + *,
.page-id-1280 .wp-block-post-content > * + *,
.page-id-1281 .wp-block-post-content > * + *,
.page-id-607 .wp-block-post-content > * + * { margin-top: clamp(2rem, 5vw, 3.5rem); }
.page-id-607 .wp-block-columns > .wp-block-column { background: none; border: 0; padding: 0; }

/* Produkt-Hinweis unter Blogbeiträgen */
.dgh-post-products {
	border-top: 1px solid var(--dgh-line-soft, rgba(142, 255, 147, .17));
	margin-top: clamp(2rem, 5vw, 3.5rem);
	padding-top: clamp(1rem, 3vw, 2rem);
}

/* Navigation: Kontakt als Knopf, Untermenüs */
.site-header .dgh-nav-cta > .wp-block-navigation-item__content {
	background: linear-gradient(135deg, var(--dgh-cyan, #09ff10), #7dff82);
	border-radius: 999px 12px 999px 12px;
	color: #041019 !important;
	font-weight: 700;
	padding: .45rem 1.1rem !important;
}
.site-header .dgh-nav-cta > .wp-block-navigation-item__content:hover { background: var(--dgh-text, #f5efe7); color: #041019 !important; }
.site-header .wp-block-navigation__submenu-container { border-radius: 14px 6px 16px 6px; min-width: 15rem !important; padding: .4rem 0; }
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .55rem 1.1rem !important; }
.site-header .wp-block-navigation-item.has-child.dgh-nav-produkte > .wp-block-navigation-item__content { color: var(--dgh-cyan, #09ff10) !important; font-weight: 700; }

/* Fußzeile in Spalten */
.dgh-footer-cols { gap: clamp(1rem, 4vw, 3rem); }
.dgh-footer-cols h2 {
	color: var(--dgh-text, #f5efe7) !important;
	font-family: var(--wp--preset--font-family--monospace, monospace);
	font-size: .85rem !important;
	letter-spacing: .08em;
	margin-bottom: .6rem;
	text-transform: uppercase;
}
.dgh-footer-cols ul { list-style: none; margin: 0; padding: 0; }
.dgh-footer-cols li { margin: .3rem 0; }
.dgh-footer-bottom { border-top: 1px solid var(--dgh-line-soft, rgba(142, 255, 147, .17)); margin-top: 1.5rem !important; padding-top: 1rem; }

@media (max-width: 781px) {
	.dgh-hero-cols { flex-direction: column-reverse; }
	.dgh-hero-cols > .wp-block-column:last-child { text-align: left; }
	.dgh-hero-cols .dgh-app-icon { justify-content: flex-start; }
	.dgh-app-icon img { max-width: 88px; }
	.site-header .dgh-nav-cta > .wp-block-navigation-item__content { display: inline-block; margin-top: .5rem; }
}

/* Produkt-Band innerhalb der Leistungsseite ohne Abschnittslinie */
.page-id-602 .wp-block-post-content > .dgh-products-band { border-left: 0; padding-left: 0; }
@media (min-width: 600px) {
	.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { white-space: nowrap; }
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { text-align: center; width: 100%; }
.dgh-card .dgh-status { align-self: flex-start; width: fit-content; }

/* Bildschirmfotos der Produkte */
.dgh-shot img {
	border: 1px solid rgba(9, 255, 16, .22);
	border-radius: 18px 6px 20px 8px;
	box-shadow: 0 22px 50px rgba(0, 0, 0, .38);
	height: auto;
	width: 100%;
}
.dgh-shot figcaption { color: var(--dgh-muted, #c7d4df); font-size: .85rem; margin-top: .6rem; text-align: center; }
.dgh-shot-card { margin: 0 0 1rem !important; }
.dgh-shot-card img { border-radius: 14px 5px 16px 6px; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.dgh-shots { gap: clamp(1rem, 3vw, 2rem); margin-top: clamp(1.5rem, 4vw, 2.5rem); }

/* Nachprüfung 06.11.: Kontrast, Tabellen auf dem Handy, Kartenüberschriften */
.dgh-card .dgh-card-title { font-size: var(--wp--preset--font-size--large, 1.35rem) !important; margin-top: 0; }
.dgh-table thead th { background: rgba(9, 255, 16, .1) !important; color: var(--dgh-text, #f5efe7) !important; }
.rt-wpls .slick-prev, .rt-wpls .slick-next { background: #0f2751 !important; color: #ffffff !important; }
.rt-wpls .slick-prev::before, .rt-wpls .slick-next::before { color: #ffffff !important; opacity: 1 !important; }
@media (max-width: 781px) {
	.dgh-table { overflow-x: visible; }
	.dgh-table table { font-size: .88rem; min-width: 0; table-layout: auto; }
	.dgh-table th, .dgh-table td { hyphens: auto; overflow-wrap: normal; padding: .5rem .3rem; word-break: normal; }
	.dgh-table thead th { font-size: .68rem; letter-spacing: 0; }
}

/* Ansichten 06.11.: einheitlicher Umbruch des Menüs bis 782 px (vorher zwischen 600 und 782 px Menüknopf und volle Leiste gleichzeitig) */
@media (min-width: 600px) and (max-width: 782px) {
	.site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.site-header .wp-block-navigation__responsive-container.is-menu-open {
		align-items: center; bottom: 0; display: flex !important; flex-direction: column; left: 0; padding: 4.5rem 1.5rem 2rem;
		position: fixed; right: 0; top: 0; z-index: 100000;
	}
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: center; display: flex; flex-direction: column; width: 100%; }
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: center; flex-direction: column; gap: 1.2rem; }
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		border: 1px solid var(--dgh-line, rgba(9, 255, 16, .3)) !important; height: auto !important; opacity: 1 !important; overflow: visible !important;
		position: static !important; visibility: visible !important; width: auto !important;
	}
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle { display: none; }
	.site-header .wp-block-navigation__responsive-container-close { position: absolute; right: 1rem; top: 1rem; }
}

/* Schmale Handys: lange Wörter trennen statt seitlich überstehen */
@media (max-width: 480px) {
	.site-content p, .site-content li, .site-content h2, .site-content h3 { hyphens: auto; overflow-wrap: break-word; }
	.site-content .wp-block-group.is-vertical > * { max-width: 100%; min-width: 0; }
}

/* Nach-oben-Knopf nicht über den Rand hinaus, Bildschirmleser-Text sauber verstecken */
#wpfront-scroll-top-container { right: 12px !important; }
#wpfront-scroll-top-container .sr-only, #wpfront-scroll-top-container .screen-reader-text {
	clip: rect(0 0 0 0) !important; height: 1px !important; overflow: hidden !important; position: absolute !important; white-space: nowrap !important; width: 1px !important;
}

/* Preistabellen auf dem Handy als Karten statt breiter Tabelle */
@media (max-width: 600px) {
	.dgh-table, .dgh-table table, .dgh-table tbody, .dgh-table tr, .dgh-table td { display: block; width: 100%; }
	.dgh-table thead { clip: rect(0 0 0 0); height: 1px; overflow: hidden; position: absolute; width: 1px; }
	.dgh-table table { min-width: 0 !important; }
	.dgh-table tr {
		border: 1px solid rgba(9, 255, 16, .2); border-radius: 16px 6px 18px 6px; margin-bottom: .8rem; padding: .6rem .9rem;
		background: linear-gradient(145deg, rgba(15, 39, 81, .5), rgba(7, 16, 24, .76));
	}
	.dgh-table td { border: 0 !important; display: flex; font-size: .95rem; gap: 1rem; justify-content: space-between; padding: .3rem 0 !important; text-align: right; }
	.dgh-table td:first-child { color: var(--dgh-cyan, #09ff10); font-size: 1.1rem; justify-content: flex-start; text-align: left; }
	.dgh-table td::before { color: var(--dgh-muted, #c7d4df); content: attr(data-label); flex: 0 0 auto; font-size: .85rem; text-align: left; }
	.dgh-table td:first-child::before { content: none; }
}
