Unterkategorien fertig. Finish - Funktionalität

This commit is contained in:
gitfreeking 2025-04-15 02:46:24 +02:00
parent 263afe76b3
commit ce66f54192
19 changed files with 707 additions and 1548 deletions

View File

@ -1,15 +1,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./Styles/header/header.css">
<title>Header</title>
</head>
<!-- header.html -->
<header>
<div class="logo-container">
<img src="/images/Logo.png" alt="Modellauto-Shop Logo" class="logo-img">
<h1>Modellauto-Shop</h1>
<h1>Modellauto - Shop</h1>
</div>
<div class="header-right">
<a href="/login" class="login-btn">Login</a>

View File

@ -4,9 +4,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./Styles/login/login.css">
<link rel="stylesheet" href="./Styles/styles-main.css">
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
<link rel="stylesheet" href="./Styles/header_footer/header.css">
<link rel="stylesheet" href="./Styles/header_footer/footer.css">
<title>Login</title>
</head>
<body>
@ -21,26 +20,25 @@
.catch(error => console.error('Fehler beim Laden des Headers:', error));
</script>
<div class="wrapper">
<form action="login.php" method="POST">
<h1>Login</h1>
<div class="input-box">
<input type="text" name="username" placeholder="Username" required>
<i class='bx bxs-user'></i>
</div>
<div class="input-box">
<input type="password" id="password" name="password" placeholder="Passwort" required>
<i class='bx bxs-lock-alt' id="togglePassword" onclick="togglePassword()"></i>
</div>
<button type="submit" class="btn">Login</button>
<div class="register-link">
<br>
<p>Noch keinen Account? <a href="/registrieren">Registrieren</a></p>
</div>
</form>
</div>
<main class="main-content">
<div class="login-container">
<h2 class="login-title">Login</h2>
<form class="login-form">
<div class="input-group">
<input type="text" placeholder="Username" required />
<i class="icon fas fa-user"></i>
</div>
<div class="input-group">
<input type="password" placeholder="Passwort" required />
<i class="icon fas fa-lock"></i>
</div>
<button type="submit" class="login-btn">Login</button>
<p class="register-text">
Noch keinen Account? <a href="/registrieren">Registrieren</a>
</p>
</form>
</div>
</main>
<!-- Fußzeiele -->
<div id="footer"></div>

View File

