/* dmi Redesign - main-Modul (Homepage), Schritt 1 von "Modul für Modul"
   Nur fuer die main-Aktion (indexSuccess) geladen, siehe apps/dmi/modules/main/config/view.yml.
   Ersetzt Bootstrap-Grid/owl.carousel/jQuery-jVectorMap durch natives CSS Grid/Flexbox,
   scroll-snap-Carousels und ein natives <dialog>. Kopf-/Footerbereich (header/footer-Komponenten)
   sind bewusst NICHT Teil dieses Schritts - eigenes Modul, eigene Reihenfolge.
   Farb-/Schriftwerte aus dem bestehenden style.css uebernommen (Markenkonsistenz). */

:root {
  --dmi-blue: #165b97;
  --dmi-blue-dark: #0c4b82;
  --dmi-accent: #127aa8;
  --dmi-text: #2e2e2e;
  --dmi-text-muted: #6c6c6c;
  --dmi-bg-light: #f4f8fb;
  --dmi-border: #cecece;
  --dmi-font-sans: 'Niveau Grotesk', Arial, sans-serif;
  --dmi-font-serif: 'Playfair Display', Georgia, serif;
  --dmi-gap: 1.5rem;
}

.dmi-main * {
  box-sizing: border-box;
}

.dmi-main {
  font-family: var(--dmi-font-sans);
  color: var(--dmi-text);
}

.dmi-main h2,
.dmi-main h3 {
  font-family: var(--dmi-font-serif);
  color: var(--dmi-text);
}

.dmi-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.dmi-section {
  padding: 3rem 0;
}

.dmi-section--tight {
  padding: 2rem 0;
}

