:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --text-muted: rgba(10,10,10,0.5);
  --accent-blue: #0000cc;
  --accent-orange: #ff914d;
  --accent-yellow: #ffeb99;
  --font: 'Cabinet Grotesk', sans-serif;
  --border: #0a0a0a;
}
[data-theme="dark"] {
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --text-muted: rgba(245,245,245,0.5);
  --border: #f5f5f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg); color: var(--text);
  font-family: var(--font);
  transition: background 0.3s, color 0.3s;
  min-height: 100vh; display: flex; flex-direction: column;
  position: relative; overflow-x: hidden;
  cursor: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iOTYiIHZpZXdCb3g9IjAgMCAxMjMgMTIzLjAwMDAwMyIgaGVpZ2h0PSI5NiIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCI+PGRlZnM+PGNsaXBQYXRoIGlkPSI1NjEzZTdhOTYzIj48cGF0aCBkPSJNIDggOCBMIDExMyA4IEwgMTEzIDExMiBMIDggMTEyIFogTSA4IDggIiBjbGlwLXJ1bGU9Im5vbnplcm8iLz48L2NsaXBQYXRoPjxjbGlwUGF0aCBpZD0iNDgwMGQyNTExOCI+PHBhdGggZD0iTSAwLjQ5NjA5NCAyNC45ODA0NjkgTCAyNS4yMTg3NSAwLjI1NzgxMiBMIDEyMi4wMTE3MTkgOTcuMDUwNzgxIEwgOTcuMjg5MDYyIDEyMS43NzM0MzggWiBNIDAuNDk2MDk0IDI0Ljk4MDQ2OSAiIGNsaXAtcnVsZT0ibm9uemVybyIvPjwvY2xpcFBhdGg+PGNsaXBQYXRoIGlkPSIxMjQ3YjY0MTM0Ij48cGF0aCBkPSJNIDAuNDk2MDk0IDI0Ljk4MDQ2OSBMIDI1LjIxODc1IDAuMjU3ODEyIEwgMTIyLjAxMTcxOSA5Ny4wNTA3ODEgTCA5Ny4yODkwNjIgMTIxLjc3MzQzOCBaIE0gMC40OTYwOTQgMjQuOTgwNDY5ICIgY2xpcC1ydWxlPSJub256ZXJvIi8+PC9jbGlwUGF0aD48L2RlZnM+PGcgY2xpcC1wYXRoPSJ1cmwoIzU2MTNlN2E5NjMpIj48ZyBjbGlwLXBhdGg9InVybCgjNDgwMGQyNTExOCkiPjxnIGNsaXAtcGF0aD0idXJsKCMxMjQ3YjY0MTM0KSI+PHBhdGggZmlsbD0iIzAwMjVjYyIgZD0iTSAxMS44Nzg5MDYgMTMuOTY4NzUgQyAyMy4xNDg0MzggLTAuMTgzNTk0IDQ4LjAyNzM0NCAxNi41OTM3NSA1MS41ODIwMzEgMzAuNDUzMTI1IEMgNTMuNjAxNTYyIDM4LjMzMjAzMSA0OS4xNjAxNTYgNDIuNjY3OTY5IDU1LjA2NjQwNiA1MC4yMDMxMjUgQyA1OC4zMzU5MzggNTQuMzcxMDk0IDYzLjIwNzAzMSA1OC43MjI2NTYgNjcuMTU2MjUgNjIuMzMyMDMxIEMgNzkuNDI5Njg4IDczLjUzNTE1NiA5Mi43NzM0MzggODMuNTE1NjI1IDEwNC45NDkyMTkgOTQuODMyMDMxIEMgMTA4LjY0NDUzMSA5OC4yNjk1MzEgMTE1LjA0Njg3NSAxMDMuMzc1IDExMC40MDIzNDQgMTA4LjgzMjAzMSBDIDEwNS4xMjUgMTE1LjAzNTE1NiA5OS40NjQ4NDQgMTA5LjIyMjY1NiA5NS40NDkyMTkgMTA0Ljk0NTMxMiBDIDgyLjk4MDQ2OSA5MS42NzE4NzUgNzIuMTA1NDY5IDc2LjQxNDA2MiA1OS41NTA3ODEgNjMuMTEzMjgxIEMgNTYuNjE3MTg4IDYwLjAwMzkwNiA1Mi44OTQ1MzEgNTYuMTMyODEyIDQ5LjQyOTY4OCA1My43MTA5MzggQyA0Mi45MDIzNDQgNDkuMTQ4NDM4IDM3Ljk4NDM3NSA1Mi45NDkyMTkgMzEuMDA3ODEyNSA1MS4xODc1IEMgMTguNDAyMzQ0IDQ3Ljk1MzEyNSAyLjI2OTUzMSAyNi4wMzUxNTYgMTEuODc4OTA2IDEzLjk2ODc1IFogTSAxMS44Nzg5MDYgMTMuOTY4NzUgIiBmaWxsLW9wYWNpdHk9IjEiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L2c+PC9nPjwvc3ZnPg==') 12 4, auto;
}