@ -4,62 +4,61 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./Styles/registrieren/registrieren.css">
<link rel="stylesheet" href="./Styles/styles-main.css">
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
<link rel="stylesheet" href="./Styles/header_footer/header.css">
<link rel="stylesheet" href="./Styles/header_footer/footer.css">
<title>Registrieren</title>
</head>
<body>
<!-- Header -->
<div id="header-placeholder"></div>
<script>
fetch(href="/header")
.then(response => response.text())
.then(data => {
document.getElementById('header-placeholder').innerHTML = data;
})
.catch(error => console.error('Fehler beim Laden des Headers:', error));
</script>
<div class="page-container">
<!-- Regestrierungsformular -->
<div class="wrapper">
<form action="register.php" method="POST">
<h1>Registrieren</h1>
<!-- Header -->
<div id="header-placeholder"></div>
<script>
fetch(href="/header")
.then(response => response.text())
.then(data => {
document.getElementById('header-placeholder').innerHTML = data;
})
.catch(error => console.error('Fehler beim Laden des Headers:', error));
</script>
<div class="input-box">
<input type="text" name="vorname" placeholder="Vorname" required>
<i class='bx bxs-user'></i>
</div>
<div class="input-box">
<input type="text" name="nachname" placeholder="Nachname" required>
<i class='bx bxs-user'></i>
</div>
<div class="input-box">
<input type="email" name="email" placeholder="E-Mail" required>
<i class='bx bxs-envelope'></i>
</div>
<div class="input-box">
<input type="password" id="regPassword" name="password" placeholder="Passwort" required>
<i class='bx bxs-lock-alt'></i>
</div>
<!-- Registrierungsformular -->
<main class="content-wrapper">
<div class="wrapper">
<form action="register.php" method="POST">
<h1>Registrieren</h1>
<div class="input-box">
<input type="password" id="confirmPassword" name="confirmPassword" placeholder="Passwort bestätigen" required>
<i class='bx bxs-lock-alt'></i>
<div class="input-box">
<input type="text" name="vorname" placeholder="Vorname" required>
<i class='bx bxs-user'></i>
</div>
<div class="input-box">
<input type="text" name="nachname" placeholder="Nachname" required>
<i class='bx bxs-user'></i>
</div>
<div class="input-box">
<input type="email" name="email" placeholder="E-Mail" required>
<i class='bx bxs-envelope'></i>
</div>
<div class="input-box">
<input type="password" id="regPassword" name="password" placeholder="Passwort" required>
<i class='bx bxs-lock-alt'></i>
</div>
<div class="input-box">
<input type="password" id="confirmPassword" name="confirmPassword" placeholder="Passwort bestätigen" required>
<i class='bx bxs-lock-alt'></i>
</div>
<button type="submit" class="btn">Registrieren</button>
<div class="register-link">
<br>
<p>Bereits ein Konto? <a href="/login">Login</a></p>
</div>
</form>
</div>
<!-- Sicherheitsbalken -->
<div id="passwordStrengthBar" class="password-strength-bar"></div>
<button type="submit" class="btn">Registrieren</button>
<div class="register-link">
<br>
<p>Bereits ein Konto? <a href="/login">Login</a></p>
</div>
</form>
</div>
</div>
</main>
<!-- Fußzeiele -->
<div id="footer"></div>
@ -71,5 +70,6 @@
document.getElementById('footer').innerHTML = data;
});
</script>
</div>
</body>
</html>

View File

@ -4,10 +4,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shop</title>
<link rel="stylesheet" href="./Styles/shop/shop.css">
<link rel="stylesheet" href="./Styles/styles-main.css">
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
<link rel="stylesheet" href="./Styles/header_footer/header.css">
<link rel="stylesheet" href="./Styles/header_footer/footer.css">
</head>
<body>
<!-- Header -->
@ -22,7 +20,7 @@
</script>
<!-- Hauptinhalt -->
<section style="padding: 20px 30px; text-align: left; background: #fff;">
<section style="padding: 0px 30px; text-align: left;">
<h1>Willkommen im Webshop</h1>
</section>

View File

@ -4,20 +4,53 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shop - LKW's</title>
<link rel="stylesheet" href="./Styles/shop/shop.css">
<link rel="stylesheet" href="/Styles/styles-main.css">
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
<link rel="stylesheet" href="./Styles/header_footer/header.css">
<link rel="stylesheet" href="./Styles/header_footer/footer.css">
</head>
<body>
<!-- Header -->
<div id="header-placeholder"></div>
<script>
fetch(href="/header")
.then(response => response.text())
.then(data => {
document.getElementById('header-placeholder').innerHTML = data;
})
.catch(error => console.error('Fehler beim Laden des Headers:', error));
</script>
<!-- Hauptinhalt -->
<section style="padding: 0px 30px; text-align: left;">
<h1>Unsere LKW Produkte</h1>
</section>
<section class="card-grid" id="products_lkw">
<!-- Dynamische Produkte (filtern nach Motorrad) -->
</section>
<script>
fetch('/api/products/lkw')
.then(res => res.json())
.then(products => {
const container = document.getElementById('products_lkw');
container.innerHTML = ''; // sicherheitshalber leeren
products.forEach(product => {
const card = document.createElement('div');
card.classList.add('card');
card.innerHTML = `
<img src="${product.image_url}" alt="${product.name}">
<h3>${product.name}</h3>
<p>Preis: ${product.price}€</p>
<p>${product.description}</p>
<button class="add-to-cart" data-id="${product.id}">Zum Warenkorb hinzufügen</button>
`;
container.appendChild(card);
});
})
.catch(err => {
console.error('Fehler beim Laden der neuesten Produkte:', err);
});
</script>
<!-- Fußzeiele -->
<div id="footer"></div>

