/*
Theme Name: Tandoori Flavor Master
Theme URI: https://tandooriflavor.at
Description: Master-Theme für tandooriflavor.at – Startseite, WooCommerce-Speisekarte, Optionen, Warenkorb, SumUp, Reservierung, PDFs, Video/Musik und automatische Übersetzungen.
Author: Tandoori Flavor
Template: astra
Version: 5.7.0
Text Domain: tandoori-flavor
Requires at least: 6.4
Requires PHP: 8.0
*/

:root {
  --tf-black:#070605;
  --tf-black-2:#120d09;
  --tf-gold:#d5a13f;
  --tf-gold-2:#f2cf78;
  --tf-red:#a51f18;
  --tf-red-2:#d6402c;
  --tf-cream:#fff8e8;
  --tf-muted:#d8d0c4;
  --tf-border:rgba(213,161,63,.28);
  --tf-shadow:0 18px 55px rgba(0,0,0,.38);
}

html { scroll-behavior:smooth; }
body { background:var(--tf-black); color:var(--tf-cream); }
body, button, input, select, textarea { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color:var(--tf-gold-2); }


/* Full-width landing page: remove Astra content container gutters. */
body.home #page,
body.home .site,
body.home .site-content,
body.home .site-content > .ast-container,
body.home .ast-container,
body.home #primary,
body.home .content-area,
body.home article.page,
body.home .entry-content {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
}
body.home .site-content > .ast-container,
body.home .ast-container { display:block !important; }
body.home .entry-content > * { max-width:none !important; }

/* Hide Astra chrome on the bespoke landing page. */
body.home #masthead,
body.home .site-header,
body.home .site-footer,
body.home footer,
body.home .ast-primary-header-bar,
body.home .ast-above-header-wrap,
body.home .ast-below-header-wrap { display:none !important; }

