.atr-front{--orange:var(--atr-primary,#af3830);--ink:var(--atr-navy,#032f5b);--muted:var(--atr-text,#4f5050);max-width:1180px;margin:0 auto;font-family:var(--atr-font,'Inter',sans-serif);color:var(--muted)}
.atr-front *{box-sizing:border-box}.atr-front-head{text-align:center;margin-bottom:24px}.atr-front-kicker{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--orange)}.atr-front-head h2{font-size:clamp(28px,4vw,42px);margin:6px 0 8px;color:var(--ink);font-family:inherit}.atr-front-head p{max-width:720px;margin:auto;color:var(--muted)}
.atr-front-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:22px 0}.atr-front-steps span{padding:12px;border:1px solid #e2e6eb;border-radius:10px;background:#fff;font-size:14px}.atr-front-steps b{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#edf0f4;margin-right:7px}.atr-front-steps .is-active{border-color:var(--orange);box-shadow:0 0 0 1px var(--orange)}.atr-front-steps .is-active b{background:var(--orange);color:#fff}
.atr-front-card{background:#fff;border:1px solid #e3e7ec;border-radius:14px;box-shadow:0 8px 28px rgba(30,42,58,.08)}.atr-front-filter{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:14px;padding:18px;align-items:end}.atr-front label{font-size:13px;font-weight:700;color:var(--ink)}.atr-front input,.atr-front select{width:100%;margin-top:6px;padding:11px 12px;border:1px solid #ccd3dc;border-radius:8px;background:#fff;font:inherit;color:var(--muted)}.atr-front-show,.atr-front-next{border:0;border-radius:8px;padding:12px 18px;background:var(--orange);color:#fff;font-family:inherit;font-weight:700;cursor:pointer}.atr-front-next:disabled{opacity:.45;cursor:not-allowed}
.atr-front-room-section,.atr-front-plan-section{margin-top:28px}.atr-front-room-section h3,.atr-front-plan-section h3{margin:0 0 12px;color:var(--ink);font-family:inherit}.atr-front-rooms{display:flex;flex-wrap:wrap;gap:10px}.atr-front-room{min-width:170px;text-align:left;background:#fff;border:1px solid #dfe4ea;border-radius:10px;padding:14px 16px;cursor:pointer;font-family:inherit;color:var(--muted)}.atr-front-room strong,.atr-front-room small{display:block}.atr-front-room small{margin-top:4px;color:var(--muted)}.atr-front-room.is-active{border-color:var(--orange);box-shadow:0 0 0 1px var(--orange)}
.atr-front-plan-title{display:flex;justify-content:space-between;gap:20px;align-items:end}.atr-front-plan-title p{margin:4px 0 12px;color:var(--muted);font-size:14px}.atr-front-legend{display:flex;gap:12px;font-size:12px;white-space:nowrap}.atr-front-legend i{display:inline-block;width:12px;height:12px;border-radius:50%;background:#69758a;margin-right:4px}.atr-front-legend i.sel{background:var(--orange)}
.atr-front-roomplan{overflow:auto;border:1px solid #dde3e9;border-radius:14px;background:rgba(255,255,255,.72);padding:16px}.atr-front-canvas{position:relative;width:100%;min-height:420px;background:#fff;border:1px solid #dce2e8;border-radius:8px;overflow:hidden}
.atr-front-table{position:absolute;width:150px;height:150px;transform:translate(-5%,-5%);z-index:3}.atr-front-table[data-shape="oval"]{width:195px;height:140px}.atr-front-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;transform-origin:50% 50%}.atr-front-table.rotated .atr-front-svg{transform:rotate(90deg)}.atr-front-svg .plate{fill:#4b586c;stroke:#394457;stroke-width:2}.atr-front-svg .back{fill:#4b586c;stroke:#394457;stroke-width:1.5}.atr-front-svg .seat{fill:#69758a}.atr-front-seat{cursor:pointer;outline:none}.atr-front-seat:hover .back,.atr-front-seat:hover .seat,.atr-front-seat:focus .back,.atr-front-seat:focus .seat{fill:#7f8ba0}.atr-front-seat.is-selected .back,.atr-front-seat.is-selected .seat{fill:var(--orange)}.atr-front-table-label{position:absolute;left:31%;right:31%;top:37%;bottom:37%;z-index:4;display:flex;align-items:center;justify-content:center;text-align:center;color:#fff;font-size:10px;line-height:1.05;font-weight:700;pointer-events:none;white-space:normal;overflow-wrap:anywhere}.atr-front-group-label{position:absolute;z-index:8;transform:translate(-50%,-50%);padding:4px 8px;border-radius:4px;background:#fff;color:var(--ink);font:700 12px/1.1 var(--atr-font,'Inter',sans-serif);white-space:nowrap;pointer-events:none;box-shadow:0 1px 3px rgba(0,0,0,.08)}.atr-front-element{position:absolute;z-index:1;border:2px solid #8c97a6;background:#dfe4e9;display:grid;place-items:center;min-width:8px;min-height:8px}.atr-front-element span{font-size:10px;line-height:1.1;white-space:nowrap;overflow:visible;transform:none!important;writing-mode:horizontal-tb!important}.atr-front-selection{margin:14px 0 10px;padding:12px 14px;border-radius:9px;background:#fff4ef;color:var(--muted)}.atr-front-empty{color:var(--muted)}
@media(max-width:760px){.atr-front-filter{grid-template-columns:1fr 1fr}.atr-front-show{grid-column:1/-1}.atr-front-steps{grid-template-columns:1fr 1fr}.atr-front-plan-title{display:block}.atr-front-roomplan{padding:8px}.atr-front-canvas{min-width:720px}.atr-front-table{width:135px;height:135px}}

/* 1.0.91 – Im öffentlichen Sitzplan dürfen transparente Tisch-/SVG-Flächen
   keine benachbarten Sitzplätze überdecken. Nur die Stühle selbst sind klickbar. */
.atr-front-table{pointer-events:none}
.atr-front-svg{pointer-events:none}
.atr-front-seat{pointer-events:auto}
.atr-front-table-label,.atr-front-group-label{pointer-events:none}


/* 1.0.96 – Schritt 4: Kundendaten und Reservierungszusammenfassung */
.atr-front-data-section{margin-top:30px;scroll-margin-top:24px}.atr-front-data-head h3{margin:0 0 6px;color:var(--ink);font-family:inherit}.atr-front-data-head p{margin:0 0 16px;color:var(--muted)}
.atr-front-data-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:18px;align-items:start}.atr-front-customer-card,.atr-front-summary-card{padding:20px}.atr-front-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.atr-front-field-full{grid-column:1/-1}.atr-front textarea{width:100%;margin-top:6px;padding:11px 12px;border:1px solid #ccd3dc;border-radius:8px;background:#fff;font:inherit;color:var(--muted);resize:vertical;min-height:105px}.atr-front input:focus,.atr-front select:focus,.atr-front textarea:focus{outline:2px solid color-mix(in srgb,var(--orange) 35%,transparent);border-color:var(--orange)}
.atr-front-summary-card h4{margin:0 0 12px;color:var(--ink);font:700 18px/1.2 var(--atr-font,'Inter',sans-serif)}.atr-front-summary{margin:0}.atr-front-summary>div{display:grid;grid-template-columns:105px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #edf0f3}.atr-front-summary>div:last-child{border-bottom:0}.atr-front-summary dt{font-size:12px;font-weight:700;color:var(--ink)}.atr-front-summary dd{margin:0;font-size:14px;color:var(--muted);overflow-wrap:anywhere}.atr-front-privacy{display:flex!important;gap:10px;align-items:flex-start;margin:18px 0 12px;font-weight:400!important;color:var(--muted)!important}.atr-front-privacy input{width:auto!important;margin:3px 0 0!important;flex:0 0 auto}.atr-front-privacy a{color:var(--orange);font-weight:700}.atr-front-form-error{margin:10px 0 12px;padding:11px 13px;border-radius:8px;background:#fff1ef;border:1px solid #e7b5af;color:#8a2823;font-size:14px}.atr-front-form-error.is-info{background:#f2f6fa;border-color:#cdd9e5;color:var(--ink)}.atr-front-submit{border:0;border-radius:8px;padding:13px 22px;background:var(--orange);color:#fff;font-family:inherit;font-weight:700;cursor:pointer}
@media(max-width:820px){.atr-front-data-grid{grid-template-columns:1fr}.atr-front-fields{grid-template-columns:1fr}.atr-front-field-full{grid-column:auto}}
.atr-front-field-error{color:#af3830;font-size:12px;margin-top:5px;display:block}.atr-front input.is-error,.atr-front select.is-error{border-color:#af3830!important}.atr-front-success{padding:28px;margin-top:18px}.atr-front-success h3{margin:0 0 8px;color:var(--atr-navy)}

/* 1.0.98 – ADVIDEA Standardfelder E-Mail / Telefon */
.atr-front-phone-wrap{display:flex;width:100%;margin-top:6px;align-items:stretch}.atr-front-phone-prefix{display:flex;align-items:center;gap:6px;padding:0 13px;border:1px solid #ccd3dc;border-right:0;border-radius:8px 0 0 8px;background:#fff;color:var(--atr-navy);white-space:nowrap;min-height:44px}.atr-front-phone-wrap .atr-front-phone{margin-top:0!important;border-radius:0 8px 8px 0!important;min-width:0}.atr-front-phone-wrap:focus-within .atr-front-phone-prefix{border-color:var(--orange)}.atr-front-phone-wrap .atr-front-phone.is-error{border-color:#af3830!important}.atr-front-field-error{font-weight:500}.atr-front-email.is-error,.atr-front-phone.is-error{box-shadow:0 0 0 1px rgba(175,56,48,.08)}

/* 1.0.99 – vollständiger ADVIDEA Live-Validierungsstandard */
.atr-front-field-success{color:#168447;font-size:12px;margin-top:5px;display:block;font-weight:600}
.atr-front input.is-valid,.atr-front select.is-valid{border-color:#168447!important;box-shadow:0 0 0 1px rgba(22,132,71,.08)}

/* 1.0.103 – hochwertiger, dynamischer Frontend-Tischplan */
.atr-front-roomplan{padding:18px;background:rgba(255,255,255,.82);box-shadow:0 10px 28px rgba(3,47,91,.08)}
.atr-front-room-shell{position:relative;padding:24px;border-radius:12px;background:#f8fafb}
.atr-front-canvas{background:
  linear-gradient(90deg,rgba(133,96,55,.055) 1px,transparent 1px) 0 0/64px 100%,
  repeating-linear-gradient(0deg,#f4e8d4 0,#f4e8d4 31px,#e9d8bd 32px,#f8eddc 33px,#f8eddc 64px);
  border:5px solid #766a5c;border-radius:4px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),inset 0 0 24px rgba(75,57,36,.08);overflow:hidden}
.atr-front-side{position:absolute;z-index:12;display:flex;align-items:center;justify-content:center;color:var(--ink);font:700 12px/1 var(--atr-font,'Inter',sans-serif);pointer-events:none}
.atr-front-side span{background:rgba(255,255,255,.94);border:1px solid #d5dbe2;border-radius:999px;padding:5px 10px;box-shadow:0 2px 8px rgba(3,47,91,.08);white-space:nowrap}
.atr-front-side-top{top:1px;left:52px;right:52px}.atr-front-side-bottom{bottom:1px;left:52px;right:52px}
.atr-front-side-left{left:1px;top:52px;bottom:52px}.atr-front-side-right{right:1px;top:52px;bottom:52px}
.atr-front-side-left span,.atr-front-side-right span{transform:rotate(-90deg)}
.atr-front-side.kind-window:after{content:"";position:absolute;background:repeating-linear-gradient(90deg,#d8f3ff 0 42px,#fff 42px 47px,#9ed7ee 47px 50px);border:1px solid #7da7bb;box-shadow:inset 0 0 0 2px rgba(255,255,255,.65)}
.atr-front-side-top.kind-window:after,.atr-front-side-bottom.kind-window:after{height:7px;left:18%;right:18%;z-index:-1}
.atr-front-side-top.kind-window:after{top:22px}.atr-front-side-bottom.kind-window:after{bottom:22px}
.atr-front-side-left.kind-window:after,.atr-front-side-right.kind-window:after{width:7px;top:18%;bottom:18%;background:repeating-linear-gradient(0deg,#d8f3ff 0 42px,#fff 42px 47px,#9ed7ee 47px 50px);z-index:-1}
.atr-front-side-left.kind-window:after{left:22px}.atr-front-side-right.kind-window:after{right:22px}
.atr-front-side.kind-entrance span:before{content:"↔ ";color:var(--orange)}
.atr-front-side.kind-terrace span:before{content:"← ";color:var(--orange)}
.atr-front-element.type-counter,.atr-front-element.type-theke{background:linear-gradient(135deg,#d9c19c,#f0dfc3);border-color:#7d6b54;box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)}
.atr-front-element.type-divider,.atr-front-element.type-trennwand{background:repeating-linear-gradient(135deg,#7f8589 0 2px,#eef0f1 2px 5px);border-color:#68727a}
.atr-front-table{filter:drop-shadow(0 3px 2px rgba(35,44,55,.14))}
.atr-front-group-label{box-shadow:0 2px 7px rgba(3,47,91,.12);border:1px solid #e1e5ea}
.atr-front-success{display:none}
.atr-front.is-complete>.atr-front-head,.atr-front.is-complete>.atr-front-steps,.atr-front.is-complete>.atr-front-filter,.atr-front.is-complete>.atr-front-room-section,.atr-front.is-complete>.atr-front-plan-section,.atr-front.is-complete>.atr-front-data-section{display:none!important}
.atr-front.is-complete>.atr-front-success{display:block!important;max-width:860px;margin:30px auto;padding:34px;text-align:center}
.atr-front-success-icon{width:58px;height:58px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;background:#168447;color:#fff;font-size:34px;font-weight:800;box-shadow:0 8px 22px rgba(22,132,71,.2)}
.atr-front-success h3{font-size:28px;margin:0 0 7px}.atr-front-success>p{margin:0 0 20px}
.atr-front-success-details{max-width:620px;margin:20px auto;padding:18px 22px;background:#f5f7f9;border-radius:12px;text-align:left}
.atr-front-success-details>div{display:grid;grid-template-columns:170px 1fr;gap:14px;padding:6px 0}.atr-front-success-details strong{color:var(--ink)}
.atr-front-success-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:20px}.atr-front-success-actions button{border:1px solid var(--ink);border-radius:8px;padding:12px 18px;background:#fff;color:var(--ink);font:700 14px/1 var(--atr-font,'Inter',sans-serif);cursor:pointer}.atr-front-success-actions .primary{background:var(--orange);border-color:var(--orange);color:#fff}
@media(max-width:760px){.atr-front-room-shell{padding:18px}.atr-front-side{font-size:10px}.atr-front-success-details>div{grid-template-columns:1fr;gap:2px}.atr-front.is-complete>.atr-front-success{padding:24px 18px}}

/* 1.0.104 – Restaurantdarstellung + echte Belegungszustände */
.atr-front-legend i.occ{background:#747b84}
.atr-front-seat.is-occupied{cursor:not-allowed;pointer-events:none}
.atr-front-seat.is-occupied .back,.atr-front-seat.is-occupied .seat{fill:#747b84!important;opacity:.72}
.atr-front-seat.is-occupied:after{content:""}
.atr-front-canvas{border-color:#4f4438;background:
 linear-gradient(90deg,rgba(115,77,39,.045) 1px,transparent 1px) 0 0/72px 100%,
 repeating-linear-gradient(0deg,#f2dfc1 0,#f2dfc1 34px,#e6cfa9 35px,#f7e8cf 36px,#f7e8cf 70px)}
.atr-front-side.kind-wall:after{content:"";position:absolute;background:linear-gradient(#4b4036,#786858);box-shadow:0 1px 3px rgba(0,0,0,.22);z-index:-1}
.atr-front-side-top.kind-wall:after,.atr-front-side-bottom.kind-wall:after{height:8px;left:0;right:0}.atr-front-side-top.kind-wall:after{top:22px}.atr-front-side-bottom.kind-wall:after{bottom:22px}
.atr-front-side-left.kind-wall:after,.atr-front-side-right.kind-wall:after{width:8px;top:0;bottom:0}.atr-front-side-left.kind-wall:after{left:22px}.atr-front-side-right.kind-wall:after{right:22px}
/* Fensterfront folgt exakt der im Tischplan benannten Seite und läuft dort nahezu vollständig entlang. */
.atr-front-side-top.kind-window:after,.atr-front-side-bottom.kind-window:after{left:1%;right:1%;height:11px}
.atr-front-side-left.kind-window:after,.atr-front-side-right.kind-window:after{top:1%;bottom:1%;width:11px}
/* Terrasse und Eingang als echte Türöffnung statt nur Pfeil. */
.atr-front-side.kind-terrace:after,.atr-front-side.kind-entrance:after{content:"";position:absolute;width:38px;height:58px;background:linear-gradient(90deg,#fff 0 8%,#9b8063 9% 16%,#e9d2b4 17% 86%,#735c47 87% 100%);border:2px solid #6e5946;box-shadow:0 2px 6px rgba(0,0,0,.18);z-index:-1}
.atr-front-side-left.kind-terrace:after,.atr-front-side-left.kind-entrance:after{left:11px}.atr-front-side-right.kind-terrace:after,.atr-front-side-right.kind-entrance:after{right:11px}
.atr-front-side-top.kind-terrace:after,.atr-front-side-top.kind-entrance:after,.atr-front-side-bottom.kind-terrace:after,.atr-front-side-bottom.kind-entrance:after{transform:rotate(90deg)}
.atr-front-side.kind-entrance span:before,.atr-front-side.kind-terrace span:before{content:""}
.atr-front-group-label{overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;text-align:center;padding:4px 6px}

/* 1.0.105 – hochwertige dynamische Restaurantansicht. Geometrie bleibt 1:1 aus dem Tischplan. */
.atr-front-roomplan{padding:22px;background:rgba(255,255,255,.82);border-color:rgba(3,47,91,.08);box-shadow:0 12px 34px rgba(3,47,91,.08)}
.atr-front-room-shell{position:relative;padding:24px;background:#f8fafc;border-radius:12px;box-shadow:inset 0 0 0 1px rgba(3,47,91,.05)}
.atr-front-canvas{border:5px solid #574a3d;border-radius:3px;box-shadow:0 7px 18px rgba(35,27,20,.18),inset 0 0 28px rgba(113,73,35,.08);background:
 linear-gradient(90deg,rgba(127,83,41,.035) 1px,transparent 1px) 0 0/92px 100%,
 repeating-linear-gradient(0deg,#f5e5ca 0,#f5e5ca 38px,#e8d2ad 39px,#faecd5 41px,#faecd5 78px)}
/* Außenwand: nur dort massiv, wo der Tischplan auch Wand sagt. */
.atr-front-side.kind-wall:after{background:linear-gradient(90deg,#3e342c,#786653 45%,#45382f);box-shadow:0 2px 5px rgba(0,0,0,.28)}
/* Fensterfront: durchgehende Glasfassade auf exakt der benannten Seite. */
.atr-front-side.kind-window:after{content:"";position:absolute;z-index:4;border:2px solid #566d78;background:repeating-linear-gradient(90deg,rgba(221,246,255,.94) 0 64px,#7e9ca8 65px 69px,rgba(237,250,255,.96) 70px 134px);box-shadow:0 2px 5px rgba(0,0,0,.16),inset 0 0 8px rgba(255,255,255,.9)}
.atr-front-side-top.kind-window:after,.atr-front-side-bottom.kind-window:after{left:0;right:0;height:15px}.atr-front-side-top.kind-window:after{top:17px}.atr-front-side-bottom.kind-window:after{bottom:17px}
.atr-front-side-left.kind-window:after,.atr-front-side-right.kind-window:after{top:0;bottom:0;width:15px;background:repeating-linear-gradient(0deg,rgba(221,246,255,.94) 0 64px,#7e9ca8 65px 69px,rgba(237,250,255,.96) 70px 134px)}.atr-front-side-left.kind-window:after{left:17px}.atr-front-side-right.kind-window:after{right:17px}
/* Eingang/Terrasse: Editor-Hilfsobjekt entfällt; die Seite selbst wird als Türöffnung visualisiert. */
.atr-front-side.kind-entrance:after,.atr-front-side.kind-terrace:after{content:"";position:absolute;z-index:6;width:48px;height:72px;border:4px solid #594a3c;background:linear-gradient(90deg,rgba(224,245,251,.92),rgba(255,255,255,.98) 52%,rgba(201,228,238,.92));box-shadow:0 4px 9px rgba(0,0,0,.2),inset 0 0 0 2px #a8bbc2}
.atr-front-side-left.kind-entrance:after,.atr-front-side-left.kind-terrace:after{left:3px;top:50%;transform:translateY(-50%)}.atr-front-side-right.kind-entrance:after,.atr-front-side-right.kind-terrace:after{right:3px;top:50%;transform:translateY(-50%)}
.atr-front-side-top.kind-entrance:after,.atr-front-side-top.kind-terrace:after{top:3px;left:50%;transform:translateX(-50%) rotate(90deg)}.atr-front-side-bottom.kind-entrance:after,.atr-front-side-bottom.kind-terrace:after{bottom:3px;left:50%;transform:translateX(-50%) rotate(90deg)}
.atr-front-side.kind-entrance span,.atr-front-side.kind-terrace span,.atr-front-side.kind-window span,.atr-front-side.kind-wall span{z-index:10;background:rgba(255,255,255,.95);border:1px solid rgba(3,47,91,.10);box-shadow:0 2px 6px rgba(3,47,91,.10)}
/* Tische erhalten mehr Materialtiefe, Stühle bleiben die echten klickbaren Sitzplätze. */
.atr-front-table{filter:drop-shadow(0 5px 4px rgba(26,31,38,.22))}
.atr-front-svg .plate{fill:#4a3d34;stroke:#2f2924;stroke-width:2.4}
.atr-front-svg .back{fill:#31465e;stroke:#24364b;stroke-width:1.8}.atr-front-svg .seat{fill:#46617e}
.atr-front-seat:hover .back,.atr-front-seat:hover .seat,.atr-front-seat:focus .back,.atr-front-seat:focus .seat{fill:#5c7896}
/* Jede Tischbezeichnung sitzt mittig AUF der Tischplatte. */
.atr-front-table-label{left:28%;right:28%;top:39%;bottom:39%;z-index:7;color:#fff;font-size:10px;text-shadow:0 1px 2px rgba(0,0,0,.5);background:transparent;overflow:visible;white-space:nowrap}
/* Zusammengelegte Tische: eine einzige mittige Bezeichnung, ohne weißen Balken über dem Tisch. */
.atr-front-group-label{z-index:9;display:flex;align-items:center;justify-content:center;transform:translate(-50%,-50%);padding:0 4px;border:0!important;border-radius:0;background:transparent!important;color:#fff;font:700 11px/1.1 var(--atr-font,'Inter',sans-serif);text-shadow:0 1px 3px rgba(0,0,0,.65);box-shadow:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
/* Theke/Trennwände hochwertiger, Position und Größe bleiben Editorwerte. */
.atr-front-element{border-color:#665747;background:linear-gradient(135deg,#d6d0c7,#9d9181);box-shadow:0 4px 9px rgba(42,35,29,.18),inset 0 0 0 2px rgba(255,255,255,.35)}
.atr-front-element.type-counter,.atr-front-element.type-theke{background:linear-gradient(135deg,#62564b,#332d28);border-color:#2d2722;color:#fff;box-shadow:0 5px 12px rgba(0,0,0,.25),inset 0 0 0 3px rgba(255,255,255,.08)}


/* 1.0.106 – plastischere Frontend-Raumansicht, ohne Aenderung der Tischplandaten. */
.atr-front-canvas{
  overflow:visible;
  background:
    radial-gradient(ellipse at 50% 10%,rgba(255,255,255,.30),transparent 38%),
    repeating-linear-gradient(90deg,rgba(115,73,35,.055) 0 1px,transparent 1px 118px),
    repeating-linear-gradient(0deg,#f4dfbd 0 37px,#e6c99d 38px,#fae9cb 40px,#f7e4c4 76px);
  box-shadow:0 13px 24px rgba(43,31,22,.22),inset 0 0 0 2px rgba(255,255,255,.28),inset 0 12px 22px rgba(74,49,28,.10);
}
/* Die Tischplatte bekommt Kante, Licht und Materialtiefe. */
.atr-front-svg .plate{fill:#49392f;stroke:#241d18;stroke-width:3;filter:drop-shadow(0 5px 3px rgba(0,0,0,.28))}
.atr-front-svg .back{fill:#314a66;stroke:#172a3d;stroke-width:2;filter:drop-shadow(0 3px 2px rgba(0,0,0,.28))}
.atr-front-svg .seat{fill:#4e6f91}
.atr-front-table:after{content:"";position:absolute;left:31%;right:31%;top:31%;bottom:31%;border-radius:7px;pointer-events:none;background:linear-gradient(135deg,rgba(255,255,255,.13),transparent 34%,rgba(0,0,0,.11));z-index:2}
.atr-front-table[data-shape="round"]:after{border-radius:50%}.atr-front-table[data-shape="diamond"]:after{transform:rotate(45deg);left:34%;right:34%;top:34%;bottom:34%}
/* Einzelbezeichnungen exakt im geometrischen Zentrum der sichtbaren Platte. */
.atr-front-table-label{left:50%!important;right:auto!important;top:50%!important;bottom:auto!important;width:auto;max-width:52%;height:auto;transform:translate(-50%,-50%);display:block;padding:0;margin:0;text-align:center;line-height:1.05;z-index:8}
/* Gruppenbezeichnung: Mittelpunkt der sichtbaren Platten wird in JS berechnet. */
.atr-front-group-label{left:auto;top:auto;min-width:0;max-width:none;color:#fff!important;font-size:11px;text-align:center}
/* Außenwände mit sichtbarer Tiefe. */
.atr-front-side.kind-wall:after{background:linear-gradient(90deg,#241d18 0,#5d4a3c 28%,#846b55 50%,#4b3b30 76%,#211a16 100%);box-shadow:0 4px 8px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.18)}
/* Glasfront wirkt wie einzelne gerahmte Scheiben und bleibt ueber die komplette benannte Seite. */
.atr-front-side.kind-window:after{background:repeating-linear-gradient(90deg,rgba(206,239,249,.96) 0 76px,#426574 77px 82px,rgba(239,251,255,.98) 83px 158px);border-color:#344f5b;box-shadow:0 4px 9px rgba(0,0,0,.24),inset 0 0 9px rgba(255,255,255,.95)}
.atr-front-side-left.kind-window:after,.atr-front-side-right.kind-window:after{background:repeating-linear-gradient(0deg,rgba(206,239,249,.96) 0 76px,#426574 77px 82px,rgba(239,251,255,.98) 83px 158px)}
/* Eingang und Terrasse werden aus der Seitenbezeichnung als echte geoeffnete Tuer gezeichnet. */
.atr-front-side.kind-entrance:after,.atr-front-side.kind-terrace:after{width:58px;height:82px;background:linear-gradient(90deg,rgba(211,240,250,.96),#fff 48%,rgba(177,216,231,.96));border:5px solid #4a392d;box-shadow:0 6px 12px rgba(0,0,0,.30),inset 0 0 0 3px rgba(255,255,255,.72)}
.atr-front-side.kind-entrance:before,.atr-front-side.kind-terrace:before{content:"";position:absolute;z-index:8;width:62px;height:5px;background:#4a392d;box-shadow:0 3px 5px rgba(0,0,0,.25);transform-origin:left center}
.atr-front-side-left.kind-entrance:before,.atr-front-side-left.kind-terrace:before{left:25px;top:50%;transform:rotate(-38deg)}
.atr-front-side-right.kind-entrance:before,.atr-front-side-right.kind-terrace:before{right:25px;top:50%;transform-origin:right center;transform:rotate(38deg)}
.atr-front-side-top.kind-entrance:before,.atr-front-side-top.kind-terrace:before{top:25px;left:50%;transform:rotate(52deg)}
.atr-front-side-bottom.kind-entrance:before,.atr-front-side-bottom.kind-terrace:before{bottom:25px;left:50%;transform:rotate(-52deg)}
/* Theke mit dunkler Arbeitsplatte und Lichtkante. */
.atr-front-element.type-counter,.atr-front-element.type-theke{background:linear-gradient(90deg,#3a3029,#756451 48%,#352c26);border:3px solid #211b17;box-shadow:0 8px 14px rgba(0,0,0,.30),inset 0 0 0 3px rgba(255,255,255,.08),inset 8px 0 12px rgba(255,215,156,.08)}

/* 1.0.107 – Raumdarstellung näher am hochwertigen Grundriss, ohne Geometrie zu erfinden. */
/* Ruhiger, echter wirkender Dielenboden mit feiner Maserung und Licht aus der Raummitte. */
.atr-front-canvas{
  border-color:#4a382a;
  background:
    radial-gradient(ellipse at 48% 42%,rgba(255,255,255,.38) 0,rgba(255,255,255,.08) 43%,rgba(94,55,24,.07) 100%),
    repeating-linear-gradient(90deg,transparent 0 116px,rgba(91,55,26,.10) 117px 119px),
    repeating-linear-gradient(0deg,#f4ddb9 0 38px,#ead0a5 39px,#f8e6c8 41px,#f5dfbb 78px);
  box-shadow:0 16px 28px rgba(45,30,18,.24),inset 0 0 34px rgba(82,49,22,.12),inset 0 2px rgba(255,255,255,.65)
}
/* Tischplatten wirken wie dunkles Holz statt flacher Farbflächen. */
.atr-front-svg .plate{fill:#49372c;stroke:#211914;stroke-width:3.2;filter:drop-shadow(0 6px 4px rgba(0,0,0,.32))}
.atr-front-table:after{background:linear-gradient(135deg,rgba(255,255,255,.18),transparent 28%,rgba(34,19,10,.18)),repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0 2px,rgba(0,0,0,.025) 3px 5px);box-shadow:inset 0 1px rgba(255,255,255,.14),inset 0 -2px rgba(0,0,0,.18)}
.atr-front-svg .back{filter:drop-shadow(0 4px 2px rgba(0,0,0,.34))}
/* Gruppenname wirklich im optischen Mittelpunkt; kein Badge, kein Versatz. */
.atr-front-group-label{transform:translate(-50%,-50%)!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;line-height:1!important;text-align:center!important}
/* Tuerposition kommt aus dem im Editor platzierten (online unsichtbaren) Eingang-/Terrassenmarker. */
.atr-front-side-left.kind-entrance:after,.atr-front-side-left.kind-terrace:after,
.atr-front-side-right.kind-entrance:after,.atr-front-side-right.kind-terrace:after{top:var(--atr-door-pos,50%)!important;bottom:auto!important;transform:translateY(-50%)!important}
.atr-front-side-top.kind-entrance:after,.atr-front-side-top.kind-terrace:after,
.atr-front-side-bottom.kind-entrance:after,.atr-front-side-bottom.kind-terrace:after{left:var(--atr-door-pos,50%)!important;right:auto!important;transform:translateX(-50%) rotate(90deg)!important}
/* Die Tuer sitzt IN einer echten Unterbrechung der Aussenkante. Dadurch läuft kein Wandbalken mehr hindurch. */
.atr-front-side.kind-entrance:after,.atr-front-side.kind-terrace:after{z-index:20!important;background:linear-gradient(90deg,#b8d9e5 0,#f8fdff 44%,#d2edf5 100%)!important;border:5px solid #4b382a!important;box-shadow:0 0 0 8px #f3dfbd,0 8px 15px rgba(0,0,0,.30),inset 0 0 0 3px rgba(255,255,255,.72)!important}
.atr-front-side-left.kind-entrance:after,.atr-front-side-left.kind-terrace:after{left:14px!important}
.atr-front-side-right.kind-entrance:after,.atr-front-side-right.kind-terrace:after{right:14px!important}
.atr-front-side-top.kind-entrance:after,.atr-front-side-top.kind-terrace:after{top:14px!important}
.atr-front-side-bottom.kind-entrance:after,.atr-front-side-bottom.kind-terrace:after{bottom:14px!important}
/* Geöffnetes Türblatt folgt derselben gespeicherten Position. */
.atr-front-side-left.kind-entrance:before,.atr-front-side-left.kind-terrace:before,
.atr-front-side-right.kind-entrance:before,.atr-front-side-right.kind-terrace:before{top:var(--atr-door-pos,50%)!important}
.atr-front-side-top.kind-entrance:before,.atr-front-side-top.kind-terrace:before,
.atr-front-side-bottom.kind-entrance:before,.atr-front-side-bottom.kind-terrace:before{left:var(--atr-door-pos,50%)!important}
.atr-front-side.kind-entrance:before,.atr-front-side.kind-terrace:before{z-index:21!important;height:7px!important;background:linear-gradient(#79583c,#3e2d20)!important;box-shadow:0 4px 6px rgba(0,0,0,.28)!important}
/* Beschriftung folgt ebenfalls der Türposition statt der Seitenmitte. */
.atr-front-side-left.kind-entrance,.atr-front-side-left.kind-terrace,
.atr-front-side-right.kind-entrance,.atr-front-side-right.kind-terrace{justify-content:flex-start!important}
.atr-front-side-left.kind-entrance span,.atr-front-side-left.kind-terrace span,
.atr-front-side-right.kind-entrance span,.atr-front-side-right.kind-terrace span{position:absolute;top:var(--atr-door-pos,50%);transform:translateY(-50%) rotate(-90deg)!important}
.atr-front-side-left.kind-entrance span,.atr-front-side-left.kind-terrace span{left:-5px}.atr-front-side-right.kind-entrance span,.atr-front-side-right.kind-terrace span{right:-7px}
/* Fensterfront kräftiger gerahmt und wirklich bis fast in die Ecken. */
.atr-front-side-top.kind-window:after,.atr-front-side-bottom.kind-window:after{left:-1%!important;right:-1%!important;height:18px!important}
.atr-front-side-left.kind-window:after,.atr-front-side-right.kind-window:after{top:-1%!important;bottom:-1%!important;width:18px!important}
/* Theke: klarere Arbeitsplatte und Sockeltiefe. */
.atr-front-element.type-counter,.atr-front-element.type-theke{background:linear-gradient(90deg,#2e2722 0,#665443 10%,#82705b 48%,#57483a 88%,#29231f 100%)!important;border-color:#241c17!important;box-shadow:0 10px 16px rgba(0,0,0,.28),inset 0 5px rgba(225,196,155,.18),inset 0 -6px rgba(0,0,0,.16)!important}

/* 1.0.108 – funktionale Frontend-Korrekturen */
/* Legende verwendet exakt die Farben der realen Sitzplaetze. */
.atr-front-legend i{background:#4e6f91!important}
.atr-front-legend i.sel{background:var(--orange)!important}
.atr-front-legend i.occ{background:#747b84!important;opacity:.72}
/* Einzelne Tischbezeichnungen exakt in die geometrische Mitte. */
.atr-front-table-label{left:50%!important;right:auto!important;top:50%!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:58px;height:34px;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
/* Seitendarstellung Eingang/Terrasse nicht mehr als geoeffnete Tuer zeichnen. */
.atr-front-side.kind-entrance:before,.atr-front-side.kind-entrance:after,.atr-front-side.kind-terrace:before,.atr-front-side.kind-terrace:after{display:none!important}
/* Der Seitenname Eingang bleibt nur dann sichtbar, wenn kein Marker ihn ueberlagert. */
.atr-front-side.kind-entrance span,.atr-front-side.kind-terrace span{display:none!important}
/* Einfache Tuer aus dem tatsaechlich platzierten Editor-Marker; kein diagonales Tuerblatt, keine Wand-Oeffnung. */
.atr-front-marker-door{position:absolute;z-index:30;width:64px;height:84px;border:5px solid #4a392d;background:linear-gradient(90deg,#c8e7f1 0,#f8fdff 48%,#c8e7f1 100%);box-shadow:0 5px 12px rgba(0,0,0,.28),inset 0 0 0 3px rgba(255,255,255,.72);display:flex;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none}
.atr-front-marker-door span{font:700 12px/1 var(--atr-font,'Inter',sans-serif);color:#032f5b;background:rgba(255,255,255,.92);padding:5px 7px;border-radius:5px;white-space:nowrap}
.atr-front-marker-door.side-left{left:0;top:var(--door-y);transform:translate(-35%,-50%)}
.atr-front-marker-door.side-right{right:0;top:var(--door-y);transform:translate(35%,-50%)}
.atr-front-marker-door.side-top{left:var(--door-x);top:0;transform:translate(-50%,-35%) rotate(90deg)}
.atr-front-marker-door.side-bottom{left:var(--door-x);bottom:0;transform:translate(-50%,35%) rotate(90deg)}
.atr-front-marker-door.side-top span,.atr-front-marker-door.side-bottom span{transform:rotate(-90deg)}


/* 1.0.109 – schmale Eingang-/Terrassentüren und echte Gruppen-Zentrierung */
.atr-front-marker-door{
  width:42px!important;
  height:72px!important;
  border-width:4px!important;
  background:linear-gradient(90deg,#6b4a34 0,#8a6244 18%,#6f4d36 50%,#8a6244 82%,#5b3f2d 100%)!important;
  box-shadow:0 4px 9px rgba(0,0,0,.24),inset 0 0 0 2px rgba(255,255,255,.10)!important;
}
.atr-front-marker-door span{
  max-width:38px;
  padding:3px 4px!important;
  background:rgba(255,255,255,.94)!important;
  font-size:10px!important;
  text-align:center;
}
.atr-front-marker-door.side-left{transform:translate(-28%,-50%)!important}
.atr-front-marker-door.side-right{transform:translate(28%,-50%)!important}
.atr-front-marker-door.side-top{transform:translate(-50%,-28%) rotate(90deg)!important}
.atr-front-marker-door.side-bottom{transform:translate(-50%,28%) rotate(90deg)!important}

/* Das Label selbst ist jetzt die komplette Gruppen-Bounding-Box; kein translate mehr. */
.atr-front-group-label{
  transform:none!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  margin:0!important;
  text-align:center!important;
  line-height:1.05!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}


/* 1.0.110 – vertikale Tuerbeschriftungen + punktgenaues Gruppenlabel */
.atr-front-marker-door.side-left span,
.atr-front-marker-door.side-right span{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%) rotate(-90deg)!important;
  max-width:none!important;
  padding:5px 8px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
  background:rgba(255,255,255,.96)!important;
  color:#032f5b!important;
  box-shadow:0 1px 4px rgba(0,0,0,.10)!important;
}
.atr-front-group-label{
  transform:none!important;
  display:flex!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#fff!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-align:center!important;
  line-height:1!important;
  pointer-events:none!important;
}


/* 1.0.111 – Terrasse wie Eingang vertikal; Gruppenlabel als echte Gesamtgruppen-Ebene */
.atr-front-marker-door.side-left span,
.atr-front-marker-door.side-right span{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%) rotate(-90deg)!important;
  transform-origin:center center!important;
  writing-mode:horizontal-tb!important;
  white-space:nowrap!important;
}
.atr-front-group-label{
  transform:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  padding:0!important;
  margin:0!important;
  text-align:center!important;
  line-height:1!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#fff!important;
  white-space:nowrap!important;
  overflow:visible!important;
  pointer-events:none!important;
}


/* 1.0.112 – Gruppenlabel: JS-Bounding-Box darf nicht mehr durch alte CSS-Regeln überschrieben werden. */
.atr-front-group-label{
  transform:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#fff!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-align:center!important;
  line-height:1!important;
  pointer-events:none!important;
}


/* 1.0.114 – Gruppenlabel nur als Mittelpunkt der gespeicherten Editor-Positionen. */
.atr-front-group-label{
  position:absolute!important;
  width:max-content!important;
  height:auto!important;
  min-width:0!important;
  max-width:none!important;
  transform:translate(-50%,-50%)!important;
  display:block!important;
  margin:0!important;
  padding:0 2px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#fff!important;
  font-weight:700!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:visible!important;
  pointer-events:none!important;
}


/* 1.0.115 – Label ist nur ein Punkt über dem gemessenen Mittelpunkt der sichtbaren Platten. */
.atr-front-group-label{
  position:absolute!important;
  left:0;top:0;
  width:max-content!important;height:auto!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  color:#fff!important;font-weight:700!important;line-height:1!important;
  white-space:nowrap!important;overflow:visible!important;pointer-events:none!important;
}


/* 1.0.116 – finale Gruppenlabel-Regel: nur Mittelpunkt, keine Altregel darf Geometrie erzwingen. */
.atr-front-group-label{
  position:absolute!important;
  width:auto!important;height:auto!important;min-width:0!important;max-width:none!important;
  margin:0!important;padding:0!important;
  transform:translate(-50%,-50%)!important;
  display:block!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  color:#fff!important;font:700 11px/1 var(--atr-font,'Inter',sans-serif)!important;
  text-align:center!important;text-shadow:0 1px 3px rgba(0,0,0,.65)!important;
  white-space:nowrap!important;overflow:visible!important;pointer-events:none!important;z-index:30!important;
}

/* 1.0.118 – Auswahlfarbe hat auch unter Mauszeiger/Fokus Vorrang.
   Zuvor überschrieb die spätere Hover-Regel die rote Auswahlfarbe bis der Mauszeiger
   auf den nächsten Sitz wechselte; dadurch wirkte die Anzeige immer einen Klick verzögert. */
.atr-front-seat.is-selected .back,
.atr-front-seat.is-selected .seat,
.atr-front-seat.is-selected:hover .back,
.atr-front-seat.is-selected:hover .seat,
.atr-front-seat.is-selected:focus .back,
.atr-front-seat.is-selected:focus .seat{
  fill:var(--orange)!important;
}

/* 1.0.126 – Belegungsprioritaet: sichtbare, aber noch nicht buchbare Plaetze */
.atr-front-seat.is-priority-locked{cursor:not-allowed;pointer-events:none;opacity:.42}
.atr-front-table.is-priority-locked .atr-front-table-label{opacity:.58}

/* 1.0.136 – Backend-Direktbelegung: aktuelle Belegung ist nur Information, nicht Klicksperre. */
.atr-admin-reservations.is-walkin .atr-front-seat.is-occupied,
.atr-admin-reservations.is-walkin .atr-front-seat.is-priority-locked,
.atr-res-admin.is-walkin .atr-front-seat.is-occupied,
.atr-res-admin.is-walkin .atr-front-seat.is-priority-locked,
.is-walkin .atr-front-seat.is-occupied,
.is-walkin .atr-front-seat.is-priority-locked{pointer-events:auto!important;cursor:pointer!important;opacity:1!important}
.is-walkin .atr-front-seat.is-walkin-selected .back,
.is-walkin .atr-front-seat.is-walkin-selected .seat{fill:#e96f3a!important;opacity:1!important}

/* 1.0.150 – bereichsbezogene Optik */
.atr-front-canvas .atr-front-svg .plate{fill:var(--atr-table-color,#49372c)}
.atr-front-canvas .atr-front-svg .back,.atr-front-canvas .atr-front-svg .seat{fill:var(--atr-chair-color,#4e6f91)}
.atr-front-canvas.atr-floor-wood_dark{background:radial-gradient(ellipse at 48% 42%,rgba(255,255,255,.16),rgba(0,0,0,.08)),repeating-linear-gradient(90deg,transparent 0 116px,rgba(30,18,10,.14) 117px 119px),repeating-linear-gradient(0deg,#9b7652 0 38px,#805d40 39px,#aa8460 41px,#92704e 78px)}
.atr-front-canvas.atr-floor-stone_light{background:linear-gradient(90deg,rgba(120,110,96,.22) 1px,transparent 1px) 0 0/82px 100%,linear-gradient(0deg,rgba(120,110,96,.22) 1px,transparent 1px) 0 0/82px 82px,#e7e1d7}
.atr-front-canvas.atr-floor-stone_gray{background:linear-gradient(90deg,rgba(90,94,96,.25) 1px,transparent 1px) 0 0/82px 100%,linear-gradient(0deg,rgba(90,94,96,.25) 1px,transparent 1px) 0 0/82px 82px,#c9cbca}
.atr-front-canvas.atr-floor-neutral{background:#f2f2ef}

/* 1.0.161 – Responsive Raumplan ohne Stauchung */
@media (max-width:1100px){
 .atr-front-roomplan{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
 .atr-front-room-shell{width:max(100%,var(--atr-room-width,800px));min-width:var(--atr-room-width,800px)}
 .atr-front-canvas{width:100%;min-width:0}
}
@media (max-width:760px){
 .atr-front-roomplan{padding:8px}.atr-front-room-shell{padding:18px}.atr-front-canvas{min-width:0}
 .atr-front-table{width:150px;height:150px}.atr-front-table[data-shape="oval"]{width:195px;height:140px}
}
