Files

335 lines
9.4 KiB
Plaintext
Executable File

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>@ViewData["Title"] - Kochstube</title>
<style>
:root {
--bg: #f5f0e8;
--card: #ffffff;
--accent: #d94f30;
--accent2: #fef3e2;
--text: #2d2a26;
--muted: #7a7470;
--tag-bg: #f0e6d6;
--tag-text: #6b5e4f;
--quick: #e8960c;
--border: #e8e0d4;
--shadow: rgba(120, 100, 70, .1);
--radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
}
header {
text-align: center;
padding: 2.5rem 1rem 1.5rem;
background: linear-gradient(135deg, #fff8ef, #fef3e2);
border-bottom: 3px solid var(--accent);
}
header h1 { font-size: 2.4rem; letter-spacing: 2px; color: var(--text); }
header h1 span { color: var(--accent); }
header p { color: var(--muted); margin-top: .4rem; font-size: .95rem; }
header a { text-decoration: none; color: inherit; }
main {
max-width: 1400px;
margin: 0 auto;
padding: 1.5rem 1rem;
}
/* Search / Filter bar */
.search-bar-wrap {
position: sticky;
top: 0;
z-index: 10;
background: var(--bg);
border-bottom: 1px solid var(--border);
box-shadow: 0 2px 8px var(--shadow);
}
.search-bar {
display: flex;
flex-wrap: wrap;
gap: .5rem;
justify-content: center;
padding: 1.2rem 1rem;
max-width: 1400px;
margin: 0 auto;
}
.search-bar input, .search-bar select {
background: var(--card);
color: var(--text);
border: 1px solid var(--border);
padding: .45rem 1rem;
border-radius: 20px;
font-size: .85rem;
outline: none;
}
.search-bar input { flex: 1; min-width: 200px; }
.search-bar input::placeholder { color: #b5ada5; }
.search-bar input:focus, .search-bar select:focus { border-color: var(--accent); }
.search-bar select {
cursor: pointer;
}
.search-bar button {
background: var(--accent);
color: #fff;
border: none;
padding: .45rem 1.2rem;
border-radius: 20px;
font-size: .85rem;
cursor: pointer;
transition: opacity .2s;
}
.search-bar button:hover { opacity: .9; }
.stats {
color: var(--muted);
margin-bottom: 1rem;
font-size: .9rem;
text-align: center;
}
/* Grid */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.5rem;
}
/* Card */
.card {
background: var(--card);
border-radius: var(--radius);
overflow: hidden;
transition: transform .2s, box-shadow .2s;
cursor: pointer;
text-decoration: none;
color: inherit;
display: block;
position: relative;
border: 1px solid var(--border);
box-shadow: 0 2px 12px var(--shadow);
}
.card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 40px rgba(120, 100, 70, .18);
}
.card-img {
width: 100%;
height: 200px;
object-fit: cover;
display: block;
}
.card-img-placeholder {
width: 100%;
height: 200px;
background: var(--tag-bg);
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
}
.badge-quick {
position: absolute;
top: 12px;
right: 12px;
background: var(--quick);
color: #fff;
font-size: .7rem;
font-weight: 700;
padding: .25rem .6rem;
border-radius: 10px;
box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.card-body { padding: 1rem 1.2rem 1.2rem; }
.card-body h3 { font-size: 1.1rem; margin-bottom: .5rem; line-height: 1.3; }
.card-body p {
color: var(--muted);
font-size: .85rem;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.card-meta {
display: flex;
gap: .8rem;
margin-top: .7rem;
font-size: .8rem;
color: var(--muted);
}
.card-meta span { display: flex; align-items: center; gap: .3rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.tag {
background: var(--tag-bg);
color: var(--tag-text);
padding: .15rem .55rem;
border-radius: 8px;
font-size: .72rem;
text-decoration: none;
}
.tag:hover { opacity: .8; }
/* Detail page */
.detail { max-width: 750px; margin: 0 auto; }
.detail h1 { font-size: 1.8rem; margin-bottom: .3rem; }
.detail .desc { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.2rem; line-height: 1.5; }
.detail-img {
width: 100%;
max-height: 350px;
object-fit: cover;
border-radius: var(--radius);
margin-bottom: 1.5rem;
box-shadow: 0 4px 20px var(--shadow);
}
.detail-meta {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}
.meta-item {
background: var(--accent2);
padding: .5rem 1rem;
border-radius: 12px;
text-align: center;
border: 1px solid var(--border);
font-size: .85rem;
}
.meta-item .label { font-size: .7rem; color: var(--muted); display: block; text-transform: uppercase; letter-spacing: 1px; }
.meta-item .value { font-size: 1.1rem; font-weight: 700; }
.section { margin-bottom: 2rem; }
.section h2 {
font-size: 1rem;
margin-bottom: .6rem;
color: var(--accent);
text-transform: uppercase;
letter-spacing: 1px;
}
.zutaten-list { list-style: none; }
.zutaten-list li {
padding: .5rem 0;
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
font-size: .92rem;
}
.zutaten-list .menge { color: var(--accent); font-weight: 600; }
.steps { list-style: none; counter-reset: step; }
.steps li {
counter-increment: step;
padding: .8rem 0;
padding-left: 2.5rem;
position: relative;
border-bottom: 1px solid var(--border);
line-height: 1.5;
font-size: .92rem;
}
.steps li::before {
content: counter(step);
position: absolute;
left: 0;
background: var(--accent);
color: white;
width: 1.8rem;
height: 1.8rem;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: .85rem;
font-weight: 700;
}
.notizen {
background: #fef6e9;
padding: 1rem;
border-radius: 12px;
border-left: 3px solid var(--quick);
color: var(--muted);
font-size: .9rem;
line-height: 1.5;
}
.quelle {
font-size: .85rem;
color: var(--muted);
}
.quelle a { color: var(--accent); text-decoration: none; }
.quelle a:hover { text-decoration: underline; }
.back-link {
display: inline-block;
margin-bottom: 1.5rem;
color: var(--accent);
text-decoration: none;
font-size: .9rem;
}
.back-link:hover { text-decoration: underline; }
.no-results {
text-align: center;
padding: 3rem;
color: var(--muted);
font-size: 1.1rem;
grid-column: 1 / -1;
}
@@media (max-width: 600px) {
header { padding: 1.5rem 1rem 1rem; }
header h1 { font-size: 1.8rem; }
main { padding: 1rem 0.5rem; }
.grid { grid-template-columns: 1fr; gap: 1rem; }
.detail-body { padding: 1.2rem; }
.search-bar input { width: 100%; }
}
</style>
</head>
<body>
<header>
<a href="/">
<h1>🍳 Koch<span>stube</span></h1>
<p>Rezepte von Tausi & Nocki</p>
</a>
</header>
@RenderSection("FilterBar", required: false)
<main>
@RenderBody()
</main>
</body>
</html>