/* ==========================================================
   Schwab-Zettl – Feinkost & Partyservice
   Schrift: Barlow Light (lokal eingebunden, DSGVO-konform)
   ========================================================== */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/barlow-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
}

:root {
  --green:  #4eb50e;
  --orange: #f2870c;
  --grey:   #767676;
  --line:   #b8b8b8;
  --text:   #000;
  --bg:     #fff;
  --wrap:   980px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: .015em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* Farbakzente */
.green  { color: var(--green); }
.orange { color: var(--orange); }

h1, h2, h3 {
  font-weight: 300;
  margin: 0 0 .7em;
  line-height: 1.25;
  letter-spacing: .02em;
}
h1 { font-size: 22px; color: var(--green); }
h2 { font-size: 22px; color: var(--green); }
h1 .black { color: var(--text); }

p { margin: 0 0 1.1em; }

/* ---------- Kopfbereich ---------- */
.site-header { padding-top: 0; }
.header-inner {
  display: flex;
  align-items: flex-end;
  position: relative;
}
.logo { flex: 0 0 auto; margin-left: -6px; }
.logo img { width: 238px; height: auto; }

.mainnav { flex: 1 1 auto; margin-left: 28px; }
.mainnav ul {
  list-style: none;
  margin: 0; padding: 0 0 2px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--grey);
}
.mainnav li { flex: 1 1 0; text-align: center; }
.mainnav li:last-child { text-align: right; }
.mainnav a {
  display: inline-block;
  padding: 0 4px 3px;
  text-decoration: none;
  color: var(--grey);
  font-size: 15px;
  letter-spacing: .04em;
  transition: color .2s;
}
.mainnav a:hover { color: var(--green); }
.mainnav a.active { color: var(--text); }

.nav-toggle { display: none; }

/* ---------- Inhalt ---------- */
.site-main { flex: 1 0 auto; padding-top: 48px; padding-bottom: 60px; }

.col-text { max-width: 520px; padding-left: 40px; }
.col-wide { max-width: 860px; padding-left: 40px; }

.rule-orange {
  border: 0;
  border-top: 1px solid var(--orange);
  width: 255px;
  margin: 34px 0 30px;
}
.rule-orange.full   { width: 100%; }
.rule-orange.double { border-top: 3px double var(--orange); height: 0; border-top-width: 4px; }

/* Startseite: Hinweis Saucen-Bestellung */
.home-teaser a { color: var(--orange); text-decoration: none; border-bottom: 1px solid var(--orange); transition: color .2s, border-color .2s; }
.home-teaser a:hover { color: var(--green); border-color: var(--green); }

/* Mittagessen: Spalten */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 290px));
  column-gap: 30px;
  row-gap: 18px;
  margin: 12px 0 0;
}
.menu-grid h2 { margin-bottom: .35em; }
.menu-grid ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Formulare (allgemein) ---------- */
label { display: block; font-size: 13px; color: #555; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #444;
  border-radius: 0;
  padding: 10px 2px 6px;
  outline: none;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); }
select { -webkit-appearance: none; appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234eb50e' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 6px center;
  border-bottom-color: transparent; color: var(--grey); }
select.chosen { color: var(--text); }
.req::after { content: " *"; }

.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

.btn {
  font: inherit;
  font-weight: 400;
  font-size: 14px;
  color: var(--orange);
  background: #fff;
  border: 2px solid var(--orange);
  padding: 8px 12px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--orange); color: #fff; }

