/*
Theme Name: DTM
Theme URI: https://technologiemanufakturen.de
Author: DTM Deutsche Technologie Manufakturen GmbH
Description: Block-Theme im DTM-Corporate-Design (Weiß, Dunkelgrau, drei Kupfertöne, Archivo und Source Serif 4). Seiten entstehen aus nummerierten Modulen unter Muster › DTM Module. Assistenzen und Fallbeispiele kommen aus dem Plugin „DTM Inhalte“.
Version: 1.1.0
Requires at least: 7.0
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: dtm
*/

/* Grundlagen */
body { -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, .wp-block-heading) { font-stretch: 108%; text-wrap: balance; }
:where(h1, h2, h3) em { font-family: var(--wp--preset--font-family--source-serif); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -0.01em; color: var(--wp--preset--color--akzent); }
a:where(:not(.wp-element-button)) { text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:where(:not(.wp-element-button)):hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--wp--preset--color--text); outline-offset: 3px; }
.wp-element-button { display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; box-sizing: border-box; }
.wp-block-button.is-style-outline > .wp-element-button { background: transparent; color: var(--wp--preset--color--text); border-color: currentColor; }
.wp-block-button.is-style-outline > .wp-element-button:hover { background: var(--wp--preset--color--flaeche); }

/* Textstile */
.dtm-label { font-size: var(--wp--preset--font-size--label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--akzent); line-height: 1.4; margin-block-end: 0; }
.dtm-label.dtm-leise { color: var(--wp--preset--color--text-2); font-size: .6875rem; }
.dtm-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.58; color: var(--wp--preset--color--text-2); max-width: 38rem; }
.dtm-text-2 { color: var(--wp--preset--color--text-2); }
.dtm-klein { font-size: .875rem; line-height: 1.45; color: var(--wp--preset--color--text-2); margin: 0; }
.dtm-motto { font-family: var(--wp--preset--font-family--source-serif); font-style: italic; font-size: 1.5rem; line-height: 1.25; color: var(--wp--preset--color--akzent); margin: 0; }
.dtm-nummer { font-family: var(--wp--preset--font-family--source-serif); font-style: italic; font-size: 2.125rem; line-height: 1; color: var(--wp--preset--color--akzent); margin: 0; }
.dtm-mehr a, .wp-block-read-more { font-weight: 600; }
.dtm-mehr a::after, .wp-block-read-more::after { content: " →"; }