View File

@ -4,10 +4,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shop - Motorräder</title>
<link rel="stylesheet" href="./Styles/shop/shop.css">
<link rel="stylesheet" href="/Styles/styles-main.css">
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
<link rel="stylesheet" href="./Styles/header_footer/header.css">
<link rel="stylesheet" href="./Styles/header_footer/footer.css">
</head>
<body>
<!-- Header -->
@ -22,10 +20,11 @@
</script>
<!-- Hauptinhalt -->
</br>
<h1>Unsere Motorrad Produkte</h1>
<section style="padding: 0px 30px; text-align: left;">
<h1>Unsere Motorrad Produkte</h1>
</section>
<section class="card-grid" id="products_motorrad">
<!-- Dynamische Produkte (5 aktuelle Produkte) -->
<!-- Dynamische Produkte (filtern nach Motorrad) -->
</section>

View File

@ -4,17 +4,53 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shop - Oldtimer</title>
<link rel="stylesheet" href="./Styles/shop/shop.css">
<link rel="stylesheet" href="/Styles/styles-main.css">
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
<link rel="stylesheet" href="./Styles/header_footer/header.css">
<link rel="stylesheet" href="./Styles/header_footer/footer.css">
</head>
<body>
<!-- Header -->
<div id="header-placeholder"></div>
<script>
fetch(href="/header")
.then(response => response.text())
.then(data => {
document.getElementById('header-placeholder').innerHTML = data;
})
.catch(error => console.error('Fehler beim Laden des Headers:', error));
</script>
<!-- Hauptinhalt -->
<section style="padding: 0px 30px; text-align: left;">
<h1>Unsere Oldtimer Produkte</h1>
</section>
<section class="card-grid" id="products_oldtimer">
<!-- Dynamische Produkte (filtern nach Motorrad) -->
</section>
<script>
fetch('/api/products/oldtimer')
.then(res => res.json())
.then(products => {
const container = document.getElementById('products_oldtimer');
container.innerHTML = ''; // sicherheitshalber leeren
products.forEach(product => {
const card = document.createElement('div');
card.classList.add('card');
card.innerHTML = `
<img src="${product.image_url}" alt="${product.name}">
<h3>${product.name}</h3>
<p>Preis: ${product.price}€</p>
<p>${product.description}</p>
<button class="add-to-cart" data-id="${product.id}">Zum Warenkorb hinzufügen</button>
`;
container.appendChild(card);
});
})
.catch(err => {
console.error('Fehler beim Laden der neuesten Produkte:', err);
});
</script>
<!-- Fußzeiele -->
<div id="footer"></div>

View File

@ -4,18 +4,53 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shop - Sportwagen</title>
<link rel="stylesheet" href="./Styles/shop/shop.css">
<link rel="stylesheet" href="/Styles/styles-main.css">
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
<link rel="stylesheet" href="./Styles/header_footer/header.css">
<link rel="stylesheet" href="./Styles/header_footer/footer.css">
</head>
<body>
<!-- Header -->
<div id="header-placeholder"></div>
<script>
fetch(href="/header")
.then(response => response.text())
.then(data => {
document.getElementById('header-placeholder').innerHTML = data;
})
.catch(error => console.error('Fehler beim Laden des Headers:', error));
</script>
<!-- Hauptinhalt -->
<section style="padding: 0px 30px; text-align: left;">
<h1>Unsere Motorrad Produkte</h1>
</section>
<section class="card-grid" id="products_sportwagen">
<!-- Dynamische Produkte (filtern nach Motorrad) -->
</section>
<script>
fetch('/api/products/sportwagen')
.then(res => res.json())
.then(products => {
const container = document.getElementById('products_sportwagen');
container.innerHTML = ''; // sicherheitshalber leeren
products.forEach(product => {
const card = document.createElement('div');
card.classList.add('card');
card.innerHTML = `
<img src="${product.image_url}" alt="${product.name}">
<h3>${product.name}</h3>
<p>Preis: ${product.price}€</p>
<p>${product.description}</p>
<button class="add-to-cart" data-id="${product.id}">Zum Warenkorb hinzufügen</button>
`;
container.appendChild(card);
});
})
.catch(err => {
console.error('Fehler beim Laden der neuesten Produkte:', err);
});
</script>
<!-- Fußzeiele -->
<div id="footer"></div>

