Footer-Animation und Speisekarten-Produktkarten aus GitHub KNSONWS/Chickago-Boys übernehmen
Footer: Zutaten fliegen von unten ins Bild und fallen wieder raus. Speisekarte: Produktkarten im Plakat-Stil (Standard weiß mit Karo, Specials rot), neue Schriften Archivo Expanded Black, Great Vibes, IBM Plex Mono. Arbeitsordner bilder-upscale/ bewusst nicht übernommen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
554213f71d
commit
dc6e938301
7 files changed
+207
-101
No files matched your search
+121
-31
@@ -24,6 +24,31 @@
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Archivo Expanded';
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: url(../fonts/archivo-expanded-black-latin.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Great Vibes';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url(../fonts/great-vibes-latin.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Mono';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url(../fonts/ibm-plex-mono-latin.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
/* ============ Tokens ============ */
|
||||
:root {
|
||||
--cream: #f7ebd9;
|
||||
@@ -41,6 +66,9 @@
|
||||
--f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
|
||||
--f-sticker: "Titan One", "Arial Black", sans-serif;
|
||||
--f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
|
||||
--f-wide: "Archivo Expanded", "Arial Black", sans-serif;
|
||||
--f-script: "Great Vibes", "Snell Roundhand", cursive;
|
||||
--f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
|
||||
|
||||
--gutter: clamp(1rem, 3.2vw, 3rem);
|
||||
--radius: clamp(18px, 2vw, 30px);
|
||||
@@ -576,7 +604,11 @@ body.menu-open .menu-panel { transform: scale(1); opacity: 1; visibility: visibl
|
||||
.footer__giant { position: relative; margin-top: clamp(2.5rem, 6vw, 5rem); height: calc(94vw / 4.714 + 3vw); }
|
||||
.footer__giant .wm-giant { position: absolute; left: 50%; bottom: 2vw; width: 94vw; transform: translateX(-50%); color: var(--red); }
|
||||
.footer__giant .wm-giant svg { width: 100%; height: auto; filter: drop-shadow(0 0 0 var(--cream)); }
|
||||
.juggle { position: absolute; bottom: 12%; width: clamp(48px, 6vw, 92px); z-index: 2; will-change: transform; }
|
||||
.juggle { position: absolute; bottom: 12%; width: clamp(48px, 6vw, 92px); z-index: 2; pointer-events: none; will-change: transform; }
|
||||
.juggle:nth-of-type(1) { left: 9%; }
|
||||
.juggle:nth-of-type(2) { left: 33%; }
|
||||
.juggle:nth-of-type(3) { left: 60%; }
|
||||
.juggle:nth-of-type(4) { left: 84%; }
|
||||
.juggle svg { width: 100%; height: auto; }
|
||||
|
||||
/* ============ Mobile order bar ============ */
|
||||
@@ -627,41 +659,97 @@ body.nav-visible .cat-nav { top: var(--nav-h); }
|
||||
.menu-cat__head p { max-width: 46ch; margin: 0; font-weight: 500; }
|
||||
|
||||
.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.8rem); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
|
||||
|
||||
/* Standard: weißes Plakat mit rot-weißem Karo oben und unten */
|
||||
.dish {
|
||||
position: relative; display: flex; flex-direction: column;
|
||||
background: var(--white); border-radius: var(--radius);
|
||||
--sq: 12px;
|
||||
--pad-x: clamp(1rem, 2vw, 1.4rem);
|
||||
--media-h: clamp(220px, min(22vw, calc(.92 * (100cqi + 2 * var(--pad-x)))), 300px);
|
||||
--checker: conic-gradient(var(--red) 25%, var(--white) 0 50%, var(--red) 0 75%, var(--white) 0);
|
||||
position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
|
||||
container-type: inline-size;
|
||||
padding: calc(var(--sq) * 2 + clamp(1.2rem, 2.4vw, 1.7rem)) var(--pad-x) calc(var(--sq) * 2 + clamp(1.2rem, 2.4vw, 1.6rem));
|
||||
background:
|
||||
var(--checker) 0 0 / calc(var(--sq) * 2) calc(var(--sq) * 2) repeat-x,
|
||||
var(--checker) 0 100% / calc(var(--sq) * 2) calc(var(--sq) * 2) repeat-x,
|
||||
var(--white);
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
box-shadow: 0 10px 26px rgba(21, 13, 12, .08);
|
||||
transition: transform .45s var(--ease-pop), box-shadow .3s;
|
||||
transition: transform .45s var(--ease-pop), box-shadow .3s, background-position .6s cubic-bezier(.4, 1.6, .7, .95);
|
||||
}
|
||||
.dish:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(21, 13, 12, .16); }
|
||||
.dish__media { position: relative; height: clamp(220px, 22vw, 300px); display: grid; place-items: center; }
|
||||
.dish__media::before {
|
||||
content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 88px; transform: translateY(-20%);
|
||||
background-color: #fff;
|
||||
background-image: linear-gradient(90deg, rgba(224, 20, 14, .6) 50%, transparent 50%), linear-gradient(rgba(224, 20, 14, .6) 50%, transparent 50%);
|
||||
background-size: 44px 44px;
|
||||
transition: background-position .6s cubic-bezier(.4, 1.6, .7, .95);
|
||||
.dish:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(21, 13, 12, .16); background-position: var(--sq) 0, calc(var(--sq) * -1) 100%, 0 0; }
|
||||
.dish__name {
|
||||
font-family: var(--f-wide); font-weight: 900; text-transform: uppercase;
|
||||
font-size: clamp(1.2rem, 8cqi, 2.5rem); line-height: .95; letter-spacing: -.01em;
|
||||
margin: 0; color: var(--red); text-wrap: balance;
|
||||
}
|
||||
@media (min-width: 561px) {
|
||||
.dish-grid .dish:not(.dish--special) .dish__name { min-height: 1.9em; display: grid; place-items: center; }
|
||||
}
|
||||
/* Fotobereich so groß wie vorher: volle Kartenbreite; die Höhe endet dort, wo auch das höchste Foto nicht mehr wachsen würde */
|
||||
.dish__media {
|
||||
position: relative; width: calc(100% + 2 * var(--pad-x)); margin: .4rem calc(-1 * var(--pad-x)) .2rem;
|
||||
height: var(--media-h);
|
||||
}
|
||||
.dish:hover .dish__media::before { background-position: 22px 0; }
|
||||
.dish__media img { position: absolute; z-index: 1; left: 11%; top: 6%; width: 78%; height: 88%; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(21, 13, 12, .25)); transition: transform .7s var(--ease-pop); }
|
||||
.dish:hover .dish__media img { transform: scale(1.06) rotate(-2deg); }
|
||||
.dish__badge { position: absolute; z-index: 2; left: 1rem; top: 1rem; font-size: .85rem; --r: -6deg; border-width: 3px; }
|
||||
.dish__body { padding: 1rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
|
||||
.dish__row { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
|
||||
.dish h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); line-height: .95; margin: 0; color: var(--red-deep); }
|
||||
.dish p { font-size: .95rem; margin: 0; opacity: .85; }
|
||||
.dish .variants { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .6rem; }
|
||||
.dish .variants span { font-weight: 700; font-size: .88rem; border: 2px solid var(--ink); border-radius: 999px; padding: .15em .6em; }
|
||||
.dish__badge { position: absolute; z-index: 2; right: calc(var(--pad-x) * .6); top: 14%; font-size: .85rem; --r: 7deg; border-width: 3px; }
|
||||
.dish__body { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .75rem; flex: 1; }
|
||||
.dish p { font-size: .95rem; margin: 0; opacity: .85; max-width: 34ch; }
|
||||
.dish .price { margin-top: auto; font-family: var(--f-wide); font-weight: 900; font-size: .95rem; background: var(--red); color: var(--white); padding: .6em 1.1em; }
|
||||
.dish .variants { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: auto; }
|
||||
.dish .variants span { font-family: var(--f-mono); font-size: .82rem; color: var(--red-deep); border: 2px solid var(--red); border-radius: 999px; padding: .2em .7em; }
|
||||
|
||||
/* Special: rote Studio-Fläche mit Körnung, Schreibschrift über fetter Breitschrift, Mono-Zeile */
|
||||
.dish--special {
|
||||
--bg: #b30d07;
|
||||
color: var(--cream);
|
||||
padding: clamp(1.6rem, 3.4vw, 2.4rem) var(--pad-x) calc(var(--sq) * 2 + clamp(1.2rem, 2.4vw, 1.6rem));
|
||||
background:
|
||||
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px,
|
||||
radial-gradient(120% 90% at 50% 40%, #cc160d 0%, var(--bg) 50%, #9a0604 100%);
|
||||
box-shadow: 0 14px 32px rgba(140, 10, 6, .28);
|
||||
}
|
||||
.dish--special:hover { box-shadow: 0 24px 44px rgba(140, 10, 6, .36); background-position: 0 0, 0 0; }
|
||||
.dish--special .dish__name { color: var(--cream); font-size: clamp(1.35rem, 12.5cqi, 3.6rem); line-height: .9; }
|
||||
.dish__script {
|
||||
display: block; position: relative; z-index: 1;
|
||||
font-family: var(--f-script); font-weight: 400; text-transform: none; letter-spacing: 0;
|
||||
font-size: clamp(2.3rem, 16cqi, 4.2rem); line-height: .82; margin-bottom: -.2em;
|
||||
-webkit-text-stroke: .03em var(--bg); paint-order: stroke fill;
|
||||
}
|
||||
.dish__script--the { font-size: clamp(3rem, 22cqi, 5.5rem); margin-bottom: -.3em; }
|
||||
.dish__script--long { font-size: clamp(1.9rem, 12cqi, 3.6rem); white-space: nowrap; }
|
||||
/* Foto direkt unter dem Namen (leicht überlappend wie auf dem Plakat), gleiche Größe wie bei Standard-Karten */
|
||||
.dish--special .dish__media { margin-top: -.5rem; z-index: 1; height: auto; }
|
||||
.dish--special .dish__media img { position: relative; display: block; left: auto; top: auto; width: auto; height: auto; max-width: 78%; max-height: calc(.88 * var(--media-h)); margin: 0 auto; }
|
||||
.dish--special .dish__body > p { margin-top: auto; }
|
||||
.dish--special p, .dish__kicker {
|
||||
font-family: var(--f-mono); text-transform: uppercase; font-size: .78rem; line-height: 1.6;
|
||||
letter-spacing: .14em; word-spacing: .25em; opacity: .95;
|
||||
}
|
||||
.dish--special .price { background: var(--cream); color: var(--red-deep); }
|
||||
|
||||
.dish--promo { justify-content: center; gap: 1.1rem; }
|
||||
.dish__kicker { letter-spacing: .32em; }
|
||||
.dish--promo .promo-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0 0; border-top: 1px solid rgba(247, 235, 217, .35); text-align: left; }
|
||||
.dish--promo .promo-row strong { font-family: var(--f-wide); font-weight: 900; text-transform: uppercase; font-size: 1.15rem; line-height: 1; letter-spacing: -.01em; }
|
||||
.dish--promo .promo-row p { margin-top: .35rem; font-size: .72rem; letter-spacing: .06em; word-spacing: 0; }
|
||||
.dish--promo .price { margin-top: 0; }
|
||||
.dish--promo .dish__name { margin-top: .5rem; }
|
||||
@container (max-width: 320px) {
|
||||
.dish--promo .promo-row { flex-direction: column; align-items: flex-start; gap: .6rem; }
|
||||
}
|
||||
|
||||
.dish-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 4.5rem); }
|
||||
.item { padding: 1.05rem 0; border-bottom: 2px dashed rgba(21, 13, 12, .18); }
|
||||
.item__row { display: flex; align-items: baseline; gap: .6rem; }
|
||||
.item h3 { font-family: var(--f-body); font-weight: 800; font-size: 1.12rem; margin: 0; }
|
||||
.item h3 { font-family: var(--f-wide); font-weight: 900; text-transform: uppercase; font-size: clamp(.88rem, .8rem + .3vw, 1.02rem); line-height: 1.2; letter-spacing: -.005em; margin: 0; color: var(--red-deep); text-wrap: balance; }
|
||||
.item__dots { flex: 1; border-bottom: 3px dotted rgba(21, 13, 12, .35); transform: translateY(-4px); min-width: 1rem; }
|
||||
.item__price { font-family: var(--f-sticker); font-size: 1.05rem; white-space: nowrap; color: var(--red-deep); }
|
||||
.item__price { font-family: var(--f-wide); font-weight: 900; font-size: .95rem; white-space: nowrap; color: var(--ink); }
|
||||
.item p { margin: .25rem 0 0; font-size: .95rem; opacity: .8; }
|
||||
.item .tag { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--yellow); border-radius: 999px; padding: .15em .55em; margin-left: .4rem; vertical-align: .15em; }
|
||||
.item .tag { display: inline-block; font-family: var(--f-body); font-size: .72rem; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: .05em; background: var(--yellow); border-radius: 999px; padding: .15em .55em; margin-left: .4rem; vertical-align: .15em; }
|
||||
|
||||
.menu-extra {
|
||||
margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
|
||||
@@ -711,15 +799,9 @@ body.nav-visible .cat-nav { top: var(--nav-h); }
|
||||
.dish-grid--2 { grid-template-columns: repeat(2, 1fr); }
|
||||
.cat-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
|
||||
.cat-split .dish-list { grid-template-columns: 1fr; }
|
||||
.dish--promo { background: var(--ink); color: var(--cream); border: 4px solid var(--yellow); justify-content: center; padding: clamp(1.4rem, 2.5vw, 2rem); gap: 1rem; }
|
||||
.dish--promo h3 { color: var(--yellow); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); }
|
||||
.dish--promo p { opacity: .9; }
|
||||
.dish--promo .promo-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 2px dashed rgba(247, 235, 217, .25); }
|
||||
.dish--promo .promo-row strong { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
|
||||
.dish--promo .price { background: var(--red); color: var(--white); }
|
||||
.sauce-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
|
||||
.sauce-chips span { display: inline-flex; gap: .6em; align-items: center; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: .45em .95em; font-weight: 700; }
|
||||
.sauce-chips b { font-family: var(--f-sticker); font-weight: 400; color: var(--red-deep); }
|
||||
.sauce-chips span { display: inline-flex; gap: .7em; align-items: center; background: var(--white); border: 2px solid var(--red); border-radius: 999px; padding: .5em 1em; font-family: var(--f-wide); font-weight: 900; font-size: .82rem; text-transform: uppercase; color: var(--red); }
|
||||
.sauce-chips b { font-family: var(--f-mono); font-weight: 400; color: var(--ink); }
|
||||
|
||||
/* ============ Motion setup ============ */
|
||||
html.js [data-pop] .pw { display: inline-block; will-change: transform; }
|
||||
@@ -728,6 +810,7 @@ html.js.anim [data-reveal] { opacity: 0; translate: 0 var(--ry, 40px); }
|
||||
[data-sticker] { scale: var(--s, 1); }
|
||||
html.js.anim [data-sticker] { --s: 0; }
|
||||
html.js.anim .hero [data-intro] { opacity: 0; }
|
||||
html.js.anim .juggle { visibility: hidden; }
|
||||
.hero__big .pl, .page-hero .pl { will-change: transform; }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
@@ -737,6 +820,13 @@ html.js.anim .hero [data-intro] { opacity: 0; }
|
||||
.ticker__track { animation: none; }
|
||||
}
|
||||
|
||||
/* Windows-Kontrastmodus: Plakat-Flächen weg, Schreibschrift ohne Hinterlegung, damit der Name lesbar bleibt */
|
||||
@media (forced-colors: active) {
|
||||
.dish--special { background: Canvas; }
|
||||
.dish__script { forced-color-adjust: none; color: CanvasText; -webkit-text-stroke-color: Canvas; }
|
||||
.dish .price { border: 2px solid CanvasText; }
|
||||
}
|
||||
|
||||
/* ============ Responsive ============ */
|
||||
@media (max-width: 1100px) {
|
||||
.sauce-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3.5rem; }
|
||||
|
||||
Reference in new issue
Block a user