/* Module: Abstände und Flächen (Grundeinstellungen je Modul) */
.wp-site-blocks > * + * { margin-block-start: 0; }
:where(.wp-block-post-content, main.wp-block-group) > .dtm-modul { margin-block: 0; }
.dtm-modul.dtm-m02 { padding-top: var(--wp--preset--spacing--50); }
.dtm-label + .wp-block-buttons { margin-block-start: .75rem; }
.dtm-modul { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.dtm-modul.dtm-eng-oben { padding-top: var(--wp--preset--spacing--40); }
.dtm-modul.dtm-eng-unten { padding-bottom: var(--wp--preset--spacing--40); }
.dtm-modul.dtm-ohne-oben { padding-top: 0; }
.dtm-modul.dtm-ohne-unten { padding-bottom: 0; }
.dtm-modul > * + * { margin-block-start: var(--wp--preset--spacing--50); }
.is-style-dtm-flaeche { background: var(--wp--preset--color--flaeche); }
.is-style-dtm-dunkel { background: var(--wp--preset--color--band); color: var(--wp--preset--color--band-text); }
.is-style-dtm-dunkel :where(h1, h2, h3) { color: var(--wp--preset--color--band-text); }
.is-style-dtm-dunkel :where(h1, h2, h3) em, .is-style-dtm-dunkel .dtm-label, .is-style-dtm-dunkel .dtm-nummer, .is-style-dtm-dunkel a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--band-akzent); }
.is-style-dtm-dunkel :where(.dtm-text-2, .dtm-lead, .dtm-klein, .dtm-label.dtm-leise) { color: var(--wp--preset--color--band-text-2); }
.is-style-dtm-dunkel .wp-element-button { background: var(--wp--preset--color--band-akzent); color: #2D2C2B; }
.is-style-dtm-dunkel .wp-element-button:hover { background: #E6AE86; }
.is-style-dtm-dunkel :focus-visible { outline-color: var(--wp--preset--color--band-akzent); }
.is-style-dtm-kupfer { background: var(--wp--preset--color--cta); color: var(--wp--preset--color--cta-text); }
.is-style-dtm-kupfer :where(h1, h2, h3, h2 em, h1 em, .dtm-label, .dtm-lead, p, a) { color: var(--wp--preset--color--cta-text); }
.is-style-dtm-kupfer .wp-element-button { background: var(--wp--preset--color--cta-btn); color: var(--wp--preset--color--cta-btn-text); }
.is-style-dtm-kupfer .is-style-outline > .wp-element-button { background: transparent; color: var(--wp--preset--color--cta-text); border-color: currentColor; }
.is-style-dtm-kupfer :focus-visible { outline-color: var(--wp--preset--color--cta-text); }

/* M01 Kopf */
.dtm-kopf { border-bottom: 1px solid var(--wp--preset--color--linie); background: var(--wp--preset--color--grund); }
.dtm-kopf__inner { min-height: 80px; gap: 2rem; }
.dtm-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--wp--preset--color--text); text-decoration: none; }
.dtm-logo svg { width: 36px; height: auto; flex-shrink: 0; }
.dtm-logo__wort { font-weight: 800; font-stretch: 108%; font-size: 30px; line-height: 1; letter-spacing: .01em; }
.dtm-logo__desk { font-size: 12px; line-height: 1.3; color: var(--wp--preset--color--text-2); margin-left: 10px; }
.dtm-nav a { padding: 12px 0; }
@media (max-width: 1100px) { .dtm-kopf .dtm-logo__desk, .dtm-kopf .wp-block-buttons.dtm-kopf__cta { display: none; } .dtm-nav .wp-block-navigation__container { gap: 1.5rem; } }
@media (max-width: 781px) { .dtm-kopf__inner { min-height: 64px; } }

/* Kopfzeile eines Moduls (Überschrift links, Text rechts) */
.dtm-kopfzeile { gap: 1.5rem 4rem; align-items: flex-end; }
.dtm-kopfzeile > .wp-block-column:first-child > * + * { margin-block-start: 1.25rem; }
.dtm-klein.dtm-kontaktzeile { margin-top: 1.25rem; font-size: .9375rem; }

/* Karten und Raster */
.dtm-karte { border: 1px solid var(--wp--preset--color--linie); border-radius: 8px; padding: 1.75rem; background: var(--wp--preset--color--grund); gap: .75rem; }
.is-style-dtm-flaeche .dtm-karte { background: var(--wp--preset--color--grund); }
.dtm-einstieg { background: var(--wp--preset--color--flaeche); }
.dtm-einstieg .dtm-mehr { margin-top: auto; }
.is-style-dtm-dunkel .dtm-karte { background: var(--wp--preset--color--band-flaeche); border-color: var(--wp--preset--color--band-linie); }
.dtm-raster { gap: 1.5rem; }
.dtm-grundsatz { border-top: 1px solid var(--wp--preset--color--linie); padding-top: 1.75rem; gap: 1rem; }
.dtm-grundsatz svg, .dtm-schritt svg { display: block; }
.wp-block-post-template.is-layout-grid { gap: 1.5rem; }
.wp-block-post-template > li { display: flex; min-width: 0; }
.wp-block-post-template > li > .dtm-karte { flex: 1; }

/* Piktogramme */
.dtm-pikto { color: var(--wp--preset--color--text); }
.is-style-dtm-dunkel .dtm-pikto { color: var(--wp--preset--color--band-text); }
.dtm-pikto svg { width: 40px; height: 40px; }

