diff --git a/CSS/style.css b/CSS/style.css index 300bf3e..b62761d 100644 --- a/CSS/style.css +++ b/CSS/style.css @@ -4,9 +4,22 @@ body { font-size: 15px; margin: 0; padding: 0; + min-height: 100vh; + display: flex; + flex-direction: column; + width: 100vw; + max-width: 100vw; + overflow-x: hidden; } #wrapper { - + flex: 1 0 auto; + min-height: 0; + display: flex; + flex-direction: column; + justify-content: flex-start; + margin-bottom: 20px; + width: 100vw; + max-width: 100vw; } a { @@ -16,6 +29,11 @@ a { #navigation { display: flex; justify-content: center; + position: sticky; + top: 0; + z-index: 1000; + background: #BAC8D4; + width: 100vw; } .link-container { display: grid; @@ -38,17 +56,19 @@ a { background-size: contain; } #footer { - position: absolute; + position: relative; bottom: 0; left: 0; - width: 100%; - height: 240px; + width: 100vw; + height: 180px; background-color: #BAC8D4; - - display: grid; - grid-template-columns: 6% 5% 43% 32% 14%; - grid-template-rows: 45% 10% 45%; + display: flex; + flex-direction: column; align-items: center; + justify-content: center; + flex-shrink: 0; + z-index: 999; + padding: 10px 0; } .container-zahlungsmittel { @@ -61,11 +81,16 @@ a { } .inhalt { + flex: 1 1 auto; display: flex; - height: 10px; justify-content: center; align-items: center; - width: 100%; + width: 100vw; + min-height: 0; + min-width: 0; + margin: 0; + padding: 0 2vw; + box-sizing: border-box; } .zahlungsmittel-img { @@ -102,27 +127,26 @@ a { padding-right: 30px; } .container-welcome-inhalt { - grid-template-columns: 39% 61%; display: grid; - width: 110em; - min-height: 80%; + grid-template-columns: 1fr 1fr; + width: 100%; + max-width: 900px; + min-height: 200px; border-radius: 10px; + background: white; + box-shadow: 0 2px 16px rgba(0,0,0,0.08); + justify-items: center; + align-items: center; + box-sizing: border-box; + padding: 10px 0; } -.beispiel-austellung1-img { - height: 480px; - width: 670px; - background-image: url("../images/beispiel-austellung1.png"); +.beispiel-austellung1-img, .beispiel-austellung2-img { + height: 200px; + width: 90vw; + max-width: 320px; background-position: center; background-size: contain; - justify-self: right; - border-radius: 10px; -} -.beispiel-austellung2-img { - background-image: url("../images/beispiel-austellung2.png"); - background-position: center; - background-size: contain; - justify-self: right; border-radius: 10px; } @@ -133,4 +157,194 @@ a { width: 900px; height: 450px; border-radius: 10px; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + box-sizing: border-box; +} + +@media (max-width: 600px) { + body { + font-size: 14px; + width: 100vw; + max-width: 100vw; + overflow-x: hidden; + } + #wrapper { + width: 100vw; + max-width: 100vw; + } + #navigation { + width: 100vw; + min-width: 0; + padding: 0; + display: flex; + justify-content: center; + align-items: center; + } + .link-container { + width: 100vw; + min-width: 0; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + row-gap: 8px; + border-radius: 0; + padding: 0 4px; + } + .links { + font-size: 18px; + justify-content: center; + align-items: center; + padding: 6px 0; + text-align: center; + width: 100%; + } + #logo { + width: 120px; + height: 40px; + margin: 0 auto 8px auto; + display: flex; + justify-content: center; + align-items: center; + } + .container-welcome-inhalt { + grid-template-columns: 1fr; + width: 100vw; + max-width: 100vw; + min-height: 0; + padding: 8px 0; + } + .beispiel-austellung1-img, .beispiel-austellung2-img { + width: 90vw; + max-width: 98vw; + height: 120px; + margin-bottom: 10px; + } + .inhalt { + width: 100vw; + min-width: 0; + max-width: 100vw; + padding: 0 2vw; + box-sizing: border-box; + flex-direction: column; + align-items: stretch; + } + #footer { + width: 100vw; + height: auto; + min-height: 120px; + padding: 10px 0 10px 0; + font-size: 13px; + } + .container-zahlungsmittel { + width: 100vw; + text-align: center; + padding: 0; + } + .header-zahlungsarten { + font-size: 1.1em; + padding-right: 0; + text-align: center; + } + .zahlungsmittel-img { + width: 90vw; + max-width: 200px; + height: 30px; + margin: 0 auto; + } + .line { + width: 95vw; + } + .link-impressum, .link-datenschutz, .link-nutzungsbedingungen { + display: block; + padding: 2px 0; + text-align: center; + } + .text-bib { + display: block; + text-align: center; + padding: 0; + } + .desktop-only { + display: none !important; + } + .mobile-only { + display: block !important; + } + .login-container { + position: static; + width: 95vw; + max-width: 400px; + height: auto; + margin: 24px auto; + padding: 16px 8px; + box-sizing: border-box; + } + .login-container h1 { + font-size: 1.5em; + text-align: center; + } + .login-container form, + .login-container label, + .login-container input { + width: 100%; + max-width: 100%; + box-sizing: border-box; + } + .login-container button, + .login-container a { + width: 100%; + max-width: 100%; + margin-top: 8px; + text-align: center; + box-sizing: border-box; + } + #nav-toggle-btn { + display: block; + background: none; + border: none; + font-size: 2em; + cursor: pointer; + margin: 0 auto 8px auto; + transition: transform 0.2s; + } + .nav-links { + display: none; + flex-direction: column; + align-items: center; + width: 100%; + transition: max-height 0.3s ease; + overflow: hidden; + } + .nav-links.open { + display: flex; + } + #nav-toggle-btn.open { + transform: rotate(180deg); + } +} + +@media (min-width: 601px) { + .mobile-only { + display: none !important; + } + .desktop-only { + display: block !important; + } + #nav-toggle-btn { + display: none; + } + .nav-links { + display: flex !important; + flex-direction: row; + align-items: center; + width: auto; + gap: 32px; + } + .nav-links .links { + margin: 0 12px; + } } \ No newline at end of file diff --git a/Views/Contact/showConfirmation.phtml b/Views/Contact/showConfirmation.phtml index 4104bc0..6b87380 100644 --- a/Views/Contact/showConfirmation.phtml +++ b/Views/Contact/showConfirmation.phtml @@ -1,12 +1,6 @@ - +
Ihre Anfrage wurde erfolgreich versendet.
Weiter