/* Core layout + cards */
:root{
  --rewe-red:#b00000;
  --rewe-red-2:#910000;
  --bg:#f5f7fb;
  --card-r:16px;
  --shadow:0 1px 0 rgba(0,0,0,.05),0 12px 24px rgba(0,0,0,.06);
}

*{box-sizing:border-box}

body.rewe-body{
  margin:0;
  font-family:Segoe UI,ui-sans-serif,system-ui,-apple-system,Roboto,Arial,Inter,Helvetica;
  background:var(--bg);
  color:#222;
}

.container{
  width:min(1240px,92vw);
  margin:0 auto;
}

.site-header{
  background:#fff;
  box-shadow:var(--shadow);
}

.site-header .container{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
}

.site-header .container.header-inner{
  justify-content:space-between;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
}

.brand .badge{
  display:inline-flex;
  width:22px;
  height:22px;
  border-radius:9999px;
  background:#fef0f0;
  color:#d40500;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

/* Grid */
.grid-cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

@media (max-width:1100px){
  .grid-cards{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:780px){
  .grid-cards{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:520px){
  .grid-cards{grid-template-columns:1fr;}
}

/* Card */
.card{
  background:#fff;
  border-radius:var(--card-r);
  box-shadow:var(--shadow);
  padding:12px;
}

.card .thumb .cover{
  width:100%;
  height:240px;
  object-fit:cover;
  border-radius:12px;
}

.card-title{
  font-size:16px;
  margin:10px 0 6px;
}

.getraenk-card .card-title a{
  text-decoration:none;
  font-weight:400;
}

/* Button: dark red */
.btn-more-info{
  display:flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 16px;
  border-radius:12px !important;
  font-weight:400;
  text-decoration:none;
  letter-spacing:.2px;
  background:#b00000 !important;
  color:#fff !important;
  box-shadow:none !important;
  width:fit-content;
  margin:10px auto 8px;
  transition:none;
}

/* Chips */
.chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-start;
  margin-top:6px;
}

.chip-label{
  display:inline-flex;
  align-items:center;
  gap:.45em;
  font-weight:400;
  font-size:11.5px;
  padding:6px 12px;
  border-radius:9999px;
  background:#f6f6f7;
  color:#444;
  box-shadow:0 0 0 1px rgba(0,0,0,.06) inset;
}

.chip--weinfreunde{
  color:#52234a;
  background:#faf7f9;
  box-shadow:0 0 0 1px #52234a33 inset;
}

.chip--vegan{
  color:#8a8100;
  background:#fffbe6;
  box-shadow:0 0 0 1px #bfb60033 inset;
}

.chip--bio{
  color:#2e6a19;
  background:#f6fbf4;
  box-shadow:0 0 0 1px #71bf4440 inset;
}

.chip--alkoholfrei{
  color:#0a4aa8;
  background:#f2f7ff;
  box-shadow:0 0 0 1px #0072ff33 inset;
}

/* Single Produktseite */
.single-getraenk{margin:24px 0 40px;}
.single-topbar{margin-bottom:8px;}
.single-back-link{font-size:14px;text-decoration:none;color:#111;}

.single-layout{
  display:grid;
  grid-template-columns:minmax(260px,40%) minmax(0,60%);
  gap:28px;
  align-items:flex-start;
}

@media (max-width:900px){
  .single-layout{grid-template-columns:1fr;gap:18px;}
}

.single-media{
  background:#fff;
  border-radius:16px;
  box-shadow:0 6px 20px rgba(0,0,0,.06);
  padding:16px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.single-image{
  width:70%;
  height:auto;
  border-radius:14px;
  object-fit:cover;
  display:block;
}

.single-main{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.single-chips-top{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:4px;
}

.chip--kategorie{
  background:#ffe6e6;
  color:#b30000;
  font-size:12px;
  font-weight:500;
  border-radius:999px;
  padding:4px 10px;
}

.single-title{
  font-size:24px;
  margin:0 0 4px;
}

.single-subtitle{
  margin:0 0 8px;
  font-size:14px;
  color:#555;
}

.single-intro{
  font-size:14px;
  color:#444;
}

.single-grid{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:8px;
}

.single-box{
  background:#fff;
  border-radius:12px;
  border:1px solid #e8edf2;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
  padding:14px 16px;
}

.single-box-title{
  margin:0 0 10px;
  font-size:15px;
  font-weight:600;
}

.single-dl{margin:0;}
.single-dl-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  font-size:14px;
  margin-bottom:4px;
}

.single-dl-row dt{
  color:#666;
}

.single-dl-row dd{
  margin:0;
  font-weight:500;
}

.single-tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.chip--taste{
  background:#ffe6e6;
  color:#b30000;
  font-size:12px;
  font-weight:500;
  padding:4px 10px;
  border-radius:999px;
}

.chip--food{
  background:#e9f8e9;
  color:#1b7a2f;
  font-size:12px;
  font-weight:500;
  padding:4px 10px;
  border-radius:999px;
}

.single-awards{
  margin:0;
  padding-left:18px;
  font-size:14px;
  color:#444;
}

.single-footer-actions{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
}

/* Fehler melden Button */
.btn-error{
  flex:1 0 220px;
  display:flex;
  align-items:center;
  justify-content:center;
  height:40px;
  border-radius:8px;
  background:#e10600;
  color:#fff;
  text-decoration:none;
  font-weight:500;
}

/* zurück */
.btn-back-list{
  flex:0 0 auto;
  align-items:center;
  display:flex;
  justify-content:center;
  height:40px;
  border-radius:8px;
  border:1px solid #d0d5dd;
  padding:0 16px;
  text-decoration:none;
  color:#111;
  font-size:14px;
}

.single-error-hint{margin-top:16px;}

/* Erfolgsbox nach Absenden (globale Box) */
.single-error-success{
  margin-top:12px;
  padding:10px 14px;
  border-radius:12px;
  background:#e8f7e8;
  border:1px solid #22c55e;
  color:#166534;
  font-size:14px;
  line-height:1.4;
}

/* Inline Support-Ticket */
.single-getraenk .single-error-hint{
  max-width:1120px;
  margin:24px auto 40px;
}

.single-getraenk .single-error-hint .rewe-ticket-form-wrapper{
  background:#fff;
  border-radius:18px;
  box-shadow:0 20px 45px rgba(27,32,50,.08);
  padding:24px 24px 20px;
  border:1px solid #e0e4ec;
}

/* Felder */
.single-getraenk .rewe-ticket-form label{
  font-size:14px;
  color:#444;
}

.single-getraenk .rewe-ticket-form input[type=text],
.single-getraenk .rewe-ticket-form input[type=file],
.single-getraenk .rewe-ticket-form textarea{
  width:100%;
  border-radius:10px;
  border:1px solid #e0e0e0;
  padding:9px 11px;
  font-size:14px;
  background:#f9fafb;
}

.single-getraenk .rewe-ticket-form textarea{
  min-height:140px;
  resize:vertical;
}

/* Absenden Button — wie Fehler melden, ohne Schatten */
.single-getraenk .single-error-hint .rewe-ticket-actions button[type="submit"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  min-height:40px;
  border-radius:8px;
  border:none;
  background:#e10600 !important;
  color:#fff !important;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  box-shadow:none !important;
}

.single-getraenk .single-error-hint .rewe-ticket-actions button[type="submit"]:hover{
  background:#c30400 !important;
}

/* Mobile */
@media (max-width:700px){
  .single-getraenk .single-error-hint{
    margin:18px 12px 32px;
  }
  .single-getraenk .single-error-hint .rewe-ticket-form-wrapper{
    padding:18px 16px 18px;
  }
}

/* ============================= */
/* Ticket-Status Badges (Meine Tickets) */
/* ============================= */

.rewe-my-tickets-table-wrapper .rewe-ticket-status-badge{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  padding:4px 12px !important;      /* mehr Innenabstand */
  min-width:120px !important;       /* genug Platz für "In Bearbeitung" */
  border-radius:9999px !important;
  font-size:13px !important;
  font-weight:500;
  line-height:1.1;
  white-space:nowrap;
}

/* Farben – falls nicht schon gesetzt */
.rewe-my-tickets-table-wrapper .rewe-ticket-status-badge.badge-open{
  background:#e5e7eb;
  color:#374151;
}

.rewe-my-tickets-table-wrapper .rewe-ticket-status-badge.badge-progress{
  background:#e0edff;
  color:#1d4ed8;
}

.rewe-my-tickets-table-wrapper .rewe-ticket-status-badge.badge-closed{
  background:#e7f7e7;
  color:#166534;
}