View File

@ -4,10 +4,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modellauto - Startseite</title>
<link rel="stylesheet" href="./Styles/startseite/startseite.css">
<link rel="stylesheet" href="./Styles/styles-main.css">
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
<link rel="stylesheet" href="./Styles/header_footer/header.css">
<link rel="stylesheet" href="./Styles/header_footer/footer.css">
</head>
<body>
<div class="wrapper">
@ -24,15 +22,14 @@
<!-- Infobereich -->
<section style="padding: 40px 20px; text-align: center; background: #fff;">
<h2>Willkommen bei deinem Modellauto-Shop</h2>
<p>Bei uns findest du hochwertige Modellautos ob Oldtimer, Sportwagen oder Nutzfahrzeuge.
<h2>Willkommen beim Modellauto-Shop</h2>
<p>Bei uns finden Sie hochwertige Modellautos ob Oldtimer, Sportwagen, Lkw's oder Motorräder.
Perfekt für Sammler, Bastler und Fans.
</p>
</section>
<!-- Hauptinhalt -->
</br>
<h1>Unsere Neusten Produkte</h1>
<h1>Unsere Neusten Produkte: </h1>
<section class="card-grid" id="latest-products">
<!-- Dynamische Produkte (5 aktuelle Produkte) -->
</section>
@ -64,26 +61,26 @@
<!-- Info-Sektion -->
<section style="background: #ffffff; padding: 40px 20px; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 30px; text-align: center;">
<div style="flex: 1 1 250px;">
<i class='bx bx-package' style="font-size: 40px; color: #ff6600;"></i>
<section class="info-cards-section">
<div class="info-card">
<i class='bx bx-package'></i>
<h3>Versandkostenfrei ab 50</h3>
<p>Schneller & sicherer Versand mit Sendungsverfolgung.</p>
</div>
<div style="flex: 1 1 250px;">
<i class='bx bx-credit-card' style="font-size: 40px; color: #ff6600;"></i>
<div class="info-card">
<i class='bx bx-credit-card'></i>
<h3>Flexible Zahlungsmethoden</h3>
<p>PayPal, Kreditkarte, Klarna, Vorkasse du hast die Wahl.</p>
<p>PayPal, Kreditkarte, Klarna, Vorkasse Sie haben die Wahl.</p>
</div>
<div style="flex: 1 1 250px;">
<i class='bx bx-undo' style="font-size: 40px; color: #ff6600;"></i>
<div class="info-card">
<i class='bx bx-undo'></i>
<h3>14 Tage Rückgaberecht</h3>
<p>Unzufrieden? Kein Problem Rückgabe einfach & unkompliziert.</p>
</div>
<div style="flex: 1 1 250px;">
<i class='bx bx-star' style="font-size: 40px; color: #ff6600;"></i>
<div class="info-card">
<i class='bx bx-star'></i>
<h3>Top-Bewertungen</h3>
<p>Unsere Kunden lieben uns überzeug dich selbst!</p>
<p>Unsere Kunden lieben uns überzeugen Sie sich selbst!</p>
</div>
</section>
@ -99,6 +96,5 @@
</script>
</div>
</body>
</html>

View File

