/*
Theme Name: Fettboy
Theme URI: https://fettboy.de
Description: Child theme of Twenty Twenty-Five for Fettboy, Bautzner Str. 14, Dresden. Built 2026-11 to replace Avada. Fonts self-hosted (Anton, Hanken Grotesk; SIL OFL), no external requests.
Author: Pat Erler - EDV-Beratung
Template: twentytwentyfive
Version: 1.0.7
Requires at least: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: fettboy
*/

/* ---- Base ------------------------------------------------------------ */
:root { --fb-ink: #120f0c; --fb-amber: #f2a71b; --fb-line: #e3d9c4; }
html { scroll-behavior: smooth; }
/* Sections butt against each other; no root block gap between header, main and footer */
body .wp-site-blocks > * { margin-block-start: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 5rem; }
:where(a, button, input, textarea, summary):focus-visible { outline: 2px solid var(--fb-amber); outline-offset: 3px; }
::selection { background: var(--fb-amber); color: var(--fb-ink); }

/* Eyebrow label above section headings */
.fb-eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.5rem !important; }

/* ---- Header ---------------------------------------------------------- */
.fb-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .fb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fb-header { top: 46px; } }
.fb-header .wp-block-site-logo img { display: block; }
.fb-header .wp-block-navigation a:hover { color: var(--fb-amber); }
.fb-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--fb-ink) !important; color: var(--wp--preset--color--cream) !important; }

/* ---- Hero ------------------------------------------------------------ */
.fb-hero h1 { font-size: clamp(4rem, 13vw, 10rem); }
.fb-hero.wp-block-cover { min-height: max(80vh, 34rem); }
.fb-hero .wp-block-cover__inner-container { max-width: 1200px; width: 100%; }
.fb-hero .wp-block-cover__image-background { object-fit: cover; }
/* Photo hero: keep text cream and the left side dark enough for WCAG AA; the burger stays visible on the right */
.fb-hero h1, .fb-hero p:not(.fb-eyebrow) { color: var(--wp--preset--color--cream); }
/* Crossfade slider, CSS only. Frame 1 is the Cover's own <img> (LCP image); frames 2-4 are the images of a Custom HTML
   block, stacked above it and faded in one after another (6 s per photo, 1 s fade, 24 s loop). The overlay lives on
   .fb-hero-slides::after so it darkens every frame equally; the Cover's own overlay span is switched off. */
.fb-hero .wp-block-cover__inner-container { position: static; z-index: auto; }
.fb-hero .wp-block-cover__inner-container > :not(.fb-hero-slides) { position: relative; z-index: 2; }
.fb-hero .wp-block-cover__background { background: none !important; }
.fb-hero-slides { position: absolute; inset: 0; z-index: 1; overflow: hidden; margin: 0 !important; max-width: none !important; }
.fb-hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: fb-hero-fade-a 24s linear infinite backwards; }
.fb-hero-slides img:nth-child(1) { animation-delay: 5s; }
.fb-hero-slides img:nth-child(2) { animation-delay: 11s; }
.fb-hero-slides img:nth-child(3) { animation-delay: 17s; animation-name: fb-hero-fade-b; }
.fb-hero-slides::after { content: ""; position: absolute; inset: 0; background: rgba(18, 15, 12, 0.78); }
@media (min-width: 782px) {
	.fb-hero-slides::after { background: linear-gradient(90deg, rgba(18, 15, 12, 0.94) 0%, rgba(18, 15, 12, 0.86) 60%, rgba(18, 15, 12, 0.3) 100%); }
}
/* a: in over 1 s, hold, out 1 s after the next frame is fully in. b: last frame, out 1 s earlier so the first photo gets its full time back. */
@keyframes fb-hero-fade-a { 0% { opacity: 0; } 4.1667%, 29.1667% { opacity: 1; } 33.3333%, 100% { opacity: 0; } }
@keyframes fb-hero-fade-b { 0% { opacity: 0; } 4.1667%, 25% { opacity: 1; } 29.1667%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fb-hero-slides img { display: none; } }
.fb-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--cream); border-color: var(--wp--preset--color--cream); }
.fb-outline .wp-block-button__link:hover { background: var(--wp--preset--color--cream); color: var(--fb-ink); }

