Webshop/static/Styles/styles-main.css

753 lines
13 KiB
CSS

/* ========== Allgemeine Einstellungen ========== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
html, body {
height: 100%;
}
body {
background: #f8f9fa;
color: #333;
min-height: 100vh;
display: flex;
flex-direction: column;
}
.wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* ========== Header ========== */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0px 20px;
width: 100%;
background: #ffffff;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 1000;
}
.logo-container {
display: flex;
align-items: center;
text-decoration: none;
color: inherit;
}
.logo-container h1 {
margin-left: 10px;
font-size: 1.8rem;
}
.logo-img {
height: 70px;
object-fit: contain;
}
.logo-link {
text-decoration: none;
color: inherit;
}
header h1 {
font-size: 30px;
color: #333;
}
.header-right {
display: flex;
align-items: center;
gap: 15px;
}
.login-btn {
font-size: 14px;
text-decoration: none;
color: white;
background: #ff6600;
padding: 10px 20px;
border-radius: 25px;
transition: background 0.3s ease;
}
.login-btn:hover {
background: #e95b00;
}
/* ========== Warenkorb Icon ========== */
.cart {
display: flex;
align-items: center;
position: relative;
font-size: 24px;
color: #ff6600;
cursor: pointer;
}
.cart-count {
position: absolute;
top: -5px;
right: -10px;
background: #ff6600;
color: white;
font-size: 12px;
width: 20px;
height: 20px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}
/* ========== Navigation ========== */
.menu {
background: #ffffff;
width: 100%;
margin-bottom: 20px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.menu-list {
list-style: none;
display: flex;
justify-content: space-around;
padding: 15px 0;
}
.menu-item {
position: relative;
}
.menu-item a {
text-decoration: none;
color: #333;
font-size: 18px;
padding: 10px 20px;
transition: background 0.3s ease, color 0.3s ease;
}
.menu-item a:hover {
background: #ff6600;
color: white;
border-radius: 10px;
}
.submenu {
position: absolute;
top: 100%;
left: 0;
background: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
display: none;
list-style: none;
min-width: 200px;
z-index: 10;
}
.submenu li {
padding: 10px 20px;
}
.submenu li a {
color: #333;
}
.submenu li a:hover {
color: white;
background: #ff6600;
border-radius: 5px;
}
.menu-item:hover .submenu {
display: block;
}
/* ========== Suchleiste ========== */
.search-bar {
display: flex;
gap: 15px;
width: 100%;
padding: 20px;
background: #ffffff;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
position: sticky;
top: 65px;
z-index: 1000;
}
.search-bar input,
.search-bar select {
padding: 12px;
font-size: 16px;
border: 1px solid #ddd;
border-radius: 5px;
flex: 1;
}
.search-bar button {
padding: 12px 20px;
background: #ff6600;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background 0.3s ease;
}
.search-bar button:hover {
background: #e95b00;
}
/* ========== Karten ========== */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
width: 100%;
padding: 20px;
}
.card {
background: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
text-align: center;
padding: 20px;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.card img {
max-width: 100%;
height: auto;
border-radius: 10px;
margin-bottom: 10px;
}
.card h3 {
font-size: 20px;
color: #333;
margin: 10px 0;
}
.card p {
font-size: 14px;
color: #666;
margin: 5px 0;
}
.add-to-cart {
background: #ff6600;
color: white;
border: none;
padding: 12px 20px;
border-radius: 25px;
margin-top: 10px;
cursor: pointer;
transition: background 0.3s ease;
}
.add-to-cart:hover {
background: #e95b00;
}
/* ========== Footer ========== */
.footer {
background: #222;
color: #fff;
padding: 30px 20px;
text-align: center;
margin-top: auto;
}
main {
flex: 1;
}
.footer a {
color: #ff6600;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
/* ========== Bestellinformationen ========== */
#bestellung {
display: flex;
flex-direction: column;
gap: 20px;
padding: 30px 20px;
max-width: 800px;
margin: 0 auto;
}
.bestell-info-card {
background: #ffffff;
border-radius: 15px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
padding: 25px;
transition: transform 0.3s ease;
}
.bestell-info-card:hover {
transform: translateY(-5px);
}
.bestell-info-card h3 {
font-size: 20px;
color: #333;
margin-bottom: 15px;
}
.bestell-info-card p {
font-size: 16px;
color: #555;
margin-bottom: 8px;
}
.bestell-info-card strong {
color: #333;
}
.warenkorb {
max-width: 1000px;
margin: 40px auto;
padding: 20px;
background-color: #fff;
border-radius: 16px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
main > h2 {
text-align: center;
font-size: 2rem;
margin-bottom: 30px;
color: #333;
}
.warenkorb-tabelle {
width: 100%;
border-collapse: collapse;
font-size: 1rem;
}
.warenkorb-tabelle th, .warenkorb-tabelle td {
padding: 12px 15px;
text-align: center;
border-bottom: 1px solid #ddd;
}
.warenkorb-tabelle th {
background-color: #f4f4f4;
color: #444;
}
.warenkorb-tabelle tr:nth-child(even) {
background-color: #fafafa;
}
.menge-button, .loeschen-button {
background-color: #4a90e2;
border: none;
color: white;
padding: 6px 10px;
border-radius: 8px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.2s ease;
}
.menge-button:hover, .loeschen-button:hover {
background-color: #357ab8;
}
.loeschen-button {
background-color: #e74c3c;
}
.loeschen-button:hover {
background-color: #c0392b;
}
.produkt-anzahl {
margin: 0 8px;
display: inline-block;
min-width: 24px;
text-align: center;
font-weight: bold;
}
#gesamtpreis-container {
margin-top: 20px;
text-align: right;
font-size: 1.2rem;
font-weight: bold;
color: #222;
}
#zurKasseGehen {
margin-top: 30px;
background-color: #e95b00;
color: white;
padding: 12px 25px;
border: none;
border-radius: 12px;
font-size: 18px;
cursor: pointer;
transition: background-color 0.3s ease;
display: block;
margin-left: auto;
}
#zurKasseGehen:hover {
background-color: #219150;
}
/* ========== Bestellformular Styling ========== */
.form-container {
background: #fff;
max-width: 700px;
margin: 40px auto;
padding: 30px;
border-radius: 20px;
box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
#bestellform {
display: flex;
flex-direction: column;
gap: 15px;
}
#bestellform h2 {
text-align: center;
margin-bottom: 10px;
font-size: 26px;
color: #ff6600;
}
#bestellform label {
font-weight: 500;
font-weight: bold;
}
#bestellform input[type="text"] {
padding: 12px;
border-radius: 10px;
border: 1px solid #ccc;
font-size: 16px;
transition: border-color 0.3s;
}
#bestellform input[type="text"]:focus {
border-color: #ff6600;
outline: none;
}
h2 {
font-size: 24px;
margin-bottom: 20px;
text-align: center;
color: #333;
}
label {
font-size: 16px;
margin-bottom: 8px;
color: #555;
display: block;
}
input[type="text"], input[type="number"] {
width: 100%;
padding: 12px;
font-size: 16px;
margin-bottom: 15px;
border: 1px solid #ddd;
border-radius: 8px;
background-color: #f5f5f5;
transition: border 0.3s ease, box-shadow 0.3s ease;
}
input[type="text"]:focus, input[type="number"]:focus {
border-color: #ff6600;
box-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
}
.Artikel {
display: flex;
gap: 5px;
align-items: center;
flex-wrap: wrap;
}
.Artikel input {
flex: 1 1 120px;
margin-bottom: 5px;
}
.Artikel .verfuegbarkeit {
font-size: 14px;
flex-basis: 100%;
margin-top: 5px;
}
.ArtikelNrText, .StueckzahlText {
width: calc(50% - 5px);
font-size: 16px;
border-radius: 8px;
border: 1px solid #ddd;
background-color: #f5f5f5;
}
.ArtikelNrText:focus, .StueckzahlText:focus {
border-color: #ff6600;
box-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
}
.loeschen-button {
background-color: #e74c3c;
color: white;
border: none;
padding: 8px 16px;
font-size: 16px;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.loeschen-button:hover {
background-color: #c0392b;
}
.button-submit {
margin-top: 20px;
padding: 14px;
background: #ff6600;
color: white;
font-weight: bold;
border-radius: 25px;
text-align: center;
display: inline-block;
cursor: pointer;
transition: background 0.3s ease;
text-decoration: none;
}
.button-submit:hover {
background: #e95b00;
}
.verfuegbarkeit {
font-size: 14px;
color: #888;
flex-grow: 1;
text-align: right;
padding-left: 10px;
}
#sendOrder {
display: block;
width: 100%;
padding: 15px;
background-color: #ff6600;
color: white;
text-align: center;
font-size: 18px;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease;
margin-top: 20px;
border: none;
}
#sendOrder:hover {
background-color: #e95b00;
}
@media (max-width: 768px) {
.ArtikelNrText, .StueckzahlText {
width: 100%;
}
}
.link-text-formular {
text-align: center;
font-size: 17px;
color: #555;
}
.link-text-formular a {
color: #ff6600;
text-decoration: none;
font-weight: 500;
}
.link-text-formular a:hover {
text-decoration: underline;
}
input[readonly] {
background-color: #f0f0f0;
color: #666;
border: 1px dashed #999;
cursor: not-allowed;
}
input:not([readonly]) {
background-color: #ffffff;
color: #000;
border: 1px solid #333;
}
/* ========== Formulare und Buttons allgemein ========== */
.input-box {
position: relative;
margin-bottom: 20px;
}
.title {
font-size: 26px;
font-weight: 600;
margin-bottom: 25px;
color: #333;
text-align: center;
}
.input-box input {
width: 100%;
padding: 12px 40px 12px 15px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 16px;
color: #333;
}
.input-box i {
position: absolute;
top: 50%;
right: 15px;
transform: translateY(-50%);
color: #888;
font-size: 20px;
}
.btn {
width: 100%;
padding: 12px 20px;
background: #ff6600;
color: white;
border: none;
border-radius: 10px;
font-size: 16px;
cursor: pointer;
transition: background 0.3s ease;
}
.btn:hover {
background: #e95b00;
}
h1 {
font-size: 24px;
color: #333;
margin-top: 20px;
margin-bottom: 20px;
}
.info-cards-section {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 30px;
padding: 50px 20px;
background: #f8f9fa;
}
.info-card {
background: #ffffff;
border-radius: 15px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
padding: 30px 25px;
width: 320px;
min-height: 50px;
text-align: center;
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
justify-content: center;
}
.info-card:hover {
transform: translateY(-5px);
}
.info-card i {
font-size: 50px;
color: #ff6600;
margin-bottom: 20px;
}
.info-card h3 {
font-size: 22px;
color: #333;
margin-bottom: 10px;
}
.info-card p {
font-size: 16px;
color: #555;
}
/* ========== Error Nachricht (Header und Footer) ========== */
.error-message {
max-width: 600px;
margin: 40px auto;
padding: 30px;
background-color: #fff5f5;
color: #b00020;
border: 1px solid #ffcccc;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
text-align: center;
font-family: inherit;
animation: fadeIn 0.6s ease-in-out;
}
.error-message h3 {
margin-bottom: 10px;
font-size: 1.5rem;
}
.error-message p {
font-size: 1rem;
line-height: 1.5;
}
/* weiche Animation beim Einblenden */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}