.tf-home-shell { height:100vh; height:100svh; overflow:hidden; background:var(--tf-black); }
.tf-home { height:100%; overflow-y:auto; overflow-x:hidden; scroll-snap-type:y mandatory; scroll-behavior:smooth; }
.tf-stage { min-height:100vh; min-height:100svh; scroll-snap-align:start; scroll-snap-stop:always; position:relative; isolation:isolate; display:grid; place-items:center; padding:112px clamp(18px,5vw,78px) 50px; }
.tf-stage::before { content:""; position:absolute; inset:0; z-index:-3; background:radial-gradient(circle at 15% 15%,rgba(165,31,24,.26),transparent 34%),radial-gradient(circle at 78% 82%,rgba(213,161,63,.16),transparent 36%),linear-gradient(135deg,#060504,#160d09 52%,#050505); }
.tf-stage::after { content:""; position:absolute; inset:0; z-index:-2; background:linear-gradient(180deg,rgba(0,0,0,.16),rgba(0,0,0,.58)); }
.tf-stage-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-4; }

.tf-site-header { position:fixed; z-index:99990; inset:0 0 auto 0; min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:8px clamp(16px,4vw,66px); background:linear-gradient(180deg,rgba(4,4,4,.98),rgba(4,4,4,.82)); border-bottom:1px solid var(--tf-border); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.tf-site-logo { width:clamp(150px,18vw,240px); max-height:56px; object-fit:contain; object-position:left center; display:block; }
.tf-main-nav { display:flex; align-items:center; justify-content:flex-end; gap:clamp(10px,1.5vw,22px); }
.tf-main-nav a { color:var(--tf-gold-2); text-decoration:none; font-size:14px; font-weight:700; letter-spacing:.03em; white-space:nowrap; }
.tf-main-nav a:hover { color:#fff; }
.tf-nav-order { border:1px solid var(--tf-gold); border-radius:999px; padding:11px 17px; background:linear-gradient(135deg,var(--tf-gold-2),var(--tf-gold)); color:#1b0b02 !important; box-shadow:0 8px 24px rgba(213,161,63,.2); }
.tf-lang { background:#0f0d0b; color:var(--tf-gold-2); border:1px solid var(--tf-border); border-radius:999px; padding:8px 10px; font-weight:700; }

.tf-stage-inner { width:min(1140px,100%); margin:0 auto; }
.tf-hero { text-align:center; display:flex; flex-direction:column; align-items:center; gap:14px; }
.tf-hero-logo { width:min(520px,72vw); max-height:185px; object-fit:contain; filter:drop-shadow(0 18px 40px rgba(0,0,0,.48)); }
.tf-kicker { color:var(--tf-gold-2); text-transform:uppercase; letter-spacing:.18em; font-weight:800; font-size:clamp(11px,1.3vw,14px); }
.tf-h1,.tf-h2 { font-family:Georgia,"Times New Roman",serif; color:#fff; margin:0; text-shadow:0 5px 22px rgba(0,0,0,.38); }
.tf-h1 { font-size:clamp(42px,6.6vw,90px); line-height:.96; }
.tf-h2 { font-size:clamp(34px,5vw,66px); line-height:1.05; color:var(--tf-gold-2); margin-bottom:18px; }
.tf-slogan { margin:0; color:var(--tf-gold-2); font-size:clamp(18px,2.2vw,30px); font-weight:700; letter-spacing:.08em; }
.tf-lead { max-width:820px; margin:2px auto 0; color:rgba(255,255,255,.89); font-size:clamp(16px,1.8vw,20px); line-height:1.65; }
.tf-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:10px; }
.tf-btn { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:12px 20px; border-radius:999px; border:1px solid var(--tf-gold); color:#fff !important; text-decoration:none !important; font-weight:800; background:rgba(0,0,0,.38); transition:.2s ease; cursor:pointer; }
.tf-btn:hover { transform:translateY(-1px); box-shadow:0 10px 24px rgba(0,0,0,.28); }
.tf-btn-primary { color:#180900 !important; background:linear-gradient(135deg,var(--tf-gold-2),var(--tf-gold)); }
.tf-btn-red { border-color:#cf4b3b; background:linear-gradient(135deg,#c12820,#7f100c); }
.tf-grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(18px,3vw,34px); }
.tf-card { border:1px solid var(--tf-border); border-radius:22px; padding:clamp(20px,3vw,34px); background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.035)); box-shadow:var(--tf-shadow); }
.tf-card h3 { color:var(--tf-gold-2); margin:0 0 12px; font-size:clamp(22px,2.4vw,31px); }
.tf-card p,.tf-card li { color:rgba(255,255,255,.88); line-height:1.65; }
.tf-contact-list { list-style:none; padding:0; margin:0; }
.tf-contact-list li { padding:6px 0; }
.tf-social { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.tf-social a { border:1px solid var(--tf-border); border-radius:999px; padding:9px 13px; text-decoration:none; color:var(--tf-gold-2); }
.tf-map { width:100%; min-height:260px; border:0; border-radius:16px; }

.tf-dots { position:fixed; right:16px; top:50%; transform:translateY(-50%); z-index:99991; display:grid; gap:10px; }
.tf-dot { width:12px; height:12px; border-radius:50%; border:1px solid var(--tf-gold); background:rgba(0,0,0,.45); display:block; }
.tf-dot.is-active { background:var(--tf-gold-2); box-shadow:0 0 0 5px rgba(213,161,63,.12); }
.tf-wa { position:fixed; right:20px; bottom:20px; z-index:99992; width:58px; height:58px; border-radius:50%; display:grid; place-items:center; background:#25D366; color:#fff !important; text-decoration:none !important; font-size:26px; box-shadow:0 12px 30px rgba(0,0,0,.34); }
.tf-music { position:fixed; left:18px; bottom:18px; z-index:99992; display:flex; align-items:center; gap:7px; padding:8px 10px; border-radius:999px; border:1px solid var(--tf-border); background:rgba(5,5,5,.88); backdrop-filter:blur(10px); }
.tf-music button { border:0; background:transparent; color:var(--tf-gold-2); cursor:pointer; font-weight:800; padding:4px 6px; }
.tf-music span { color:#fff; min-width:42px; text-align:center; font-size:12px; }

/* Generic interior pages */
.tf-page-wrap { max-width:1180px; margin:0 auto; padding:48px 18px 70px; }
.tf-page-head { padding:28px 0 22px; text-align:center; }
.tf-page-head h1 { margin:0; font-family:Georgia,"Times New Roman",serif; color:var(--tf-gold-2); font-size:clamp(36px,5vw,64px); }
.tf-page-head p { color:var(--tf-muted); }

/* Restaurant menu */
.tf-menu-tabs { position:sticky; top:0; z-index:20; display:flex; gap:8px; overflow:auto; padding:12px 0; background:linear-gradient(180deg,var(--tf-black),rgba(7,6,5,.92)); }
.tf-menu-tabs a { flex:0 0 auto; padding:9px 14px; border:1px solid var(--tf-border); border-radius:999px; text-decoration:none; color:var(--tf-gold-2); }
.tf-menu-section { scroll-margin-top:76px; margin:34px 0 48px; }
.tf-menu-section h2 { color:var(--tf-gold-2); font-family:Georgia,"Times New Roman",serif; font-size:clamp(28px,4vw,46px); }
.tf-products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.tf-product { border:1px solid var(--tf-border); border-radius:18px; overflow:hidden; background:#120e0a; box-shadow:0 12px 32px rgba(0,0,0,.25); display:flex; flex-direction:column; }
.tf-product-image { aspect-ratio:4/3; background:#090807; overflow:hidden; }
.tf-product-image img { width:100%; height:100%; object-fit:cover; display:block; }
.tf-product-body { padding:16px; display:flex; flex-direction:column; gap:10px; flex:1; }
.tf-product-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.tf-product h3 { color:#fff; margin:0; font-size:20px; }
.tf-price { color:var(--tf-gold-2); font-weight:900; white-space:nowrap; }
.tf-product-desc { color:#cfc6ba; font-size:14px; line-height:1.55; margin:0; }
.tf-badges { display:flex; flex-wrap:wrap; gap:6px; }
.tf-badge { font-size:11px; padding:4px 8px; border-radius:999px; border:1px solid var(--tf-border); color:var(--tf-gold-2); }
.tf-badge-green { color:#b8f2c2; border-color:rgba(90,190,108,.4); }
.tf-badge-red { color:#ffb4aa; border-color:rgba(220,70,50,.4); }
.tf-allergens { color:#a9a096; font-size:12px; }
.tf-product-actions { margin-top:auto; display:flex; gap:8px; }
.tf-add { width:100%; }
.tf-sold { opacity:.56; filter:grayscale(.25); }

.tf-modal { position:fixed; inset:0; z-index:100000; background:rgba(0,0,0,.72); display:none; align-items:center; justify-content:center; padding:18px; }
.tf-modal.is-open { display:flex; }
.tf-modal-card { width:min(620px,100%); max-height:90vh; overflow:auto; border:1px solid var(--tf-border); border-radius:20px; padding:22px; background:#100c09; box-shadow:var(--tf-shadow); }
.tf-modal-head { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.tf-modal-head h3 { margin:0; color:var(--tf-gold-2); }
.tf-close { border:0; background:transparent; color:#fff; font-size:28px; cursor:pointer; }
.tf-option-group { margin:18px 0; }
.tf-option-group h4 { color:#fff; margin:0 0 8px; }
.tf-option-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid rgba(255,255,255,.07); }
.tf-option-row label { color:#e9e0d4; flex:1; cursor:pointer; }
.tf-note { width:100%; min-height:90px; border-radius:12px; border:1px solid var(--tf-border); background:#080706; color:#fff; padding:10px; }

/* Reservation */
.tf-form { max-width:820px; margin:0 auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.tf-field { display:flex; flex-direction:column; gap:6px; }
.tf-field-full { grid-column:1/-1; }
.tf-field label { color:var(--tf-gold-2); font-weight:700; }
.tf-field input,.tf-field select,.tf-field textarea { width:100%; border:1px solid var(--tf-border); border-radius:12px; background:#100c09; color:#fff; padding:12px 13px; }
.tf-notice { padding:12px 14px; border-radius:12px; margin:0 0 18px; border:1px solid var(--tf-border); }
.tf-notice-success { background:rgba(45,125,61,.16); color:#d7ffdf; }
.tf-notice-error { background:rgba(160,45,35,.15); color:#ffd9d3; }

/* WooCommerce classic cart/checkout styling */
.woocommerce .woocommerce-breadcrumb { color:#b9ad9f; }
.woocommerce h1,.woocommerce h2,.woocommerce h3 { color:var(--tf-gold-2); }
.woocommerce table.shop_table { border-color:var(--tf-border); background:#100c09; color:#fff; }
.woocommerce table.shop_table th,.woocommerce table.shop_table td { border-color:rgba(255,255,255,.08); }
.woocommerce input.input-text,.woocommerce textarea,.woocommerce select { background:#100c09 !important; color:#fff !important; border:1px solid var(--tf-border) !important; border-radius:10px !important; padding:10px !important; }
.woocommerce button.button,.woocommerce a.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce .checkout-button { border-radius:999px !important; background:linear-gradient(135deg,var(--tf-gold-2),var(--tf-gold)) !important; color:#1b0b02 !important; font-weight:800 !important; }
.woocommerce .cart_totals,.woocommerce-checkout-review-order { background:#100c09; border:1px solid var(--tf-border); border-radius:16px; padding:18px; }
.woocommerce form .form-row label { color:#eee3d5; }

@media (max-width:1020px) {
  .tf-main-nav a:not(.tf-nav-order),.tf-lang { display:none; }
  .tf-site-header { min-height:72px; padding:8px 14px; }
  .tf-site-logo { width:185px; max-height:52px; }
  .tf-stage { padding-top:92px; }
  .tf-grid-2 { grid-template-columns:1fr; }
  .tf-products { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .tf-site-logo { width:145px; }
  .tf-nav-order { max-width:150px; text-align:center; font-size:12px !important; padding:9px 12px; }
  .tf-stage { padding-left:15px; padding-right:15px; }
  .tf-hero-logo { width:min(82vw,360px); max-height:145px; }
  .tf-actions { flex-direction:column; width:100%; }
  .tf-btn { width:100%; }
  .tf-products { grid-template-columns:1fr; }
  .tf-form { grid-template-columns:1fr; }
  .tf-field-full { grid-column:auto; }
  .tf-dots { right:8px; }
  .tf-music { left:8px; bottom:10px; }
  .tf-wa { right:10px; bottom:10px; }
}
/* Astra interior header */
body:not(.home) .ast-primary-header-bar { background:#070605 !important; border-bottom:1px solid var(--tf-border) !important; }
body:not(.home) .site-title a,body:not(.home) .main-header-menu .menu-link { color:var(--tf-gold-2) !important; }
body:not(.home) .site-footer { background:#070605 !important; color:#cfc6ba; border-top:1px solid var(--tf-border); }
body:not(.home) .site-content { background:linear-gradient(135deg,#090807,#120d09); min-height:70vh; color:#fff; }
.tf-lang-float { position:fixed; top:12px; right:12px; z-index:99999; display:flex; gap:5px; padding:5px; border:1px solid var(--tf-border); border-radius:999px; background:rgba(7,6,5,.9); }
.tf-lang-float a { color:var(--tf-gold-2); text-decoration:none; font-size:12px; font-weight:800; padding:5px 7px; }


/* Menu page v2.4 */
.tf-menu-page-wrap { max-width:1240px; }
.tf-menu-hero { padding-bottom:18px; }
.tf-menu-intro { max-width:760px; margin:12px auto 0; color:var(--tf-muted); line-height:1.7; }
.tf-actions-center { justify-content:center; }
.tf-kicker-small { font-size:11px; letter-spacing:.16em; }
.tf-menu-tabs { position:sticky; top:0; z-index:20; display:flex; gap:10px; overflow:auto; padding:14px 0 16px; margin-bottom:8px; background:linear-gradient(180deg,var(--tf-black),rgba(7,6,5,.94)); }
.tf-menu-tabs a { flex:0 0 auto; padding:10px 16px; border:1px solid var(--tf-border); border-radius:999px; text-decoration:none; color:var(--tf-gold-2); font-weight:700; }
.tf-menu-tabs a:hover { background:rgba(213,161,63,.12); color:#fff; }
.tf-menu-section { scroll-margin-top:90px; margin:18px 0 44px; }
.tf-menu-section-head { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-bottom:14px; }
.tf-menu-section h2 { margin:0; color:var(--tf-gold-2); font-family:Georgia,"Times New Roman",serif; font-size:clamp(28px,4vw,46px); }
.tf-section-count { flex:0 0 auto; border:1px solid var(--tf-border); border-radius:999px; padding:9px 14px; color:var(--tf-gold-2); font-size:13px; font-weight:700; }
.tf-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.tf-product { border:1px solid var(--tf-border); border-radius:20px; overflow:hidden; background:linear-gradient(180deg,rgba(18,14,10,1),rgba(12,9,8,1)); box-shadow:0 12px 32px rgba(0,0,0,.25); display:flex; flex-direction:column; }
.tf-product-image { aspect-ratio:4/3; background:#090807; overflow:hidden; }
.tf-product-image img { width:100%; height:100%; object-fit:cover; display:block; }
.tf-product-image-empty { background:linear-gradient(135deg,rgba(213,161,63,.18),rgba(165,31,24,.16)); }
.tf-image-fallback { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:20px; text-align:center; color:var(--tf-cream); }
.tf-image-fallback-icon { font-size:40px; line-height:1; margin-bottom:12px; }
.tf-image-fallback strong { font-size:20px; color:#fff; }
.tf-image-fallback small { margin-top:7px; color:var(--tf-gold-2); letter-spacing:.04em; }
.tf-product-body { padding:18px; display:flex; flex-direction:column; gap:10px; flex:1; }
.tf-product-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.tf-product h3 { color:#fff; margin:0; font-size:22px; line-height:1.2; }
.tf-price { color:var(--tf-gold-2); font-weight:900; white-space:nowrap; font-size:18px; }
.tf-product-desc { color:#cfc6ba; font-size:14px; line-height:1.6; margin:0; min-height:44px; }
.tf-badges { display:flex; flex-wrap:wrap; gap:6px; }
.tf-badge { font-size:11px; padding:4px 8px; border-radius:999px; border:1px solid var(--tf-border); color:var(--tf-gold-2); }
.tf-badge-green { color:#b8f2c2; border-color:rgba(90,190,108,.4); }
.tf-badge-red { color:#ffb4aa; border-color:rgba(220,70,50,.4); }
.tf-allergens { color:#b8aea1; font-size:12px; line-height:1.5; }
.tf-product-actions { margin-top:auto; display:flex; gap:8px; }
.tf-add { width:100%; }

@media (max-width:1020px) {
  .tf-products { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .tf-menu-section-head { align-items:flex-start; flex-direction:column; }
  .tf-section-count { padding:7px 11px; }
}

/* v2.5 shop-page routing + compact interior header */
body.woocommerce-shop .site-header .custom-logo,
body.page-id-0 .site-header .custom-logo { max-height:90px; width:auto; }
body.woocommerce-shop .ast-primary-header-bar { min-height:108px; }
body.woocommerce-shop .site-branding img { width:min(520px,48vw); max-height:92px; object-fit:contain; }
body.woocommerce-shop .site-content > .ast-container,
body.woocommerce-shop .ast-container,
body.woocommerce-shop #primary,
body.woocommerce-shop .content-area { max-width:none !important; width:100% !important; padding-left:0 !important; padding-right:0 !important; }
body.woocommerce-shop .site-main { width:100%; }


/* =========================================================
   v3.0 – KOMPAKTE SPEISEKARTE / KLEINE SPEISEBILDER
   These rules are intentionally last so they override older
   menu image sizes contained in earlier theme versions.
   ========================================================= */
.tf-menu-page-wrap .tf-products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.tf-menu-page-wrap .tf-product {
    border-radius: 16px !important;
}

.tf-menu-page-wrap .tf-product-image,
.tf-menu-page-wrap .tf-product-image-empty {
    width: 100% !important;
    height: 125px !important;
    min-height: 125px !important;
    max-height: 125px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
}

.tf-menu-page-wrap .tf-product-image img {
    width: 100% !important;
    height: 125px !important;
    min-height: 125px !important;
    max-height: 125px !important;
    object-fit: cover !important;
    display: block !important;
}

.tf-menu-page-wrap .tf-image-fallback {
    width: 100% !important;
    height: 125px !important;
    min-height: 125px !important;
    max-height: 125px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
}

.tf-menu-page-wrap .tf-image-fallback-icon {
    font-size: 25px !important;
    margin-bottom: 4px !important;
}

.tf-menu-page-wrap .tf-image-fallback strong {
    font-size: 15px !important;
    line-height: 1.15 !important;
}

.tf-menu-page-wrap .tf-image-fallback small {
    font-size: 11px !important;
    margin-top: 4px !important;
}

.tf-menu-page-wrap .tf-product-body {
    padding: 13px !important;
    gap: 8px !important;
}

.tf-menu-page-wrap .tf-product h3 {
    font-size: 17px !important;
}

.tf-menu-page-wrap .tf-product-desc {
    font-size: 12.5px !important;
    line-height: 1.42 !important;
    min-height: 0 !important;
}

.tf-menu-page-wrap .tf-price {
    font-size: 16px !important;
}

.tf-menu-page-wrap .tf-product .tf-btn {
    min-height: 38px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
}

@media (max-width: 980px) {
    .tf-menu-page-wrap .tf-products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    .tf-menu-page-wrap .tf-products {
        grid-template-columns: 1fr !important;
    }

    .tf-menu-page-wrap .tf-product-image,
    .tf-menu-page-wrap .tf-product-image-empty,
    .tf-menu-page-wrap .tf-product-image img,
    .tf-menu-page-wrap .tf-image-fallback {
        height: 110px !important;
        min-height: 110px !important;
        max-height: 110px !important;
    }
}


/* v3.3 – Checkout confirmation + WhatsApp */
.tf-order-confirmation {
    margin: 24px 0;
    padding: 22px;
    border: 1px solid var(--tf-border);
    border-radius: 18px;
    background: linear-gradient(180deg,rgba(213,161,63,.10),rgba(255,255,255,.035));
}
.tf-order-confirmation h2 {
    margin: 0 0 10px;
    color: var(--tf-gold-2);
}
.tf-order-confirmation p {
    margin: 7px 0;
    color: #eee4d8;
}
.tf-order-confirmation .tf-btn {
    margin-top: 12px;
}


/* v3.4 – Warenkorb UX */
.tf-cart-link {
    position: relative;
}
.tf-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-left: 7px;
    padding: 0 6px;
    border-radius: 999px;
    background: #111;
    color: #f2c75c;
    font-size: 12px;
    font-weight: 900;
}
.tf-cart-toast {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 99999;
    max-width: 320px;
    padding: 14px 18px;
    border: 1px solid var(--tf-border);
    border-radius: 14px;
    background: #100c09;
    color: #fff;
    box-shadow: 0 12px 35px rgba(0,0,0,.4);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: .22s ease;
}
.tf-cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.tf-cart-toast strong {
    color: var(--tf-gold-2);
}

/* Cart: klare Löschen-Schaltfläche */
.woocommerce-cart-form a.remove.tf-remove-item {
    width: auto !important;
    height: auto !important;
    padding: 7px 12px !important;
    border: 1px solid rgba(210,60,45,.55) !important;
    border-radius: 999px !important;
    color: #ffb0a6 !important;
    background: rgba(150,25,18,.13) !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}
.woocommerce-cart-form a.remove.tf-remove-item:hover {
    color: #fff !important;
    background: #a51f18 !important;
}

/* Update-cart button is no longer necessary; quantities update automatically */
.woocommerce-cart-form button[name="update_cart"] {
    display: none !important;
}


/* =========================================================
   v3.5 – Optionen, Warenkorb-Löschen, Zahlungsarten sichtbar
   ========================================================= */

/* Deutlicher Löschen-Button im Warenkorb */
.woocommerce-cart-form a.remove.tf-remove-item,
.woocommerce a.remove.tf-remove-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: 36px !important;
    min-width: 92px !important;
    padding: 0 14px !important;
    border: 1px solid #e05a4f !important;
    border-radius: 999px !important;
    background: #8f1f18 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    opacity: 1 !important;
}
.woocommerce-cart-form a.remove.tf-remove-item:hover,
.woocommerce a.remove.tf-remove-item:hover {
    background: #c72b20 !important;
    color: #fff !important;
}

/* Klassischer WooCommerce Checkout */
.woocommerce-checkout #payment,
.woocommerce-checkout .woocommerce-checkout-payment {
    background: #0e0b09 !important;
    border: 1px solid #a97b2d !important;
    border-radius: 16px !important;
    color: #fff !important;
    padding: 12px !important;
}
.woocommerce-checkout #payment ul.payment_methods {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
    margin: 8px 0 !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(213,161,63,.45) !important;
    border-radius: 12px !important;
    background: #17110d !important;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
    color: #fff4da !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    opacity: 1 !important;
}
.woocommerce-checkout #payment input[type="radio"] {
    accent-color: #d5a13f !important;
    width: 18px !important;
    height: 18px !important;
    vertical-align: middle !important;
}
.woocommerce-checkout #payment div.payment_box {
    margin: 10px 0 0 !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(213,161,63,.30) !important;
    border-radius: 10px !important;
    background: #0a0807 !important;
    color: #ffffff !important;
}
.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #0a0807 !important;
}
.woocommerce-checkout #payment div.payment_box p,
.woocommerce-checkout #payment div.payment_box span,
.woocommerce-checkout #payment div.payment_box strong {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* WooCommerce Blocks Checkout – falls später verwendet */
.wc-block-components-radio-control__option,
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
    background: #17110d !important;
    border: 1px solid rgba(213,161,63,.45) !important;
    border-radius: 12px !important;
    color: #fff !important;
}
.wc-block-components-radio-control__label,
.wc-block-components-radio-control__description,
.wc-block-components-payment-method-label {
    color: #fff4da !important;
    opacity: 1 !important;
}
.wc-block-components-radio-control__input {
    accent-color: #d5a13f !important;
}


/* =========================================================
   v3.7 – Admin-Optionen + Anmerkung + Floating Warenkorb
   ========================================================= */

/* Anmerkung im Optionsfenster immer gut lesbar */
.tf-modal .tf-note,
.tf-modal textarea.tf-note {
    display: block !important;
    width: 100% !important;
    min-height: 96px !important;
    margin-top: 8px !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    border: 1px solid #d5a13f !important;
    border-radius: 12px !important;
    background: #080706 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    opacity: 1 !important;
}
.tf-modal .tf-note::placeholder,
.tf-modal textarea.tf-note::placeholder {
    color: #d8c7ae !important;
    -webkit-text-fill-color: #d8c7ae !important;
    opacity: 1 !important;
}
.tf-modal .tf-note-label {
    display: block !important;
    color: #f0c95f !important;
    font-weight: 800 !important;
    margin-top: 18px !important;
}

/* Schwebender Warenkorb neben WhatsApp */
.tf-floating-cart {
    position: fixed;
    right: 90px;
    bottom: 20px;
    z-index: 99993;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(213,161,63,.70);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg,#f3cf69,#d5a13f);
    color: #160b03 !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0,0,0,.34);
}
.tf-floating-cart:hover {
    transform: translateY(-1px);
    color: #160b03 !important;
}
.tf-floating-cart .tf-cart-count {
    margin-left: 0 !important;
    background: #100c09 !important;
    color: #f3cf69 !important;
}

/* Admin: Speisen direkt an Optionsgruppe hängen */
.tf-admin-option-products {
    margin-top: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
}
.tf-admin-option-products h3 { margin: 0 0 6px; }
.tf-admin-option-products .tf-admin-help { margin: 0 0 12px; color: #50575e; }
.tf-admin-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
    gap: 7px 12px;
    max-height: 430px;
    overflow: auto;
    padding: 10px;
    border: 1px solid #dcdcde;
    background: #f6f7f7;
}
.tf-admin-product-grid label {
    display: block;
    padding: 6px 8px;
    border-radius: 4px;
    background: #fff;
}
.tf-admin-product-grid label:hover { background: #f0f6fc; }

@media (max-width: 620px) {
    .tf-floating-cart {
        right: 76px;
        bottom: 10px;
        min-height: 54px;
        padding: 0 14px;
        font-size: 0;
    }
    .tf-floating-cart .tf-cart-icon { font-size: 22px; }
    .tf-floating-cart .tf-cart-count { font-size: 12px !important; }
}


/* =========================================================
   v3.8 – Hero-Hintergrundvideo + Musik-Steuerung
   ========================================================= */
#start {
    overflow: hidden;
}
#start .tf-stage-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: -4 !important;
    filter: saturate(1.05) contrast(1.05);
}
#start::after {
    background:
      linear-gradient(180deg,rgba(0,0,0,.34),rgba(0,0,0,.62)),
      radial-gradient(circle at center,rgba(0,0,0,.06),rgba(0,0,0,.28)) !important;
}

/* Musiksteuerung bleibt beim Scrollen sichtbar */
.tf-music {
    max-width: calc(100vw - 190px);
    flex-wrap: wrap;
}
.tf-music button {
    white-space: nowrap;
}
.tf-music .tf-music-status {
    color: #fff;
    font-size: 12px;
    padding: 0 4px;
}

/* Admin Media UI */
.tf-media-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.tf-media-row input.regular-text {
    min-width: 420px;
}
.tf-media-preview {
    margin-top: 10px;
    max-width: 620px;
}
.tf-media-preview video {
    width: 100%;
    max-height: 260px;
    background: #000;
    border-radius: 8px;
}
.tf-media-preview audio {
    width: min(100%, 520px);
}
@media (max-width: 782px) {
    .tf-media-row input.regular-text { min-width: 100%; width: 100%; }
}


/* =========================================================
   v3.9 – VIDEO SICHTBAR FIX
   Fallback-Hintergrund hinter das Video legen, Overlay darüber.
   ========================================================= */
#start::before {
    z-index: -4 !important;
}
#start .tf-stage-video {
    z-index: -3 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #090705;
}
#start::after {
    z-index: -2 !important;
}


/* =========================================================
   v4.0 – Zwei PDF-Buttons
   ========================================================= */
.tf-pdf-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.tf-pdf-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px !important;
    border: 1px solid rgba(213,161,63,.8) !important;
    border-radius: 999px !important;
    background: rgba(8,7,6,.82) !important;
    color: #f3cf69 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.tf-pdf-btn:hover {
    background: #d5a13f !important;
    color: #160b03 !important;
}
.tf-pdf-actions.tf-menu-pdf-actions {
    justify-content: flex-start;
    margin: 14px 0 20px;
}

.tf-pdf-preview {
    margin-top: 8px;
}
.tf-pdf-preview a {
    font-weight: 700;
}

@media (max-width: 620px) {
    .tf-pdf-actions {
        gap: 8px;
    }
    .tf-pdf-btn {
        width: 100%;
    }
}

.tf-translate-box{margin:14px 0;padding:14px;border:1px solid #c3c4c7;border-radius:6px;background:#f6f7f7}
.tf-translate-ok{color:#008a20;font-weight:700}.tf-translate-warn{color:#b32d2e;font-weight:700}

.tf-bulk-translate-wrap{margin:12px 0;padding:14px;border:1px solid #c3c4c7;border-radius:6px;background:#fff}
.tf-bulk-progress{margin-top:10px;font-weight:700}
.tf-bulk-progress.is-ok{color:#008a20}
.tf-bulk-progress.is-error{color:#b32d2e}


/* =========================================================
   v4.5 – Optionen direkt im Warenkorb bearbeiten
   ========================================================= */
.tf-cart-edit-options {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 8px !important;
    padding: 7px 12px !important;
    border: 1px solid rgba(213,161,63,.72) !important;
    border-radius: 999px !important;
    background: rgba(213,161,63,.10) !important;
    color: #f3cf69 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    cursor: pointer;
}
.tf-cart-edit-options:hover {
    background: #d5a13f !important;
    color: #160b03 !important;
}

.tf-cart-options-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.76);
}
.tf-cart-options-modal.is-open {
    display: flex;
}
.tf-cart-options-card {
    width: min(620px, 96vw);
    max-height: 88vh;
    overflow: auto;
    padding: 22px;
    border: 1px solid rgba(213,161,63,.60);
    border-radius: 18px;
    background: #100c09;
    color: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.50);
}
.tf-cart-options-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.tf-cart-options-head h3 {
    margin: 0;
    color: #f3cf69;
}
.tf-cart-options-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: #19130f;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.tf-cart-option-group {
    margin: 15px 0;
    padding: 14px;
    border: 1px solid rgba(213,161,63,.28);
    border-radius: 13px;
    background: rgba(255,255,255,.025);
}
.tf-cart-option-group h4 {
    margin: 0 0 10px;
    color: #f3cf69;
}
.tf-cart-option-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    color: #fff;
}
.tf-cart-option-row label {
    color: #fff !important;
    cursor: pointer;
}
.tf-cart-option-row input[type="radio"] {
    accent-color: #d5a13f;
}
.tf-cart-note-label {
    display: block;
    margin-top: 16px;
    color: #f3cf69;
    font-weight: 800;
}
.tf-cart-note {
    display: block;
    width: 100%;
    min-height: 90px;
    margin-top: 8px;
    padding: 12px 14px;
    box-sizing: border-box;
    border: 1px solid #d5a13f;
    border-radius: 12px;
    background: #080706;
    color: #fff;
    -webkit-text-fill-color: #fff;
}
.tf-cart-options-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.tf-cart-options-status {
    min-height: 20px;
    margin-top: 10px;
    color: #f3cf69;
    font-weight: 700;
}


/* =========================================================
   v4.6 – Warenkorb zuverlässig als klassischer WooCommerce-
          Warenkorb rendern, damit Optionen ändern funktioniert
   ========================================================= */
.tf-cart-page {
    min-height: 100vh;
    padding: 110px 5vw 70px;
    background:
      radial-gradient(circle at 15% 10%, rgba(127,25,13,.20), transparent 34%),
      linear-gradient(180deg,#100b08,#080605);
    color: #fff;
}
.tf-cart-page-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}
.tf-cart-page h1 {
    margin: 0 0 22px;
    color: #f3cf69;
    font-size: clamp(34px,5vw,58px);
}
.tf-cart-page .woocommerce {
    color: #fff;
}
.tf-cart-page .shop_table {
    border-color: rgba(213,161,63,.32) !important;
    background: rgba(255,255,255,.025);
}
.tf-cart-page .shop_table th,
.tf-cart-page .shop_table td {
    border-color: rgba(255,255,255,.15) !important;
    color: #fff !important;
}
.tf-cart-page .product-name a {
    color: #f3cf69 !important;
    font-weight: 800;
}
.tf-cart-page .product-price,
.tf-cart-page .product-subtotal,
.tf-cart-page .cart_totals,
.tf-cart-page .cart_totals h2,
.tf-cart-page .cart_totals th,
.tf-cart-page .cart_totals td {
    color: #fff !important;
}
.tf-cart-page .quantity .qty {
    background: #080706 !important;
    color: #fff !important;
    border: 1px solid rgba(213,161,63,.55) !important;
    border-radius: 8px !important;
}
.tf-cart-page .checkout-button,
.tf-cart-page .wc-proceed-to-checkout a.checkout-button {
    background: linear-gradient(135deg,#f3cf69,#d5a13f) !important;
    color: #160b03 !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
}
.tf-cart-back-menu {
    display: inline-flex;
    margin: 0 0 18px;
    padding: 10px 16px;
    border: 1px solid rgba(213,161,63,.55);
    border-radius: 999px;
    color: #f3cf69 !important;
    text-decoration: none !important;
    font-weight: 800;
}
.tf-cart-page dl.variation,
.tf-cart-page .wc-item-meta {
    color: #fff !important;
}
.tf-cart-page dl.variation dt,
.tf-cart-page dl.variation dd,
.tf-cart-page .wc-item-meta li,
.tf-cart-page .wc-item-meta strong {
    color: #ddd !important;
}

body.tf-cart-modal-open{overflow:hidden}
.tf-cart-edit-options{cursor:pointer!important;position:relative;z-index:3}


/* =========================================================
   v4.8 – Optionen: Gratis + Preis sauber anzeigen
   ========================================================= */
.tf-option-row > span,
.tf-cart-option-row > span {
    white-space: nowrap;
    font-weight: 800;
}
.tf-option-row .tf-option-free,
.tf-cart-option-row .tf-option-free {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid rgba(75,210,130,.70);
    border-radius: 999px;
    color: #9af0bc !important;
    background: rgba(30,130,75,.12);
    font-size: 12px;
    font-weight: 900;
}
.tf-option-row .tf-option-paid,
.tf-cart-option-row .tf-option-paid {
    color: #f3cf69 !important;
    font-weight: 900;
}


/* =========================================================
   MASTER v5.1 – kompakte Online-Bestellung wie Kassenansicht
   Speisen links / Warenkorb + Kasse rechts
   ========================================================= */

.page-template-page-speisekarte .tf-floating-cart {
    display: none !important;
}

.tf-quick-order-page {
    max-width: 1500px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.tf-quick-order-head {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    padding:18px 0 10px;
}
.tf-quick-order-head h1 {
    margin:4px 0 4px;
    font-size:clamp(28px,4vw,48px);
    color:var(--tf-gold-2);
}
.tf-quick-order-head p {
    margin:0;
    color:var(--tf-muted);
}

.tf-quick-tabs {
    top:0;
    margin:0 0 16px !important;
    padding:10px 0 12px !important;
    z-index:50 !important;
}
.admin-bar .tf-quick-tabs { top:32px; }

.tf-quick-order-grid {
    display:grid;
    grid-template-columns:minmax(0,1fr) 390px;
    gap:22px;
    align-items:start;
}

.tf-quick-menu {
    min-width:0;
}
.tf-quick-section {
    margin:8px 0 30px !important;
    scroll-margin-top:92px;
}
.tf-quick-section .tf-menu-section-head {
    margin-bottom:10px;
}
.tf-quick-section .tf-menu-section-head h2 {
    font-size:clamp(26px,3.2vw,38px);
}

.tf-quick-products {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
}

.tf-quick-product {
    min-height:126px;
    display:grid !important;
    grid-template-columns:76px minmax(0,1fr) 48px;
    align-items:center;
    gap:12px;
    padding:12px !important;
    border-radius:16px !important;
    overflow:visible !important;
    position:relative;
    background:linear-gradient(145deg,rgba(36,20,16,.96),rgba(17,13,10,.98)) !important;
}
.tf-quick-product .tf-product-body,
.tf-quick-product > .tf-product-image {
    display:none !important;
}

.tf-quick-thumb {
    width:76px;
    height:76px;
    border-radius:13px;
    overflow:hidden;
    border:1px solid rgba(213,161,63,.22);
    background:linear-gradient(145deg,rgba(165,31,24,.28),rgba(213,161,63,.16));
    display:flex;
    align-items:center;
    justify-content:center;
    flex:none;
}
.tf-quick-thumb img {
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block;
}
.tf-quick-thumb-empty span {
    font-size:31px;
}

.tf-quick-product-content {
    min-width:0;
}
.tf-quick-title-row {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
}
.tf-quick-title-row h3 {
    margin:0;
    color:#fff;
    font-family:Georgia,"Times New Roman",serif;
    font-size:18px !important;
    line-height:1.2;
}
.tf-quick-title-row .tf-price {
    flex:none;
    font-size:15px;
}
.tf-quick-product .tf-product-desc {
    margin:5px 0 0;
    min-height:0 !important;
    font-size:12.5px !important;
    line-height:1.38 !important;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.tf-quick-meta {
    margin-top:7px;
    display:flex;
    align-items:center;
    gap:7px;
    flex-wrap:wrap;
}
.tf-quick-meta small {
    color:#a99e92;
    font-size:11px;
}
.tf-quick-meta .tf-badge {
    font-size:10px;
    padding:2px 7px;
}

.tf-quick-add {
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    background:linear-gradient(135deg,#f3cf69,#d5a13f);
    color:#1b0e05;
    font-size:25px;
    line-height:1;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 8px 22px rgba(0,0,0,.26);
    transition:.16s ease;
}
.tf-quick-add:hover {
    transform:scale(1.06);
}
.tf-quick-add.is-added {
    background:#6fd29c;
}
.tf-quick-sold {
    font-size:10px;
    color:#fff;
    background:#a51f18;
    padding:6px 8px;
    border-radius:999px;
}

/* Right order dock */
.tf-order-sidebar {
    position:relative;
}
.tf-order-sidebar-inner {
    position:sticky;
    top:72px;
    max-height:calc(100vh - 86px);
    overflow:auto;
    border:1px solid rgba(213,161,63,.28);
    border-radius:20px;
    padding:18px;
    background:linear-gradient(180deg,rgba(17,13,10,.98),rgba(7,6,5,.99));
    box-shadow:0 20px 48px rgba(0,0,0,.34);
    scrollbar-width:thin;
}
.admin-bar .tf-order-sidebar-inner { top:104px; max-height:calc(100vh - 118px); }

.tf-side-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding-bottom:12px;
    border-bottom:1px solid rgba(213,161,63,.20);
}
.tf-side-heading h2 {
    margin:2px 0 0;
    color:#fff;
    font-size:26px;
}
.tf-side-count {
    min-width:34px;
    height:34px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#d5a13f;
    color:#160b03;
    font-weight:900;
}

.tf-side-cart-panel {
    padding:8px 0 10px;
}
.tf-side-empty {
    min-height:116px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    text-align:center;
    color:#d8d0c6;
}
.tf-side-empty-icon { font-size:28px; }
.tf-side-empty small { color:#988c80; }

.tf-side-cart-item {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:7px 10px;
    padding:12px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
    position:relative;
}
.tf-side-cart-main {
    min-width:0;
    padding-right:18px;
}
.tf-side-cart-main > strong {
    color:#fff;
    font-size:14px;
}
.tf-side-cart-price {
    color:var(--tf-gold-2);
    font-weight:800;
    font-size:13px;
    white-space:nowrap;
}
.tf-side-cart-meta {
    margin-top:3px;
    display:flex;
    flex-direction:column;
    gap:1px;
}
.tf-side-cart-meta span,
.tf-side-cart-note {
    color:#bdb3a8;
    font-size:11px;
    line-height:1.35;
}
.tf-side-edit {
    margin-top:5px;
    padding:0;
    border:0;
    background:transparent;
    color:#d5a13f;
    font-size:11px;
    cursor:pointer;
}
.tf-side-qty {
    grid-column:1 / 2;
    display:inline-flex;
    align-items:center;
    gap:7px;
}
.tf-side-qty-btn {
    width:24px;
    height:24px;
    border:1px solid rgba(213,161,63,.35);
    border-radius:7px;
    background:#15100c;
    color:#fff;
    cursor:pointer;
}
.tf-side-qty span {
    min-width:18px;
    text-align:center;
    color:#fff;
    font-size:12px;
}
.tf-side-remove {
    position:absolute;
    top:10px;
    right:0;
    width:22px;
    height:22px;
    border:0;
    background:transparent;
    color:#e77a71;
    font-size:18px;
    cursor:pointer;
}

.tf-side-totals {
    padding:9px 0 4px;
}
.tf-side-totals > div {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:5px 0;
    color:#cfc6ba;
    font-size:12px;
}
.tf-side-totals strong {
    color:#fff;
}
.tf-side-totals .tf-side-discount span,
.tf-side-totals .tf-side-discount strong {
    color:#8fe0ac;
}
.tf-side-totals .tf-side-total {
    margin-top:4px;
    padding-top:10px;
    border-top:1px solid rgba(213,161,63,.28);
    font-size:15px;
}
.tf-side-totals .tf-side-total span,
.tf-side-totals .tf-side-total strong {
    color:var(--tf-gold-2);
    font-weight:900;
}

.tf-side-checkout-title {
    margin:10px 0 10px;
    padding-top:13px;
    border-top:1px solid rgba(213,161,63,.22);
    color:#fff;
    font-size:18px;
    font-weight:900;
}

.tf-quick-checkout {
    display:flex;
    flex-direction:column;
    gap:9px;
}
.tf-quick-checkout label {
    display:flex;
    flex-direction:column;
    gap:5px;
    color:#e7ded3;
    font-size:11px;
    font-weight:700;
}
.tf-side-two {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}
.tf-quick-checkout input,
.tf-quick-checkout select,
.tf-quick-checkout textarea {
    width:100%;
    min-height:39px;
    padding:9px 10px;
    border:1px solid rgba(213,161,63,.26);
    border-radius:10px;
    background:#0e0b09 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    box-sizing:border-box;
    outline:none;
    font-size:13px;
}
.tf-quick-checkout textarea {
    resize:vertical;
    min-height:70px;
}
.tf-quick-checkout input:focus,
.tf-quick-checkout select:focus,
.tf-quick-checkout textarea:focus {
    border-color:#d5a13f;
    box-shadow:0 0 0 2px rgba(213,161,63,.12);
}
.tf-delivery-fields[hidden] {
    display:none !important;
}
.tf-delivery-fields {
    display:flex;
    flex-direction:column;
    gap:8px;
}
.tf-side-terms {
    flex-direction:row !important;
    align-items:flex-start;
    gap:8px !important;
    font-weight:500 !important;
}
.tf-side-terms input {
    width:auto !important;
    min-height:0 !important;
    margin-top:2px;
}
.tf-quick-order-submit {
    width:100%;
    min-height:46px;
    border:0;
    border-radius:999px;
    background:linear-gradient(135deg,#f3cf69,#d5a13f);
    color:#1a0c03;
    font-weight:900;
    font-size:14px;
    cursor:pointer;
    margin-top:2px;
}
.tf-quick-order-submit:disabled {
    opacity:.55;
    cursor:not-allowed;
}
.tf-quick-checkout-message {
    font-size:12px;
}
.tf-quick-checkout-message .woocommerce-error,
.tf-quick-checkout-message .woocommerce-message,
.tf-quick-checkout-message .woocommerce-info {
    margin:0 !important;
    padding:10px !important;
    border-radius:9px;
    font-size:11px;
}
.tf-side-error {
    color:#ff9e96;
}
.tf-side-full-cart {
    display:block;
    margin-top:11px;
    text-align:center;
    color:#d5a13f;
    text-decoration:none;
    font-size:11px;
}

.tf-mobile-order-jump {
    display:none;
}

@media (max-width:1180px){
    .tf-quick-order-grid {
        grid-template-columns:minmax(0,1fr) 350px;
    }
    .tf-quick-products {
        grid-template-columns:1fr !important;
    }
}
@media (max-width:920px){
    .tf-quick-order-page {
        padding-left:14px !important;
        padding-right:14px !important;
        padding-bottom:78px !important;
    }
    .tf-quick-order-head {
        align-items:flex-start;
        flex-direction:column;
    }
    .tf-quick-order-grid {
        grid-template-columns:1fr;
    }
    .tf-order-sidebar-inner {
        position:relative;
        top:auto !important;
        max-height:none !important;
    }
    .tf-mobile-order-jump {
        position:fixed;
        left:14px;
        right:14px;
        bottom:12px;
        z-index:99980;
        display:flex;
        align-items:center;
        justify-content:center;
        gap:8px;
        min-height:50px;
        border-radius:999px;
        background:linear-gradient(135deg,#f3cf69,#d5a13f);
        color:#160b03;
        text-decoration:none;
        font-weight:900;
        box-shadow:0 12px 30px rgba(0,0,0,.35);
    }
}
@media (max-width:560px){
    .tf-quick-product {
        grid-template-columns:64px minmax(0,1fr) 42px;
        min-height:112px;
        padding:10px !important;
        gap:9px;
    }
    .tf-quick-thumb {
        width:64px;
        height:64px;
    }
    .tf-quick-title-row {
        display:block;
    }
    .tf-quick-title-row .tf-price {
        display:block;
        margin-top:3px;
    }
    .tf-quick-product .tf-product-desc {
        -webkit-line-clamp:2;
        font-size:11.5px !important;
    }
    .tf-side-two {
        grid-template-columns:1fr;
    }
}


/* =========================================================
   MASTER v5.4 – Warenkorb auf Laptop immer sichtbar
   Fix für zu breite Speisekarte / abgeschnittene rechte Kasse
   ========================================================= */

/* Nie horizontale Seite erzeugen */
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
}

.page-template-page-speisekarte .site,
.page-template-page-speisekarte .site-content,
.page-template-page-speisekarte .ast-container,
.page-template-page-speisekarte #content,
.page-template-page-speisekarte #primary,
.page-template-page-speisekarte .content-area {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Auf der Bestellseite keine alte schwebende Warenkorb-Pille.
   Der rechte Warenkorb ist jetzt die Hauptnavigation. */
.page-template-page-speisekarte .tf-floating-cart,
.page-template-page-speisekarte a.tf-floating-cart,
.page-template-page-speisekarte .tf-mobile-cart-float {
    display: none !important;
}

/* Hauptbereich etwas enger, damit rechts immer genug Platz bleibt */
.tf-quick-order-page {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.tf-quick-order-grid {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 350px) !important;
    gap: 16px !important;
}

.tf-quick-menu,
.tf-quick-products,
.tf-quick-product,
.tf-quick-product-content {
    min-width: 0 !important;
}

.tf-order-sidebar {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 350px !important;
    justify-self: end !important;
}

.tf-order-sidebar-inner {
    width: 100% !important;
    max-width: 350px !important;
    box-sizing: border-box !important;
    padding: 14px !important;
}

/* Inputs dürfen nicht über den Warenkorb hinausragen */
.tf-order-sidebar input,
.tf-order-sidebar select,
.tf-order-sidebar textarea,
.tf-order-sidebar button {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.tf-side-two {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
}

/* Auf normalen Laptops lieber kompaktere Karten */
@media (max-width: 1360px) {
    .tf-quick-order-page {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .tf-quick-order-grid {
        grid-template-columns: minmax(0,1fr) 325px !important;
        gap: 12px !important;
    }
    .tf-order-sidebar,
    .tf-order-sidebar-inner {
        max-width: 325px !important;
    }
    .tf-quick-products {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        gap: 10px !important;
    }
    .tf-quick-product {
        grid-template-columns: 58px minmax(0,1fr) 38px !important;
        min-height: 106px !important;
        padding: 9px !important;
        gap: 8px !important;
    }
    .tf-quick-thumb {
        width: 58px !important;
        height: 58px !important;
    }
    .tf-quick-title-row h3 {
        font-size: 15px !important;
    }
    .tf-quick-product .tf-product-desc {
        font-size: 11px !important;
        -webkit-line-clamp: 2 !important;
    }
}

/* Kleine Laptops: eine Speisen-Spalte + Warenkorb rechts.
   Dadurch wird rechts NICHTS abgeschnitten. */
@media (max-width: 1100px) and (min-width: 821px) {
    .tf-quick-order-grid {
        grid-template-columns: minmax(0,1fr) 320px !important;
    }
    .tf-order-sidebar,
    .tf-order-sidebar-inner {
        max-width: 320px !important;
    }
    .tf-quick-products {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet/Handy: Warenkorb unter der Speisekarte statt außerhalb */
@media (max-width: 820px) {
    .tf-quick-order-grid {
        display: block !important;
    }
    .tf-order-sidebar {
        max-width: none !important;
        width: 100% !important;
        margin-top: 18px !important;
    }
    .tf-order-sidebar-inner {
        position: relative !important;
        top: auto !important;
        max-height: none !important;
        max-width: none !important;
        width: 100% !important;
    }
    .tf-quick-products {
        grid-template-columns: 1fr !important;
    }
    .tf-mobile-order-jump {
        display: flex !important;
    }
}

/* Kategorie-Leiste darf horizontal scrollen, aber schiebt die Seite nicht */
.tf-quick-tabs,
.tf-menu-tabs {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    scrollbar-width: thin;
}
.tf-quick-tabs a,
.tf-menu-tabs a {
    flex: 0 0 auto !important;
}

/* Hostinger KI / WhatsApp soll den Checkout nicht verdecken */
.page-template-page-speisekarte .tf-whatsapp {
    right: 12px !important;
    bottom: 12px !important;
}
@media (min-width: 821px) {
    .page-template-page-speisekarte .tf-whatsapp {
        right: 370px !important;
    }
}


/* =========================================================
   MASTER v5.5 – Warenkorb bleibt beim Scrollen rechts stehen
   Wie bei Tandoori Mirch Masala.
   ========================================================= */

/* overflow:hidden kann position:sticky in Safari/Opera blockieren.
   clip verhindert horizontales Überlaufen, ohne einen Sticky-Container zu erzeugen. */
html,
body {
    overflow-x: clip !important;
}

/* Alle Eltern des Sticky-Warenkorbs müssen vertikal sichtbar bleiben. */
.page-template-page-speisekarte .site,
.page-template-page-speisekarte .site-content,
.page-template-page-speisekarte .ast-container,
.page-template-page-speisekarte #content,
.page-template-page-speisekarte #primary,
.page-template-page-speisekarte .content-area,
.page-template-page-speisekarte .site-main,
.page-template-page-speisekarte .tf-page-wrap,
.page-template-page-speisekarte .tf-menu-page-wrap,
.page-template-page-speisekarte .tf-quick-order-page,
.page-template-page-speisekarte .tf-quick-order-grid {
    overflow-y: visible !important;
}

/* Sticky direkt auf das rechte Grid-Element legen.
   Das ist stabiler als Sticky nur auf dem inneren Kasten. */
@media (min-width: 821px) {
    .page-template-page-speisekarte .tf-order-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 18px !important;
        align-self: start !important;
        height: fit-content !important;
        max-height: calc(100vh - 36px) !important;
        z-index: 45 !important;
    }

    .page-template-page-speisekarte.admin-bar .tf-order-sidebar,
    .admin-bar.page-template-page-speisekarte .tf-order-sidebar {
        top: 50px !important;
        max-height: calc(100vh - 68px) !important;
    }

    /* Innerer Kasten scrollt nur in sich selbst, falls Bestellung sehr lang wird. */
    .page-template-page-speisekarte .tf-order-sidebar-inner {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        max-height: calc(100vh - 36px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;
    }

    .admin-bar.page-template-page-speisekarte .tf-order-sidebar-inner {
        max-height: calc(100vh - 68px) !important;
    }
}

/* Unter 821px bleibt der Warenkorb wie bisher unter den Speisen. */
@media (max-width: 820px) {
    .page-template-page-speisekarte .tf-order-sidebar {
        position: relative !important;
        top: auto !important;
        max-height: none !important;
    }
    .page-template-page-speisekarte .tf-order-sidebar-inner {
        position: relative !important;
        top: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}


/* =========================================================
   MASTER v5.6 – Floating Warenkorb rechts unten + Drawer
   Funktioniert unabhängig davon, ob position:sticky greift.
   ========================================================= */

.tf-cart-float-v56 {
    position: fixed !important;
    right: 18px !important;
    bottom: 18px !important;
    z-index: 100050 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: linear-gradient(135deg,#f3cf69,#d5a13f);
    color: #160b03;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 14px 34px rgba(0,0,0,.40);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.tf-cart-float-v56:hover {
    transform: translateY(-1px);
}
.tf-cart-float-icon {
    font-size: 18px;
}
.tf-cart-float-count {
    min-width: 25px;
    height: 25px;
    padding: 0 6px;
    border-radius: 999px;
    background: #1b0d04;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.tf-side-heading-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tf-side-drawer-close {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(213,161,63,.30);
    background: rgba(255,255,255,.04);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.tf-cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100060;
    background: rgba(0,0,0,.58);
    opacity: 0;
    transition: opacity .18s ease;
}
.tf-cart-drawer-backdrop.is-visible {
    opacity: 1;
}

body.tf-cart-drawer-open {
    overflow: hidden !important;
}

/* Drawer: when user taps the floating button, cart is always fully visible */
.page-template-page-speisekarte .tf-order-sidebar.is-drawer-open {
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    left: auto !important;
    width: min(420px, calc(100vw - 24px)) !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 !important;
    z-index: 100070 !important;
    display: block !important;
}
.page-template-page-speisekarte .tf-order-sidebar.is-drawer-open .tf-order-sidebar-inner {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    overflow-y: auto !important;
    border-radius: 20px !important;
    box-shadow: 0 28px 80px rgba(0,0,0,.58);
}
.page-template-page-speisekarte .tf-order-sidebar.is-drawer-open .tf-side-drawer-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* The older bottom cart buttons should not duplicate the new one */
.page-template-page-speisekarte .tf-floating-cart,
.page-template-page-speisekarte .tf-mobile-order-jump {
    display: none !important;
}

/* Keep WhatsApp above/left enough so both buttons are usable */
.page-template-page-speisekarte .tf-whatsapp {
    right: 18px !important;
    bottom: 80px !important;
}

@media (max-width: 560px) {
    .tf-cart-float-v56 {
        right: 12px !important;
        bottom: 12px !important;
        min-height: 48px;
        padding: 0 14px;
    }
    .tf-cart-float-label {
        display: inline;
    }
    .page-template-page-speisekarte .tf-order-sidebar.is-drawer-open {
        top: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        width: calc(100vw - 16px) !important;
    }
    .page-template-page-speisekarte .tf-whatsapp {
        right: 12px !important;
        bottom: 72px !important;
    }
}


/* =========================================================
   MASTER v5.7 – EIN Warenkorb, ohne Floating-Buttons
   Der rechte Warenkorb bleibt IMMER sichtbar beim Scrollen.
   ========================================================= */

/* Alle alten / neuen Floating-Warenkorb-Buttons sicher ausblenden */
.page-template-page-speisekarte .tf-floating-cart,
.page-template-page-speisekarte .tf-mobile-order-jump,
.page-template-page-speisekarte .tf-mobile-cart-float,
.page-template-page-speisekarte .tf-cart-float-v56,
.page-template-page-speisekarte #tf-floating-cart-button,
.page-template-page-speisekarte #tf-cart-drawer-backdrop {
    display: none !important;
}

/* Keine Drawer-Logik mehr */
.page-template-page-speisekarte .tf-side-drawer-close,
.page-template-page-speisekarte .tf-side-heading-actions {
    display: none !important;
}
body.tf-cart-drawer-open {
    overflow: auto !important;
}

/* Desktop/Laptop:
   Grid reserviert rechts Platz.
   Der Warenkorb selbst ist FIXED und bleibt beim Scrollen neben den Speisen. */
@media (min-width: 821px) {
    .page-template-page-speisekarte .tf-quick-order-page {
        max-width: 1440px !important;
        margin: 0 auto !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    .page-template-page-speisekarte .tf-quick-order-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 350px !important;
        gap: 18px !important;
        align-items: start !important;
        overflow: visible !important;
    }

    /* Platzhalter bleibt in der rechten Grid-Spalte */
    .page-template-page-speisekarte .tf-order-sidebar {
        position: relative !important;
        width: 350px !important;
        max-width: 350px !important;
        min-width: 350px !important;
        height: 1px !important;
        align-self: start !important;
        z-index: 1 !important;
    }

    /* Das eigentliche Warenkorb-Fenster bleibt am Bildschirm */
    .page-template-page-speisekarte .tf-order-sidebar-inner {
        position: fixed !important;
        top: 84px !important;
        right: max(14px, calc((100vw - 1440px) / 2 + 16px)) !important;
        bottom: 14px !important;
        width: 350px !important;
        max-width: 350px !important;
        max-height: none !important;
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        z-index: 8000 !important;
        margin: 0 !important;
        border-radius: 18px !important;
    }

    /* Wenn WordPress-Adminleiste sichtbar ist, etwas tiefer starten */
    .admin-bar.page-template-page-speisekarte .tf-order-sidebar-inner {
        top: 116px !important;
    }
}

/* Mittlere Laptops: rechter Warenkorb etwas schmaler */
@media (min-width: 821px) and (max-width: 1250px) {
    .page-template-page-speisekarte .tf-quick-order-grid {
        grid-template-columns: minmax(0, 1fr) 320px !important;
        gap: 12px !important;
    }
    .page-template-page-speisekarte .tf-order-sidebar {
        width: 320px !important;
        max-width: 320px !important;
        min-width: 320px !important;
    }
    .page-template-page-speisekarte .tf-order-sidebar-inner {
        width: 320px !important;
        max-width: 320px !important;
        right: 12px !important;
    }
    .page-template-page-speisekarte .tf-quick-products {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet/Handy: Warenkorb wieder normal UNTER den Speisen */
@media (max-width: 820px) {
    .page-template-page-speisekarte .tf-quick-order-grid {
        display: block !important;
    }
    .page-template-page-speisekarte .tf-order-sidebar {
        position: relative !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: auto !important;
        margin-top: 18px !important;
    }
    .page-template-page-speisekarte .tf-order-sidebar-inner {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        overflow: visible !important;
    }
}
