<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Auswahl-Dashboard</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
}
h1 {
text-align: center;
color: #2c3e50;
margin-bottom: 50px;
font-size: 2.5rem;
font-weight: 300;
letter-spacing: 2px;
}
.options-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 40px;
padding: 20px;
}
.option-card {
background: white;
border-radius: 20px;
padding: 40px 30px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}
.option-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3));
transform: translateX(-100%);
transition: transform 0.6s ease;
}
.option-card:hover::before {
transform: translateX(100%);
}
.option-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.option-card.backen {
background: linear-gradient(135deg, #fff5e6 0%, #ffe0b3 100%);
}
.option-card.dashboard {
background: linear-gradient(135deg, #e6f3ff 0%, #b3d9ff 100%);
}
.option-card.stoerung {
background: linear-gradient(135deg, #ffe6e6 0%, #ffb3b3 100%);
}
.icon {
font-size: 80px;
margin-bottom: 20px;
display: block;
transition: transform 0.3s ease;
}
.option-card:hover .icon {
transform: scale(1.1) rotate(5deg);
}
.option-card.backen .icon {
color: #ff8c00;
}
.option-card.dashboard .icon {
color: #0066cc;
}
.option-card.stoerung .icon {
color: #dc3545;
}
.option-title {
font-size: 1.5rem;
font-weight: 600;
color: #2c3e50;
margin-bottom: 10px;
}
.option-description {
font-size: 1rem;
color: #7f8c8d;
line-height: 1.6;
}
@media (max-width: 768px) {
h1 {
font-size: 2rem;
margin-bottom: 30px;
}
.options-grid {
grid-template-columns: 1fr;
gap: 20px;
padding: 10px;
}
.option-card {
padding: 30px 20px;
}
.icon {
font-size: 60px;
}
.option-title {
font-size: 1.25rem;
}
}
@media (hover: none) {
.option-card:active {
transform: scale(0.95);
}
}
</style>
</head>
<body>
<div class="container">
<h1>Wählen Sie eine Option</h1>
<div class="options-grid">
<div class="option-card backen" onclick="handleOptionClick('backen')">
<span class="icon">🥐</span>
<h2 class="option-title">Backen</h2>
<p class="option-description">Rezepte, Backanleitungen und Tipps für perfekte Backwaren</p>
</div>
<div class="option-card dashboard" onclick="handleOptionClick('dashboard')">
<span class="icon">📊</span>
<h2 class="option-title">Dashboard</h2>
<p class="option-description">Übersicht, Statistiken und wichtige Kennzahlen auf einen Blick</p>
</div>
<div class="option-card stoerung" onclick="handleOptionClick('stoerung')">
<span class="icon">⚠️</span>
<h2 class="option-title">Störung</h2>
<p class="option-description">Störungsmeldungen, Status und Problembehebung</p>
</div>
</div>
</div>
<script>
function handleOptionClick(option) {
switch(option) {
case 'backen':
console.log('Backen-Bereich wurde ausgewählt');
alert('Sie haben den Backen-Bereich ausgewählt! 🥐');
// Hier könnte eine Weiterleitung erfolgen: window.location.href = '/backen';
break;
case 'dashboard':
console.log('Dashboard wurde ausgewählt');
alert('Sie haben das Dashboard ausgewählt! 📊');
// Hier könnte eine Weiterleitung erfolgen: window.location.href = '/dashboard';
break;
case 'stoerung':
console.log('Störungsmeldung wurde ausgewählt');
alert('Sie haben den Störungsbereich ausgewählt! ⚠️');
// Hier könnte eine Weiterleitung erfolgen: window.location.href = '/stoerung';
break;
default:
console.log('Unbekannte Option');
}
}
// Zusätzliche Tastaturnavigation
document.addEventListener('DOMContentLoaded', function() {
const cards = document.querySelectorAll('.option-card');
cards.forEach((card, index) => {
card.setAttribute('tabindex', '0');
card.setAttribute('role', 'button');
card.setAttribute('aria-label', card.querySelector('.option-title').textContent);
card.addEventListener('keypress', function(e) {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
card.click();
}
});
});
});
</script>
</body>
</html>