.dmi-btn {
  display: inline-block;
  background: var(--dmi-accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 0.75rem 1.75rem;
  font-family: var(--dmi-font-sans);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dmi-btn:hover {
  background: var(--dmi-blue);
  color: #fff;
}

.dmi-btn--outline {
  background: transparent;
  border: 1px solid var(--dmi-blue);
  color: var(--dmi-blue);
}

.dmi-btn--outline:hover {
  background: var(--dmi-blue);
  color: #fff;
}

/* Claude 2026-07-22 (Rose): Danke-/Bestaetigungsseite nach dem Kontaktformular
   (/kontakt/danke, contact/thanksSuccess.php). Zentrierte Bestaetigung mit
   Erfolgs-Haken. Gruen = Erfolgskonvention (dmi-Marke ist sonst blau). */
.dmi-thanks { text-align: center; }
/* zentrierte Ueberschrift ohne den linken Akzent-Balken der .dmi-plain-box h2 */
.dmi-plain-box.dmi-thanks h2 { padding-left: 0; }
.dmi-plain-box.dmi-thanks h2:before { display: none; }
.dmi-thanks__icon { display: block; margin-bottom: 0.6rem; line-height: 1; }
.dmi-thanks__icon .fa { font-size: 3.4rem; color: #2b8a3e; }
.dmi-thanks h2 { margin-top: 0; }
.dmi-thanks p { max-width: 34rem; margin-left: auto; margin-right: auto; }
.dmi-thanks__hint { font-size: 0.92rem; color: #666; }
.dmi-thanks__actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.dmi-link {
  color: var(--dmi-blue);
  font-weight: 600;
  text-decoration: none;
}

.dmi-link:hover {
  text-decoration: underline;
}

/* Select-Optik nach Vorbild von #filter auf der estatelist-Seite (apps/dmi/modules/estatelist/templates/indexSuccess.php)
   nachgebaut - dasselbe Pfeil-Icon (/img/icon7.png) statt der haesslichen Browser-Default-Optik,
   aber ohne die Bootstrap-.form-select-Klasse ins bereits modernisierte main-Modul zurueckzuholen. */
.dmi-select-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.dmi-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  padding: 0 2.25rem 0 0.9rem;
  /* Claude 2026-07-18 (Rose: "Startseite: Hoehe zur Umgebung nicht einheitlich"): war 37px, der
     Such-Button .dmi-btn daneben ist 44px hoch -> im .dmi-select-row sichtbar ungleich. Auf 44px
     angeglichen, damit Select und Button in einer Reihe gleich hoch sind. */
  height: 44px;
  font-size: 1rem;
  font-family: var(--dmi-font-sans);
  color: #45484b;
  background-color: #fff;
  background-image: url('/img/icon7.png');
  background-repeat: no-repeat;
  background-position: calc(100% - 15px) 50%;
  background-size: 11px 7px;
  cursor: pointer;
}

/* ---------------------------------------------------------------- */
/* generischer scroll-snap-Carousel (Hero, Aktuelle Angebote, Aktuelles) */
/* ---------------------------------------------------------------- */

.dmi-carousel {
  position: relative;
}

.dmi-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: var(--dmi-gap);
  scrollbar-width: none;
}

.dmi-carousel__track::-webkit-scrollbar {
  display: none;
}

.dmi-carousel__item {
  scroll-snap-align: start;
  flex: 0 0 100%;
}

.dmi-carousel--multi .dmi-carousel__item {
  flex: 0 0 100%;
}

@media (min-width: 640px) {
  .dmi-carousel--multi .dmi-carousel__item {
    flex: 0 0 calc(50% - var(--dmi-gap) / 2);
  }
}

@media (min-width: 1000px) {
  .dmi-carousel--multi .dmi-carousel__item {
    flex: 0 0 calc(33.333% - var(--dmi-gap) * 2 / 3);
  }
}

.dmi-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dmi-blue);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dmi-carousel__nav:hover {
  background: var(--dmi-blue);
  color: #fff;
}

.dmi-carousel__nav--prev {
  left: 0.5rem;
}

.dmi-carousel__nav--next {
  right: 0.5rem;
}

/* Bei Mehrfach-Karten-Carousels sitzen die Pfeile auf Bildhoehe statt auf halber Kartenhoehe,
   sonst ueberlappen sie den Kartentext darunter. */
.dmi-carousel--multi .dmi-carousel__nav {
  top: 27%;
}

/* Claude 2026-07-18 (Fix 3/6): vertikales Padding im Track, damit der Karten-Schatten nicht vom
   overflow-x:auto abgeschnitten wird (overflow-x:auto erzwingt overflow-y:auto). */
.dmi-carousel--multi .dmi-carousel__track {
  padding: 16px 8px;
}

/* Pfeile aus den Karten heraus in den Seitenrand (Mockup) statt ueber dem ersten Kartenbild. */
.dmi-carousel--multi .dmi-carousel__nav--prev {
  left: -1.25rem;
}

.dmi-carousel--multi .dmi-carousel__nav--next {
  right: -1.25rem;
}

@media (max-width: 1240px) {
  .dmi-carousel--multi .dmi-carousel__nav--prev {
    left: 0;
  }
  .dmi-carousel--multi .dmi-carousel__nav--next {
    right: 0;
  }
}

.dmi-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dmi-carousel__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: none;
  background: var(--dmi-border);
  padding: 0;
  cursor: pointer;
}

.dmi-carousel__dot.is-active {
  background: var(--dmi-blue);
}

/* ---------------------------------------------------------------- */
/* Hero */
/* ---------------------------------------------------------------- */

.dmi-home-hero {
  position: relative;
}

.dmi-home-hero .dmi-carousel__item {
  position: relative;
}

.dmi-home-hero__img {
  width: 100%;
  display: block;
  height: 55vw;
  max-height: 620px;
  min-height: 320px;
  object-fit: cover;
}

/* Claude 2026-07-23 (Perf P2): Hero ist jetzt ein <picture> mit einem einzigen <img>.dmi-home-hero__img;
   die frueheren --desktop/--mobile-Toggle-Klassen entfallen (der Browser waehlt die Quelle per media). */

/* Claude 2026-07-17 (Rose: "Die Positionierung ist sehr weit links" + "bei grossen Bildschirmen
   ruhig etwas groesser").

   Ursache der Fehlstellung: left war fest 2rem, also am FENSTERRAND ausgerichtet - waehrend der
   restliche Seiteninhalt in .dmi-container liegt (max-width:1200px, zentriert, 1rem Innenabstand).
   Bei 1920px beginnt der Seiteninhalt dadurch bei 376px, die Hero-Box aber bei 32px: 344px weiter
   links als jede Ueberschrift und jede Karte darunter. Bei 2560px waren es 664px - die Box klebte
   voellig ausserhalb des Seitenrasters in der Ecke.

   Fix: left an die INHALTSKANTE des Containers koppeln statt ans Fenster. Die calc()-Formel
   berechnet exakt dieselbe Kante wie .dmi-container ((100% - max-width)/2 + padding). Der
   max()-Wert ist bewusst 1rem und nicht die urspruenglichen 2rem: 1rem ist exakt der Innenabstand
   von .dmi-container, dadurch bleibt die Box auch unterhalb von ~1232px buendig zum Seiteninhalt
   (mit 2rem blieben dort 16px Versatz stehen).
   100% bezieht sich hier auf .dmi-home-hero (position:relative, volle Fensterbreite). */
