Add Kochmodus (screen wake lock toggle) and tablet landscape cooking station layout
This commit is contained in:
@@ -2332,5 +2332,361 @@ body.modal-open {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Kochmodus (Keep Screen Awake & Interactive Cooking Experience)
|
||||
========================================================================== */
|
||||
.recipe-cookmode-banner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid rgba(30, 77, 59, 0.22);
|
||||
border-radius: 10px;
|
||||
padding: 11px 16px;
|
||||
margin-bottom: 20px;
|
||||
box-shadow: 0 2px 8px rgba(30, 77, 59, 0.06);
|
||||
transition: all 0.25s ease;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
body.cook-mode-on .recipe-cookmode-banner {
|
||||
background: #FFFDF0;
|
||||
border-color: #d4c165;
|
||||
box-shadow: 0 4px 16px rgba(212, 193, 101, 0.28);
|
||||
}
|
||||
|
||||
.recipe-cookmode-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.cookmode-icon {
|
||||
font-size: 1.7rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.cookmode-text-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.cookmode-main-text {
|
||||
font-size: 1.05rem;
|
||||
font-weight: 700;
|
||||
color: var(--tannengruen);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.cookmode-sub-text {
|
||||
font-size: 0.82rem;
|
||||
color: #666;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
body.cook-mode-on .cookmode-sub-text {
|
||||
color: #7a5a00;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.recipe-cookmode-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
/* Custom Schieberegler (Slider Switch) */
|
||||
.cb-switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 52px;
|
||||
height: 28px;
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cb-switch input {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.cb-slider {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
inset: 0;
|
||||
background-color: #d0c9be;
|
||||
transition: .25s ease;
|
||||
border-radius: 28px;
|
||||
box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.cb-slider:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 22px;
|
||||
width: 22px;
|
||||
left: 3px;
|
||||
bottom: 3px;
|
||||
background-color: white;
|
||||
transition: .25s ease;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.25);
|
||||
}
|
||||
|
||||
.cb-switch input:checked + .cb-slider {
|
||||
background-color: var(--tannengruen);
|
||||
}
|
||||
|
||||
.cb-switch input:checked + .cb-slider:before {
|
||||
transform: translateX(24px);
|
||||
}
|
||||
|
||||
.cb-switch:focus-within .cb-slider {
|
||||
outline: 2px solid var(--tannengruen);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.cb-switch-sm {
|
||||
width: 44px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.cb-switch-sm .cb-slider:before {
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
left: 3px;
|
||||
bottom: 3px;
|
||||
}
|
||||
|
||||
.cb-switch-sm input:checked + .cb-slider:before {
|
||||
transform: translateX(20px);
|
||||
}
|
||||
|
||||
.cookmode-badge {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 700;
|
||||
padding: 3px 9px;
|
||||
border-radius: 12px;
|
||||
background: rgba(34, 34, 34, 0.08);
|
||||
color: #666;
|
||||
transition: all 0.25s ease;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
body.cook-mode-on .cookmode-badge {
|
||||
background: var(--tannengruen);
|
||||
color: #FFFFFF;
|
||||
box-shadow: 0 0 10px rgba(30, 77, 59, 0.35);
|
||||
}
|
||||
|
||||
/* Compact switch for desktop nav */
|
||||
.cb-nav-cookmode-toggle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
padding: 4px 10px;
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
color: var(--creme);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Interactive ingredient checkoffs */
|
||||
.ingredients-list li.ingredient-item {
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
user-select: none;
|
||||
padding: 4px 8px;
|
||||
border-radius: 6px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.ingredients-list li.ingredient-item:hover {
|
||||
background: rgba(30, 77, 59, 0.06);
|
||||
}
|
||||
|
||||
.ingredients-list li.ingredient-item.is-checked {
|
||||
text-decoration: line-through;
|
||||
opacity: 0.45;
|
||||
color: #777;
|
||||
background: rgba(34, 34, 34, 0.04);
|
||||
}
|
||||
|
||||
/* Interactive step completion in cook mode */
|
||||
.step-card {
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition: all 0.2s ease;
|
||||
user-select: none;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.step-card:hover {
|
||||
border-color: var(--tannengruen);
|
||||
}
|
||||
|
||||
.step-card.is-done {
|
||||
background: rgba(30, 77, 59, 0.05);
|
||||
border-color: rgba(30, 77, 59, 0.35);
|
||||
opacity: 0.72;
|
||||
}
|
||||
|
||||
.step-card.is-done .step-badge {
|
||||
background: var(--tannengruen);
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.step-card.is-done .step-text {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.step-card .step-done-check {
|
||||
display: none;
|
||||
margin-left: auto;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 800;
|
||||
color: var(--tannengruen);
|
||||
flex-shrink: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.step-card.is-done .step-done-check {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Tablet Querformat (Landscape) & Kochstation Layout
|
||||
Optimiert für iPads / Android-Tablets im Querformat (ab 768px landscape)
|
||||
========================================================================== */
|
||||
@media screen and (min-width: 768px) and (orientation: landscape) {
|
||||
/* Volle Bildschirmbreite für entspanntes Kochen aus Distanz */
|
||||
.book-wrapper {
|
||||
max-width: 1400px;
|
||||
width: 100%;
|
||||
margin: 14px auto;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.recipe-page {
|
||||
padding: 24px 32px;
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
/* 2-Spalten-Kochstation: Zutaten links, Schritte rechts */
|
||||
.recipe-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 380px 1fr;
|
||||
gap: 32px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
/* Linke Spalte (Zutaten) bleibt beim Scrollen dauerhaft am Bildschirm fixiert! */
|
||||
.recipe-side {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 76px;
|
||||
max-height: calc(100vh - 96px);
|
||||
overflow-y: auto;
|
||||
padding-right: 8px;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: rgba(30, 77, 59, 0.25) transparent;
|
||||
}
|
||||
|
||||
.recipe-side::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
.recipe-side::-webkit-scrollbar-thumb {
|
||||
background: rgba(30, 77, 59, 0.25);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
/* Kompaktes Foto im Querformat, damit die Zutatenliste sofort im Blick ist */
|
||||
.recipe-photo-box {
|
||||
aspect-ratio: 16 / 9;
|
||||
max-height: 180px;
|
||||
}
|
||||
|
||||
.ingredients-box {
|
||||
padding: 18px 20px;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
|
||||
.ingredients-list li {
|
||||
font-size: 1.05rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
/* Große, aus 1-1.5 Meter Distanz lesbare Schrift auf der Küchenzeile */
|
||||
.recipe-title {
|
||||
font-size: 2.3rem;
|
||||
}
|
||||
|
||||
.recipe-subtitle {
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
|
||||
.step-card {
|
||||
padding: 18px 22px;
|
||||
font-size: 1.15rem;
|
||||
line-height: 1.6;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.step-badge {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
font-size: 1.15rem;
|
||||
}
|
||||
|
||||
.step-text {
|
||||
font-size: 1.14rem;
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.notes-box {
|
||||
padding: 16px 20px;
|
||||
font-size: 1.05rem;
|
||||
line-height: 1.55;
|
||||
}
|
||||
}
|
||||
|
||||
/* Sehr große Tablet-Displays (iPad Pro 12.9", Galaxy Tab Ultra, ab 1200px Querformat) */
|
||||
@media screen and (min-width: 1200px) and (orientation: landscape) {
|
||||
.recipe-grid {
|
||||
grid-template-columns: 430px 1fr;
|
||||
gap: 40px;
|
||||
}
|
||||
|
||||
.step-card {
|
||||
padding: 22px 26px;
|
||||
}
|
||||
|
||||
.step-text {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Druck-Schutz */
|
||||
@media print {
|
||||
.recipe-cookmode-banner,
|
||||
.cb-nav-cookmode-toggle,
|
||||
.step-done-check,
|
||||
.no-print {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user