/* Werksausweis */
.dtm-ausweis { border: 1px solid var(--wp--preset--color--linie); border-radius: 8px; overflow: hidden; background: var(--wp--preset--color--grund); gap: 0; }
.dtm-ausweis__kopf { position: relative; background: var(--wp--preset--color--band); padding: 12px 20px; gap: 1rem; }
.dtm-ausweis__kopf .dtm-label { color: var(--wp--preset--color--band-text-2); font-size: .6875rem; }
.dtm-ausweis__kopf .dtm-ausweis__nr { color: var(--wp--preset--color--band-akzent); font-weight: 600; font-size: .8125rem; letter-spacing: .06em; margin: 0; }
.dtm-ausweis:not(.dtm-kompakt) .dtm-ausweis__kopf::after { content: ""; position: absolute; left: 50%; top: 9px; width: 40px; height: 6px; margin-left: -20px; border-radius: 3px; background: var(--wp--preset--color--grund); opacity: .9; }
.dtm-ausweis__inhalt { padding: 1.5rem; gap: 1rem; }
.dtm-ausweis__wer { gap: 14px; align-items: center; }
.dtm-ausweis__wer h3 { font-size: 1.3125rem; margin: 0; overflow-wrap: anywhere; hyphens: auto; }
.dtm-ausweis__bild { width: 64px; height: 64px; border-radius: 6px; background: var(--wp--preset--color--flaeche); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--wp--preset--color--text); }
.dtm-ausweis > *, .dtm-ausweis__inhalt > *, .dtm-person > *, .dtm-person__inhalt > * { align-self: stretch; }
.dtm-feld { border-top: 1px solid var(--wp--preset--color--linie); padding-top: 12px; gap: 4px; }
.dtm-feld > p { margin: 0; }
.dtm-ausweis.dtm-kompakt .dtm-ausweis__inhalt { padding: 1.125rem 1.25rem; }
.dtm-ausweis.dtm-kompakt .dtm-ausweis__bild { width: 52px; height: 52px; }
.dtm-chips { gap: .625rem; align-items: center; }
.dtm-chips > p:not(.dtm-label) { margin: 0; border: 1px solid var(--wp--preset--color--linie); border-radius: 6px; padding: .4rem .875rem; font-size: .9375rem; }
.dtm-m04 .wp-block-post-content > .dtm-ausweis { height: 100%; }

/* Einpass-Sequenz und Schritte */
.dtm-schritt { gap: 1rem; }
.dtm-schritt .dtm-einpass { color: var(--wp--preset--color--text); }
.dtm-schritt .dtm-einpass svg { width: 120px; height: auto; }
.dtm-schritt__titel { gap: .875rem; align-items: baseline; }
.dtm-schritt__titel h3 { margin: 0; }