@ -54,7 +54,7 @@ app.get('/api/products', (req, res) => {
app.get('/api/products/new', async (req, res) => {
// SQL-Abfrage für Produktdaten
const sql = 'SELECT * FROM webshop.product ORDER BY created_at DESC LIMIT 5';
const sql = 'SELECT * FROM webshop.product ORDER BY created_at DESC LIMIT 4';
// Abfrage ausführen
db.query(sql, (err, results) => {
@ -69,7 +69,52 @@ app.get('/api/products/new', async (req, res) => {
app.get('/api/products/motorrad', async (req, res) => {
// SQL-Abfrage für Produktdaten
const sql = 'SELECT * FROM webshop.product_category WHERE id = 4';
const sql = 'SELECT * FROM webshop.product WHERE category_id = 4';
// Abfrage ausführen
db.query(sql, (err, results) => {
if (err) {
console.error('Fehler beim Abrufen der Produkte:', err);
res.status(500).send('Fehler beim Abrufen der Produkte');
return;
}
res.json(results); // Rückgabe der Produktdaten als JSON
});
});
app.get('/api/products/oldtimer', async (req, res) => {
// SQL-Abfrage für Produktdaten
const sql = 'SELECT * FROM webshop.product WHERE category_id = 2';
// Abfrage ausführen
db.query(sql, (err, results) => {
if (err) {
console.error('Fehler beim Abrufen der Produkte:', err);
res.status(500).send('Fehler beim Abrufen der Produkte');
return;
}
res.json(results); // Rückgabe der Produktdaten als JSON
});
});
app.get('/api/products/lkw', async (req, res) => {
// SQL-Abfrage für Produktdaten
const sql = 'SELECT * FROM webshop.product WHERE category_id = 3';
// Abfrage ausführen
db.query(sql, (err, results) => {
if (err) {
console.error('Fehler beim Abrufen der Produkte:', err);
res.status(500).send('Fehler beim Abrufen der Produkte');
return;
}
res.json(results); // Rückgabe der Produktdaten als JSON
});
});
app.get('/api/products/sportwagen', async (req, res) => {
// SQL-Abfrage für Produktdaten
const sql = 'SELECT * FROM webshop.product WHERE category_id = 1';
// Abfrage ausführen
db.query(sql, (err, results) => {

View File

@ -1,234 +0,0 @@
/* Allgemeine Einstellungen */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background: #f8f9fa;
color: #333;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Header */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
width: 100%;
background: #ffffff;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 1000;
}
header h1 {
font-size: 28px;
color: #333;
}
.header-right {
display: flex;
align-items: center;
gap: 15px;
}
header .login-btn {
font-size: 14px;
text-decoration: none;
color: white;
background: #ff6600;
padding: 10px 20px;
border-radius: 25px;
transition: background 0.3s ease;
}
header .login-btn:hover {
background: #e95b00;
}
.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 */
.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;
}

View File

@ -1,16 +0,0 @@
.footer {
background: #222;
color: #fff;
padding: 30px 20px;
text-align: center;
margin-top: 40px;
}
.footer a {
color: #ff6600;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}

View File

@ -1,245 +0,0 @@
/* Allgemeine Einstellungen */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background: #f8f9fa;
color: #333;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Header */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 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;
gap: 15px;
}
.logo-img {
height: 60px;
object-fit: contain;
}
header h1 {
font-size: 28px;
color: #333;
}
.header-right {
display: flex;
align-items: center;
gap: 15px;
}
header .login-btn {
font-size: 14px;
text-decoration: none;
color: white;
background: #ff6600;
padding: 10px 20px;
border-radius: 25px;
transition: background 0.3s ease;
}
header .login-btn:hover {
background: #e95b00;
}
.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 */
.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;
}

View File

@ -1,344 +1,68 @@
/* Allgemeine Einstellungen */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background: #f8f9fa;
color: #333;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
/* Wrapper */
.wrapper {
background: #ffffff;
padding: 40px;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
.login-container {
background-color: #fff;
padding: 40px 30px;
border-radius: 16px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
width: 100%;
}
h1 {
font-size: 24px;
text-align: center;
color: #333;
margin-bottom: 20px;
margin: 50px auto; /* Zentriert das Formular */
}
/* Input-Box */
.input-box {
.login-title {
font-size: 26px;
font-weight: 600;
margin-bottom: 25px;
color: #333;
}
.login-form .input-group {
position: relative;
margin-bottom: 20px;
}
.input-box input {
.login-form input {
width: 100%;
padding: 12px 40px 12px 15px;
padding: 12px 15px 12px 15px;
border: 1px solid #ddd;
border-radius: 5px;
border-radius: 8px;
font-size: 16px;
color: #333;
outline: none;
}
/* Styling für das Schloss-Icon */
.input-box i {
position: absolute;
top: 50%;
right: 15px;
transform: translateY(-50%);
color: #888;
font-size: 20px;
cursor: pointer;
.login-form .icon {
display: none; /* Falls du später Icons einbinden willst, kannst du das anpassen */
}
/* Remember and Forgot */
.remember-forgot {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
font-size: 14px;
}
.remember-forgot a {
color: #ff6600;
text-decoration: none;
}
.remember-forgot a:hover {
text-decoration: underline;
}
/* Button */
.btn {
.login-btn {
width: 100%;
padding: 12px 20px;
background: #ff6600;
color: white;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background 0.3s ease;
}
.btn:hover {
background: #e95b00;
}
/* Register-Link */
.register-link {
text-align: center;
font-size: 14px;
}
.register-link a {
color: #ff6600;
text-decoration: none;
}
.register-link a:hover {
text-decoration: underline;
}
/* Allgemeine Einstellungen */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background: #f8f9fa;
color: #333;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Header */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
width: 100%;
background: #ffffff;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 1000;
}
header h1 {
font-size: 28px;
color: #333;
}
.header-right {
display: flex;
align-items: center;
gap: 15px;
}
header .login-btn {
font-size: 14px;
text-decoration: none;
color: white;
background: #ff6600;
padding: 10px 20px;
border-radius: 25px;
transition: background 0.3s ease;
}
header .login-btn:hover {
background: #e95b00;
}
.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 */
.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;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: background 0.3s ease;
}
.add-to-cart:hover {
.login-btn:hover {
background: #e95b00;
}
.register-text {
margin-top: 20px;
font-size: 14px;
color: #555;
}
.register-text a {
color: #ff6600;
text-decoration: none;
font-weight: 500;
}
.register-text a:hover {
text-decoration: underline;
}

View File

@ -1,131 +1,83 @@
/* Allgemeine Einstellungen */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
.page-container {
display: flex;
flex-direction: column;
min-height: 100vh;
}
body {
background: #f8f9fa;
color: #333;
min-height: 100vh;
.wrapper {
max-width: 400px;
width: 100%;
padding: 30px;
background-color: #ffffff;
border: 1px solid #ddd;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.content-wrapper {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
padding: 40px 20px;
}
/* Wrapper für das Formular */
.wrapper {
width: 100%;
.registration-container {
max-width: 400px;
padding: 20px;
background: #fff;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin: 60px auto;
padding: 30px;
background-color: #ffffff;
border: 1px solid #ddd;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
h1 {
.registration-container h2 {
text-align: center;
margin-bottom: 20px;
color: #333;
font-size: 1.8em;
}
/* Eingabefelder */
.input-box {
position: relative;
margin-bottom: 20px;
}
/* Textfelder */
.input-box input {
.registration-container input[type="text"],
.registration-container input[type="email"],
.registration-container input[type="password"] {
width: 100%;
padding: 12px 15px;
font-size: 16px;
border: 1px solid #ddd;
border-radius: 5px;
outline: none;
padding-left: 40px; /* Platz für das Icon */
padding: 10px 12px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 1em;
box-sizing: border-box;
}
/* Positionierung der Icons */
.input-box i {
position: absolute;
top: 50%;
left: 10px;
transform: translateY(-50%);
font-size: 18px;
color: #888;
}
/* Passwortfeld */
.input-box input[type="password"] {
padding-right: 40px; /* Platz für das Passwort-Symbol rechts */
}
/* Positionierung des Passwort-Symbols */
#toggleRegPassword {
position: absolute;
top: 50%;
right: 10px;
transform: translateY(-50%);
font-size: 18px;
color: #888;
cursor: pointer;
}
/* Passwort Sicherheitsbalken */
.password-strength-bar {
height: 8px;
width: 0%;
background-color: #ccc;
margin-top: 5px;
transition: width 0.3s ease, background-color 0.3s ease;
border-radius: 4px;
}
/* Sicherheitsstufen */
.password-strength-bar.weak {
background-color: #f44336; /* Rot für schwach */
}
.password-strength-bar.medium {
background-color: #ff9800; /* Orange für mittel */
}
.password-strength-bar.strong {
background-color: #4caf50; /* Grün für stark */
}
/* Button */
.btn {
.registration-container button[type="submit"] {
width: 100%;
padding: 12px;
background: #ff6600;
padding: 10px;
background-color: #007bff;
color: white;
border: none;
border-radius: 25px;
font-size: 16px;
border-radius: 8px;
font-size: 1em;
cursor: pointer;
transition: background 0.3s ease;
transition: background-color 0.3s ease;
}
.btn:hover {
background: #e95b00;
.registration-container button[type="submit"]:hover {
background-color: #0056b3;
}
/* Registrierung-Link */
.register-link {
text-align: center;
margin-top: 20px;
font-size: 14px;
margin-top: 15px;
}
.register-link a {
text-decoration: none;
color: #ff6600;
text-decoration: none;
font-weight: 500;
}
.register-link a:hover {
color: #e95b00;
text-decoration: underline;
}

View File

@ -1,245 +0,0 @@
/* Allgemeine Einstellungen */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background: #f8f9fa;
color: #333;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Header */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 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;
gap: 15px;
}
.logo-img {
height: 60px;
object-fit: contain;
}
header h1 {
font-size: 28px;
color: #333;
}
.header-right {
display: flex;
align-items: center;
gap: 15px;
}
header .login-btn {
font-size: 14px;
text-decoration: none;
color: white;
background: #ff6600;
padding: 10px 20px;
border-radius: 25px;
transition: background 0.3s ease;
}
header .login-btn:hover {
background: #e95b00;
}
.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 */
.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;
}

View File

@ -1,245 +0,0 @@
/* Allgemeine Einstellungen */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background: #f8f9fa;
color: #333;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Header */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 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;
gap: 15px;
}
.logo-img {
height: 60px;
object-fit: contain;
}
header h1 {
font-size: 28px;
color: #333;
}
.header-right {
display: flex;
align-items: center;
gap: 15px;
}
header .login-btn {
font-size: 14px;
text-decoration: none;
color: white;
background: #ff6600;
padding: 10px 20px;
border-radius: 25px;
transition: background 0.3s ease;
}
header .login-btn:hover {
background: #e95b00;
}
.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 */
.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;
}

View File

@ -1,26 +1,361 @@
/*
===============
Fonts
===============
*/
@import url("https://fonts.googleapis.com/css?family=Open+Sans|Roboto:400,700&display=swap");
/*
===============
Variables
===============
*/
:root {
--demo-clr: #ff0000;
/* ========== Allgemeine Einstellungen ========== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
/*
===============
Global Styles
===============
*/
body {
background: #f8f9fa;
color: #333;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* ========== 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;
gap: 15px;
}
.logo-img {
height: 70px;
object-fit: contain;
}
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: 40px;
margin-top: auto;
}
main {
flex: 1;
}
.footer a {
color: #ff6600;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
/* ========== Formulare und Buttons allgemein ========== */
.input-box {
position: relative;
margin-bottom: 20px;
}
.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: 5px;
font-size: 16px;
cursor: pointer;
transition: background 0.3s ease;
}
.btn:hover {
background: #e95b00;
}
h1 {
color: var(--demo-clr);
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: 300px;
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;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 534 KiB