.dmi-home-hero__caption {
  position: absolute;
  top: 2rem;
  left: max(1rem, calc((100% - 1200px) / 2 + 1rem));
  background: #fff;
  padding: 1.75rem;
  max-width: 340px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-top: 4px solid var(--dmi-accent);
}

.dmi-home-hero__caption h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}

/* Claude 2026-07-17 (Rose: "kann die weisse Box bei grossen Bildschirmen ruhig etwas groesser
   sein"): Die Box war mit fixen 340px auf JEDER Breite gleich gross - gemessen 301x404px von
   1024px bis 2560px. Ihr Anteil an der Fensterbreite fiel dadurch von 29% (1024px) auf 12%
   (2560px): auf grossen Schirmen eine kleine Kachel vor einem riesigen Foto.
   Ab 1400px daher stufenweise groesser. Bewusst an eine Breakpoint-Stufe gebunden statt an eine
   vw-Formel: die Box enthaelt Fliesstext und eine Kennzahlen-Tabelle, deren Umbruch bei stufenlos
   mitwachsender Breite schwer vorhersehbar bleibt - so ist das Ergebnis auf jeder Stufe geprueft.
   Schrift und Innenabstand wachsen mit, sonst wirkt nur die Flaeche groesser und der Inhalt
   verloren. */
@media (min-width: 1400px) {
  .dmi-home-hero__caption {
    max-width: 400px;
    padding: 2.25rem;
  }

  .dmi-home-hero__caption h3 {
    font-size: 1.6rem;
  }

  .dmi-home-hero__highlights {
    font-size: 0.95rem;
  }
}

@media (min-width: 1800px) {
  .dmi-home-hero__caption {
    max-width: 440px;
    padding: 2.5rem;
  }

  .dmi-home-hero__caption h3 {
    font-size: 1.75rem;
  }
}

.dmi-home-hero__highlights {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9rem;
}

.dmi-home-hero__highlights li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

/* Claude 2026-07-21 (Rose): PNG-Chevron-Bullets (zu gross, graue Farbe) durch dezente gruene
   Haken ersetzt - Hero-Highlights (dunkler Grund) und Angebotskarten (heller Grund). */
.dmi-home-hero__highlights li::before,
.dmi-card__highlights li::before {
  content: "\2713";
  color: #37c46f;
  font-weight: 700;
  flex: 0 0 auto;
  line-height: 1.4;
}
.dmi-card__highlights li::before {
  color: #2b9e57;
}

.dmi-home-hero__facts {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--dmi-border);
  font-size: 0.85rem;
}