/* ---- Menu board ------------------------------------------------------ */
.fb-menu-group { border-top: 3px solid var(--fb-ink); padding-top: 1rem; }
.fb-dish { padding: 0.9rem 0; border-bottom: 1px solid var(--fb-line); }
.fb-dish:last-child { border-bottom: 0; }
.fb-dish-head { display: flex; align-items: baseline; gap: 0.75rem; }
.fb-dish-head > * { margin: 0 !important; }
.fb-dish-head h4 { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 1.375rem; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.01em; }
.fb-dish-head::after { content: ""; flex: 1; order: 2; border-bottom: 2px dotted #c9bda5; transform: translateY(-0.3em); }
.fb-dish-head .fb-price { order: 3; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 1.125rem; }
.fb-dish p.fb-desc { margin: 0.25rem 0 0; color: var(--wp--preset--color--smoke); font-size: 1rem; line-height: 1.5; }
.fb-dish.is-featured h4 { color: var(--fb-ink); box-shadow: inset 0 -0.45em 0 rgba(242, 167, 27, 0.55); }

/* ---- Gallery --------------------------------------------------------- */
.fb-gallery.wp-block-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---- Opening hours table -------------------------------------------- */
.fb-hours table { border-collapse: collapse; width: 100%; }
.fb-hours td { border: 0; border-bottom: 1px solid rgba(243, 233, 210, 0.15); padding: 0.6rem 0; }
.fb-hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.fb-hours tr.is-closed td, .fb-hours td:only-child { color: var(--wp--preset--color--ash); }

/* ---- Offers query loop ---------------------------------------------- */
.fb-offers .wp-block-post { border-top: 3px solid var(--fb-ink); padding-top: 1rem; }

/* ---- Forms: Contact Form 7 + Mailchimp for WP ------------------------ */
.wpcf7 label, .mc4wp-form label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 1rem; }
.wpcf7 input:not([type=submit]):not([type=checkbox]), .wpcf7 textarea, .mc4wp-form input[type=email] {
	display: block; width: 100%; box-sizing: border-box; margin-top: 0.35rem; min-height: 48px;
	padding: 0.7rem 0.9rem; font: inherit; color: var(--fb-ink); background: #fff;
	border: 2px solid #cfc3aa; border-radius: 3px;
}
.wpcf7 textarea { min-height: 9rem; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .mc4wp-form input:focus { border-color: var(--fb-ink); outline: 2px solid var(--fb-amber); outline-offset: 1px; }
.wpcf7 input[type=submit], .mc4wp-form input[type=submit] {
	min-height: 48px; padding: 0.8rem 1.75rem; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.875rem;
	text-transform: uppercase; letter-spacing: 0.08em; color: var(--fb-ink); background: var(--fb-amber);
	border: 2px solid var(--fb-amber); border-radius: 3px;
}
.wpcf7 input[type=submit]:hover, .mc4wp-form input[type=submit]:hover { background: var(--fb-ink); border-color: var(--fb-ink); color: var(--wp--preset--color--cream); }
.wpcf7-not-valid-tip { color: #a32a12; font-size: 0.875rem; margin-top: 0.25rem; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: 0.75rem 1rem; border-width: 2px; border-radius: 3px; }
.wpcf7-quiz-label { display: block; margin-top: 0.35rem; font-weight: 400; }
/* The old Mailchimp form markup wraps everything in <center>; align it with the layout instead */
.mc4wp-form center { text-align: left; }
.mc4wp-form p { margin: 0 0 0.75rem; }
.fb-dark .mc4wp-form input[type=email] { border-color: #4a4036; }
.fb-dark .mc4wp-form input[type=submit]:hover { background: var(--wp--preset--color--cream); border-color: var(--wp--preset--color--cream); color: var(--fb-ink); }

/* ---- Footer ---------------------------------------------------------- */
.fb-footer a:hover { color: var(--fb-amber); }

/* ---- Weekday deals (Speisekarte, driven by the .fb-weekdays boxes) ---- */
.fb-dish p.fb-weekday-deal { margin: 0.35rem 0 0; font-size: 0.9375rem; font-weight: 700; color: var(--fb-ink); }
.fb-dish p.fb-weekday-deal.is-today { display: inline-block; box-shadow: inset 0 -0.45em 0 rgba(242, 167, 27, 0.55); }
.fb-dish-head .fb-price s { text-decoration: line-through; }
.fb-weekdays .wp-block-group.is-today { background-color: rgb(242, 167, 27); color: var(--fb-ink); }
.fb-weekdays .wp-block-group.is-today .has-small-font-size { color: var(--fb-ink); }
.fb-today-tag { display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.45rem; background: var(--fb-ink); color: var(--fb-amber); font-size: 0.6875rem; letter-spacing: 0.12em; vertical-align: 0.1em; }

/* Single Special page (templates/single.html) */
.fb-outline-dark .wp-block-button__link { background: transparent; color: var(--fb-ink); border: 2px solid var(--fb-ink); }
.fb-outline-dark .wp-block-button__link:hover { background: var(--fb-ink); color: var(--wp--preset--color--cream); }
.fb-single .wp-block-post-title { line-height: 1.05; }
.fb-single .wp-block-post-featured-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.fb-single .wp-block-post-content > * { margin-block-start: 0; }
.fb-single .wp-block-post-content p { line-height: 1.6; }