a, button, [role="button"], input[type="submit"], input[type="button"],
label[for], select, .filter-btn, .recipe-card,
.back-up, .login-btn, #lang-toggle, #theme-toggle, #search-btn,
.btn-outline, .btn-primary, .btn-text, .btn-hero-cta,
.hero-featured-card, .recipes-title-filter { cursor: pointer; }
input[type="text"], textarea { cursor: text; }

/* COMPLETION */
#completionScreen {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--accent-blue);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
#completionScreen.show { opacity: 1; pointer-events: all; }
.completion-emoji { font-size: clamp(48px,10vw,80px); margin-bottom: 12px; animation: popIn 0.5s cubic-bezier(0.22,1,0.36,1) forwards; }
.completion-label { font-size: clamp(36px,8vw,72px); font-weight: 800; color: #fff; letter-spacing: -2px; margin-bottom: 8px; font-family: var(--font); }
.completion-sub { color: rgba(255,255,255,0.7); font-size: clamp(14px,3vw,20px); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font); }

/* SNAKE */
.snake-layer { position: absolute; top: 0; right: 0; width: 52%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.snake-layer svg { display: block; }

/* HEADER */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 2.5rem; background: transparent;
}
.logo img { height: 92px; object-fit: contain; display: block; }
nav { display: flex; align-items: center; gap: 1.2rem; }
nav button, nav a {
  background: none; border: none; font-family: var(--font); font-size: 0.9rem; font-weight: 700;
  color: var(--text); text-decoration: none; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 5px; transition: color 0.2s; padding: 0;
}
nav button:hover, nav a:hover { color: var(--accent-blue); }
nav svg { display: block; flex-shrink: 0; }

