.tm-workspace{max-width:75rem;margin:auto;padding:clamp(1rem,3vw,2.5rem);color:#17372e}
.tm-workspace .tm-header{display:flex;justify-content:space-between;align-items:end;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem}
.tm-header span{color:#68542d;font-weight:650}
.tm-header h1{margin:.25rem 0 0;font-size:clamp(2.1rem,5vw,3.5rem);line-height:1.06}
.tm-grid{display:grid;grid-template-columns:minmax(15rem,1fr) minmax(0,2.4fr);align-items:start;gap:1rem}
.tm-panel{background:#fffdf7;border:1px solid #ddd1b5;border-radius:1rem;padding:clamp(1rem,2.2vw,1.65rem);min-width:0}
.tm-panel h2,.tm-panel legend{font-size:1.25rem;font-weight:700;margin:0 0 1rem}
.tm-panel fieldset{margin:0;padding:0;border:0;min-width:0}
.tm-panel label{display:grid;gap:.25rem;min-width:0;font-weight:650}
.tm-panel input,.tm-panel select{min-width:0;width:100%;padding:.58rem .7rem;border:1px solid #b7baa9;border-radius:.45rem;color:#17372e;background:#fff;font:inherit}
#tm-generator{display:grid;gap:.75rem;border-top:1px solid #ddd1b5;margin-top:1.2rem;padding-top:1rem}
#tm-generator h2{margin:0}
.tm-titles,.tm-dish{display:grid;grid-template-columns:1fr 1.4fr;gap:.65rem}
.tm-dish{grid-template-columns:1fr 1.4fr auto;align-items:end;margin-bottom:.6rem}
.tm-course{border-top:1px solid #ddd1b5;margin-top:1rem;padding-top:1rem}
.tm-course-head{display:flex;justify-content:space-between;align-items:end;gap:.6rem;flex-wrap:wrap;margin-bottom:.65rem}
.tm-course-layout{max-width:18rem;margin-bottom:.65rem}
.tm-course-note-field{display:grid;grid-template-columns:minmax(0,18rem) minmax(0,1fr);gap:.65rem;margin-top:.65rem}
.tm-course-note-custom[hidden]{display:none}
.tm-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}
.tm-course+.tm-actions{margin-top:1.25rem}
.tm-workspace button,.tm-link{display:inline-block;border:1px solid #b9aa88;border-radius:.5rem;background:#f8f4e8;color:#17372e;padding:.55rem .75rem;font:inherit;text-decoration:none;cursor:pointer}
.tm-workspace :is(button,.tm-link):hover{background:#efe5cd}
.tm-workspace :is(button,input,select,a):focus-visible{outline:2px solid #886b35;outline-offset:2px}
.tm-workspace button:disabled{opacity:.48;cursor:default}
.tm-workspace .tm-primary{background:#153c31;border-color:#153c31;color:#fff}
.tm-workspace .tm-primary:hover{background:#215445}
.tm-list{padding:0;list-style:none;display:grid;gap:.55rem}
.tm-list :is(a,button){display:grid;text-align:left;width:100%;gap:.2rem;padding:.6rem .75rem;text-decoration:none;color:#17372e;background:#fffdf7;border:1px solid #ddd1b5;border-radius:.5rem;overflow-wrap:anywhere}
.tm-list span{font-size:.88rem;color:#5e594d}
.tm-message:empty{display:none}
.tm-print-tools{justify-content:flex-end;margin-bottom:1rem}
.tm-paper{position:relative;isolation:isolate;box-sizing:border-box;min-height:297mm;background:#fcf9f0 url('/assets/bodensee-speisekarten-v1.png') center/cover no-repeat;color:#153c31;border:1px solid #d9cdb2;box-shadow:0 4px 18px #0001;max-width:210mm;margin:auto;padding:45mm clamp(1.5rem,5vw,16mm) 13mm;text-align:center;overflow-wrap:anywhere}
.tm-paper::before{
 content:"";position:absolute;inset:28mm 2mm 2mm;z-index:-1;
 background:rgba(255,255,255,.94);pointer-events:none;
 mask-image:linear-gradient(to right,transparent,#000 min(7%,14mm),#000 calc(100% - min(7%,14mm)),transparent),
  linear-gradient(to bottom,transparent,#000 16mm,#000 calc(100% - 10mm),transparent);
 mask-composite:intersect;
}
.tm-paper img{display:block;width:60mm;max-width:100%;height:auto;margin:0 auto 1rem}
.tm-paper>.tm-paper-logo{width:35mm;height:auto;padding:0;border:0;box-shadow:none;background:transparent}
.tm-paper h2{font:600 clamp(1.9rem,5vw,2.8rem)/1.04 Georgia,serif;margin:.25rem 0 .35rem}
.tm-paper .tm-subtitle{margin:0 0 1.25rem;color:#6b5430}
.tm-paper-course{margin:1rem auto 0}
.tm-paper-course h3{color:#66512f;font-size:.8rem;letter-spacing:.13em;text-transform:uppercase;margin:0 0 .38rem}
.tm-paper-dish{margin:.34rem 0;line-height:1.35}
.tm-paper-dish p{margin:0;color:#35493f}
.tm-paper-ornament {
 display:flex;
 align-items:center;
 justify-content:center;
 gap:.65rem;
 margin:0 0 .65rem;
 color:#886b36;
 font-size:.75rem;
 line-height:1;
}
.tm-paper-ornament::before,.tm-paper-ornament::after {
 content:"";
 width:1.6rem;
 height:1px;
 background:#b7955c80;
}
.tm-paper .tm-paper-course-note {
 margin:.35rem 0 0;
 color:#66512f;
 font-size:.9em;
 font-style:italic;
}
.tm-paper .tm-paper-price{margin:1.65rem 0 0;color:#153c31;font:600 1.15rem/1.25 Georgia,serif}
.tm-paper-pairings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;border-top:1px solid #d9cdb2;margin:1.4rem auto 0;padding-top:.8rem;color:#153c31}
.tm-paper-price+.tm-paper-pairings{margin-top:1.65rem}
.tm-paper-pairings p{margin:0}
.tm-paper-pairings strong{display:block}
@media(max-width:48rem){.tm-grid,.tm-titles{grid-template-columns:1fr}.tm-dish{grid-template-columns:1fr 1fr}.tm-dish button{justify-self:start}}
@media(max-width:30rem){.tm-dish,.tm-course-note-field{grid-template-columns:1fr}}
@media print{
 @page theme-menu{size:A4 portrait;margin:0}
 html:has(.tm-paper),body:has(.tm-paper){height:auto;min-height:0;margin:0;padding:0;overflow:visible;background:#fff!important}
 body:has(.tm-paper)>:not(main),.tm-print .tm-header,.tm-print-tools{display:none!important}
 body:has(.tm-paper) #main,.tm-print,.tm-print #tm-body{display:block!important;width:auto;max-width:none;height:auto;min-height:0;margin:0;padding:0;background:#fff}
 html:has(.tm-paper){page:theme-menu}
 .tm-paper{border:0;box-shadow:none;margin:0;padding:45mm 16mm 13mm;max-width:none;font-size:10.5pt;print-color-adjust:exact}
 .tm-paper--festspiel{display:flex;flex-direction:column;min-height:297mm;box-sizing:border-box}
 .tm-paper--festspiel .tm-paper-courses{flex:1;display:flex;flex-direction:column;justify-content:space-evenly}
 .tm-paper img{width:51mm;margin-bottom:5mm}
 .tm-paper>.tm-paper-logo{width:auto;height:23mm;margin-bottom:5mm;padding:0}
 .tm-paper h2{font-size:29pt}
 .tm-paper-course{margin-top:4.5mm}
 .tm-paper-course h3{break-after:avoid}
 .tm-paper-dish{break-inside:avoid}
 .tm-paper-ornament{break-after:avoid}
 .tm-paper-course-note{break-before:avoid}
 .tm-paper .tm-paper-price{margin-top:6mm;font-size:13pt;break-after:avoid}
 .tm-paper-pairings{align-self:stretch;width:100%;margin-top:5mm;padding-top:3mm;break-inside:avoid}
 .tm-paper-price+.tm-paper-pairings{margin-top:7mm}
}

.tm-paper--festspiel {
 background:#fff;
 padding-top:clamp(38mm,18vw,65mm);
}
.tm-paper--festspiel::before {
 inset:0 0 auto;
 height:67%;
 mask-image:none;
 background:
  linear-gradient(to bottom,#ffffff05 0%,#ffffff1a 16%,#ffffff82 34%,#ffffffd4 51%,#fffffff0 66%,#fffffffa 84%,#fff 100%),
  url('/assets/market-autumn.jpg') 43% center/cover no-repeat;
}
.tm-paper--festspiel .tm-subtitle{margin-bottom:3mm}
@media print {
 .tm-paper--festspiel{padding:65mm 16mm 12mm;font-size:11pt}
 .tm-paper--festspiel>.tm-paper-logo{height:20mm;margin-bottom:2.5mm}
 .tm-paper--festspiel .tm-paper-course{margin-top:2.2mm}
 .tm-paper--festspiel .tm-paper-ornament{margin-bottom:1.4mm}
 .tm-paper--festspiel .tm-paper-dish{margin:1mm 0;line-height:1.24}
 .tm-paper--festspiel .tm-paper-price{margin-top:4mm}
 .tm-paper--festspiel .tm-paper-pairings{margin-top:4mm}
}