/* Listen */
.dtm-liste { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.dtm-liste li { position: relative; padding-left: 2rem; }
.dtm-liste li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box; border: 1.6px solid currentColor; }
.dtm-liste.dtm-ja li::before { border-color: var(--wp--preset--color--band-akzent); background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4 L4.8 9 L10 3.6' fill='none' stroke='%23E09A68' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.dtm-liste.dtm-nein li { color: var(--wp--preset--color--band-text-2); }
.dtm-liste.dtm-nein li::before { background: linear-gradient(currentColor, currentColor) no-repeat center/8px 1.9px; }
.dtm-liste.dtm-punkte li { padding-left: 1.4rem; }
.dtm-liste.dtm-punkte li::before { width: 8px; height: 8px; top: .65em; border: 0; background: #B8744E; }

/* Fräsung und Kupferknoten (höchstens ein Knoten pro Ansicht) */
.dtm-fraesung:not(figure), :is(.wp-block-image, .wp-block-post-featured-image).dtm-fraesung img { --r: 56px; -webkit-mask: radial-gradient(circle var(--r) at 100% 0, transparent calc(var(--r) - .5px), #000 var(--r)); mask: radial-gradient(circle var(--r) at 100% 0, transparent calc(var(--r) - .5px), #000 var(--r)); }
.dtm-fraesung.dtm-r40:not(figure), :is(.wp-block-image, .wp-block-post-featured-image).dtm-fraesung.dtm-r40 img { --r: 40px; }
.dtm-knoten { position: relative; --r: 56px; }
.dtm-knoten.dtm-r40 { --r: 40px; }
.dtm-knoten::after, .dtm-fall-raster .wp-block-post-template > li:first-child .wp-block-post-featured-image::after { content: ""; position: absolute; top: calc(var(--r) * -0.13); right: calc(var(--r) * -0.24); width: calc(var(--r) * 0.74); height: calc(var(--r) * 0.74); border-radius: 50%; background: #B8744E; pointer-events: none; }
.dtm-fall-raster .wp-block-post-template > li:first-child .wp-block-post-featured-image { position: relative; --r: 40px; }
:is(.wp-block-image, .wp-block-post-featured-image).dtm-foto { margin: 0; }
:is(.wp-block-image, .wp-block-post-featured-image).dtm-foto img { width: 100%; height: 240px; object-fit: cover; border-radius: 8px 8px 0 0; display: block; filter: grayscale(1) sepia(.12); }
.dtm-foto.dtm-rund img { border-radius: 8px; }
.dtm-foto.dtm-hoch img { height: clamp(280px, 34vw, 460px); }
.dtm-foto.dtm-mittel img { height: clamp(240px, 28vw, 380px); }
.dtm-foto.dtm-quadrat img { height: auto; aspect-ratio: 1; }

/* Leitstand */
.dtm-leitstand { background: var(--wp--preset--color--flaeche); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.dtm-leitstand__kopf { display: flex; align-items: center; gap: 12px; padding-right: 56px; color: var(--wp--preset--color--text); }
.dtm-leitstand__kopf b { display: block; font-size: 15px; }
.dtm-leitstand__kopf small { display: block; font-size: 13px; color: var(--wp--preset--color--text-2); }
.dtm-frage { align-self: flex-end; max-width: 86%; background: var(--wp--preset--color--text); color: var(--wp--preset--color--grund); padding: 12px 16px; border-radius: 16px 16px 4px 16px; line-height: 1.5; }
.dtm-antwort, .dtm-bericht { background: var(--wp--preset--color--grund); border: 1px solid var(--wp--preset--color--linie); border-radius: 16px 16px 16px 4px; padding: 14px 16px; }
.dtm-antwort p { margin: 0 0 10px; }
.dtm-antwort strong { color: var(--wp--preset--color--akzent); }
.dtm-quelle { display: inline-block; font-size: 13px; color: var(--wp--preset--color--text-2); border: 1px solid var(--wp--preset--color--linie); border-radius: 6px; padding: 4px 10px; margin: 0 6px 6px 0; }
.dtm-bericht { border-radius: 12px; display: grid; gap: 12px; }
.dtm-bericht ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: 15px; }
.dtm-bericht li { padding-left: 30px; position: relative; }
.dtm-bericht li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border: 1.6px solid var(--wp--preset--color--akzent); border-radius: 50%; color: var(--wp--preset--color--akzent); font-size: 12px; line-height: 18px; text-align: center; box-sizing: border-box; }
@media (max-width: 1100px) { .dtm-bericht ul { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .dtm-leitstand { padding: 18px; } }

/* Fallbeispiele (M08) */
.dtm-person { padding: 0; gap: 0; overflow: visible; }
.dtm-person__inhalt { padding: 1.75rem; gap: 1rem; }
.dtm-person__inhalt > * { margin: 0; }
.dtm-geschichte { gap: 1rem; }
.dtm-geschichte > * { margin: 0; }
.dtm-person-breit { padding: 0; overflow: visible; }
.dtm-person-breit > .wp-block-columns { gap: 0; margin: 0; }
.dtm-person-breit .dtm-person__inhalt { padding: 2rem; }
.dtm-person-breit .wp-block-post-featured-image.dtm-foto img { height: 100%; min-height: 280px; border-radius: 0 8px 8px 0; }
@media (max-width: 781px) { .dtm-person-breit .wp-block-post-featured-image.dtm-foto img { border-radius: 0 0 8px 8px; min-height: 220px; } }
.single-dtm_fallbeispiel .dtm-geschichte__name { display: none; }

/* M09 Über uns */
.dtm-zeichnung { background: var(--wp--preset--color--flaeche); border-radius: 8px; overflow: hidden; }
.dtm-zeichnung svg { display: block; width: 100%; height: auto; }
.dtm-punkt { border-top: 1px solid var(--wp--preset--color--linie); padding-top: 18px; gap: 16px; align-items: flex-start; }
.dtm-punkt .dtm-nummer { font-size: 1.875rem; width: 40px; flex-shrink: 0; }
.dtm-punkt h3 { font-size: 1.25rem; margin: 0 0 4px; }
.dtm-punkt p { margin: 0; }

/* M26 Werdegang */
.dtm-werdegang { row-gap: 2.25rem; }
.dtm-station { position: relative; border-top: 2px solid var(--wp--preset--color--linie); padding-top: 1.5rem; gap: .75rem; }
.dtm-station::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--wp--preset--color--text); }
.dtm-station:last-child { border-top-color: #B8744E; }
.dtm-station > * { margin: 0; }
.dtm-station .dtm-nummer { font-size: 1.875rem; }
.dtm-station h3 { font-size: 1.25rem; }

/* M27 Positionen des Kupferknotens */
.dtm-position { gap: .75rem; }
.dtm-position > * { margin: 0; }
.dtm-position .dtm-einpass { color: var(--wp--preset--color--text); background: var(--wp--preset--color--flaeche); border-radius: 6px; padding: 1.25rem 1rem .75rem; display: flex; justify-content: center; margin-bottom: .5rem; }
.dtm-position .dtm-einpass svg { width: 150px; height: auto; display: block; }
.dtm-position h3 { font-size: 1.3125rem; }
.dtm-m27 .dtm-fussnote { max-width: 46rem; }

/* M10 Häufige Fragen */
.wp-block-details { padding: .25rem 0; }
.wp-block-details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; min-height: 56px; padding: .75rem 0; font-weight: 700; font-stretch: 108%; font-size: 1.1875rem; line-height: 1.35; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-weight: 400; font-size: 1.625rem; color: var(--wp--preset--color--akzent); }
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > p { color: var(--wp--preset--color--text-2); padding-bottom: 1.25rem; margin-top: 0; max-width: 48rem; }
.dtm-faq { border-bottom: 1px solid var(--wp--preset--color--linie); }

/* M13 Seitenkopf */
.dtm-m13 { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.dtm-seitenkopf { gap: 2rem 4rem; align-items: center; }
.dtm-seitenkopf > .wp-block-column:first-child > * + * { margin-block-start: 1.25rem; }
.dtm-m13 .dtm-schmal { max-width: var(--wp--style--global--content-size, 780px); gap: 1.25rem; }

/* M14 Text und Bild */
.dtm-textbild { gap: 2rem 5rem; align-items: center; }
.dtm-textbild > .wp-block-column > * + * { margin-block-start: 1.25rem; }
@media (min-width: 782px) { .wp-block-columns.is-style-dtm-bild-links { flex-direction: row-reverse; } }

/* M15 Fließtext */
.dtm-fliesstext h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }
.dtm-fliesstext h2:first-child { margin-top: 0; }

/* M16 Menschen */
.dtm-mensch .dtm-person__inhalt { gap: .5rem; }
.dtm-mensch h3 { font-size: 1.3125rem; }

/* M17 Kontaktformular */
.dtm-formular { background: var(--wp--preset--color--flaeche); border: 0; min-height: 280px; justify-content: flex-start; }
.dtm-formular .wpcf7 { margin: 0; }
.dtm-formular .wpcf7 form > p, .dtm-formular .wpcf7 .dtm-cf7 > p { margin: 0 0 1.125rem; }
.wpcf7 label { display: block; font-weight: 600; font-size: .9375rem; line-height: 1.4; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: .375rem; }
.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) { width: 100%; box-sizing: border-box; min-height: 48px; padding: .75rem .875rem; border: 1px solid var(--wp--preset--color--text-2); border-radius: 4px; background: var(--wp--preset--color--grund); color: var(--wp--preset--color--text); font: inherit; font-size: 1rem; }
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 :is(input, select, textarea):focus-visible { outline: 3px solid var(--wp--preset--color--text); outline-offset: 2px; }
.wpcf7 input[type="submit"] { min-height: 52px; padding: .95rem 1.5rem; border: 0; border-radius: 2px; background: var(--wp--preset--color--button); color: var(--wp--preset--color--button-text); font-family: var(--wp--preset--font-family--archivo); font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--akzent-hover); }
.wpcf7 .dtm-cf7__hinweis { font-size: .875rem; line-height: 1.5; color: var(--wp--preset--color--text-2); }
.wpcf7 :is(input, select, textarea).wpcf7-not-valid { border: 2px solid #B42318; }
.wpcf7 .wpcf7-not-valid-tip { display: flex; align-items: center; gap: .5rem; margin-top: .375rem; color: var(--wp--preset--color--text); font-size: .875rem; font-weight: 600; }
.wpcf7 .wpcf7-not-valid-tip::before { content: "!"; flex-shrink: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #B42318; color: #FFFFFF; font-size: .8125rem; line-height: 1.25rem; text-align: center; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .875rem 1rem; border: 2px solid var(--wp--preset--color--linie); border-radius: 4px; background: var(--wp--preset--color--grund); }
.wpcf7 form:is(.invalid, .unaccepted, .payment-required, .failed, .aborted, .spam) .wpcf7-response-output { border-color: #B42318; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--wp--preset--color--akzent); }
.dtm-kontaktdaten { gap: 0; margin-top: 1.5rem; }
.dtm-kontaktdaten .dtm-feld { padding-bottom: 12px; }

/* M19 Ansprechperson */
.dtm-ansprech { padding: 0; overflow: visible; max-width: 960px; }
.dtm-ansprech > .wp-block-columns { gap: 0; margin: 0; align-items: stretch; }
.dtm-ansprech .dtm-person__inhalt { padding: 2rem 2.25rem; gap: .75rem; }
.dtm-ansprech .wp-block-image.dtm-foto img { height: 100%; min-height: 300px; border-radius: 8px 0 0 8px; }
@media (max-width: 781px) { .dtm-ansprech .wp-block-image.dtm-foto img { border-radius: 8px 8px 0 0; min-height: 0; height: 280px; } }

/* M20 Artikel */
.dtm-artikel .wp-block-post-title { font-size: 1.3125rem; margin: 0; }
.dtm-artikel .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--text); }
.dtm-artikel .wp-block-post-title a:hover { text-decoration: underline; }
.dtm-artikel .wp-block-post-excerpt__excerpt { margin: 0; color: var(--wp--preset--color--text-2); }

/* M21 Vergleich */
.wp-block-table.dtm-vergleich { margin: 0; overflow-x: auto; }
.wp-block-table.dtm-vergleich table { border-collapse: collapse; width: 100%; min-width: 560px; }
.wp-block-table.dtm-vergleich :where(th, td) { border: 0; border-bottom: 1px solid var(--wp--preset--color--linie); padding: 1rem 1.25rem; text-align: left; vertical-align: top; line-height: 1.5; }
.wp-block-table.dtm-vergleich thead { border: 0; }
.wp-block-table.dtm-vergleich thead th { font-size: var(--wp--preset--font-size--label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--text-2); border-bottom: 2px solid var(--wp--preset--color--text); }
.wp-block-table.dtm-vergleich thead th:nth-child(2) { color: var(--wp--preset--color--akzent); }
.wp-block-table.dtm-vergleich tbody td:first-child { font-weight: 600; width: 24%; }
.wp-block-table.dtm-vergleich tbody td:nth-child(2) { background: var(--wp--preset--color--flaeche); }

/* Suche, Trefferliste, 404 */
.wp-block-search.dtm-suche { max-width: 36rem; }
.wp-block-search.dtm-suche .wp-block-search__inside-wrapper { gap: .5rem; }
.wp-block-search.dtm-suche .wp-block-search__input { min-height: 52px; box-sizing: border-box; padding: .75rem .875rem; border: 1px solid var(--wp--preset--color--text-2); border-radius: 4px; background: var(--wp--preset--color--grund); color: var(--wp--preset--color--text); font: inherit; }
.wp-block-search.dtm-suche .wp-block-search__input:focus-visible { outline: 3px solid var(--wp--preset--color--text); outline-offset: 2px; }
.wp-block-search.dtm-suche .wp-block-search__button { min-height: 52px; margin: 0; padding: .95rem 1.5rem; border: 0; border-radius: 2px; background: var(--wp--preset--color--button); color: var(--wp--preset--color--button-text); font-weight: 600; }
.wp-block-search.dtm-suche .wp-block-search__button:hover { background: var(--wp--preset--color--akzent-hover); }
.dtm-treffer { border-top: 1px solid var(--wp--preset--color--linie); padding: 1.5rem 0; gap: .5rem; }
.dtm-treffer > * { margin: 0; }
.dtm-treffer .wp-block-post-title { font-size: 1.3125rem; }
.dtm-treffer .wp-block-post-excerpt__excerpt { margin: 0; color: var(--wp--preset--color--text-2); }
.dtm-suchseite .wp-block-query { max-width: 52rem; }

/* Modulbibliothek */
.dtm-bibliothek-titel { background: var(--wp--preset--color--text); color: var(--wp--preset--color--grund); padding: .5rem clamp(20px, 5.5vw, 80px); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; margin: 0 !important; }

/* M12 Fuß */
.dtm-fuss { background: var(--wp--preset--color--band); color: var(--wp--preset--color--band-text); padding-top: 5rem; padding-bottom: 2.5rem; }
.dtm-fuss a { color: var(--wp--preset--color--band-text); }
.dtm-fuss .dtm-label { color: var(--wp--preset--color--band-text-2); }
.dtm-fuss .dtm-text-2, .dtm-fuss .dtm-klein { color: var(--wp--preset--color--band-text-2); }
.dtm-fuss .dtm-logo, .dtm-fuss .dtm-logo__wort { color: var(--wp--preset--color--band-text); }
.dtm-fuss .dtm-logo__desk { color: var(--wp--preset--color--band-text-2); }
.dtm-fuss ul { list-style: none; padding: 0; margin: 0; }
.dtm-fuss li a { display: block; padding: 10px 0; text-decoration: none; }
.dtm-fuss__unten a { display: inline-block; padding: 11px 0; }
.dtm-fuss li a:hover { text-decoration: underline; }
.dtm-fuss__unten { border-top: 1px solid var(--wp--preset--color--band-linie); padding-top: 1.5rem; font-size: .875rem; color: var(--wp--preset--color--band-text-2); gap: 1rem 1.75rem; }

/* Editor: Modulgrenzen sichtbar */
.editor-styles-wrapper .dtm-modul { outline: 1px dashed rgba(184,116,78,.35); outline-offset: -1px; }
