From 9e025bd4c767a1c5b7b3945d3fdd8fa602e189da Mon Sep 17 00:00:00 2001 From: elpatron Date: Sat, 2 Aug 2025 14:17:46 +0200 Subject: [PATCH] =?UTF-8?q?=C3=9Cberarbeite=20Help=20Modal:=20Floating=20S?= =?UTF-8?q?chlie=C3=9Fen-Button=20und=20mehrsprachige=20Unterst=C3=BCtzung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Schließen-Button ist jetzt 'floating' mit position: fixed - Button hat Hintergrund, Rahmen und Schatten für bessere Sichtbarkeit - Alle Texte im Help Modal verwenden jetzt Übersetzungsfunktionen - Vollständige mehrsprachige Unterstützung (Deutsch/Englisch) - Bessere mobile Darstellung ohne Überschneidungen --- templates/index.html | 60 ++++++++++++++++++++++++++++++-------------- 1 file changed, 41 insertions(+), 19 deletions(-) diff --git a/templates/index.html b/templates/index.html index d63ee36..b9abfec 100644 --- a/templates/index.html +++ b/templates/index.html @@ -165,17 +165,17 @@ body { box-sizing: border-box; } .modal-close { - position: absolute; + position: fixed; top: 1em; right: 1em; - background: none; - border: none; + background: rgba(255, 255, 255, 0.95); + border: 2px solid var(--border); font-size: 1.5em; cursor: pointer; color: var(--text); padding: 0.5em; border-radius: 50%; - transition: background 0.2s; + transition: all 0.2s; width: 2.5em; height: 2.5em; display: flex; @@ -183,6 +183,8 @@ body { justify-content: center; min-width: 44px; min-height: 44px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); + z-index: 1001; } .modal-close:hover { background: var(--border); @@ -516,6 +518,26 @@ button:focus, .accordion-header:focus { overflow-y: auto; overflow-x: hidden; } + + .modal-close { + top: 0.8em; + right: 0.8em; + font-size: 1.3em; + width: 2.2em; + height: 2.2em; + min-width: 48px; + min-height: 48px; + background: rgba(255, 255, 255, 0.98); + border: 2px solid var(--border); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); + } + + .modal-content h1 { + margin-top: 0; + margin-bottom: 1em; + font-size: 1.2em; + line-height: 1.3; + } } /* Sprachauswahl */ @@ -1011,7 +1033,7 @@ footer br + a {