:root{--bg:#f2eee6;--paper:#fffaf2;--paper2:#ebe2d3;--ink:#201f1c;--muted:#756f66;--line:#d8cebf;--accent:#873f2f;--accent2:#c68a5d;--deep:#2f3328;--shadow:0 18px 55px rgba(66,49,31,.11);--radius:26px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#f6f2ea 0,#eee8df 100%);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.55}a{color:inherit;text-decoration:none}a:hover{text-decoration:none}.site-header{position:sticky;top:0;z-index:10;background:rgba(246,242,234,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(216,206,191,.75)}.header-inner{max-width:1180px;margin:auto;padding:14px 22px;display:flex;gap:24px;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-family:Georgia,serif;font-size:1.5rem;font-weight:700;color:var(--ink)}.brand-mark{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--deep);color:#fff7e9;font-size:1.05rem;box-shadow:0 8px 22px rgba(47,51,40,.18)}nav{display:flex;gap:6px;align-items:center;flex-wrap:wrap}nav a{padding:8px 11px;border-radius:11px;color:#4c4943;font-size:.94rem}nav a:hover{background:#e9e1d5}.admin-link{border:1px solid var(--line);background:rgba(255,255,255,.45)}.wrap{max-width:1180px;margin:34px auto 70px;padding:0 22px}.home-wrap{margin-top:28px}.narrow{max-width:760px;margin:50px auto;padding:0 22px}.hero{display:grid;grid-template-columns:1.12fr .88fr;gap:38px;align-items:center;margin-bottom:28px}.hero-card{position:relative;overflow:hidden;background:radial-gradient(circle at 80% 10%,rgba(198,138,93,.25),transparent 30%),linear-gradient(145deg,#3a3c31,#24271f);color:#fff9ee;border-radius:34px;padding:clamp(30px,5vw,64px);box-shadow:0 25px 70px rgba(45,45,35,.18)}.hero-card:after{display:none}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;font-weight:800;color:var(--accent2)}.hero h1,.recipe-title{font-family:Georgia,serif;font-size:clamp(3rem,7vw,6rem);line-height:.92;margin:.13em 0 .22em;letter-spacing:-.045em}.hero-copy p{max-width:560px;font-size:1.12rem;color:#d8d3c8;margin:0 0 24px}.hero-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.hero-card .button{background:#f4e4cf;color:#29291f}.text-link{color:#eee7dc;font-weight:700}.search-panel{position:relative;z-index:1;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);border-radius:24px;padding:22px;backdrop-filter:blur(7px)}.search-panel label{font-weight:800;margin-bottom:9px;display:block}.searchbar{display:flex;gap:9px}.searchbar input{flex:1;min-width:0}.search-panel input{border:0;background:#fffdf8}.search-panel button{background:var(--accent)}.search-hint{display:block;margin-top:10px;font-size:.8rem;color:#c7c3ba}.muted{color:var(--muted)}.tags{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.home-tags{margin:24px 0 42px}.tag{display:inline-flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:999px;padding:8px 12px;font-size:.84rem;background:rgba(255,255,255,.5);transition:.2s ease}.tag span{color:var(--muted);font-size:.76rem}.tag:hover,.tag.active{background:var(--deep);border-color:var(--deep);color:#fff}.tag.active span,.tag:hover span{color:#d7d3ca}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px}.section-head h2{font-family:Georgia,serif;font-size:clamp(2rem,4vw,3.3rem);margin:.05em 0 0;letter-spacing:-.035em}.recipe-count{color:var(--muted);font-size:.9rem}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}.recipe-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(275px,1fr));gap:22px}.recipe-card{overflow:hidden;padding:0;transition:transform .22s ease,box-shadow .22s ease}.recipe-card:hover{transform:translateY(-4px);box-shadow:0 24px 62px rgba(66,49,31,.15)}.recipe-image{display:block;aspect-ratio:16/9;overflow:hidden;background:#e8e0d4}.recipe-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}.recipe-card:hover img{transform:scale(1.035)} .image-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:linear-gradient(145deg,#f3ede4,#e5dccf);color:#746b5f}.image-placeholder small{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#8a8175}.chef-hat{position:relative;width:86px;height:72px}.chef-hat-top{position:absolute;top:6px;width:42px;height:42px;border:3px solid #8a8175;border-bottom:0;border-radius:50% 50% 42% 42%;background:#f7f2eb}.chef-hat-left{left:4px}.chef-hat-center{left:22px;top:0;width:46px;height:46px}.chef-hat-right{right:4px}.chef-hat-base{position:absolute;left:12px;right:12px;bottom:4px;height:24px;border:3px solid #8a8175;border-radius:7px;background:#f7f2eb}.recipe-card .body{padding:20px 20px 22px}.recipe-card h3{font-family:Georgia,serif;font-size:1.55rem;margin:0 0 7px;line-height:1.15}.recipe-card p{color:var(--muted);margin:0 0 17px}.recipe-more{display:flex;align-items:center;justify-content:space-between;font-size:.91rem;font-weight:800;color:var(--accent)}.recipe-more span{font-size:1.2rem;transition:transform .2s}.recipe-card:hover .recipe-more span{transform:translateX(4px)}.empty-state{text-align:center;padding:70px 20px;border:1px dashed #cfc4b4;border-radius:28px;background:rgba(255,255,255,.28)}.empty-icon{font-size:2rem;color:var(--accent)}.empty-state h3{font-family:Georgia,serif;font-size:1.7rem;margin:10px 0 4px}.empty-state p{color:var(--muted);margin:0}.recipe-layout{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;align-items:start}.recipe-section h2{font-family:Georgia,serif;margin-top:0}.ingredients{list-style:none;padding:0;margin:0}.ingredients li{padding:8px 0;border-bottom:1px dashed var(--line);display:flex;gap:8px}.ingredient-amount{min-width:95px;font-variant-numeric:tabular-nums}.servings{display:flex;align-items:center;gap:9px;margin:14px 0 22px}.servings button{width:38px;height:38px;padding:0;border-radius:50%}button,.button{border:0;background:var(--accent);color:#fff;padding:10px 15px;border-radius:12px;font:inherit;font-weight:700;cursor:pointer;display:inline-block;transition:.18s ease}button:hover,.button:hover{filter:brightness(.96);transform:translateY(-1px)}.button.secondary,button.secondary{background:#ebe3d6;color:var(--ink);border:1px solid var(--line)}input,textarea,select{width:100%;border:1px solid #cfc5b5;border-radius:12px;padding:11px 13px;background:#fff;font:inherit;color:var(--ink)}textarea{min-height:170px;resize:vertical}label{display:grid;gap:6px;font-weight:600}.form-grid{display:grid;gap:16px}.form-grid.two{grid-template-columns:1fr 1fr}.notice{padding:14px 16px;border-radius:12px;margin:15px 0}.notice.error{background:#fae2df}.notice.success{background:#e5f2e5}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{text-align:left;padding:10px;border-bottom:1px solid var(--line)}.toolbar{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap}.ingredient-row{display:grid;grid-template-columns:90px 90px 1fr 1fr 44px;gap:8px;margin-bottom:8px}.photo{max-width:100%;border-radius:18px;display:block}.finder-form{display:flex;gap:10px;flex-wrap:wrap}.finder-form input{flex:1;min-width:220px}.score{font-weight:700}.missing{color:#8d3b2f}.site-footer{border-top:1px solid var(--line);background:rgba(238,232,223,.85)}.footer-inner{max-width:1180px;margin:auto;padding:24px 22px;display:flex;justify-content:space-between;color:var(--muted);font-size:.85rem}.footer-inner a{color:var(--muted)}
@media(max-width:850px){.hero,.recipe-layout{grid-template-columns:1fr}.hero-card{padding:34px 26px}.form-grid.two{grid-template-columns:1fr}.ingredient-row{grid-template-columns:80px 75px 1fr}.ingredient-row .note{grid-column:1/3}.ingredient-row button{grid-column:3}.site-header{position:static}.header-inner{align-items:flex-start}.brand span:last-child{display:none}.section-head{align-items:center}.searchbar{flex-direction:column}.searchbar button{width:100%}}
@media print{.site-header,.site-footer,.servings button,.no-print{display:none!important}body{background:white}.wrap{max-width:none;margin:0}.card{box-shadow:none}.recipe-layout{grid-template-columns:1fr 1fr 1fr}}

/* Rezeptbilder: Startseite ohne Bilder; Detailseite mit dezenter Miniatur */
.recipe-card{padding-top:0}
.recipe-photo-wrap{margin:18px 0 30px;display:inline-flex;flex-direction:column;align-items:flex-start;gap:7px;position:relative;z-index:2}
.recipe-photo-thumb{display:block;width:150px;max-width:42vw;height:100px;object-fit:cover;border-radius:14px;border:1px solid var(--line);box-shadow:0 8px 22px rgba(66,49,31,.10);cursor:zoom-in;transform-origin:left top;transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s ease;position:relative;z-index:3}
.recipe-photo-hint{font-size:.72rem;color:var(--muted);letter-spacing:.02em}
@media (hover:hover) and (pointer:fine){.recipe-photo-wrap:hover{z-index:20}.recipe-photo-thumb:hover{transform:scale(2.6);box-shadow:0 22px 55px rgba(66,49,31,.24)}}
.recipe-photo-thumb:focus{outline:3px solid rgba(156,93,55,.28);outline-offset:3px;transform:scale(2.2);box-shadow:0 22px 55px rgba(66,49,31,.24);z-index:20}
@media (max-width:620px){.recipe-photo-thumb{width:120px;height:82px;max-width:48vw}.recipe-photo-thumb:focus{transform:scale(1.75)}}


/* Lesbare Schrittlisten auf der Rezeptseite */
.recipe-steps{margin:0;padding:0;display:grid;gap:9px;counter-reset:recipe-step}
.recipe-steps li{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.38);transition:background .18s ease,border-color .18s ease,box-shadow .18s ease}
.prep-steps{list-style:none}
.prep-steps li::before{content:"•";position:absolute;left:46px;top:10px;color:var(--accent2);font-weight:800}
.prep-steps .step-text{padding-left:13px}
.cooking-steps{list-style:none}
.cooking-steps li{counter-increment:recipe-step}
.cooking-steps .step-text::before{content:counter(recipe-step) ". ";font-weight:800;color:var(--accent);font-variant-numeric:tabular-nums}
.step-marker{width:26px;height:26px;padding:0;border-radius:50%;border:2px solid #cbbdaa;background:#fffaf2;box-shadow:none;position:relative;transform:none!important}
.step-marker::after{content:"";position:absolute;inset:5px;border-radius:50%;background:transparent;transition:background .18s ease}
.step-marker:hover{border-color:var(--accent2);filter:none}
.recipe-steps li.is-current{background:#f5dfb6;border-color:#d6a85e;box-shadow:0 6px 18px rgba(140,91,33,.10)}
.recipe-steps li.is-current .step-marker{border-color:#a9672d;background:#fff8e8}
.recipe-steps li.is-current .step-marker::after{background:#b87031}
.recipe-steps li.is-current .step-text{font-weight:700}
@media(max-width:850px){.recipe-steps li{grid-template-columns:28px minmax(0,1fr);padding:10px}.prep-steps li::before{left:43px}}
@media print{.recipe-steps li{break-inside:avoid;background:white!important;box-shadow:none!important}.recipe-steps{gap:5px}}

/* Kopfzeilen- und Fotoanpassung */
.hero h1{font-size:clamp(2rem,4.7vw,4rem)}
.recipe-title{font-size:clamp(2rem,4.7vw,4rem)}
.recipe-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:start;margin-bottom:14px}
.recipe-head-copy{min-width:0}
.recipe-head .recipe-photo-wrap{margin:0;justify-self:end}
.recipe-head .recipe-photo-thumb{width:160px;height:108px;max-width:28vw;transform-origin:right top}
@media (hover:hover) and (pointer:fine){.recipe-head .recipe-photo-thumb:hover{transform:scale(2.6)}}
.recipe-head .recipe-photo-thumb:focus{transform:scale(2.2)}
.servings .print-btn{width:auto;height:38px;padding:0 15px;border-radius:12px;white-space:nowrap}
@media (max-width:700px){.recipe-head{grid-template-columns:1fr}.recipe-head .recipe-photo-wrap{justify-self:start}.recipe-head .recipe-photo-thumb{max-width:48vw;transform-origin:left top}}


/* Kategorien */
.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:24px 0 34px}
.category-card{display:flex;flex-direction:column;gap:5px;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--text);text-decoration:none;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.category-card strong{font-size:1.02rem}.category-card span{color:var(--muted);font-size:.84rem}
.category-card:hover,.category-card.active{transform:translateY(-2px);border-color:rgba(156,93,55,.42);box-shadow:0 10px 24px rgba(66,49,31,.09)}
.existing-photos{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:14px;margin-top:4px}.existing-photos>strong{flex-basis:100%}
.existing-photo{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.35)}
.existing-photo .photo{width:110px;height:78px;object-fit:cover;border-radius:10px;margin:0}.existing-photo span{display:flex;gap:8px;align-items:center;font-size:.88rem}.existing-photo input[type=checkbox]{width:18px;height:18px}

/* Ruhiger Startseitenkopf + Suche als Werkzeug */
.hero.hero-card{grid-template-columns:1fr;min-height:0;padding:clamp(28px,4vw,48px);margin-bottom:22px}
.hero-copy{max-width:760px}
.hero-copy p{margin-bottom:0}
.content-search{display:flex;align-items:center;max-width:760px;margin:0 0 34px;background:#fbf8f2;border:1px solid #d8cec0;border-radius:999px;box-shadow:0 10px 30px rgba(66,49,31,.08);overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease}
.content-search:focus-within{border-color:#b9a794;box-shadow:0 12px 34px rgba(66,49,31,.12)}
.content-search input{border:0!important;background:transparent!important;border-radius:0;padding:14px 8px 14px 20px;min-width:0;outline:none;box-shadow:none}
.content-search button{width:46px;height:46px;min-width:46px;margin:4px;border-radius:50%;padding:0;display:grid;place-items:center;background:transparent;color:var(--ink);transform:none}
.content-search button:hover{background:#eee6da;filter:none;transform:none}
.content-search svg,.site-header nav svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.site-header nav a{display:inline-flex;align-items:center;gap:7px}
.site-header nav a svg{width:17px;height:17px;opacity:.78}
@media(max-width:850px){.content-search{max-width:none}.site-header nav a{gap:5px}.site-header nav a span{font-size:.9rem}}
@media(max-width:560px){.site-header nav a span{display:none}.site-header nav a{padding:9px}.site-header nav a svg{width:19px;height:19px}.admin-link{border:0;background:transparent}}


/* Altgoldgrün – lebendiges, warmes Gesamtfarbdesign */
:root{
  --bg:#eee9d8;
  --paper:#f8f3e4;
  --paper2:#e3e2c9;
  --ink:#1d2a21;
  --muted:#687061;
  --line:#c9c6a8;
  --accent:#a98532;
  --accent2:#d0b76d;
  --deep:#203a2b;
  --moss:#536b4c;
  --sage:#9daa86;
  --cream:#f5efdf;
  --shadow:0 18px 55px rgba(40,55,39,.12);
}
body{background:linear-gradient(180deg,#f4f0e3 0%,#e8e5d3 100%);color:var(--ink)}
.site-header{background:rgba(244,240,227,.90);border-bottom-color:rgba(169,166,134,.72)}
.brand{color:var(--deep)}
.brand-mark{background:linear-gradient(145deg,#294936,#1e3528);color:#ead9a3;box-shadow:0 8px 22px rgba(32,58,43,.20)}
nav a{color:#435044}
nav a:hover{background:#dfe3cc;color:#263a2d}
.admin-link{border-color:#bfc39e;background:rgba(233,231,207,.55)}
.hero-card{background:radial-gradient(circle at 84% 10%,rgba(210,184,101,.27),transparent 31%),radial-gradient(circle at 14% 100%,rgba(131,139,76,.24),transparent 40%),linear-gradient(145deg,#5b653d 0%,#465335 48%,#2f3c27 100%);color:#fbf5e4;box-shadow:0 25px 70px rgba(45,56,34,.22)}
.hero-card:after{border-color:rgba(216,192,126,.16)}
.hero-copy p{color:#d7dec7}
.eyebrow{color:#cdb66c}
.section-head h2,.recipe-card h3,.empty-state h3,.recipe-section h2{color:#23392b}
.recipe-count,.muted,.recipe-card p,.footer-inner,.footer-inner a{color:#6b7465}
.card{background:linear-gradient(180deg,#faf6e9,#f4efdf);border-color:#cbc9aa;box-shadow:var(--shadow)}
.recipe-card:hover{box-shadow:0 24px 62px rgba(47,67,47,.16);border-color:#b7b78d}
.recipe-more{color:#8a6b21}
.recipe-more:hover{color:#6f5517}
.tag{background:#edf0df;border-color:#c3c9aa;color:#3d5341}
.tag:hover,.tag.active{background:#405f46;border-color:#405f46;color:#f8f1db}
.tag.active span,.tag:hover span{color:#e1d8b6}
button,.button{background:linear-gradient(180deg,#b08a38,#967326);color:#fff9e8;box-shadow:0 5px 14px rgba(120,91,31,.16)}
.button.secondary,button.secondary{background:#e1e5d0;color:#294234;border-color:#bdc39e;box-shadow:none}
input,textarea,select{border-color:#bfc3a4;background:#fffdf5;color:#213126}
input:focus,textarea:focus,select:focus{outline:3px solid rgba(169,133,50,.16);border-color:#a98532}
.empty-state{border-color:#bbb991;background:rgba(245,242,223,.58)}
.empty-icon{color:#a98532}
.ingredients li{border-bottom-color:#c9c7aa}
.site-footer{border-top-color:#c4c2a3;background:rgba(229,228,207,.88)}
.recipe-photo-thumb{border-color:#bfc3a4;box-shadow:0 8px 22px rgba(40,55,39,.12)}
.recipe-photo-thumb:focus{outline-color:rgba(169,133,50,.34);box-shadow:0 22px 55px rgba(40,55,39,.22)}
@media (hover:hover) and (pointer:fine){.recipe-photo-thumb:hover{box-shadow:0 22px 55px rgba(40,55,39,.22)}}
.recipe-steps li{border-color:#c8c7aa;background:#f1f2e3}
.prep-steps li{background:#f3efdc;border-color:#d1c798}
.cooking-steps li{background:#e8eddc;border-color:#b9c39f}
.prep-steps li::before{color:#a98532}
.cooking-steps .step-text::before{color:#55704f}
.step-marker{border-color:#b7b890;background:#fbf7e9}
.step-marker:hover{border-color:#a98532}
.recipe-steps li.is-current{background:#eadc9d;border-color:#b8953f;box-shadow:0 6px 18px rgba(118,91,34,.13)}
.recipe-steps li.is-current .step-marker{border-color:#8c6c24;background:#fff8df}
.recipe-steps li.is-current .step-marker::after{background:#a98532}
.category-card{background:linear-gradient(180deg,#f4f1df,#e9ecd9);border-color:#c4c6a8;color:#26392c}
.category-card:hover,.category-card.active{border-color:#a98532;box-shadow:0 10px 24px rgba(48,65,45,.11);background:#eef0dc}
.existing-photo{border-color:#c5c6aa;background:rgba(244,244,225,.55)}
/* Startseite bewusst ohne Suchfeld: Kategorien und Zutatenfinder übernehmen die Suche. */
.content-search{display:none!important}

.photo-upload-label{gap:9px}
.photo-upload-control{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.photo-upload-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important}
.photo-upload-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;margin:0}
.photo-file-name{font-size:.86rem;color:var(--muted);font-weight:500;min-height:1.2em}

/* Kuratierte Startseite und Rezeptarchiv */
.home-section{margin:46px 0 58px}
.home-section:first-of-type{margin-top:36px}
.section-link{display:inline-flex;align-items:center;gap:7px;color:#6f571d;font-weight:750;white-space:nowrap;padding:7px 0;border-bottom:1px solid rgba(169,133,50,.34)}
.section-link:hover{color:#405f46;border-bottom-color:#405f46}
.compact-category-grid{grid-template-columns:repeat(auto-fit,minmax(155px,1fr));margin:0}
.home-categories{padding:26px;border:1px solid #c9c6a8;border-radius:24px;background:linear-gradient(145deg,rgba(245,239,217,.76),rgba(226,231,207,.68))}
.discover-section{position:relative}
.discovery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.all-recipes-cta{text-align:center;margin:6px 0 12px}
.archive-head{margin-top:46px}
.archive-title{font-family:Georgia,serif;font-size:clamp(2.2rem,5vw,4.5rem);line-height:1;margin:.08em 0 0;letter-spacing:-.04em;color:#23392b}
.pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:38px 0 0;flex-wrap:wrap}
.pagination a{display:inline-flex;padding:9px 13px;border:1px solid #c3c7a7;border-radius:999px;background:#eef0dc;color:#34513b;font-weight:700}
.pagination span{color:var(--muted);font-size:.9rem}
@media(max-width:820px){.discovery-grid{grid-template-columns:1fr}.home-section{margin:36px 0 46px}.home-categories{padding:20px}.section-head{align-items:flex-start}.section-link{white-space:normal}}

/* Startseite: kompaktere Dreierspalten und kleinere Bereichstitel */
.home-wrap .recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.home-wrap .recipe-card .body{padding:18px 18px 20px}
.home-wrap .recipe-card h3{font-size:1.28rem}
.home-section-title.compact-title{font-size:clamp(1.35rem,2.7vw,2.2rem)}
@media(max-width:900px){.home-wrap .recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.home-wrap .recipe-grid{grid-template-columns:1fr}.home-section-title.compact-title{font-size:1.45rem}}

/* Zufallsrezept: genau eine breite Karte */
.home-wrap .single-random{grid-template-columns:minmax(0,1fr);max-width:760px}
.home-wrap .single-random .recipe-card{width:100%}
.home-wrap .single-random .recipe-card h3{font-size:1.45rem}
@media(max-width:620px){.home-wrap .single-random{max-width:none}}

/* =========================================================
   PHASE 1 · DESIGN-REFINEMENT — Altgold & Kräutergarten
   Nur Gestaltung: keine Funktions- oder Datenbankänderungen.
   ========================================================= */
:root{
  --bg:#eeeadc;
  --surface:#f8f5e9;
  --surface-soft:#e7ead7;
  --surface-gold:#eee5c7;
  --ink:#203126;
  --muted:#667064;
  --line:#c6c8a9;
  --line-gold:#c7ad65;
  --gold:#a8842f;
  --gold-dark:#7e6424;
  --gold-light:#d7c17d;
  --green-950:#243326;
  --green-900:#30442f;
  --green-800:#40563a;
  --green-700:#52684a;
  --green-500:#7f916c;
  --green-300:#b7c1a0;
  --cream:#f8f4e6;
  --shadow-sm:0 8px 24px rgba(41,54,38,.07);
  --shadow-md:0 18px 45px rgba(41,54,38,.10);
  --shadow-hover:0 24px 56px rgba(41,54,38,.14);
  --radius:20px;
  --radius-sm:12px;
}

html{background:var(--bg)}
body{
  background:
    radial-gradient(circle at 12% 8%,rgba(215,193,125,.11),transparent 26rem),
    linear-gradient(180deg,#f2eee1 0%,#e9e7d8 100%);
  color:var(--ink);
  font-family:"Avenir Next",Avenir,"Segoe UI",Inter,system-ui,-apple-system,sans-serif;
  font-size:16px;
  line-height:1.58;
}

/* Typografie */
h1,h2,h3,.brand,.recipe-title,.archive-title,.section-head h2,.recipe-card h3,.recipe-section h2,.empty-state h3{
  font-family:"Iowan Old Style","Palatino Linotype",Palatino,Baskerville,Georgia,serif;
  font-weight:600;
  letter-spacing:-.022em;
}
.hero h1{font-size:clamp(2.05rem,4.35vw,3.7rem);line-height:.98;letter-spacing:-.035em}
.hero-copy p{font-size:1.02rem;letter-spacing:.015em}
.recipe-title{font-size:clamp(1.9rem,3.5vw,3.2rem);line-height:1.02}
.archive-title{font-size:clamp(2rem,4vw,3.65rem)}
.home-section-title.compact-title{font-size:clamp(1.22rem,2vw,1.72rem);letter-spacing:-.015em}
.recipe-section h2{font-size:1.36rem}

/* Kopfzeile */
.site-header{
  background:rgba(239,236,219,.92);
  border-bottom:1px solid rgba(125,139,103,.28);
  box-shadow:0 5px 24px rgba(42,57,40,.045);
}
.header-inner{max-width:1180px;padding:12px 22px}
.brand{font-size:1.32rem;color:var(--green-950);gap:9px}
.brand-mark{
  width:31px;height:31px;border-radius:9px;
  background:linear-gradient(145deg,var(--green-800),var(--green-950));
  color:var(--gold-light);box-shadow:none;font-family:inherit;font-size:.94rem;
}
.site-header nav{gap:14px}
.site-header nav a{
  position:relative;padding:8px 3px;border-radius:0;
  color:#475646;font-size:.9rem;font-weight:650;
  background:transparent!important;
  transition:color .18s ease;
}
.site-header nav a::after{
  content:"";position:absolute;left:3px;right:3px;bottom:2px;height:1px;
  background:var(--gold);transform:scaleX(0);transform-origin:center;
  transition:transform .18s ease;
}
.site-header nav a:hover{color:var(--green-900)}
.site-header nav a:hover::after{transform:scaleX(1)}
.site-header nav svg{color:var(--green-700);opacity:.92}
.site-header .admin-link{border:0;background:transparent!important}

/* Hauptseiten-Hero: ruhig, satt, altgoldgrün */
.hero-card{
  border:1px solid rgba(215,193,125,.20);
  border-radius:28px;
  background:
    radial-gradient(circle at 88% 10%,rgba(205,178,91,.20),transparent 29%),
    radial-gradient(circle at 8% 115%,rgba(153,162,101,.22),transparent 40%),
    linear-gradient(142deg,#697348 0%,#56653f 42%,#394a32 100%);
  color:#fbf5e5;
  box-shadow:var(--shadow-md);
  padding:clamp(26px,4vw,46px);
}
.hero-copy p{color:#e1e4d2}
.hero-card .eyebrow{color:var(--gold-light)}

/* Abschnitte */
.home-section{margin:42px 0 54px}
.section-head{align-items:center;margin-bottom:18px;padding-bottom:11px;border-bottom:1px solid rgba(168,132,47,.26)}
.section-link{
  color:var(--gold-dark);font-size:.88rem;font-weight:700;
  border-bottom:0;padding:5px 0;
}
.section-link:hover{color:var(--green-700);border-bottom:0}
.eyebrow{color:var(--gold-dark);font-size:.68rem;letter-spacing:.14em}

/* Karten */
.card{
  background:linear-gradient(180deg,rgba(250,247,235,.98),rgba(245,241,225,.98));
  border:1px solid rgba(134,145,111,.34);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
.recipe-card{
  position:relative;
  box-shadow:0 7px 22px rgba(42,57,40,.06);
  border-color:rgba(124,139,102,.30);
}
.recipe-card::before{
  content:"";position:absolute;left:18px;right:18px;top:0;height:2px;
  background:linear-gradient(90deg,transparent,var(--gold-light),transparent);opacity:.68;
}
.recipe-card:hover{
  transform:translateY(-3px);
  border-color:rgba(168,132,47,.48);
  box-shadow:var(--shadow-hover);
}
.recipe-card .body{padding:20px 20px 21px}
.recipe-card h3{font-size:1.34rem;color:var(--green-950);margin-bottom:8px}
.recipe-card p{font-size:.92rem;line-height:1.55;color:var(--muted)}
.recipe-more{font-size:.86rem;color:var(--gold-dark);letter-spacing:.01em}
.recipe-more:hover{color:var(--green-700)}
.home-wrap .recipe-grid{gap:17px}
.home-wrap .single-random{max-width:690px}

/* Tags und Kategorien */
.tag{
  padding:6px 11px;
  background:#e9eddc;border:1px solid #c4caa9;color:#3e5640;
  font-size:.79rem;font-weight:650;
}
.tag:hover,.tag.active{background:var(--green-700);border-color:var(--green-700);color:#fff9e9}
.category-grid{gap:14px}
.category-card{
  background:linear-gradient(145deg,#f4f1df,#e9edd9);
  border:1px solid rgba(122,139,103,.34);
  border-radius:17px;
  box-shadow:0 5px 18px rgba(42,57,40,.045);
  padding:20px;
}
.category-card:hover,.category-card.active{
  transform:translateY(-2px);
  background:linear-gradient(145deg,#f3efdc,#e5ead4);
  border-color:rgba(168,132,47,.60);
  box-shadow:var(--shadow-sm);
}
.category-card strong{font-family:"Iowan Old Style",Palatino,Georgia,serif;font-size:1.08rem;color:var(--green-950)}

/* Buttons: eine gemeinsame Designsprache */
button,.button{
  min-height:42px;
  padding:9px 16px;
  border:1px solid rgba(116,88,24,.28);
  border-radius:11px;
  background:linear-gradient(180deg,#b3923d,#9b7929);
  color:#fffaf0;
  box-shadow:0 5px 12px rgba(91,72,27,.10);
  font-weight:700;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;
}
button:hover,.button:hover{
  filter:none;transform:translateY(-1px);
  background:linear-gradient(180deg,#bd9b46,#a6812d);
  box-shadow:0 8px 18px rgba(91,72,27,.14);
}
.button.secondary,button.secondary{
  background:#e8ead8;color:var(--green-900);border-color:#c2c8a7;box-shadow:none;
}
.button.secondary:hover,button.secondary:hover{background:#dde3ca;border-color:#abb891}
.servings button:not(.print-btn){border-radius:50%;width:38px;height:38px;min-height:38px;padding:0}
.servings .print-btn{border-radius:11px}

/* Formulare und Admin */
input,textarea,select{
  border:1px solid #bdc3a7;border-radius:11px;
  padding:12px 13px;background:#fffdf5;color:var(--ink);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
input:hover,textarea:hover,select:hover{border-color:#aeb692}
input:focus,textarea:focus,select:focus{
  outline:0;border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(168,132,47,.13);
  background:#fffef9;
}
label{font-size:.91rem;color:#344536}
.toolbar{gap:10px}
.notice{border-radius:12px}
.editable-row{
  border:1px solid rgba(123,139,102,.30);
  border-radius:14px;
  background:rgba(248,247,235,.72);
}
.row-actions button{box-shadow:none}
.drag-handle{cursor:grab}
.existing-photo{background:#f0f1df;border-color:#c2c7a6}
.photo-upload-button{background:#e8ead8!important;color:var(--green-900)!important;border-color:#c2c8a7!important}

/* Rezeptdetail */
.recipe-head{padding:8px 0 13px;border-bottom:1px solid rgba(168,132,47,.24);margin-bottom:18px}
.recipe-head-copy>.muted{text-transform:uppercase;letter-spacing:.14em;font-size:.68rem;color:var(--gold-dark);font-weight:800}
.recipe-head-copy>p{max-width:720px;color:#566257}
.recipe-photo-thumb{border:1px solid #b7bfa0;border-radius:14px;background:#f5f2e4;box-shadow:var(--shadow-sm)}
.recipe-photo-hint{font-size:.72rem;color:var(--muted)}
.servings{padding:10px 0 4px;color:#405041}
.recipe-layout{gap:16px}
.recipe-section{box-shadow:0 8px 26px rgba(42,57,40,.055)}
.recipe-section h2{padding-bottom:9px;margin-bottom:10px;border-bottom:1px solid rgba(168,132,47,.24);color:var(--green-900)}
.ingredients li{padding:10px 2px;border-bottom:1px solid rgba(126,139,109,.24)}
.ingredient-amount{color:var(--gold-dark);font-weight:750}
.recipe-steps{gap:9px}
.recipe-steps li{
  border-radius:12px;
  border:1px solid rgba(125,139,105,.28);
  box-shadow:none;
}
.prep-steps li{background:#f1edda;border-color:#d2c798}
.cooking-steps li{background:#e7ecda;border-color:#b9c39e}
.step-marker{box-shadow:none}
.recipe-steps li.is-current{
  background:linear-gradient(90deg,#eddfa8,#e5d18d);
  border-color:#b18e36;
  box-shadow:0 7px 18px rgba(126,101,38,.10);
}

/* Leere Zustände, Pagination, Footer */
.empty-state{background:rgba(245,243,225,.58);border-color:#bfc2a2;border-radius:20px}
.pagination a{background:#edf0dd;border-color:#c1c7a5;color:var(--green-800)}
.pagination a:hover{border-color:var(--gold);background:#e7ead5}
.site-footer{background:rgba(231,231,211,.86);border-top:1px solid rgba(125,139,103,.25)}
.footer-inner{font-size:.82rem}

/* Bewegungen nur dort, wo sie helfen */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

@media(max-width:900px){
  .site-header nav{gap:8px}
  .recipe-layout{grid-template-columns:1fr}
}
@media(max-width:620px){
  .hero-card{border-radius:22px;padding:25px 22px}
  .home-section{margin:34px 0 44px}
  .section-head{align-items:flex-start}
  .card{border-radius:17px}
}

/* Phase 3: Zutatenfinder */
.finder-page{max-width:1040px}.finder-title{font-family:var(--font-display,Georgia,serif);font-size:clamp(2.25rem,5vw,4rem);line-height:1;margin:.14em 0 .2em}.finder-intro{max-width:720px;color:var(--muted);margin:0 0 22px}.finder-form-v2{display:grid;grid-template-columns:minmax(260px,1fr) minmax(210px,.55fr) auto;gap:10px;align-items:center}.finder-form-v2 input,.finder-form-v2 select{min-height:46px}.finder-form-v2 button{min-height:46px;white-space:nowrap}.finder-results-head{margin-top:38px}.finder-results-head h2{font-size:clamp(1.45rem,2.6vw,2.1rem)}.finder-results{display:grid;gap:14px}.finder-result{position:relative;display:grid;grid-template-columns:46px 1fr;gap:16px;padding:18px 20px;box-shadow:0 10px 30px rgba(40,48,31,.07);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.finder-result:hover{transform:translateY(-2px);box-shadow:0 17px 38px rgba(40,48,31,.11);border-color:rgba(176,138,62,.45)}.finder-rank{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(176,138,62,.13);color:var(--gold,#9c7a35);font-weight:800;font-variant-numeric:tabular-nums}.finder-result-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.finder-result h3{font-family:var(--font-display,Georgia,serif);font-size:1.45rem;line-height:1.15;margin:3px 0 12px}.finder-status{font-size:.73rem;letter-spacing:.08em;text-transform:uppercase;font-weight:800;color:var(--muted)}.finder-ready .finder-status{color:#556b49}.finder-score{flex:0 0 auto;display:grid;text-align:right;line-height:1}.finder-score strong{font-family:var(--font-display,Georgia,serif);font-size:1.65rem;color:var(--gold,#9c7a35)}.finder-score span{font-size:.72rem;color:var(--muted);margin-top:4px}.finder-line{display:grid;grid-template-columns:112px 1fr;gap:12px;padding:7px 0;border-top:1px solid rgba(126,139,109,.18);font-size:.94rem}.finder-label{font-weight:800;color:var(--deep,#354231)}.finder-missing{color:#6d422e}.finder-complete{color:#4f6847}.finder-pantry{margin-top:7px;color:var(--muted);font-size:.78rem;font-style:italic}.finder-open{margin-top:12px;padding-top:10px;border-top:1px solid rgba(126,139,109,.16);max-width:190px}.finder-ready{border-color:rgba(85,107,73,.35);background:linear-gradient(135deg,rgba(255,255,255,.84),rgba(229,235,216,.58))}
@media(max-width:760px){.finder-form-v2{grid-template-columns:1fr}.finder-result{grid-template-columns:38px 1fr;padding:16px 14px;gap:10px}.finder-rank{width:32px;height:32px}.finder-result-top{gap:10px}.finder-score strong{font-size:1.35rem}.finder-line{grid-template-columns:1fr;gap:2px}.finder-label{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em}}
/* Phase 3: intelligenter Zutatenfinder */
.finder-form-v3{display:grid;gap:1.1rem}.finder-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:.65rem;align-items:center}.fridge-box,.wish-box{border:0;border-top:1px solid color-mix(in srgb,var(--gold, #b08a3e) 35%,transparent);padding:1rem 0 0;margin:0}.fridge-box legend,.wish-box legend{padding:0 .55rem 0 0;font-weight:700;color:var(--ink,#263126)}.fridge-chips,.wish-chips{display:flex;flex-wrap:wrap;gap:.5rem}.fridge-chip,.wish-chip{position:relative}.fridge-chip input,.wish-chip input{position:absolute;opacity:0;pointer-events:none}.fridge-chip span,.wish-chip span{display:inline-flex;align-items:center;min-height:38px;padding:.45rem .78rem;border:1px solid color-mix(in srgb,var(--green-mid,#66735a) 40%,transparent);border-radius:999px;background:color-mix(in srgb,var(--cream,#f5f1e7) 92%,white);cursor:pointer;transition:.16s ease}.fridge-chip input:checked+span,.wish-chip input:checked+span{background:var(--green-dark,#4b563e);border-color:var(--green-dark,#4b563e);color:#fff7df;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--gold,#b08a3e) 55%,transparent)}.fridge-chip input:focus-visible+span,.wish-chip input:focus-visible+span{outline:3px solid color-mix(in srgb,var(--gold,#b08a3e) 35%,transparent);outline-offset:2px}.didyoumean{margin:1rem 0;padding:.8rem 1rem;border-left:4px solid var(--gold,#b08a3e);background:color-mix(in srgb,var(--gold,#b08a3e) 10%,var(--cream,#f5f1e7));border-radius:0 12px 12px 0}.traffic-dot{width:.72rem;height:.72rem;border-radius:50%;display:inline-block;margin-right:.45rem;vertical-align:.02rem}.traffic-green .traffic-dot{background:#4d7a4c}.traffic-yellow .traffic-dot{background:#c9a53a}.traffic-orange .traffic-dot{background:#c87935}.traffic-red .traffic-dot{background:#a94b3f}.traffic-green{border-left:4px solid #4d7a4c}.traffic-yellow{border-left:4px solid #c9a53a}.traffic-orange{border-left:4px solid #c87935}.traffic-red{border-left:4px solid #a94b3f}.lexicon-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:.8rem;align-items:end;margin-bottom:1rem}.lexicon-form label{display:grid;gap:.35rem;font-weight:650}.lexicon-message{margin:.8rem 0;padding:.7rem 1rem;background:color-mix(in srgb,var(--green-mid,#66735a) 14%,var(--cream,#f5f1e7));border-radius:10px}.lexicon-table-wrap{overflow:auto}.button.small{min-width:0;padding:.35rem .6rem}
@media(max-width:760px){.finder-input-row{grid-template-columns:1fr}.lexicon-form{grid-template-columns:1fr}.fridge-chips,.wish-chips{gap:.4rem}}

/* Rezeptansicht: Fortschrittsmarker bleiben unabhängig von allgemeinen Button-Regeln kreisrund */
.recipe-steps button.step-marker{
  width:26px;
  height:26px;
  min-width:26px;
  min-height:26px;
  max-width:26px;
  max-height:26px;
  aspect-ratio:1 / 1;
  padding:0;
  margin:0;
  flex:0 0 26px;
  align-self:start;
  display:block;
  border-radius:50%;
  line-height:1;
  box-sizing:border-box;
}


/* Phase 4 – Editor: zentralisiert aus admin/edit.php */
.edit-list{display:grid;gap:8px;margin:0 0 12px}.editable-row{position:relative}.step-row{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center}.step-row>input{grid-column:2;width:100%;min-width:0}.step-row>.row-actions{grid-column:2;justify-content:flex-end;flex-wrap:wrap}.step-marker{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#ebe3d6;color:#873f2f;font-weight:800}.step-editor.numbered{counter-reset:kochstep}.step-editor.numbered .step-row{counter-increment:kochstep}.step-editor.numbered .step-marker:before{content:counter(kochstep)}.step-row input{min-width:0}.row-actions{display:flex;align-items:center;gap:4px}.row-actions button{padding:0!important;width:36px;height:36px;min-width:36px;display:grid;place-items:center}.drag-handle{cursor:grab;font-size:18px;line-height:1;touch-action:none}.drag-handle:active{cursor:grabbing}.editable-row.dragging{opacity:.45}.editable-row.drop-before{box-shadow:0 -3px 0 #873f2f}.editable-row.drop-after{box-shadow:0 3px 0 #873f2f}.ingredient-row.editable-row{display:grid;grid-template-columns:minmax(72px,.65fr) minmax(88px,.8fr) minmax(170px,1.7fr) minmax(150px,1.35fr);gap:8px;align-items:center}.ingredient-row.editable-row>input{min-width:0;width:100%}.ingredient-row .row-actions{grid-column:1/-1;justify-content:flex-end;flex-wrap:wrap}.insert-flash{animation:insertFlash .7s ease}@keyframes insertFlash{0%{background:#f4eadb}100%{background:transparent}}@media(max-width:850px){.step-row{grid-template-columns:28px minmax(0,1fr)}.step-row .row-actions{grid-column:2;justify-content:flex-end}.ingredient-row.editable-row{grid-template-columns:minmax(72px,.65fr) minmax(88px,.8fr) minmax(150px,1.5fr)}.ingredient-row.editable-row .note{grid-column:1/-1}.ingredient-row.editable-row .row-actions{grid-column:1/-1;justify-content:flex-end}}@media(max-width:560px){.ingredient-row.editable-row{grid-template-columns:1fr 1fr}.ingredient-row.editable-row input[name="ing_name[]"],.ingredient-row.editable-row .note{grid-column:1/-1}.row-actions button{width:34px;height:34px;min-width:34px}}
.editor-toolbar-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.save-primary{min-width:130px}.status-wrap{display:grid;gap:8px}.status-hint{font-size:.9rem;padding:10px 12px;border-radius:12px;border:1px solid var(--border,#c9b98f);background:rgba(255,255,255,.35)}.status-hint.is-published{background:#edf1e5;border-color:#8ea078;color:#31402f}.status-hint.is-draft{background:#f4eedf;border-color:#c7aa68;color:#5d4a22}.tag-editor{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:48px;padding:9px 10px;border:1px solid var(--border,#c9b98f);border-radius:14px;background:rgba(255,255,255,.58)}.tag-editor:focus-within{outline:2px solid rgba(176,138,62,.28);border-color:#a88745}.tag-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:#dfe5d6;color:#30412f;border:1px solid #b4c0a7;font-size:.92rem}.tag-chip button{border:0;background:transparent;color:inherit;padding:0;min-width:22px;width:22px;height:22px;line-height:1;box-shadow:none}.tag-chip-input{flex:1 1 180px;min-width:140px;border:0!important;background:transparent!important;padding:6px!important;box-shadow:none!important;outline:0!important}.tag-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.tag-suggestion{border:1px solid #b9b094;background:#f7f3e7;color:#45523f;border-radius:999px;padding:5px 9px;font-size:.86rem}.tag-suggestion:hover{background:#e9eddc}.photo-zone{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,260px);gap:18px;align-items:start}.photo-preview-card{display:grid;gap:10px}.photo-preview-card img{width:100%;max-height:200px;object-fit:cover;border-radius:14px;border:1px solid rgba(90,90,60,.15)}.delete-photo{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;background:#f4eadf}.save-row{display:flex;justify-content:flex-end;gap:10px;padding:4px 0 20px}@media(max-width:700px){.photo-zone{grid-template-columns:1fr}.editor-toolbar-actions{width:100%}.save-primary{flex:1}}


/* Phase 6 – Kochassistent & strukturierte Rezeptmerkmale */
.assistant-meta-grid{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  padding:16px;
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 32%,transparent);
  border-radius:18px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 86%,var(--sage,#a7b39a));
}
.assistant-meta-grid label{min-width:0}
.assistant-page{padding-bottom:60px}
.assistant-intro{max-width:760px;margin:34px 0 24px}
.assistant-intro h1{margin:.15em 0 .25em}
.assistant-intro p{max-width:680px;color:var(--muted,#667067);font-size:1.06rem}
.assistant-form{display:grid;gap:22px}
.assistant-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.assistant-filter-grid label{min-width:0}
.assistant-pantry{border:0;padding:0;margin:0}
.assistant-pantry legend{font-family:var(--font-display,serif);font-size:1.3rem;font-weight:700;margin-bottom:4px}
.assistant-help{margin:0 0 12px;color:var(--muted,#667067);font-size:.92rem}
.assistant-submit{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.assistant-results-head{margin-top:34px}
.assistant-results{display:grid;gap:14px}
.assistant-result{display:grid;grid-template-columns:52px minmax(0,1fr);gap:16px;align-items:start}
.assistant-rank{
  width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
  background:color-mix(in srgb,var(--gold,#b08a3e) 22%,var(--cream,#f5f1e7));
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 58%,transparent);
  color:var(--forest,#2e3d2f);font-weight:800
}
.assistant-result-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.assistant-result-head h3{margin:0 0 6px}
.assistant-meta{display:flex;gap:8px;flex-wrap:wrap}
.assistant-meta span{
  padding:4px 8px;border-radius:999px;
  background:color-mix(in srgb,var(--sage,#a7b39a) 23%,transparent);
  font-size:.84rem;color:var(--forest,#2e3d2f)
}
.assistant-score{text-align:center;min-width:76px}
.assistant-score strong{display:block;font-family:var(--font-display,serif);font-size:1.55rem;color:var(--gold-dark,#8a6a2f)}
.assistant-score span{font-size:.75rem;color:var(--muted,#667067);text-transform:uppercase;letter-spacing:.07em}
.assistant-reasons{
  margin:10px 0;padding:9px 12px;border-radius:12px;
  background:color-mix(in srgb,var(--sage,#a7b39a) 20%,transparent);
  color:var(--forest,#2e3d2f)
}
.assistant-soft-note{margin-top:9px;font-size:.88rem;color:var(--muted,#667067)}
@media(max-width:900px){
  .assistant-meta-grid,.assistant-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .assistant-meta-grid,.assistant-filter-grid{grid-template-columns:1fr}
  .assistant-result{grid-template-columns:1fr}
  .assistant-rank{width:34px;height:34px}
  .assistant-result-head{flex-direction:column}
  .assistant-score{text-align:left}
}


/* Phase 6.1 – Kochprofil direkt beim Schreiben */
.recipe-quick-meta{
  grid-column:1/-1;
  display:grid;
  gap:16px;
  padding:18px;
  margin:4px 0 10px;
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 34%,transparent);
  border-radius:20px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 89%,var(--sage,#a7b39a));
}
.quick-meta-head{display:flex;justify-content:space-between;gap:12px;align-items:end}
.quick-meta-head strong{font-family:var(--font-display,serif);font-size:1.35rem;color:var(--forest,#2e3d2f)}
.quick-meta-head span{display:block;margin-top:2px;font-size:.9rem;color:var(--muted,#667067)}
.quick-meta-group{display:grid;gap:8px}
.quick-meta-label{font-size:.84rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--forest,#2e3d2f)}
.quick-choice-row,.quick-main-presets{display:flex;flex-wrap:wrap;gap:8px}
.quick-choice,.quick-main-preset,.time-preset{
  min-height:38px;
  border:1px solid color-mix(in srgb,var(--forest,#2e3d2f) 18%,transparent);
  border-radius:999px;
  padding:8px 13px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 94%,white);
  color:var(--forest,#2e3d2f);
  font:inherit;
  cursor:pointer;
  transition:.18s ease;
}
.quick-choice{display:inline-flex;align-items:center}
.quick-choice input{position:absolute;opacity:0;pointer-events:none}
.quick-choice:hover,.quick-main-preset:hover,.time-preset:hover{
  border-color:color-mix(in srgb,var(--gold,#b08a3e) 65%,transparent);
  transform:translateY(-1px)
}
.quick-choice.selected,.quick-main-preset.selected,.time-preset.selected{
  background:var(--forest,#2e3d2f);
  color:var(--cream,#f5f1e7);
  border-color:var(--gold,#b08a3e);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--gold,#b08a3e) 40%,transparent);
}
.quick-time-row{align-items:center}
.quick-number{width:100px!important;min-width:90px!important;flex:0 0 100px}
.quick-main-wrap{display:grid;gap:9px}
.quick-main-wrap>input{max-width:460px}
@media(max-width:650px){
  .recipe-quick-meta{padding:14px}
  .quick-choice,.quick-main-preset,.time-preset{min-height:42px}
  .quick-number{width:100%!important;flex:1 1 100%}
}


/* Phase 6.1 – Rezeptinformationen unter dem Titel */
.recipe-facts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0 18px;
}
.recipe-fact{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 44%,transparent);
  background:color-mix(in srgb,var(--cream,#f5f1e7) 92%,var(--sage,#a7b39a));
  color:var(--forest,#2e3d2f);
  font-size:.9rem;
  line-height:1;
}
.recipe-fact strong{font-weight:800}
.recipe-fact-icon{
  display:inline-grid;
  place-items:center;
  width:16px;
  height:16px;
  color:var(--gold-dark,#8a6a2f);
  font-size:.9rem;
  line-height:1;
}
.recipe-fact-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--sage,#a7b39a);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--sage,#a7b39a) 18%,transparent);
}
.recipe-fact.effort-schnell .recipe-fact-dot{background:#698b63}
.recipe-fact.effort-normal .recipe-fact-dot{background:var(--gold,#b08a3e)}
.recipe-fact.effort-aufwendig .recipe-fact-dot{background:#9a6b4f}
@media(max-width:620px){
  .recipe-facts{gap:6px}
  .recipe-fact{font-size:.86rem;padding:7px 10px}
}


/* Herkunft – Küche + Region */
.origin-grid{
  display:grid;
  grid-template-columns:minmax(180px,.75fr) minmax(240px,1.25fr);
  gap:12px;
}
.origin-grid label{min-width:0}
@media(max-width:700px){
  .origin-grid{grid-template-columns:1fr}
}


/* Kategorien sauber von strukturierten Rezeptmerkmalen trennen */
.category-editor-note{
  grid-column:1/-1;
  margin:2px 0 8px;
  padding:10px 12px;
  border-left:3px solid var(--gold,#b08a3e);
  border-radius:0 10px 10px 0;
  background:color-mix(in srgb,var(--sage,#a7b39a) 14%,transparent);
  color:var(--muted,#667067);
  font-size:.9rem;
}


/* Kochassistent – belastbareres Matching */
.assistant-stars{
  margin-top:4px;
  color:var(--gold,#b08a3e);
  font-size:.78rem;
  letter-spacing:.06em;
  white-space:nowrap;
}
.finder-secondary{
  color:var(--muted,#667067);
}
.finder-secondary .finder-label{
  color:var(--gold-dark,#8a6a2f);
}


/* Speisekammer in drei Zutatenklassen */
.pantry-class{margin-top:18px}
.pantry-class h3{
  margin:0 0 9px;
  font-family:var(--font-display,serif);
  font-size:1.08rem;
  color:var(--forest,#2e3d2f);
}
.pantry-class-secondary .fridge-chip span{
  background:color-mix(in srgb,var(--sage,#a7b39a) 18%,var(--cream,#f5f1e7));
}

.pantry-static{
  opacity:.72;
  cursor:default;
}
.pantry-static span{
  background:color-mix(in srgb,var(--cream,#f5f1e7) 92%,white);
  border-style:dashed;
}
.ingredient-class-list{display:grid;gap:10px;margin-top:22px}
.ingredient-class-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(170px,220px) auto;
  gap:12px;
  align-items:center;
}
.ingredient-class-row>div{display:flex;flex-direction:column;gap:2px}
.ingredient-class-row span{font-size:.82rem;color:var(--muted,#667067)}
.admin-tool-links{margin:16px 0}
@media(max-width:700px){
  .ingredient-class-row{grid-template-columns:1fr}
}


/* Zutatenklassen – Zuordnungsboard */
.ingredient-class-board{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  align-items:start;
  margin-top:26px;
}
.ingredient-class-column{
  min-width:0;
  padding:14px;
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 28%,transparent);
  border-radius:20px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 94%,white);
}
.ingredient-class-column>header{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:12px;
}
.ingredient-class-column h2{margin:0 0 3px;font-size:1.35rem}
.ingredient-class-column header p{margin:0;color:var(--muted,#667067);font-size:.86rem;line-height:1.35}
.ingredient-class-count{
  display:grid;
  place-items:center;
  min-width:32px;
  height:32px;
  padding:0 8px;
  border-radius:999px;
  background:color-mix(in srgb,var(--gold,#b08a3e) 16%,var(--cream,#f5f1e7));
  color:var(--forest,#2e3d2f);
  font-weight:800;
}
.ingredient-dropzone{
  min-height:100px;
  display:grid;
  gap:9px;
  padding:3px;
  border-radius:14px;
  transition:.16s ease;
}
.ingredient-dropzone.drag-over{
  background:color-mix(in srgb,var(--sage,#a7b39a) 22%,transparent);
  outline:2px dashed color-mix(in srgb,var(--gold,#b08a3e) 55%,transparent);
  outline-offset:2px;
}
.ingredient-class-card{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:8px 10px;
  align-items:center;
  padding:10px;
  border:1px solid color-mix(in srgb,var(--forest,#2e3d2f) 12%,transparent);
  border-radius:13px;
  background:var(--cream,#f5f1e7);
  transition:.16s ease;
}
.ingredient-class-card.dragging{opacity:.45}
.ingredient-class-card.ingredient-saved{
  border-color:var(--gold,#b08a3e);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--gold,#b08a3e) 14%,transparent);
}
.ingredient-drag-handle{
  grid-row:1/3;
  align-self:stretch;
  display:grid;
  place-items:center;
  cursor:grab;
  color:var(--gold-dark,#8a6a2f);
  font-size:1.25rem;
  user-select:none;
}
.ingredient-card-main{display:flex;flex-direction:column;min-width:0}
.ingredient-card-main strong{overflow-wrap:anywhere}
.ingredient-card-main span{font-size:.78rem;color:var(--muted,#667067)}
.ingredient-class-form{
  grid-column:2;
  display:flex;
  gap:7px;
  align-items:center;
}
.ingredient-class-form select{
  min-width:0;
  flex:1 1 auto;
}
.ingredient-class-form button{
  flex:0 0 auto;
  min-height:36px;
  padding:7px 10px;
}
@media(max-width:1050px){
  .ingredient-class-board{grid-template-columns:1fr}
}
@media(max-width:520px){
  .ingredient-class-form{flex-wrap:wrap}
  .ingredient-class-form select{flex-basis:100%}
}


/* Zutatenfinder – Zutatenklassen kompakt, per Hover/Fokus aufklappbar */
.fridge-box{
  display:grid;
  gap:10px;
}
.pantry-class{
  position:relative;
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 24%,transparent);
  border-radius:14px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 96%,white);
  outline:none;
}
.pantry-class-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:11px 13px;
  cursor:default;
}
.pantry-class-head h3{
  margin:0;
  font-size:1rem;
}
.pantry-class-count{
  display:grid;
  place-items:center;
  min-width:28px;
  height:28px;
  padding:0 7px;
  border-radius:999px;
  background:color-mix(in srgb,var(--gold,#b08a3e) 13%,var(--cream,#f5f1e7));
  color:var(--forest,#2e3d2f);
  font-size:.78rem;
  font-weight:800;
}
.pantry-class-body{
  display:none;
  padding:0 12px 12px;
}
.pantry-class:hover .pantry-class-body,
.pantry-class:focus .pantry-class-body,
.pantry-class:focus-within .pantry-class-body{
  display:block;
}
.pantry-class:hover,
.pantry-class:focus-within{
  border-color:color-mix(in srgb,var(--gold,#b08a3e) 52%,transparent);
  box-shadow:0 8px 18px rgba(38,48,40,.08);
}
.pantry-class-main .pantry-class-head::before{
  content:"🥔";
  margin-right:7px;
}
.pantry-class-secondary .pantry-class-head::before{
  content:"🥕";
  margin-right:7px;
}
.pantry-class-pantry .pantry-class-head::before{
  content:"🧂";
  margin-right:7px;
}
.pantry-class-head{
  justify-content:flex-start;
}
.pantry-class-count{
  margin-left:auto;
}
@media (hover:none), (pointer:coarse){
  .pantry-class:focus .pantry-class-body,
  .pantry-class:focus-within .pantry-class-body{
    display:block;
  }
}


/* Zutatenfinder – stabile Mehrfachauswahl statt Hover-Akkordeon */
.fridge-box{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  overflow:visible;
}
.pantry-class{
  position:relative;
  min-width:0;
}
.pantry-class-head{
  width:100%;
  min-height:46px;
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 24%,transparent);
  border-radius:14px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 96%,white);
  color:var(--forest,#2e3d2f);
  cursor:pointer;
  text-align:left;
}
.pantry-class-head h3{
  margin:0;
  font-size:1rem;
}
.pantry-class-count{
  margin-left:auto;
}
.pantry-class-chevron{
  margin-left:2px;
  transition:transform .16s ease;
}
.pantry-class.is-open .pantry-class-chevron{
  transform:rotate(180deg);
}
.pantry-class-body,
.pantry-class:hover .pantry-class-body,
.pantry-class:focus .pantry-class-body,
.pantry-class:focus-within .pantry-class-body{
  display:block;
}
.pantry-class-body[hidden]{
  display:none !important;
}
.pantry-class.is-open .pantry-class-body{
  position:absolute;
  z-index:60;
  top:calc(100% + 6px);
  left:0;
  width:max(100%,320px);
  max-width:min(520px,80vw);
  max-height:360px;
  overflow:auto;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 38%,transparent);
  border-radius:14px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 98%,white);
  box-shadow:0 16px 32px rgba(35,44,37,.16);
}
.pantry-class.is-open .pantry-class-head{
  border-color:color-mix(in srgb,var(--gold,#b08a3e) 55%,transparent);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--gold,#b08a3e) 10%,transparent);
}
@media(max-width:760px){
  .fridge-box{grid-template-columns:1fr}
  .pantry-class.is-open .pantry-class-body{
    position:static;
    width:auto;
    max-width:none;
    max-height:300px;
    margin-top:6px;
    box-shadow:none;
  }
}


/* Zutatenfinder – kompakte Klassenleiste */
.fridge-box{
  display:block !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}
.fridge-box>legend{
  margin-bottom:8px;
}
.fridge-box{
  overflow:visible !important;
}
.fridge-box .pantry-class{
  display:inline-block;
  vertical-align:top;
  width:calc((100% - 20px)/3);
  margin:0 6px 0 0;
}
.fridge-box .pantry-class:nth-of-type(3){
  margin-right:0;
}
.pantry-class-head{
  width:100%;
  min-height:42px;
  padding:8px 10px;
  border-radius:12px;
}
.pantry-class-head h3{
  font-size:.95rem !important;
  white-space:nowrap;
}
.pantry-class-count{
  min-width:24px;
  height:24px;
  padding:0 6px;
}
.pantry-class-chevron{
  flex:0 0 auto;
}
.pantry-class.is-open .pantry-class-body{
  width:max(100%,300px);
  max-width:min(460px,78vw);
}
@media(max-width:700px){
  .fridge-box .pantry-class{
    display:block;
    width:100%;
    margin:0 0 8px 0;
  }
}


/* Zutatenfinder – finales Layout der Auswahl */
.fridge-box{
  display:block !important;
  padding:12px !important;
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 18%,transparent) !important;
  border-radius:14px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 96%,white) !important;
}
.fridge-box>legend{
  padding:0 6px;
  margin-bottom:8px;
}
.fridge-box .pantry-class{
  display:block !important;
  width:auto !important;
  margin:0 !important;
}
.fridge-box{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  align-items:start;
}
.fridge-box>legend{
  grid-column:1/-1;
}
.pantry-class-head{
  width:100%;
  min-width:0;
  min-height:44px;
  box-sizing:border-box;
}
.pantry-class-head h3{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pantry-class.is-open .pantry-class-body{
  left:0;
  right:auto;
}
.finder-submit-row{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin-top:14px;
}
.finder-submit-row button{
  min-width:150px;
}
.finder-input-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(190px,240px);
  gap:10px;
}
@media(max-width:760px){
  .fridge-box{
    grid-template-columns:1fr !important;
  }
  .finder-input-row{
    grid-template-columns:1fr !important;
  }
  .finder-submit-row{
    justify-content:stretch;
  }
  .finder-submit-row button{
    width:100%;
  }
}


/* FIX: Speisekammer-Klassen exakt auf einer gemeinsamen Zeile */
.fridge-box{
  display:block !important;
  padding:12px !important;
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 18%,transparent) !important;
  border-radius:14px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 96%,white) !important;
  overflow:visible !important;
}
.fridge-box > legend{
  display:block !important;
  width:auto !important;
  margin:0 0 10px 0 !important;
  padding:0 6px !important;
}
.pantry-class-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px !important;
  align-items:stretch !important;
  width:100% !important;
}
.pantry-class-grid > .pantry-class{
  display:block !important;
  position:relative !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  align-self:stretch !important;
}
.pantry-class-grid .pantry-class-head{
  width:100% !important;
  height:100% !important;
  min-height:44px !important;
  box-sizing:border-box !important;
  margin:0 !important;
}
.pantry-class-grid .pantry-class.is-open .pantry-class-body{
  top:calc(100% + 6px) !important;
}
@media(max-width:760px){
  .pantry-class-grid{
    grid-template-columns:1fr !important;
  }
}


/* FINAL FIX: exakt drei gleich große Speisekammer-Buttons */
.pantry-class-grid{
  display:grid !important;
  grid-template-columns:repeat(3, 1fr) !important;
  gap:12px !important;
  width:100% !important;
  align-items:stretch !important;
}
.pantry-class-grid > .pantry-class{
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
}
.pantry-class-grid > .pantry-class > .pantry-class-head{
  width:100% !important;
  min-width:0 !important;
  height:58px !important;
  min-height:58px !important;
  max-height:58px !important;
  margin:0 !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
}
.pantry-class-grid .pantry-class-head h3{
  margin:0 !important;
  white-space:nowrap !important;
}
@media(max-width:760px){
  .pantry-class-grid{
    grid-template-columns:1fr !important;
  }
}


/* Definitiver Fix: Grundvorrat exakt auf gleicher Höhe */
.pantry-class-grid > .pantry-class-pantry{
  padding-top:0 !important;
  border-top:0 !important;
  margin-top:0 !important;
  transform:none !important;
}


/* Zutatenfinder – neue isolierte Speisekammerleiste */
.pantry-picker{
  margin-top:14px;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 18%,transparent);
  border-radius:14px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 96%,white);
  overflow:visible;
}
.pantry-picker-title{
  margin:0 0 10px;
  font-weight:700;
  color:var(--forest,#2e3d2f);
}
.pantry-picker-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  align-items:stretch;
  width:100%;
}
.pantry-picker-item{
  position:relative;
  min-width:0;
  margin:0;
  padding:0;
}
.pantry-picker-button{
  width:100%;
  height:52px;
  margin:0;
  padding:0 12px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 26%,transparent);
  border-radius:12px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 98%,white);
  color:var(--forest,#2e3d2f);
  text-align:left;
  cursor:pointer;
}
.pantry-picker-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:700;
}
.pantry-picker-count{
  margin-left:auto;
  flex:0 0 auto;
  min-width:24px;
  height:24px;
  padding:0 6px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:color-mix(in srgb,var(--gold,#b08a3e) 13%,var(--cream,#f5f1e7));
  font-size:.78rem;
  font-weight:800;
}
.pantry-picker-chevron{
  flex:0 0 auto;
  transition:transform .16s ease;
}
.pantry-picker-item.is-open .pantry-picker-chevron{
  transform:rotate(180deg);
}
.pantry-picker-popover[hidden]{
  display:none !important;
}
.pantry-picker-item.is-open .pantry-picker-popover{
  position:absolute;
  z-index:80;
  top:calc(100% + 6px);
  left:0;
  width:max(100%,320px);
  max-width:min(520px,80vw);
  max-height:360px;
  overflow:auto;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 38%,transparent);
  border-radius:14px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 99%,white);
  box-shadow:0 16px 32px rgba(35,44,37,.16);
}
.pantry-picker-item.is-open .pantry-picker-button{
  border-color:color-mix(in srgb,var(--gold,#b08a3e) 55%,transparent);
}
@media(max-width:760px){
  .pantry-picker-grid{
    grid-template-columns:1fr;
  }
  .pantry-picker-item.is-open .pantry-picker-popover{
    position:static;
    width:auto;
    max-width:none;
    margin-top:6px;
    box-shadow:none;
  }
}

.pantry-static{
  cursor:default!important;
  opacity:.9;
}
.pantry-static input{
  display:none!important;
}


/* Zutatenfinder – breites Popover mit mehrspaltiger Zutatenansicht */
.pantry-picker-item.is-open .pantry-picker-popover{
  width:max(100%,700px) !important;
  max-width:min(900px,92vw) !important;
}

.pantry-picker-popover .fridge-chips{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr)) !important;
  gap:10px !important;
  align-items:start !important;
}

@media(max-width:760px){
  .pantry-picker-item.is-open .pantry-picker-popover{
    width:auto !important;
    max-width:none !important;
  }
  .pantry-picker-popover .fridge-chips{
    grid-template-columns:1fr !important;
  }
}


/* Kleinere Zutaten-Chips im Popover */
.pantry-picker-popover .fridge-chip{
  font-size:.84rem !important;
  min-height:30px !important;
  padding:3px 8px !important;
  border-radius:999px !important;
}

.pantry-picker-popover .fridge-chip span{
  padding:0 !important;
  line-height:1.2 !important;
}

.pantry-picker-popover .fridge-chip input{
  transform:scale(.9);
  margin-right:5px;
}


/* Korrektur: Schrift wieder normal, nur die Chip-Höhe um ca. 20 % reduzieren */
.pantry-picker-popover .fridge-chip{
  font-size:inherit !important;
  min-height:32px !important;   /* statt großer Chips */
  padding:2px 10px !important;
}

.pantry-picker-popover .fridge-chip span{
  font-size:inherit !important;
  line-height:1.25 !important;
}

.pantry-picker-popover .fridge-chip input{
  transform:none !important;
  margin-right:6px !important;
}


/* Feinschliff: Inhalt der Popup-Chips etwas weiter vom linken Rand abrücken */
.pantry-picker-popover .fridge-chip{
  padding-left:14px !important;
  padding-right:10px !important;
}

.pantry-picker-popover .fridge-chip span{
  margin-left:2px !important;
}


/* === INGX: Speisekammer sauber isoliert === */
.ingx-pantry{
  margin-top:14px;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 18%,transparent);
  border-radius:14px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 96%,white);
  overflow:visible;
}

.ingx-title{
  margin:0 0 10px;
  font-weight:700;
  color:var(--forest,#2e3d2f);
}

.ingx-tabs{
  display:flex;
  gap:10px;
  width:100%;
  flex-wrap:nowrap;
  align-items:stretch;
}

.ingx-tab{
  position:relative;
  flex:1 1 0;
  min-width:0;
}

.ingx-tab-btn{
  appearance:none;
  -webkit-appearance:none;
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  height:52px;
  min-height:52px;
  max-height:52px;
  margin:0;
  padding:0 12px;
  box-sizing:border-box;
  border:1px solid color-mix(in srgb,var(--green-mid,#66735a) 28%,transparent);
  border-radius:12px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 95%,white);
  color:var(--forest,#2e3d2f);
  font:inherit;
  text-align:left;
  cursor:pointer;
}

.ingx-tab-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:700;
  line-height:1.2;
}

.ingx-tab-count{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  min-width:24px;
  height:24px;
  margin-left:auto;
  padding:0 6px;
  border-radius:999px;
  background:color-mix(in srgb,var(--gold,#b08a3e) 12%,var(--cream,#f5f1e7));
  font-size:.78rem;
  font-weight:800;
}

.ingx-tab-arrow{
  flex:0 0 auto;
  line-height:1;
  transition:transform .16s ease;
}

.ingx-tab.is-open .ingx-tab-arrow{
  transform:rotate(180deg);
}

.ingx-pop[hidden]{
  display:none !important;
}

.ingx-tab.is-open .ingx-pop{
  position:absolute;
  z-index:100;
  top:58px;
  left:0;
  display:block;
  width:min(900px,92vw);
  min-width:700px;
  max-height:420px;
  overflow:auto;
  padding:14px;
  box-sizing:border-box;
  border:1px solid color-mix(in srgb,var(--gold,#b08a3e) 34%,transparent);
  border-radius:14px;
  background:color-mix(in srgb,var(--cream,#f5f1e7) 99%,white);
  box-shadow:0 16px 32px rgba(35,44,37,.16);
}

.ingx-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:8px 10px;
}

.ingx-option{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  min-height:36px;
  padding:7px 10px;
  box-sizing:border-box;
  border:1px solid color-mix(in srgb,var(--green-mid,#66735a) 20%,transparent);
  border-radius:9px;
  background:#fffdf8;
  color:var(--ink,#263126);
  font:inherit;
  line-height:1.2;
  cursor:pointer;
}

.ingx-option input{
  position:static;
  opacity:1;
  pointer-events:auto;
  flex:0 0 auto;
  width:16px;
  height:16px;
  margin:0;
  padding:0;
}

.ingx-option span{
  display:block;
  margin:0;
  padding:0;
  color:inherit;
  font:inherit;
  line-height:1.2;
}

.ingx-option-static{
  cursor:default;
  opacity:.82;
}

@media(max-width:760px){
  .ingx-tabs{
    gap:6px;
  }

  .ingx-tab-btn{
    padding:0 8px;
    font-size:.9rem;
  }

  .ingx-tab.is-open .ingx-pop{
    position:fixed;
    left:4vw;
    right:4vw;
    top:auto;
    width:auto;
    min-width:0;
    max-width:none;
  }

  .ingx-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* Kategorien: Regionen erst bei Hover/Fokus, Überschriften wieder kleiner */
.category-page .origin-region-menu,
.categories-page .origin-region-menu,
.kategorien-page .origin-region-menu{
  display:none !important;
}

@media (hover:hover) and (pointer:fine){
  .category-page .origin-card-wrap:hover .origin-region-menu,
  .category-page .origin-card-wrap:focus-within .origin-region-menu,
  .categories-page .origin-card-wrap:hover .origin-region-menu,
  .categories-page .origin-card-wrap:focus-within .origin-region-menu,
  .kategorien-page .origin-card-wrap:hover .origin-region-menu,
  .kategorien-page .origin-card-wrap:focus-within .origin-region-menu{
    display:block !important;
  }
}

@media (hover:none), (pointer:coarse){
  .category-page .origin-card-wrap:focus-within .origin-region-menu,
  .categories-page .origin-card-wrap:focus-within .origin-region-menu,
  .kategorien-page .origin-card-wrap:focus-within .origin-region-menu{
    display:block !important;
  }
}

/* Falls die Seite keinen speziellen Page-Wrapper hat */
.origin-region-menu{
  display:none !important;
}
.origin-card-wrap:hover > .origin-region-menu,
.origin-card-wrap:focus-within > .origin-region-menu{
  display:block !important;
}

/* Überschriften "Herkunft" / "Alles andere" um ca. 1/3 kleiner */
.category-section > h2,
.categories-section > h2,
.kategorien-section > h2,
.category-group > h2{
  font-size:1.35rem !important;
  line-height:1.2 !important;
}


/* Erzwinge kleinere Abschnittsüberschriften */
:where(.category-page,.categories-page,.kategorien-page,.wrap) h2{
  font-size:1.05rem !important;
  line-height:1.15 !important;
}


/* Finder-Fix wiederhergestellt:
   globale .finder-form input-Regeln dürfen Zutaten-Checkboxen nicht verbreitern */
.finder-form .ingx-option > input[type="checkbox"]{
  position:static !important;
  display:block !important;
  flex:0 0 16px !important;
  width:16px !important;
  min-width:16px !important;
  max-width:16px !important;
  height:16px !important;
  min-height:16px !important;
  max-height:16px !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
  opacity:1 !important;
  pointer-events:auto !important;
  transform:none !important;
}

.finder-form .ingx-option{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  min-width:0 !important;
  overflow:visible !important;
  color:#263126 !important;
  font-size:.91rem !important;
  line-height:1.25 !important;
  -webkit-text-fill-color:#263126 !important;
}


.tag-diagnostic-list{display:grid;gap:8px}
.tag-diagnostic-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  padding:9px 0;
  border-bottom:1px solid color-mix(in srgb,var(--gold,#b08a3e) 14%,transparent);
}
.tag-diagnostic-row:last-child{border-bottom:0}
.tag-diagnostic-row>div{display:flex;flex-direction:column;gap:3px}
.tag-diagnostic-row span,.tag-diagnostic-row small{color:var(--muted,#667067);font-size:.84rem}


/* Kochprofil robust: Radio-Auswahl funktioniert/markiert sich auch ohne JS-Listener */
.quick-choice:has(input[type="radio"]:checked){
  background:var(--forest,#2e3d2f) !important;
  color:var(--cream,#f5f1e7) !important;
  border-color:var(--gold,#b08a3e) !important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--gold,#b08a3e) 40%,transparent) !important;
}

.quick-choice{
  pointer-events:auto !important;
}

.quick-choice input[type="radio"]{
  pointer-events:none !important;
}

.time-preset,
.quick-main-preset{
  pointer-events:auto !important;
  position:relative !important;
  z-index:1 !important;
}




/* 1.5.5 – kompakte Fotovorschau im Rezepteditor */
.photo-preview-selected{
  margin-top:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.45);
}
.photo-preview-selected[hidden]{
  display:none !important;
}
.photo-preview-selected img{
  display:block;
  width:auto;
  max-width:240px;
  max-height:180px;
  object-fit:contain;
  border-radius:10px;
}
.photo-preview-selected small{
  display:block;
  margin-top:6px;
  color:var(--muted,#667067);
  font-size:.82rem;
}
.category-suggestions{
  margin-top:8px;
}


/* 1.5.6 – Kategorien als auswähl- und löschbare Chips */
.category-editor{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.category-chips{
  display:contents;
}
.category-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.category-remove{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  padding:0;
  margin:0;
  width:18px;
  height:18px;
  min-width:18px;
  line-height:1;
  cursor:pointer;
  font:inherit;
}
.category-suggestion[hidden]{
  display:none !important;
}

/* 1.5.6 – sofortige, kompakte Fotovorschau */
.photo-preview-selected img{
  display:block;
  width:auto;
  max-width:240px;
  max-height:180px;
  object-fit:contain;
  border-radius:10px;
}




/* 1.5.12 – eine einzige Kategorienauswahl */
.category-editor-simple{
  display:grid;
  gap:10px;
}
.category-chip-grid{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.category-toggle-chip{
  display:inline-flex;
  cursor:pointer;
  margin:0;
}
.category-toggle-chip input{
  position:absolute;
  width:1px !important;
  min-width:1px !important;
  height:1px !important;
  opacity:0;
  overflow:hidden;
}
.category-toggle-face{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:6px 11px;
  border:1px solid #b9b094;
  border-radius:999px;
  background:#f7f3e7;
  color:#45523f;
  font-size:.86rem;
  cursor:pointer;
  user-select:none;
}
.category-toggle-x{
  display:none;
  width:auto;
  height:auto;
  margin:0;
  padding:0;
  border:0;
  background:none;
  color:inherit;
  font:inherit;
  font-weight:700;
}
.category-toggle-chip input:checked + .category-toggle-face{
  background:var(--forest,#2e3d2f);
  color:var(--cream,#f5f1e7);
  border-color:var(--gold,#b08a3e);
}
.category-toggle-chip input:checked + .category-toggle-face .category-toggle-x{
  display:inline;
}
.category-free-label{
  display:grid;
  gap:5px;
  max-width:420px;
}

/* 1.5.12 – Fotovorschau ohne hidden-Attribut */
.photo-preview-selected{
  margin-top:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.45);
  gap:6px;
}
.photo-preview-selected img{
  width:auto;
  max-width:240px;
  max-height:180px;
  object-fit:contain;
  border-radius:10px;
}


/* 1.5.14 – Kategorie auswählen/abwählen + separat dauerhaft löschen */
.category-chip-control{
  display:inline-flex;
  align-items:stretch;
  margin:0;
}
.category-toggle-chip{
  display:inline-flex;
  margin:0;
  cursor:pointer;
}
.category-toggle-face{
  min-height:34px;
  padding:6px 11px !important;
  border-radius:999px 0 0 999px !important;
}
.category-delete-button{
  display:grid !important;
  place-items:center;
  width:30px !important;
  min-width:30px !important;
  height:auto !important;
  min-height:34px !important;
  margin:0 !important;
  padding:0 !important;
  border:1px solid #b9b094 !important;
  border-left:0 !important;
  border-radius:0 999px 999px 0 !important;
  background:#f7f3e7 !important;
  color:#86584f !important;
  box-shadow:none !important;
  font-size:1rem !important;
  font-weight:700 !important;
  line-height:1 !important;
  cursor:pointer !important;
}
.category-delete-button:hover{
  background:#f0dfda !important;
  border-color:#c9a59c !important;
}

/* altes Auswahl-X aus 1.5.12 ausblenden */
.category-toggle-x{
  display:none !important;
}

/* 1.5.14 – Fotovorschau exakt unter dem Dateiwähler */
.photo-zone{
  align-items:start !important;
}
.photo-preview-selected{
  position:static !important;
  justify-self:start !important;
  align-self:start !important;
  width:180px !important;
  height:120px !important;
  min-width:180px !important;
  max-width:180px !important;
  min-height:120px !important;
  max-height:120px !important;
  margin:8px 0 0 0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border:1px solid var(--line) !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.45) !important;
  box-sizing:border-box !important;
}
.photo-preview-selected img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:cover !important;
  border-radius:9px !important;
}
.photo-preview-selected small{
  display:none !important;
}


/* 1.5.15 – Kategorie-Chip: Auswahl links, dauerhaftes Löschen rechts */
.category-chip-control{
  display:inline-flex !important;
  align-items:stretch !important;
  gap:0 !important;
}
.category-toggle-face{
  border-radius:999px 0 0 999px !important;
}
.category-delete-button{
  display:grid !important;
  place-items:center !important;
  flex:0 0 30px !important;
  width:30px !important;
  min-width:30px !important;
  height:34px !important;
  min-height:34px !important;
  margin:0 !important;
  padding:0 !important;
  border:1px solid #b9b094 !important;
  border-left:0 !important;
  border-radius:0 999px 999px 0 !important;
  background:#f7f3e7 !important;
  color:#86584f !important;
  box-shadow:none !important;
  cursor:pointer !important;
}
.category-delete-button:hover{
  background:#f0dfda !important;
}
.category-free-label small{
  color:var(--muted,#667067);
  font-size:.78rem;
  font-weight:400;
}

/* 1.5.15 – Vorschau bleibt im selben Block wie der Dateiwähler */
.photo-upload-label{
  display:grid !important;
  justify-items:start !important;
  align-items:start !important;
}
.photo-upload-control{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:8px !important;
  width:auto !important;
  max-width:100% !important;
  position:static !important;
  justify-items:start !important;
  align-items:start !important;
}
.photo-upload-line{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  flex-wrap:wrap !important;
}
.photo-preview-selected{
  position:static !important;
  display:none;
  width:180px !important;
  height:120px !important;
  min-width:0 !important;
  max-width:180px !important;
  min-height:0 !important;
  max-height:120px !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  justify-self:start !important;
  align-self:start !important;
  border:1px solid var(--line) !important;
  border-radius:10px !important;
  background:transparent !important;
  box-sizing:border-box !important;
}
.photo-preview-selected img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  object-fit:cover !important;
  border-radius:9px !important;
}


/* 1.5.20 – Zutaten direkt im Rezepteditor klassifizieren */
.ingredient-row .ingredient-class-select{
  min-width:135px;
}
@media (max-width:900px){
  .ingredient-row .ingredient-class-select{
    width:100%;
  }
}


/* 1.5.21 – Klassifizierung kompakt unter der Zutat; Hinweis bleibt voll erhalten */
.ingredient-name-stack{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
.ingredient-name-stack > input{
  width:100%;
}
.ingredient-name-stack .ingredient-class-select{
  width:100%;
  min-width:0;
  font-size:.82rem;
  padding-top:5px;
  padding-bottom:5px;
}
.ingredient-row > .note{
  min-width:0;
  width:100%;
}


/* 2026-08-25 – Foto als dritte Editor-Spalte */
.recipe-layout > .photo-editor{
  grid-column:auto !important;
  width:100% !important;
  min-width:0 !important;
  align-self:start !important;
}
.recipe-layout > .photo-editor .photo-zone{
  grid-template-columns:1fr !important;
  width:100% !important;
  min-width:0 !important;
}
.recipe-layout > .photo-editor .photo-upload-label,
.recipe-layout > .photo-editor .photo-upload-control{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}
.recipe-layout > .photo-editor .photo-preview-selected{
  width:180px !important;
  height:120px !important;
  max-width:100% !important;
  margin-top:8px !important;
}
.recipe-layout > .photo-editor .photo-preview-selected img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}
.drag-handle{cursor:grab !important;touch-action:none}
.dragging{opacity:.55}


/* Kochfortschritt */
#resetStepProgress{margin-left:auto}


/* 2026-08-25 – Kochfortschritt Hinweis + Reset-Button */
#resetStepProgress{
  margin-left:auto;
  width:auto !important;
  min-width:max-content !important;
  height:auto !important;
  min-height:38px !important;
  padding:8px 14px !important;
  white-space:nowrap !important;
  line-height:1.2 !important;
  box-sizing:border-box !important;
}
.step-progress-hint{
  display:flex;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  margin:12px 0 10px;
  padding:7px 11px;
  border:1px solid rgba(125,139,105,.28);
  border-radius:10px;
  background:rgba(255,255,255,.34);
  color:var(--muted);
  font-size:.92rem;
}
.step-progress-hint-marker{
  width:18px;
  height:18px;
  flex:0 0 18px;
  border:2px solid #b7b890;
  border-radius:50%;
  background:#fbf7e9;
  box-sizing:border-box;
  position:relative;
}
.step-progress-hint-marker::after{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:50%;
  background:#a98532;
}


/* 2026-08-25 – Kochfortschritt direkt in der Bedienzeile */
.step-progress-hint{display:none !important}
.step-progress-inline{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:.92rem;
  white-space:nowrap;
}
.step-progress-inline-marker{
  width:16px;
  height:16px;
  flex:0 0 16px;
  border:2px solid #b7b890;
  border-radius:50%;
  background:#fbf7e9;
  box-sizing:border-box;
  position:relative;
}
.step-progress-inline-marker::after{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:50%;
  background:#a98532;
}
#resetStepProgress{
  margin-left:0 !important;
  width:auto !important;
  min-width:0 !important;
  min-height:36px !important;
  height:36px !important;
  padding:0 13px !important;
  border-radius:8px !important;
  white-space:nowrap !important;
  line-height:34px !important;
  box-sizing:border-box !important;
}

/* Rezeptfoto-Lightbox */
.recipe-photo-thumb{cursor:zoom-in;outline:none!important}
.recipe-photo-thumb:focus,.recipe-photo-thumb:active{outline:none!important;box-shadow:none!important;border-color:transparent!important}
.recipe-lightbox{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:32px;background:rgba(20,18,15,.86);backdrop-filter:blur(2px);box-sizing:border-box}
.recipe-lightbox.is-open{display:flex}
.recipe-lightbox-image{display:block;max-width:min(92vw,1600px);max-height:88vh;width:auto;height:auto;object-fit:contain;border:0!important;border-radius:12px;box-shadow:0 24px 70px rgba(0,0,0,.42)}
.recipe-lightbox-close{position:absolute;top:18px;right:22px;width:42px;height:42px;min-width:42px;min-height:42px;padding:0;display:grid;place-items:center;border:1px solid rgba(255,255,255,.45);border-radius:9px;background:rgba(255,255,255,.10);color:#fff;font-size:28px;line-height:1;cursor:pointer;box-shadow:none}
.recipe-lightbox-close:hover{background:rgba(255,255,255,.18)}
body.lightbox-open{overflow:hidden}

/* Rezept löschen – Adminübersicht */
.inline-delete-form{display:inline;margin:0;padding:0}
.link-button{appearance:none;border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}
.delete-link{color:#8a3f32}