.dmi-home-hero__facts li {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.dmi-home-hero__kfw {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.dmi-home-hero__kfw img {
  max-width: 90px;
}

@media (max-width: 767px) {
  .dmi-home-hero__img {
    height: auto;
    max-height: none;
    min-height: 0;
    aspect-ratio: 480 / 637;
  }

  .dmi-home-hero__caption {
    position: static;
    max-width: none;
    /* Claude 2026-07-27 (Rose): war margin-top:-3rem -> die weisse Box (mit dem Objekttitel) ragte
       ins Bild, wurde dort aber vom Bild uebermalt (Stacking), sodass der Titel auf dem Foto lag.
       Ohne Ueberlappung: Caption sitzt sauber unter dem Bild. */
    margin: 0 1rem;
  }

  /* Claude 2026-07-27 (Rose): Slideshow-Pfeile vertikal auf die Bildmitte. Auf Desktop liegt die
     Hero-Caption absolut UEBER dem Bild (Carousel-Hoehe = Bildhoehe, top:50% zentriert korrekt); auf
     Mobil steht sie UNTER dem Bild, wodurch top:50% weit unter das Bild rutschte. Bild ist hier volle
     Viewport-Breite mit aspect-ratio 480/637 -> Bildmitte liegt bei 66.4vw. */
  .dmi-home-hero .dmi-carousel__nav {
    top: 66.4vw;
  }
  /* Multi-Karten-Pfeile: top:27% lag ~24px unter der Bildmitte der 16/10-Karten -> 23%. */
  .dmi-carousel--multi .dmi-carousel__nav {
    top: 23%;
  }
}

/* ---------------------------------------------------------------- */
/* zweispaltige Abschnitte (mit_denka, searchbox/Karte, Download-Broschuere, Denkmal) */
/* ---------------------------------------------------------------- */

.dmi-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 767px) {
  .dmi-split {
    grid-template-columns: 1fr;
  }
}

.dmi-split__media img {
  width: 100%;
  height: auto;
  display: block;
}

.dmi-checklist {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
}

.dmi-checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.dmi-checklist img {
  width: 1.1rem;
  margin-top: 0.15rem;
}

.dmi-plain-list {
  margin: 1rem 0 1.25rem 1.25rem;
  padding: 0;
}

.dmi-plain-list li {
  margin-bottom: 0.4rem;
}

/* Claude 2026-07-20: Fake-"Video" (Play-Button-Overlay + leeres schwarzes iframe-Popup) durch ein
   echtes Denkmalobjekt-Foto ersetzt. Rahmen + Schatten wie im Mockup (gerahmtes Bild rechts). */
.dmi-steuern-img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(22, 91, 151, 0.18);
}

/* ---------------------------------------------------------------- */
/* Deutschlandkarte (klickbare Bundeslaender, searchbox) */
/* ---------------------------------------------------------------- */

.dmi-map {
  width: 100%;
  height: auto;
}

.dmi-map__state {
  fill: var(--dmi-border);
  stroke: #fff;
  stroke-width: 1.5;
}

.dmi-map__link {
  cursor: pointer;
}

.dmi-map__link .dmi-map__state.is-active {
  fill: #9db8cd;
  transition: fill 0.15s ease;
}

.dmi-map__link:hover .dmi-map__state.is-active,
.dmi-map__link:focus-visible .dmi-map__state.is-active {
  fill: var(--dmi-accent);
}

/* Claude 2026-07-18 (Startseite-Mockup-Abgleich, Fix 2/6): Sektion "Über X Angebote bundesweit"
   an das Mockup angeglichen - dunkelblauer Band-Hintergrund, weisser Text mit Akzentbalken,
   kompakte (nicht width:100%) rechtsbuendige Karte, aktive Bundeslaender im Akzent-Cyan. */
.dmi-map-band {
  background: var(--dmi-blue);
  color: #fff;
}

.dmi-map-band h2 {
  color: #fff;
  position: relative;
  padding-left: 1.1rem;
  margin-top: 0;
}

.dmi-map-band h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  background: var(--dmi-accent);
}

.dmi-map-band p {
  color: rgba(255, 255, 255, 0.85);
}

.dmi-map-band .dmi-map {
  width: auto;
  height: 430px;
  margin-left: auto;
}

.dmi-map-band .dmi-map__state {
  fill: #b9c9d6;
  stroke: var(--dmi-blue);
}

/* Claude 2026-07-20: aktive Bundeslaender NICHT var(--dmi-accent) (#127aa8) - der Accent wurde
   fuer WCAG-Textkontrast abgedunkelt und liegt jetzt zu nah am Band-Hintergrund #165b97 (kaum
   unterscheidbar). Eine SVG-Flaeche ist Non-Text (WCAG 1.4.11: 3:1 genuegt); das urspruengliche
   helle #44c5f8 hat gegen #165b97 3,57:1 und hebt die Angebots-Bundeslaender wieder klar ab. */
.dmi-map-band .dmi-map__link .dmi-map__state.is-active {
  fill: #44c5f8;
}

.dmi-map-band .dmi-map__link:hover .dmi-map__state.is-active,
.dmi-map-band .dmi-map__link:focus-visible .dmi-map__state.is-active {
  fill: #fff;
}

