/* ========================================================================== Mein Kochbuch - Digital & A4 Print Layout Theme Farben & Typografie inspiriert vom Design-Prototyp ========================================================================== */ @import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap'); :root { --creme: #FAF6F0; --tannengruen: #1E4D3B; --tannengruen-light: rgba(30, 77, 59, 0.12); --altrosa: #D29B9B; --altrosa-light: rgba(210, 155, 155, 0.2); --schwarz: #222222; --grau-bg: #e6e2dc; --border-hand: 2px solid var(--schwarz); --font-hand: 'Architects Daughter', cursive, sans-serif; --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --radius-recipe: 14px; } /* Base Body for Cookbook view */ .cookbook-body { margin: 0; padding: 0; background-color: var(--grau-bg); font-family: var(--font-sans); color: var(--schwarz); min-height: 100vh; display: flex; flex-direction: column; } @media screen { html { overflow-x: clip; } .cookbook-body { overflow-x: clip; width: 100%; } } /* Cookbook Navigation Bar (Fest / Sticky beim Scrollen) */ .cb-nav { position: sticky; top: 0; z-index: 1000; background: var(--tannengruen); color: var(--creme); padding: 6px 14px; min-height: 48px; box-shadow: 0 4px 15px rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; box-sizing: border-box; } .cb-nav-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--creme); flex-shrink: 0; } .cb-brand-icon { font-size: 1.5rem; line-height: 1; } .cb-nav-title { font-family: var(--font-hand); font-size: 1.35rem; letter-spacing: 0.02em; margin: 0; white-space: nowrap; } /* Recipe Search Bar */ .cb-search-box { display: flex; align-items: center; position: relative; flex: 0 1 240px; max-width: 280px; min-width: 130px; background: rgba(250, 246, 240, 0.18); border: 1.5px solid rgba(250, 246, 240, 0.45); border-radius: 20px; padding: 3px 10px; transition: all 0.2s ease; margin: 0 6px; } .cb-search-box:focus-within { background: var(--creme); border-color: var(--creme); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); } .cb-search-icon { font-size: 0.95rem; margin-right: 6px; opacity: 0.85; user-select: none; } .cb-search-box:focus-within .cb-search-icon { filter: brightness(0.2); } .cb-search-input { background: transparent; border: none; outline: none; color: var(--creme); font-family: var(--font-hand); font-size: 1rem; width: 100%; } .cb-search-box:focus-within .cb-search-input { color: var(--schwarz); } .cb-search-input::placeholder { color: rgba(250, 246, 240, 0.7); } .cb-search-box:focus-within .cb-search-input::placeholder { color: rgba(34, 34, 34, 0.55); } .cb-search-clear { background: none; border: none; color: inherit; cursor: pointer; padding: 0 4px; font-size: 0.85rem; opacity: 0.75; line-height: 1; } .cb-search-clear:hover { opacity: 1; } .recipe-page.search-hidden, .divider.search-hidden { display: none !important; } #search-empty-state { text-align: center; padding: 40px 20px; background: rgba(255, 255, 255, 0.7); border: 2px dashed rgba(34, 34, 34, 0.25); border-radius: 12px; margin: 20px auto; max-width: 500px; } .cb-nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; } .cb-btn { font-family: var(--font-hand); font-size: 1rem; font-weight: 700; padding: 8px 14px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s ease; } /* 100% einheitliche Navigationsleisten-Buttons */ .cb-nav-btn { background: var(--creme); color: var(--tannengruen); border: 2px solid var(--creme); border-radius: 8px; font-family: var(--font-hand); font-weight: 700; font-size: 0.98rem; padding: 6px 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.18s ease; box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.15); white-space: nowrap; line-height: 1.2; } .cb-nav-btn:hover { background: #ffffff; border-color: #ffffff; color: var(--tannengruen); transform: translateY(-1px); box-shadow: 2px 3px 0px rgba(0, 0, 0, 0.25); } .cb-nav-btn:active { transform: translateY(0); box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.15); } .cb-btn-creme { background: var(--creme); color: var(--tannengruen); border-color: var(--creme); } .cb-btn-creme:hover { background: #fff; transform: translateY(-1px); } .cb-btn-outline { background: transparent; color: var(--creme); border-color: var(--creme); } .cb-btn-outline:hover { background: rgba(250, 246, 240, 0.18); border-color: #ffffff; color: #ffffff; } .cb-btn-green { background: #143729; color: var(--creme) !important; border-color: var(--creme); box-shadow: none; } .cb-btn-green:hover { background: #0f2c1f; color: #ffffff !important; border-color: #ffffff; transform: translateY(-1px); } /* Filter Bar: Schlank & horizontal scrollbar (links-rechts) */ .cb-filter-bar { position: sticky; top: 48px; z-index: 990; background: var(--creme); border-bottom: 2px solid rgba(34, 34, 34, 0.15); padding: 6px 12px; display: flex; align-items: center; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; -webkit-overflow-scrolling: touch; width: 100%; box-sizing: border-box; box-shadow: 0 2px 6px rgba(0,0,0,0.06); } .cb-filter-scroll-container { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; width: max-content; padding: 2px 4px; } .cb-chip { flex-shrink: 0; white-space: nowrap; font-family: var(--font-hand); font-size: 0.9rem; padding: 5px 13px; border-radius: 20px; background: var(--grau-bg); border: 1.5px solid rgba(34, 34, 34, 0.2); color: var(--schwarz); cursor: pointer; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; } .cb-chip.active, .cb-chip:hover { background: var(--tannengruen); color: var(--creme); border-color: var(--tannengruen); } /* Page Container (Virtual Book / Scroll view) */ .book-wrapper { max-width: 960px; width: 100%; margin: 24px auto; padding: 0 16px; display: flex; flex-direction: column; gap: 36px; box-sizing: border-box; } /* --- A4 Page Container --- */ .page { background-color: var(--creme); box-shadow: 0 6px 20px rgba(0,0,0,0.18); position: relative; overflow: hidden; box-sizing: border-box; border-radius: 6px; min-height: 580px; } /* (Druckstile zentral in cookbook.html