/* SEARCH BARS */
.nav-search { display: flex; align-items: center; background: var(--bg); border: 2px solid var(--border); border-radius: 999px; padding: 0.3rem 0.3rem 0.3rem 1rem; transition: border-color 0.2s; }
.nav-search:focus-within { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(0,0,204,0.08); }
.nav-search input { background: none; border: none; outline: none; font-family: var(--font); font-size: 0.85rem; color: var(--text); width: 170px; }
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search button { background: var(--accent-blue); border: none; width: 30px; height: 30px; border-radius: 999px; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; padding: 0; }
.nav-search button:hover { background: #0000a8; }

/* BUTTONS */
.btn-outline { display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--border); border-radius: 999px; padding: 0.75rem 2rem; font-family: var(--font); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; text-decoration: none; color: var(--text); background: none; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-outline:hover { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }

.btn-hero-cta { display: flex; align-items: center; justify-content: center; max-width: 420px; width: 100%; min-height: 56px; padding: 0.85rem 2rem; background: var(--accent-blue); border: 2px solid var(--accent-blue); border-radius: 999px; color: #ffffff; font-family: var(--font); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.08em; text-decoration: none; transition: background 0.25s, border-color 0.25s; }
.btn-hero-cta:hover { background: #ff914d; border-color: #ff914d; color: #fff; }

/* Fav + Share Buttons */
.recipe-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-fav { display: inline-flex; align-items: center; gap: 0.5rem; border: 2px solid var(--border); border-radius: 999px; padding: 0.6rem 1.4rem; background: none; font-family: var(--font); font-weight: 700; font-size: 0.88rem; color: var(--text); transition: border-color 0.2s, background 0.2s, color 0.2s; letter-spacing: 0.02em; }
.fav-heart-icon { flex-shrink: 0; transition: fill 0.2s, stroke 0.2s; }
.btn-fav:hover { border-color: #e53e3e; color: #e53e3e; }
.btn-fav:hover .fav-heart-icon { stroke: #e53e3e; }
.btn-fav.active { background: #e53e3e; border-color: #e53e3e; color: #fff; }
.btn-fav.active .fav-heart-icon { fill: #fff; stroke: #fff; }
.btn-share { display: inline-flex; align-items: center; gap: 0.5rem; border: 2px solid var(--border); border-radius: 999px; padding: 0.6rem 1.4rem; background: none; font-family: var(--font); font-weight: 700; font-size: 0.88rem; color: var(--text); transition: all 0.2s; }
.btn-share:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* MAIN */
#main-wrapper { position: relative; flex: 1; z-index: 1; }

/* HERO */
.hero-section { position: relative; min-height: 100vh; z-index: 1; display: flex; align-items: center; overflow: hidden; gap: 2rem; }
.hero-left { position: relative; z-index: 5; padding: 13rem 3rem 6rem 4rem; max-width: 600px; flex-shrink: 0; display: flex; flex-direction: column; gap: 1.5rem; }
h1 { font-size: clamp(3.2rem, 7vw, 7rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }

/* HERO FEATURED CARD */
.hero-featured-wrap { flex: 1; display: flex; flex-direction: column; padding: 10rem 4rem 6rem 1rem; align-self: stretch; justify-content: center; gap: 0.8rem; max-width: 560px; margin-left: auto; }
.hero-featured-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.hero-featured-card { display: flex; flex-direction: column; border: 2.5px solid var(--border); border-radius: 4px; text-decoration: none; color: var(--text); background: var(--bg); overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1); min-height: 420px; }
.hero-featured-card:hover { border-color: var(--accent-blue); box-shadow: 0 20px 60px rgba(0,0,204,0.18); transform: translateY(-4px); }
.hfc-media { width: 100%; height: 220px; overflow: hidden; background: rgba(128,128,128,0.07); display: flex; align-items: center; justify-content: center; }
.hfc-media img.card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hfc-media .card-emoji { font-size: 5rem; background: none; height: auto; width: auto; }
.hfc-body { padding: 1.6rem 1.8rem 1.8rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.hfc-cat { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-blue); }
.hfc-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hfc-desc { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; flex: 1; }
.hfc-meta { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.4rem; }

/* FEATURED */
.featured-section { position: relative; z-index: 1; padding: 6rem 0 8rem; }
.featured-inner { padding: 0 4rem; max-width: 1200px; display: flex; flex-direction: column; }
.featured-title { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 3rem; line-height: 1; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }

/* ═══ RECIPE CARD ═══ */
.recipe-card {
  border: 2px solid var(--border); text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  overflow: hidden;
}
.recipe-card:hover { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
/* Only the text area gets solid background — image/emoji area stays transparent */
.recipe-card h3, .recipe-card p, .recipe-card .card-meta { background: var(--bg); transition: background 0.2s; }
.recipe-card:hover h3, .recipe-card:hover p, .recipe-card:hover .card-meta { background: transparent; }
.recipe-card h3 { font-size: 1.2rem; font-weight: 800; padding: 1.2rem 1.2rem 0.3rem; }
.recipe-card p  { font-size: 0.85rem; opacity: 0.7; padding: 0 1.2rem; }
.recipe-card .card-meta { font-size: 0.78rem; font-weight: 700; opacity: 0.5; letter-spacing: 0.05em; padding: 0.5rem 1.2rem 1.2rem; }

.card-media-wrap { position: relative; }

/* Echtes Foto */
.recipe-card .card-img {
  width: 100%; height: 200px; object-fit: cover; display: block;
}

/* Emoji-Container – gleiche Höhe wie Fotos */
.recipe-card .card-emoji {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  line-height: 1;
  background: rgba(128,128,128,0.07);
}
[data-theme="dark"] .recipe-card .card-emoji { background: rgba(255,255,255,0.06); }
.recipe-card:hover .card-emoji { background: rgba(255,255,255,0.12); }

/* Custom-Emoji-Bild: gleiche Größe wie native Emoji (3.8rem = ~61px) */
.recipe-card .card-emoji-img {
  width:  3.8rem;
  height: 3.8rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Typ-Tags */
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; pointer-events: none; }
.card-tag {
  font-family: var(--font); font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 3px; border: 1.5px solid;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.card-tag--fav   { background: rgba(255,255,255,0.88); border-color: #e53e3e; color: #c0392b; }
.card-tag--vegan { background: rgba(255,255,255,0.88); border-color: #2d8a4e; color: #1a5c33; }
.card-tag--veg   { background: rgba(255,255,255,0.88); border-color: #4a7c59; color: #2d5a3a; }
.card-tag--quick { background: rgba(255,255,255,0.88); border-color: var(--text); color: var(--text); }
[data-theme="dark"] .card-tag--fav   { background: rgba(10,10,10,0.82); }
[data-theme="dark"] .card-tag--vegan { background: rgba(10,10,10,0.82); border-color: #3aac62; color: #7dd89b; }
[data-theme="dark"] .card-tag--veg   { background: rgba(10,10,10,0.82); border-color: #5a9a6a; color: #8bc49a; }
[data-theme="dark"] .card-tag--quick { background: rgba(10,10,10,0.82); }
.recipe-card:hover .card-tag { background: rgba(0,0,204,0.15); border-color: rgba(255,255,255,0.6); color: #fff; }

/* BADGE CHIPS Rezeptseite */
.recipe-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; margin-bottom: 0.5rem; }
.recipe-badge { display: inline-flex; align-items: center; gap: 5px; padding: 0.35rem 1rem; border-radius: 999px; font-family: var(--font); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; border: 2px solid; }
.recipe-badge--vegan { background: #e8f8ec; border-color: #2d8a4e; color: #1a5c33; }
.recipe-badge--veg   { background: #eef6ec; border-color: #4a7c59; color: #2d5a3a; }
.recipe-badge--quick { background: #fffbe6; border-color: #c8a200; color: #7a5f00; }
[data-theme="dark"] .recipe-badge--vegan { background: #1a3d27; border-color: #2d8a4e; color: #7dd89b; }
[data-theme="dark"] .recipe-badge--veg   { background: #1e3025; border-color: #4a7c59; color: #8bc49a; }
[data-theme="dark"] .recipe-badge--quick { background: #2e2500; border-color: #c8a200; color: #f5d060; }
.recipe-cat-tag { background: var(--accent-blue); color: #fff; padding: 0.2rem 0.8rem; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

/* ═══ ALL RECIPES PAGE ═══ */
.recipes-page { flex: 1; }

/* ── Recipes Hero */
.recipes-hero {
  padding: 14rem 4rem 5rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 3.5rem;
}

.recipes-preface {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  line-height: 1;
}

.recipes-title-flex {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0 0.28em;
  line-height: 1.05;
}

.recipes-title-filter,
.recipes-title-noun {
  font-family: var(--font);
  font-size: clamp(3.6rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.recipes-title-noun { color: var(--text); }

/* Klickbare Filter- und Navigationswörter (button + a) */
.recipes-title-filter {
  background: none; border: none; padding: 0;
  color: var(--text-muted);
  transition: color 0.18s;
  position: relative;
  overflow: visible;
  text-decoration: none; /* für <a>-Variante */
}
.recipes-title-filter::after {
  content: '';
  position: absolute; left: 0; bottom: 0.06em;
  width: 100%; height: 4px;
  background: var(--accent-blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.24s cubic-bezier(0.22,1,0.36,1);
}
.recipes-title-filter:hover { color: var(--text); }
.recipes-title-filter:hover::after { transform: scaleX(1); }
.recipes-title-filter.active { color: var(--accent-blue); }
.recipes-title-filter.active::after { transform: scaleX(1); }

/* ── Emoji-Pop-Animation */
@keyframes emojiPop {
  0%   { transform: translate(-50%, 0)    scale(0.3); opacity: 0; }
  35%  { transform: translate(-50%, -55%) scale(1.25); opacity: 1; }
  65%  { transform: translate(-50%, -75%) scale(1.0);  opacity: 1; }
  100% { transform: translate(-50%, -105%) scale(0.75); opacity: 0; }
}

/* Pop erscheint horizontal mittig über der Textmitte des Buttons */
.title-pop {
  position: absolute;
  left: 50%;                 /* Mitte des Eltern-Buttons */
  bottom: 85%;               /* knapp über dem Text starten */
  /* transform-X -50% ist Teil der Keyframes – kein separates transform nötig */
  font-size: 2.6rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  animation: emojiPop 0.72s cubic-bezier(0.22,1,0.36,1) forwards;
  z-index: 100;
}

/* Count */
.recipes-eyebrow {
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── Kategorie-Filter */
.filter-bar {
  padding: 0 4rem;
  margin-bottom: 3.5rem;
}
.filter-group {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.filter-btn {
  border: 2px solid var(--border); background: none;
  padding: 0.65rem 1.6rem;
  font-family: var(--font); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.04em;
  color: var(--text); border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover  { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
.filter-btn.active { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }

#recipe-grid {
  padding: 0 4rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

/* AUTH */
.auth-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8rem 2rem 4rem; position: relative; overflow: hidden; }
.auth-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.auth-deco-emoji { position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r, 0deg)) scale(var(--s, 1)); font-size: 2.5rem; opacity: 0.1; }
[data-theme="dark"] .auth-deco-emoji { opacity: 0.06; }
.auth-box { position: relative; z-index: 1; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 0.9rem; background: var(--bg); border: 2px solid var(--border); padding: 2.5rem 2.5rem 2rem; }
#auth-form { display: flex; flex-direction: column; gap: 0.6rem; }
#auth-form .btn-primary { margin-top: 1.1rem; }
.auth-emoji-top { font-size: 2.2rem; line-height: 1; }
.auth-box h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.auth-sub { font-size: 0.88rem; color: var(--text-muted); margin-top: -0.5rem; }
.auth-box input { width: 100%; border: 2px solid var(--border); background: rgba(128,128,128,0.05); font-family: var(--font); font-size: 1rem; color: var(--text); padding: 0.85rem 1rem; outline: none; transition: border-color 0.2s; }
.auth-box input:focus { border-color: var(--accent-blue); }
.btn-primary { width: 100%; background: var(--accent-blue); color: #fff; border: none; border-radius: 999px; padding: 1rem; font-family: var(--font); font-weight: 800; font-size: 1rem; letter-spacing: 0.06em; transition: opacity 0.2s, transform 0.15s; cursor: pointer; margin-top: 0.3rem; }
.btn-primary:hover { opacity: 0.85; transform: scale(1.02); }
.btn-primary:active { transform: scale(0.97); }
.btn-text { background: none; border: none; font-family: var(--font); font-size: 0.88rem; color: var(--text-muted); cursor: pointer; padding: 0; text-align: left; transition: color 0.2s; }
.btn-text:hover { color: var(--accent-blue); }
#auth-message { font-size: 0.85rem; }
#auth-message:not(:empty) { padding: 0.6rem 0.9rem; background: rgba(255,145,77,0.12); color: var(--accent-orange); }
#auth-message.success:not(:empty) { background: rgba(34,197,94,0.12); color: #16a34a; }

/* PROFIL */
.profil-page { padding: 8rem 3rem 4rem; flex: 1; max-width: 1100px; margin: 0 auto; width: 100%; }
.profil-hero { display: flex; align-items: center; gap: 1.8rem; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 2px solid var(--border); flex-wrap: wrap; }
.profil-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; flex-shrink: 0; }
.profil-eyebrow { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.3rem; }
.profil-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.profil-stats { display: flex; gap: 0.8rem; margin-top: 0.8rem; flex-wrap: wrap; }
.profil-stat { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); background: rgba(128,128,128,0.09); padding: 0.3rem 0.9rem; display: flex; align-items: center; gap: 0.4rem; }
.profil-stat strong { color: var(--text); }
.profil-favs-section { margin-top: 0.5rem; }
.profil-favs-title { display: flex; align-items: center; gap: 0.6rem; font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.8rem; }
.profil-fav-emoji { font-size: 1.5rem; }
.profil-empty { text-align: center; padding: 4rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.profil-empty-emoji { font-size: 4rem; }
.profil-empty p { color: var(--text-muted); font-size: 0.95rem; }
.profil-empty a { color: var(--accent-blue); font-weight: 700; text-decoration: none; }
.profil-empty a:hover { text-decoration: underline; }
.profil-actions { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; flex-wrap: wrap; }
.btn-primary-outline { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1.6rem; border: 2px solid var(--text); color: var(--text); text-decoration: none; font-weight: 800; font-size: 0.88rem; letter-spacing: 0.05em; border-radius: 999px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-primary-outline:hover { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

/* HERO EXPLORE LINK */
.hero-explore-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-muted); text-decoration: none; transition: color 0.2s, gap 0.2s; margin-top: 0.2rem; }
.hero-explore-link:hover { color: var(--accent-blue); gap: 0.8rem; }

/* IMPRESSUM */
.impressum-page { padding: 8rem 3rem 4rem; flex: 1; max-width: 720px; margin: 0 auto; width: 100%; }
.impressum-page h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 3rem; }
.impressum-section { margin-bottom: 2.5rem; }
.impressum-section h2 { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 1.5px dashed var(--border); }
.impressum-section p { font-size: 0.95rem; line-height: 1.75; color: var(--text); margin-bottom: 0.6rem; }
.impressum-section a { color: var(--accent-blue); }

/* RECIPE PAGE */
.recipe-page { padding: 8rem 3rem 6rem; flex: 1; max-width: 1100px; margin: 0 auto; width: 100%; }
.recipe-meta-top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 2rem; flex-wrap: wrap; }
.recipe-category { display: inline-flex; align-items: center; padding: 0.28rem 0.9rem; background: var(--text); color: var(--bg); border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; transition: background 0.2s, color 0.2s; flex-shrink: 0; }
.recipe-category:hover { background: var(--accent-blue); color: #fff; }
.recipe-meta-item { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); display: inline-flex; align-items: center; }
.recipe-meta-top > * + .recipe-meta-item::before { content: '\B7'; margin: 0 0.35rem; opacity: 0.4; font-weight: 400; }
.recipe-emoji { font-size: 6rem; line-height: 1; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 160px; margin-bottom: 1.5rem; }
.recipe-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 1rem; display: block; margin-bottom: 1.5rem; }
.recipe-title { font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 1.2rem; }
.recipe-desc { color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; margin-bottom: 1.6rem; max-width: 640px; }
.recipe-body { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.recipe-section { margin-bottom: 3rem; }
.recipe-section h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border); padding-bottom: 0.6rem; }
.component-title { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-blue); margin: 1.8rem 0 0.8rem; padding-bottom: 0.4rem; border-bottom: 1.5px dashed var(--border); }
.component-title:first-child { margin-top: 0; }
.ingredient-list { list-style: none; display: flex; flex-direction: column; }
.ingredient-list li { font-size: 1rem; padding: 0.65rem 0; border-bottom: 1px solid rgba(128,128,128,0.15); display: flex; align-items: center; gap: 0.8rem; cursor: pointer; user-select: none; transition: opacity 0.2s; }
.ingredient-list li:last-child { border-bottom: none; }
.ingredient-list li.checked { opacity: 0.35; text-decoration: line-through; }
.ingredient-list li .ing-check { width: 18px; height: 18px; flex-shrink: 0; border: 2px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.ingredient-list li.checked .ing-check { background: var(--accent-blue); border-color: var(--accent-blue); }
.ingredient-list li.checked .ing-check::after { content: ''; width: 4px; height: 8px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg) translateY(-1px); display: block; }
.ingredient-list li .amount { font-weight: 800; white-space: nowrap; }
.steps-list { list-style: none; display: flex; flex-direction: column; gap: 1.6rem; }
.steps-list li { display: flex; gap: 1.2rem; align-items: flex-start; font-size: 1rem; line-height: 1.65; }
.step-num { font-size: 1.5rem; font-weight: 800; color: var(--accent-blue); min-width: 2rem; flex-shrink: 0; line-height: 1; }
.recipe-notes { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; font-style: italic; }

/* ADMIN EDIT BAR */
.admin-edit-bar { display: none; gap: 1rem; align-items: center; margin-bottom: 2rem; padding: 1rem 1.5rem; background: var(--accent-yellow); border: 1.5px dashed #c8a200; border-radius: 4px; }

/* FOOTER */
#site-footer { padding: 2.5rem; display: flex; align-items: flex-end; justify-content: space-between; z-index: 1; position: relative; }
.back-up { background: none; border: 2px solid var(--border); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--text); transition: background 0.2s, color 0.2s; }
.back-up:hover { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
.footer-link { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; align-self: center; }
.footer-link:hover { color: var(--accent-blue); }

.loading { opacity: 0.5; font-size: 0.9rem; }

/* ═══ LOADING SCREEN ═══ */
#loadingScreen {
  position: fixed; inset: 0; background: #ffeb99;
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
}
#loadingScreen.fade-out {
  opacity: 0; pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.loader-variant { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; padding: 0 1.5rem; box-sizing: border-box; max-width: 100%; }
.loader-label {
  font-size: clamp(36px, 10vw, 96px); font-weight: 900; font-style: italic;
  color: #0025cc; letter-spacing: -0.04em;
  display: flex; align-items: baseline; white-space: nowrap; width: max-content;
  font-family: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  padding: 0.35em 0.1em 0.2em;
  overflow: visible;
}
.loader-char, .loader-dot {
  display: inline-block; opacity: 0;
  transform: translateY(0.55em);
  animation: charIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-play-state: paused; will-change: transform, opacity;
}
.loader-char:nth-child(1)  { animation-delay: 0.00s; }
.loader-char:nth-child(2)  { animation-delay: 0.06s; }
.loader-char:nth-child(3)  { animation-delay: 0.12s; }
.loader-char:nth-child(4)  { animation-delay: 0.18s; }
.loader-char:nth-child(5)  { animation-delay: 0.30s; }
.loader-char:nth-child(6)  { animation-delay: 0.36s; }
.loader-char:nth-child(7)  { animation-delay: 0.42s; }
.loader-char:nth-child(8)  { animation-delay: 0.48s; }
.loader-char:nth-child(9)  { animation-delay: 0.54s; }
.loader-char:nth-child(10) { animation-delay: 0.60s; }
.loader-dot                { animation-delay: 0.68s; }
@keyframes charIn {
  0%   { opacity: 0; transform: translateY(0.55em); }
  65%  { opacity: 1; transform: translateY(-0.06em); }
  85%  { transform: translateY(0.02em); }
  100% { opacity: 1; transform: none; }
}
.loader-space { display: inline-block; width: 0.3em; }
.lv2-word { font-size: clamp(44px, 11vw, 100px); font-weight: 900; font-style: italic; color: #0025cc; letter-spacing: -0.04em; font-family: 'Cabinet Grotesk', 'Arial Black', sans-serif; animation: lv2WordIn 0.5s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.lv2-qmark { color: #ff914d; }
.lv2-emojis { display: flex; gap: 1rem; }
.lv2-e { font-size: clamp(2.2rem, 6vw, 3.2rem); animation: lv2EmojiIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; display: block; }
.lv2-e:nth-child(1) { animation-delay: 0.35s; }
.lv2-e:nth-child(2) { animation-delay: 0.52s; }
.lv2-e:nth-child(3) { animation-delay: 0.68s; }
@keyframes lv2WordIn  { from { opacity: 0; transform: translateY(0.4em) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes lv2EmojiIn { from { opacity: 0; transform: translateY(0.6em) scale(0.5) rotate(-15deg); } to { opacity: 1; transform: none; } }
.lv3-emoji { font-size: clamp(5rem, 16vw, 9rem); line-height: 1; animation: lv3Wobble 0.7s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both; display: block; }
.lv3-text { font-size: clamp(1.1rem, 3.5vw, 1.7rem); font-weight: 900; font-style: italic; color: #0025cc; letter-spacing: 0.06em; text-transform: uppercase; font-family: 'Cabinet Grotesk', 'Arial Black', sans-serif; animation: lv3TextIn 0.4s 0.5s ease both; }
@keyframes lv3Wobble { 0%{opacity:0;transform:scale(0.4)rotate(-20deg)} 65%{transform:scale(1.18)rotate(8deg)} 82%{transform:scale(0.94)rotate(-4deg)} 100%{opacity:1;transform:scale(1)rotate(0)} }
@keyframes lv3TextIn  { from{opacity:0;transform:translateY(0.4em)} to{opacity:1;transform:none} }
.lv4-title { font-size: clamp(2.4rem, 8.5vw, 7rem); font-weight: 900; font-style: italic; color: #0025cc; letter-spacing: -0.03em; font-family: 'Cabinet Grotesk', 'Arial Black', sans-serif; display: inline-flex; align-items: flex-end; gap: 0.06em; animation: lv4TitleIn 0.5s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.lv4-dots { display: inline-flex; align-items: flex-end; }
.lv4-dots span { display: inline-block; animation: lv4Dot 1s ease-in-out infinite; }
.lv4-dots span:nth-child(1) { animation-delay: 0.4s; }
.lv4-dots span:nth-child(2) { animation-delay: 0.6s; }
.lv4-dots span:nth-child(3) { animation-delay: 0.8s; }
.lv4-sub { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(0,37,204,0.45); font-family: 'Cabinet Grotesk', sans-serif; animation: lv4SubIn 0.4s 0.5s ease both; text-align: center; max-width: 100%; }
@keyframes lv4TitleIn { from{opacity:0;transform:translateX(-0.5em) scale(0.9)} to{opacity:1;transform:none} }
@keyframes lv4Dot     { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-0.35em)} }
@keyframes lv4SubIn   { from{opacity:0} to{opacity:1} }

/* ═══ SCROLL REVEAL ═══ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══ ADMIN ═══ */
.admin-page { padding: 8rem 3rem 6rem; flex: 1; }
.admin-gate { padding: 4rem 0; }
.admin-wrap { max-width: 1200px; margin: 0 auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.admin-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
.admin-add-btn { width: auto; padding: 0.9rem 2rem; font-size: 0.9rem; border-radius: 999px; }
.admin-form-wrap { border: 2px solid var(--border); padding: 2rem 2.5rem; margin-bottom: 3rem; }
.admin-form-wrap h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1.5rem; }
.admin-section-title { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 1.5rem 0 0.6rem; padding-bottom: 0.4rem; border-bottom: 1.5px dashed var(--border); }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; margin-bottom: 1rem; }
.admin-field { display: flex; flex-direction: column; gap: 0.35rem; }
.admin-field--full { grid-column: 1 / -1; }
.admin-field label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.admin-field label small { font-weight: 500; text-transform: none; letter-spacing: 0; opacity: 0.7; }
.admin-field input, .admin-field textarea, .admin-field select { background: none; border: none; border-bottom: 2px solid var(--border); font-family: var(--font); font-size: 0.95rem; color: var(--text); padding: 0.5rem 0; outline: none; transition: border-color 0.2s; width: 100%; }
.admin-field textarea { resize: vertical; border: 2px solid var(--border); padding: 0.6rem 0.8rem; }
.admin-field input:focus, .admin-field textarea:focus, .admin-field select:focus { border-color: var(--accent-blue); }
.comp-editor { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 0.6rem; }
.comp-block { border: 1.5px dashed var(--border); padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.comp-header { display: flex; align-items: center; gap: 0.8rem; }
.comp-header .comp-name { flex: 1; border: none; border-bottom: 2px solid var(--border); background: none; font-family: var(--font); font-size: 0.9rem; font-weight: 700; color: var(--text); padding: 0.3rem 0; outline: none; }
.comp-header .comp-name:focus { border-color: var(--accent-blue); }
.comp-item-row { display: flex; align-items: center; gap: 0.5rem; }
.comp-item-row input, .comp-item-row textarea { border: none; border-bottom: 1.5px solid var(--border); background: none; font-family: var(--font); font-size: 0.88rem; color: var(--text); padding: 0.25rem 0; outline: none; }
.comp-item-row input:focus, .comp-item-row textarea:focus { border-color: var(--accent-blue); }
.comp-add-section { width: auto; padding: 0.4rem 1.2rem; font-size: 0.8rem; }
.admin-form-checks { display: flex; gap: 1.5rem; margin: 1.5rem 0; flex-wrap: wrap; }
.admin-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.admin-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent-blue); cursor: pointer; }
.admin-form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-msg { font-size: 0.9rem; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table thead { position: sticky; top: 0; background: var(--bg); z-index: 2; }
.admin-table th { text-align: left; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding: 0.6rem 0.6rem; border-bottom: 2px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 0.7rem 0.6rem; border-bottom: 1px solid rgba(128,128,128,0.15); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(128,128,128,0.05); }
.admin-table tr.row-draft td { opacity: 0.5; }
.admin-table tr.row-draft:hover td { opacity: 0.8; }
.admin-table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent-blue); cursor: pointer; }
.admin-actions { display: flex; gap: 0.4rem; }
.btn-edit, .btn-delete { background: none; border: 1.5px solid var(--border); padding: 0.25rem 0.6rem; font-family: var(--font); font-size: 0.78rem; font-weight: 700; border-radius: 999px; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.btn-edit:hover  { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
.btn-delete:hover { background: #e53e3e; border-color: #e53e3e; color: #fff; }
.recipe-status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: middle; flex-shrink: 0; }
.recipe-status-dot.live { background: #2d8a4e; }
.recipe-status-dot.draft { background: rgba(128,128,128,0.5); }
.admin-lang-header { display: flex; align-items: center; gap: 0.6rem; margin: 1.5rem 0 0.6rem; padding-bottom: 0.4rem; border-bottom: 1.5px dashed var(--border); }
.admin-lang-badge { display: inline-flex; padding: 0.18rem 0.6rem; border-radius: 3px; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; }
.admin-lang-badge--de { background: var(--accent-blue); color: #fff; }
.admin-lang-badge--en { background: var(--accent-orange); color: #fff; }
.admin-lang-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

/* ═══ RESPONSIVE ═══ */
@keyframes popIn { 0%{transform:scale(0);opacity:0} 60%{transform:scale(1.2);opacity:1} 100%{transform:scale(1)} }

@media (max-width: 1100px) {
  .hero-left { padding: 11rem 2rem 4rem 3rem; max-width: 420px; }
  .hero-featured-wrap { padding: 9rem 2rem 4rem 0; }
  .featured-inner { padding: 0 3rem; }
  .recipe-grid { grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); }
  .logo img { height: 79px; }
  .recipes-hero { padding: 12rem 3rem 4rem; }
  .filter-bar, #recipe-grid { padding-left: 3rem; padding-right: 3rem; }
}

@media (max-width: 768px) {
  #site-header { padding: 0.75rem 1.2rem; background: rgba(255,255,255,0.52); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  [data-theme="dark"] #site-header { background: rgba(10,10,10,0.52); }
  .logo img { height: 66px; }
  .nav-search { display: none; }
  nav { gap: 0.7rem; }
  .snake-layer { width: 100%; opacity: 0.7; }

  /* Hero */
  .hero-section { flex-direction: column; min-height: auto; padding-bottom: 0; gap: 0; }
  .hero-left { padding: 7.5rem 1.5rem 3rem; max-width: 100%; gap: 1.3rem; }
  .recipes-title-flex { gap: 0 0.22em; }
  .hero-explore-link { font-size: 1rem; font-weight: 800; }
  .hero-featured-wrap { padding: 1rem 1.5rem 4rem; max-width: 100%; margin-left: 0; justify-content: flex-start; }
  .hero-featured-label { font-size: 0.68rem; letter-spacing: 0.14em; }
  .hfc-media { height: 200px; }
  .hfc-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }

  /* Cards + grid */
  .featured-section { padding: 3.5rem 0 4.5rem; }
  .featured-inner { padding: 0 1.5rem; }
  .featured-title { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 2rem; }
  .recipe-grid { grid-template-columns: 1fr; gap: 1rem; }
  .recipe-card h3 { font-size: 1rem; padding: 0.9rem 1rem 0.3rem; }
  .recipe-card p { font-size: 0.82rem; padding: 0 1rem; }
  .recipe-card .card-meta { padding: 0.4rem 1rem 1rem; font-size: 0.72rem; }
  .recipe-card .card-emoji, .recipe-card .card-img { height: 180px; }

  /* Alle-Rezepte */
  .recipes-hero { padding: 7rem 1.5rem 2.5rem; gap: 0.8rem; }
  .recipes-preface { font-size: 1rem; }
  .filter-bar { padding: 0 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .filter-group { flex-wrap: nowrap; width: max-content; }
  #recipe-grid { padding: 0 1.5rem 3rem; }

  /* Recipe detail */
  .recipe-page { padding: 7rem 1.2rem 3rem; }
  .recipe-body { grid-template-columns: 1fr; gap: 1.5rem; }
  .recipe-hero-img { max-height: 240px; border-radius: 0.6rem; }
  .recipe-title { font-size: clamp(2rem, 7vw, 3.5rem); }
  .recipe-meta-top { gap: 0.5rem; margin-bottom: 1.5rem; }
  .recipe-actions { margin-bottom: 2rem; }
  .recipe-section h2 { font-size: 1.4rem; }
  .recipe-emoji { font-size: 4rem; min-height: 100px; }

  /* Auth + Profil */
  .auth-page { padding: 5.5rem 1.5rem 3rem; }
  .auth-box { padding: 2rem 1.5rem; }
  .auth-deco-emoji { font-size: 2rem; }
  .profil-page { padding: 5.5rem 1.2rem 3rem; }
  .profil-hero { gap: 1.2rem; margin-bottom: 2rem; padding-bottom: 2rem; }
  .profil-avatar { width: 56px; height: 56px; font-size: 1.5rem; }
  .impressum-page { padding: 5.5rem 1.5rem 3rem; }

  /* Admin */
  .admin-page { padding: 5rem 1.2rem 3rem; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-wrap { overflow-x: hidden; }
  .admin-list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 720px; }

  /* Footer */
  #site-footer { padding: 1.5rem 1.2rem; }

  /* Recipes title filter */
  .recipes-title-filter, .recipes-title-noun { font-size: clamp(2.6rem, 8.5vw, 4.2rem); }
  .title-pop { font-size: 2rem; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  .logo img { height: 58px; }
  .recipe-grid, #recipe-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .recipe-card .card-emoji, .recipe-card .card-img { height: 160px; }
  #lang-label { display: none; }
  .recipes-title-filter, .recipes-title-noun { font-size: clamp(2rem, 10.5vw, 3rem); }
  .recipes-preface { font-size: 1.05rem; }
  .hero-explore-link { font-size: 1.05rem; }
  .title-pop { font-size: 1.6rem; }
  .hero-left { padding: 6.5rem 1.2rem 2.5rem; }
  .featured-inner { padding: 0 1.2rem; }
  .recipe-page { padding: 6rem 1rem 2.5rem; }
  .btn-fav, .btn-share { padding: 0.55rem 1.1rem; font-size: 0.82rem; }
  .recipe-section h2 { font-size: 1.25rem; }
  .filter-btn { padding: 0.5rem 1rem; font-size: 0.82rem; }
  .loader-label { font-size: clamp(26px, 7.5vw, 36px); }
  .lv4-title { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
}