.notice {
  border-left: 3px solid var(--green);
  padding: 10px 14px;
  margin: 0 0 28px;
  background: #f6fbf2;
}
.notice.error { border-left-color: var(--orange); background: #fff7ee; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice.warn { border-left-color: var(--orange); background: #fff7ee; padding: 14px 18px; }
.notice.warn p { margin: 0 0 .7em; }
.dup-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 12px; }
.dup-cancel { font-size: 14px; color: var(--grey); }
.readonly-field { padding: 10px 2px 6px; border-bottom: 1px solid #ddd; color: #333; min-height: 40px; overflow-wrap: anywhere; }
.storno-box h2 { color: var(--orange); font-size: 21px; margin-bottom: .4em; }
.storno-box p { font-size: 14px; }
.storno-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #000; margin: 14px 0 16px; cursor: pointer; }
.storno-check.field-error { color: var(--orange); }
.field-error input, .field-error select { border-bottom-color: var(--orange); }

/* ---------- Saucen-Bestellung ---------- */
.order { max-width: 700px; margin-left: 40px; }
.order-intro { font-size: 14px; color: #333; }
.order-intro p { margin-bottom: 1em; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 22px;
  row-gap: 22px;
  margin: 10px 0 0;
}
.contact-grid > div { padding-right: 6px; }

.order-section { margin-top: 6px; }
.order-head, .order-row {
  display: grid;
  grid-template-columns: 190px 1fr 158px 150px;
  align-items: center;
}
.order-section.single .order-head,
.order-section.single .order-row { grid-template-columns: 1fr 158px 150px; }

.order-head { margin: 0 0 14px; }
.order-head h2 { color: var(--orange); font-size: 21px; margin: 0; grid-column: span 2; }
.order-head .size { font-size: 12.5px; color: #333; white-space: nowrap; }
.order-row > span:nth-child(n+3) input { margin-left: 0; }

.order-row {
  border-bottom: 1px solid var(--green);
  padding: 4px 0;
  min-height: 33px;
  font-size: 13.5px;
}
.order-row:last-child { border-bottom: 0; }
.order-row .desc { color: #333; }
.order-row input[type=number] {
  font: inherit;
  font-size: 13.5px;
  width: 56px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 3px 2px;
  margin-left: 8px;
  -moz-appearance: textfield;
}
.order-row input[type=number]:focus { outline: none; border-bottom-color: var(--orange); }
.order-row input[type=number]:not(:placeholder-shown),
.order-row input.has-value { color: var(--text); font-weight: 400; }
.order-row input::-webkit-outer-spin-button,
.order-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.order-sum {
  margin: 26px 0 0;
  font-size: 13.5px;
  color: #333;
  text-align: center;
  min-height: 1.4em;
}
.order-sum strong { font-weight: 400; color: var(--green); }
.order-submit { text-align: center; margin-top: 18px; }
.order-foot { margin-top: 50px; font-size: 13.5px; }

/* Bestätigung */
.summary { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 20px; }
.summary th { text-align: left; font-weight: 400; color: var(--orange); border-bottom: 1px solid var(--orange); padding: 6px 4px; }
.summary td { border-bottom: 1px solid var(--green); padding: 6px 4px; }
.summary td.num, .summary th.num { text-align: right; }

/* ---------- Kontakt ---------- */
.contact-head { border-bottom: 1px solid var(--grey); padding-bottom: 6px; margin-bottom: 30px; }
.contact-head h1 { font-size: 24px; margin: 0; }
.contact-layout {
  display: grid;
  grid-template-columns: 160px 150px 210px 1fr;
  column-gap: 12px;
  font-size: 13px;
}
.contact-info { color: var(--grey); grid-column: 2; }
.contact-info .dash { width: 22px; border-top: 1px solid var(--grey); margin: 18px 0; }
.contact-form-fields > div { margin-bottom: 14px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  border: 1px solid #999; padding: 6px 8px; font-size: 13px;
}
.contact-form textarea { height: 132px; resize: vertical; }
.contact-form .btn-grey {
  font: inherit; font-size: 13px;
  background: #b3b3b3; color: #000; border: 0; padding: 6px 16px; cursor: pointer; float: right;
  transition: background .2s;
}
.contact-form .btn-grey:hover { background: var(--green); color: #fff; }

/* Karte */
.map-wrap { margin: 34px 0 0 172px; height: 283px; position: relative; background: #f4f4f4; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent {
  height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 20px; gap: 8px; font-size: 14px;
  background:
    linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)),
    repeating-linear-gradient(45deg, #e9e9e9 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, #e9e9e9 0 1px, transparent 1px 22px);
}
.map-consent[hidden] { display: none; }
.map-consent p { margin: 0; }
.map-note { font-size: 12px; color: var(--grey); max-width: 460px; }
.map-remember { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--grey); margin: 0; cursor: pointer; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 760px; padding-left: 40px; font-size: 14px; }
.legal h1 { color: var(--grey); font-size: 25px; }
.legal h2 { font-size: 17px; color: var(--text); font-weight: 400; margin-top: 1.8em; }
.legal ul { padding-left: 20px; }

/* ---------- Fußbereich ---------- */
.site-footer { padding: 0 0 28px; }
.footer-inner {
  border-top: 1px solid var(--grey);
  padding-top: 8px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.1fr 1fr .6fr;
  font-size: 13px;
  letter-spacing: .03em;
  line-height: 1.5;
}
.f-label { display: block; text-decoration: underline; text-underline-offset: 2px; }
.f-col a { text-decoration: underline; }
.f-col a:hover { color: var(--green); }
.f-right { text-align: right; }
.hours { border-collapse: collapse; }
.hours td { padding: 0 18px 0 0; vertical-align: top; }
.f-special { display: block; margin-top: 6px; color: var(--orange); }


/* ---------- Verwaltung ---------- */
.admin { font-size: 14px; }
.admin-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--grey); margin-bottom: 24px; }
.admin h2 { color: var(--orange); font-size: 19px; margin: 34px 0 10px; }
.atable { width: 100%; border-collapse: collapse; }
.atable th { text-align: left; font-weight: 400; font-size: 12.5px; color: var(--grey); border-bottom: 1px solid var(--orange); padding: 6px 6px; }
.atable td { border-bottom: 1px solid #d9eccc; padding: 8px 6px; vertical-align: top; }
.atable .num { text-align: right; }
.atable small { font-size: 12px; }
.atable tr.storno td { color: #999; text-decoration: line-through; }
.atable tr.storno td.row-actions, .atable tr.storno td:nth-child(5) { text-decoration: none; }
.muted { color: var(--grey); }
.admin-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.admin-actions .btn { text-decoration: none; display: inline-block; }
.btn.small { font-size: 12.5px; padding: 4px 8px; white-space: nowrap; }
.row-actions form { margin: 0 0 6px; }
.linkbtn { font: inherit; font-size: 12px; background: none; border: 0; padding: 0; color: var(--grey); text-decoration: underline; cursor: pointer; }
.filters { display: flex; gap: 24px; margin-bottom: 8px; flex-wrap: wrap; }
.filters label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.filters select { width: auto; padding: 4px 22px 4px 2px; border-bottom: 1px solid #ccc; color: var(--text); }
@media (max-width: 760px) {
  .atable.orders thead { display: none; }
  .atable.orders tr { display: block; border-bottom: 1px solid var(--orange); padding: 8px 0; }
  .atable.orders td { display: block; border: 0; padding: 2px 0; }
}

/* ---------- Cookie-Hinweis ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #000; color: #fff;
  display: flex; align-items: center; gap: 24px;
  padding: 16px 56px 16px 24px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400; font-size: 14px; line-height: 1.45; letter-spacing: 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,.15);
  animation: cookie-in .35s ease-out;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1 1 auto; max-width: 760px; }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-ok {
  flex: 0 0 auto; font: inherit; cursor: pointer;
  background: #fff; color: #000; border: 1px solid #fff; padding: 8px 22px;
  transition: background .2s, color .2s;
}
.cookie-ok:hover { background: var(--green); border-color: var(--green); color: #fff; }
.cookie-x {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px;
}
@keyframes cookie-in { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .order-head, .order-row { grid-template-columns: 1fr 1fr 90px 90px; }
  .order-head h2 { grid-column: 1 / -1; margin-bottom: 8px; }
  .order-head .size:first-of-type { grid-column: 3; }
  .order-section.single .order-head h2 { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .header-inner { align-items: center; padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--grey); }
  .logo img { width: 170px; }
  .nav-toggle {
    display: block; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 24px; height: 1px; background: #000; margin: 6px 0; }
  .mainnav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: #fff; z-index: 10;
    display: none; border-bottom: 1px solid var(--grey);
  }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; border: 0; padding: 8px 20px 14px; }
  .mainnav li, .mainnav li:last-child { text-align: left; }
  .mainnav a { padding: 8px 0; font-size: 17px; }

  .site-main { padding-top: 30px; }
  .col-text, .col-wide, .legal { padding-left: 0; }
  .order { margin-left: 0; }
  .menu-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr 70px 70px; font-size: 14px; }
  .order-row .desc { display: none; }
  .order-head { grid-template-columns: 1fr 70px 70px; }
  .order-head .size { font-size: 11px; white-space: normal; line-height: 1.2; }
  .order-head .size:first-of-type { grid-column: 2; }
  .order-section.single .order-head, .order-section.single .order-row { grid-template-columns: 1fr 80px; }
  .order-section.single .order-head .size:first-of-type { grid-column: 2; }
  .contact-layout { grid-template-columns: 1fr; row-gap: 20px; }
  .contact-info { grid-column: auto; }
  .map-wrap { margin-left: 0; height: 300px; }
  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 44px 18px 18px; font-size: 13px; }
  .cookie-x { top: 14px; transform: none; }
  .f-copy { grid-column: 1 / -1; }
  .f-right { text-align: left; }
}

@media print {
  .site-header nav, .nav-toggle, .site-footer, .cookie-bar { display: none; }
}