@media (max-width: 767px) {
  .dmi-map-band .dmi-map {
    height: 340px;
    margin: 1.5rem auto 0;
  }
}

/* ---------------------------------------------------------------- */
/* Angebots-/Aktuelles-Karten (in den Multi-Item-Carousels) */
/* ---------------------------------------------------------------- */

.dmi-card {
  position: relative;
  background: #fff;
  border: 1px solid #e7e7e7;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.09);
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Claude 2026-07-18 (Startseite-Mockup-Abgleich, Fix 3/6): Bild-Wrapper fuer Stadt-/KFW-Badge. */
.dmi-card__media {
  position: relative;
}

.dmi-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.dmi-card__city {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--dmi-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
}

.dmi-card__kfw {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 46px;
  height: auto;
}

.dmi-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dmi-card__body h3 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

/* Claude 2026-07-23 (Rose): Aktuelles-Karten haben einen verlinkten Titel (<h3><a>). Ohne eigene
   Regel fiel er auf den Bootstrap-Default zurueck (hellblau + unterstrichen) - jetzt wie ein
   Card-Titel: dunkler Ink-Ton, ohne Unterstreichung, blau erst beim Hover. */
.dmi-card__body h3 a {
  color: var(--dmi-text);
  text-decoration: none;
}

.dmi-card__body h3 a:hover {
  color: var(--dmi-blue);
}

.dmi-card__highlights {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.85rem;
  color: var(--dmi-text-muted);
}

.dmi-card__highlights li {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.dmi-card__facts {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--dmi-border);
  font-size: 0.85rem;
}

.dmi-card__facts li {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
}

.dmi-card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--dmi-blue);
  text-decoration: none;
}

.dmi-card__link:hover {
  text-decoration: underline;
}

/* Claude 2026-07-18 (Fix 3/6): ganze Karte klickbar (Konsistenz mit estatelist-.stretched-link).
   Der sichtbare "Details ansehen"-Link bleibt; sein ::after ueberdeckt die ganze Karte. */
.dmi-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.dmi-card__meta {
  font-size: 0.75rem;
  color: var(--dmi-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.dmi-card__meta img {
  width: 0.9rem;
}

/* ---------------------------------------------------------------- */
/* Ueber-uns / Service / Referenzobjekte - Dreispalter */
/* ---------------------------------------------------------------- */

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

@media (max-width: 767px) {
  .dmi-grid-3 {
    grid-template-columns: 1fr;
  }
}

.dmi-feature {
  text-align: center;
}

.dmi-feature img.dmi-feature__img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Claude 2026-07-18 (Startseite-Mockup-Abgleich, Fix 4/6): weisse Textbox ragt ins Bild hinein
   (Overlap-Look aus dem Mockup) statt schlicht darunter zu stehen. Negativer margin-top zieht die
   Box ueber den unteren Bildrand, seitlicher Rand rueckt sie ein, Schatten hebt sie ab. */
/* Claude 2026-07-21 (Rose-Meldung): die drei weissen Textboxen waren unterschiedlich hoch
   (verschieden lange Absaetze). Karte als Flex-Spalte, Body flext auf gleiche Hoehe, der
   "mehr erfahren"-Link wird per margin-top:auto nach unten gedrueckt -> alle CTAs buendig. */
.dmi-feature {
  position: relative;
  display: flex;
  flex-direction: column;
}

.dmi-feature__body {
  position: relative;
  z-index: 1;
  background: #fff;
  margin: -3rem 1.25rem 0;
  padding: 1.25rem;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dmi-feature__body .dmi-link {
  margin-top: auto;
  padding-top: 0.6rem;
}

.dmi-feature__body h2 {
  font-size: 1.3rem;
}

/* ---------------------------------------------------------------- */
/* Erfahren-Sie-mehr - Fuenfspalter */
/* ---------------------------------------------------------------- */

.dmi-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .dmi-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dmi-grid-5 {
    grid-template-columns: 1fr;
  }
}

.dmi-icon-card {
  text-align: center;
  display: block;
  text-decoration: none;
  color: inherit;
}

.dmi-icon-card:hover p {
  color: var(--dmi-blue);
}

.dmi-icon-card img {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
}

.dmi-icon-card p {
  font-size: 0.9rem;
  color: var(--dmi-text-muted);
}

/* ---------------------------------------------------------------- */
/* Section-Ueberschriften */
/* ---------------------------------------------------------------- */

/* Claude 2026-07-18 (Startseite-Mockup-Abgleich, Fix 5/6): Sektions-Ueberschriften linksbuendig
   mit blauem Akzentbalken (Mockup) statt zentriert. Feature-Karten-Titel nutzen .dmi-heading nicht
   und bleiben zentriert. */
/* Claude 2026-08-12 (Rose): kleine Dachzeile ueber einem .dmi-heading (Kicker). Bewusst die
   Textschrift statt der Serife und deutlich kleiner - sie soll einordnen, nicht konkurrieren. */
.dmi-kicker {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dmi-blue);
  margin: 0 0 0.6rem;
  padding-left: 1.1rem;   /* buendig mit dem .dmi-heading-Text neben dem Akzentbalken */
}

.dmi-heading {
  font-size: 1.9rem;
  margin: 0 0 1.5rem;
  text-align: left;
  position: relative;
  padding-left: 1.1rem;
}

.dmi-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  background: var(--dmi-blue);
}

