/* DUSCHMAX – Kontakt-Fahne: Desktop rechts am Rand, Handy als Leiste unten; immer sichtbar */
.dm-fahne { position: fixed; z-index: 1040; display: flex; font-family: inherit; }
.dm-fahne__link {
    display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none !important;
    font: inherit; font-weight: 800; line-height: 1.2; color: #133f66 !important; background: #fff;
    box-shadow: 0 6px 18px rgba(13, 46, 75, .22); transition: transform .15s ease, background .15s ease;
}
.dm-fahne__link svg { flex: 0 0 auto; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dm-fahne__link--haupt { background: #f8eb14; }
.dm-fahne__link--kontakt { background: #133f66; color: #fff !important; }
.dm-fahne__kurz { display: none; }

@media (min-width: 992px) {
    .dm-fahne { right: 0; top: 50%; transform: translateY(-50%); flex-direction: column; gap: 6px; align-items: flex-end; }
    .dm-fahne__link { width: 178px; padding: 12px 14px; border-radius: 14px 0 0 14px; font-size: 15px; text-align: left; }
    .dm-fahne__link:hover, .dm-fahne__link:focus-visible { transform: translateX(-6px); }
}
@media (max-width: 991.98px) {
    .dm-fahne { left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
        background: #fff; box-shadow: 0 -4px 14px rgba(13, 46, 75, .18); padding-bottom: env(safe-area-inset-bottom); }
    /* feste Höhe, auch wenn „Partner-Konfigurator“ zweizeilig umbricht – alle Abstände hängen an --dm-fahne-h */
    .dm-fahne__link { flex-direction: column; justify-content: center; gap: 2px; padding: 4px; height: var(--dm-fahne-h); font-size: 12px; line-height: 1.15; text-align: center; box-shadow: none; border-radius: 0; }
    .dm-fahne__link svg { width: 21px; height: 21px; }
    .dm-fahne__lang { display: none; }
    .dm-fahne__kurz { display: inline; }
    /* Platz für die Leiste: Seitenende, Fragebogen-Navigation, Bewertungs-Siegel, Nach-oben-Knopf */
    body:has(.dm-fahne) { --dm-fahne-h: 60px; padding-bottom: calc(var(--dm-fahne-h) + 6px); }
    body:has(.dm-fahne) .dm-fragebogen .dm-nav { bottom: var(--dm-fahne-h); }
    body:has(.dm-fahne) .auorg_sealWrapper { bottom: calc(var(--dm-fahne-h) + 8px) !important; }
    body:has(.dm-fahne) .back-to-top { bottom: calc(var(--dm-fahne-h) + 14px) !important; }
}

.dm-fahne__dialog { width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: 20px; padding: 0;
    box-shadow: 0 24px 60px rgba(13, 46, 75, .35); }
.dm-fahne__dialog::backdrop { background: rgba(13, 46, 75, .55); }
.dm-fahne__kopf { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid #d9e0ec; }
.dm-fahne__titel { margin: 0; font-size: 20px; font-weight: 800; color: #133f66; }
.dm-fahne__zu { border: 0; background: none; font-size: 30px; line-height: 1; color: #4d5b7a; cursor: pointer; padding: 0 4px; }
.dm-fahne__dialog .dm-wege { padding: 18px 22px 20px; }
/* das alte Modal-Fähnchen von t3sbootstrap ersetzt die Fahne */
body:has(.dm-fahne) .fixedModalButton { display: none !important; }

/* Mittlere Bildschirme: Fahne kompakt (nur Icons), Beschriftung klappt beim Darüberfahren/Fokus auf –
   sonst läge sie über der rechten Spalte */
@media (min-width: 992px) and (max-width: 1499.98px) {
    .dm-fahne__link { width: 54px; padding: 13px 15px; overflow: hidden; white-space: nowrap; transition: width .2s ease, transform .15s ease; }
    .dm-fahne__link .dm-fahne__lang { opacity: 0; transition: opacity .15s ease; }
    .dm-fahne:hover .dm-fahne__link, .dm-fahne__link:focus-visible { width: 272px; }
    .dm-fahne:hover .dm-fahne__lang, .dm-fahne__link:focus-visible .dm-fahne__lang { opacity: 1; }
    .dm-fahne:hover .dm-fahne__link { transform: none; }
}