.dmi-heading--center {
  text-align: center;
  padding-left: 0;
}

.dmi-heading--center::before {
  display: none;
}

/* Claude 2026-07-18 (Startseite: Beispielberechnung wieder aufgenommen, Rose): Schreibtisch-Foto als
   Band-Hintergrund, darueber eine zweiteilige Box (weiss: Titel+Link / blau: Beispiel-Tabelle). */
.dmi-calc-band {
  background: #23303a url('/img/beispiel_bg.jpg') center / cover no-repeat;
  padding: 6rem 0 3.5rem;
}

.dmi-calc {
  display: flex;
  flex-wrap: wrap;
  max-width: 780px;
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.35);
}

.dmi-calc__intro {
  background: #fff;
  padding: 1.9rem 1.6rem;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
}

.dmi-calc__intro h2.dmi-heading {
  font-size: 1.45rem;
  margin: 0 0 0.6rem;
}

.dmi-calc__note {
  color: var(--dmi-text-muted);
  font-size: 0.85rem;
  margin: 0 0 1rem;
  flex: 1;
}

.dmi-calc__table {
  background: var(--dmi-blue);
  color: #fff;
  padding: 1.4rem 1.6rem;
  flex: 1 1 360px;
}

.dmi-calc__table ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dmi-calc__table li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.dmi-calc__table li span:last-child {
  white-space: nowrap;
  font-weight: 600;
}

.dmi-calc__sum {
  border-bottom: none !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding-top: 0.75rem !important;
}

/* Claude 2026-07-18 (Startseite: "Lassen Sie sich sofort beraten!" wieder aufgenommen, Rose):
   dunkelblauer Block, links Beratungstext + Telefon, rechts das ECHTE Kontaktformular
   (contact/*-Komponenten), 2-spaltige Felder mit weissen Labels auf dunklem Grund. */
.dmi-consult {
  background: var(--dmi-blue-dark);
  color: #fff;
}

.dmi-consult__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: start;
}

.dmi-consult__intro h2 {
  color: #fff;
  margin: 0 0 1rem;
}

.dmi-consult__intro p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.dmi-consult__phone {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  text-decoration: none;
  color: #fff;
}

.dmi-consult__phone img {
  width: 52px;
  height: auto;
}

.dmi-consult__phone strong {
  color: var(--dmi-accent);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.dmi-consult .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dmi-consult .fields li.er,
.dmi-consult .fields li.hint,
.dmi-consult .fields li:has(textarea) {
  grid-column: 1 / -1;
}

.dmi-consult .fields li label {
  color: #fff;
}

@media (max-width: 767px) {
  .dmi-consult__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .dmi-consult .fields {
    grid-template-columns: 1fr;
  }
}

.dmi-bg-light {
  background: var(--dmi-bg-light);
}

/* Rechtshinweis unter der Startseiten-Beispielrechnung (Claude 2026-07-31).
   Kleiner und ruhiger als .dmi-calc__note - er soll lesbar sein, aber nicht mit der
   eigentlichen Aussage konkurrieren. Ohne flex:1, sonst dehnt er die linke Spalte. */
.dmi-calc__legal {
  color: var(--dmi-text-muted);
  font-size: 0.76rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}
