/* Design: öffentliche Seite im Stil der bisherigen Wix-Seite, Admin-Bereich schlicht */
:root {
  --bg: #f6f7f9; --card: #fff; --text: #1d232b; --muted: #5d6773; --line: #dde1e6;
  --accent: #2557a7; --accent-dark: #1a3f7a; --danger: #b42318; --ok: #1f7a3f;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; font-size: 16px; }
a { color: var(--accent); }
h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 .8rem; }
h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.2rem 0 .5rem; }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* ---------- Öffentliche Seite (Design wie die bisherige Wix-Seite) ---------- */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/sora-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/space-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }
.pub {
  --p-bg: #000; --p-bg2: #19181c; --p-text: #fff; --p-accent: #ab96ff; --p-orange: #f79512; --p-line: rgba(255,255,255,.75); --p-thin: rgba(255,255,255,.28);
  --head: "Sora", "Space Grotesk", system-ui, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
  background: var(--p-bg); color: var(--p-text);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.5;
}
.pub a { color: inherit; }
.pub .wrap { max-width: 1072px; padding: 0 16px; }
.pub h1, .pub h2, .pub h3 { font-family: var(--head); font-weight: 700; }
.pub-main { flex: 1; width: 100%; }

/* Kopf */
.site-head .wrap { padding-top: 26px; }
.brand { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 24px; color: #fff; text-decoration: none; padding: 8px 8px 30px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 30px; border-top: 1px solid var(--p-line); padding: 7px 10px 0; }
.site-nav a { color: #fff; text-decoration: none; font-size: 16px; line-height: 30px; }
.site-nav a:hover, .site-nav a.active { color: var(--p-accent); }

/* Startseite */
.hero .hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 92px; padding-bottom: 60px; }
.hero h1 { font-size: 64px; line-height: 1.1; margin: 0; max-width: 780px; overflow-wrap: anywhere; }
.hero-logo { width: 173px; height: 173px; flex-shrink: 0; margin-right: 80px; }
.intro { background: var(--p-bg2); }
.intro .wrap { padding-top: 78px; padding-bottom: 56px; }
h2.big, h1.big { font-size: 64px; line-height: 1.1; margin: 0 0 40px; padding-left: 50px; overflow-wrap: anywhere; }
.subtitle { font-size: 22px; line-height: 1.5; margin: 0 0 40px; padding-left: 60px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; padding-left: 60px; max-width: 1040px; }
.cols p { margin: 0 0 24px; }
.cols a { color: var(--p-accent); }
.intro-photo { position: relative; width: 687px; max-width: 100%; aspect-ratio: 687 / 440; overflow: hidden; margin-top: 64px; }
/* Foto ist 20 % breiter als der Rahmen; pan.js schiebt es beim Scrollen von links nach rechts (wie bei Wix) */
.intro-photo img { position: absolute; top: 0; left: -10%; width: 120%; height: 100%; object-fit: cover; will-change: transform; }

/* Menükarte */
.menu-wrap { padding: 12px 16px 80px; }
.menu-title { font-size: 32px; line-height: 40px; margin: 12px 0 4px; padding-left: 50px; }
.menu-hours { margin: 0 0 40px; padding-left: 50px; font-size: 16px; line-height: 1.4; }
.menu-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: 0 60px; padding-left: 50px; }
.ms { margin-bottom: 56px; }
.ms-title { color: var(--p-orange); font-size: 24px; line-height: 30px; margin: 0 0 4px; }
.ms-note { margin: 0; font-size: 16px; line-height: 1.4; }
.ms-items { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--p-thin); }
.mi { padding: 20px 0; border-bottom: 1px solid var(--p-thin); }
.mi-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.mi-name { font-family: var(--head); font-weight: 700; font-size: 16px; line-height: 1.4; }
.mi-price { white-space: nowrap; }
.mi-desc { margin: 10px 0 0; line-height: 1.4; }
.mi-vars { list-style: none; margin: 10px 0 0; padding: 0; }
.mi-vars li { display: flex; justify-content: space-between; gap: 16px; line-height: 1.5; }

/* Kontakt */
.contact .wrap { padding-top: 40px; padding-bottom: 80px; }
.contact-head { text-align: center; max-width: 640px; margin: 0 auto 90px; }
.kicker { font-size: 22px; margin: 0; }
.contact-head h1.big { padding-left: 0; margin: 0 0 24px; }
.contact-intro { font-size: 18px; line-height: 1.8; margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 60px; padding-left: 70px; }
.cbox h2 { font-size: 20px; margin: 12px 0 10px; }
.cbox p { margin: 0 0 10px; font-size: 16px; }
.ico { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.social { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; }
.social:hover { background: var(--p-accent); }
.ico-insta { width: 22px; height: 22px; fill: none; stroke: #000; stroke-width: 2; }
.ico-insta .fill { fill: #000; stroke: none; }
.plain-link { text-decoration: none; }
.plain-link:hover { color: var(--p-accent); }
.btn-out { display: inline-block; margin-top: 6px; padding: 8px 18px; border: 1px solid #fff; border-radius: 999px; text-decoration: none; font-size: 15px; }
.btn-out:hover { background: #fff; color: #000; }

/* Rechtstexte */
.legal-wrap .wrap { padding-top: 40px; padding-bottom: 80px; }
.legal { max-width: 860px; padding-left: 50px; overflow-wrap: anywhere; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal h3 { font-size: 18px; margin: 22px 0 6px; }
.legal a { color: var(--p-accent); }

/* Fuß */
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 0; padding-bottom: 60px; }
.site-foot .wrap::before { content: ""; flex-basis: 100%; border-top: 1px solid var(--p-line); margin-bottom: 30px; }
.foot-title { font-family: var(--head); font-weight: 700; font-size: 30px; line-height: 1.1; text-decoration: none; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.foot-links a:hover { color: var(--p-accent); }

/* ---------- Einfache Seiten (Login, Fehler) ---------- */
.plain { display: flex; align-items: flex-start; justify-content: center; min-height: 100vh; padding: 10vh 16px 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.4rem; margin: 0 0 1.2rem; }
.narrow { width: 100%; max-width: 420px; }

/* ---------- Formulare ---------- */
.stack { display: flex; flex-direction: column; gap: .8rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }
label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
input, textarea, button, .btn { font: inherit; }
input:not([type=checkbox]):not([type=file]), textarea { width: 100%; padding: .6rem .7rem; border: 1px solid #c4cad1; border-radius: 8px; background: #fff; color: var(--text); font-weight: 400; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button, .btn { display: inline-block; padding: .55rem 1rem; border-radius: 8px; border: 1px solid #c4cad1; background: #fff; color: var(--text); cursor: pointer; text-decoration: none; line-height: 1.3; }
button:hover, .btn:hover { background: #eef1f5; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--accent-dark); }
button.danger { color: var(--danger); border-color: #e6b4ae; }
button.danger:hover { background: #fdecea; }
.small { padding: .3rem .6rem; font-size: .9rem; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.row form { margin: 0; }
.hint { color: var(--muted); font-size: .92rem; margin: .2rem 0; }
.flash { padding: .7rem 1rem; border-radius: 8px; margin: 0 0 1rem; }
.flash-ok { background: #e7f5ec; color: var(--ok); }
.flash-error { background: #fdecea; color: var(--danger); }
.ok { color: var(--ok); }
.warn-red { color: var(--danger); font-weight: 600; }

/* ---------- Admin ---------- */
.adm-head { background: #1d232b; color: #fff; position: sticky; top: 0; z-index: 5; }
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; max-width: 1000px; margin: 0 auto; padding: .6rem 16px; }
.adm-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.adm-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.adm-actions form { margin: 0; }
.btn-site { background: #f5b301; border-color: #f5b301; color: #1d232b; font-weight: 700; }
.btn-site:hover { background: #ffc933; }
.btn-link { background: transparent; border-color: #5d6773; color: #fff; }
.btn-link:hover { background: #2c3440; }
.adm-nav { max-width: 1000px; margin: 0 auto; }
.adm-nav-inner { display: flex; gap: .2rem; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.adm-nav-inner::-webkit-scrollbar { display: none; }
.adm-nav a { color: #c9d1db; text-decoration: none; padding: .55rem .8rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.adm-nav a:hover { color: #fff; }
.adm-nav a.active { color: #fff; border-bottom-color: #f5b301; font-weight: 600; }
.adm-main { max-width: 1000px; margin: 0 auto; padding: 1.5rem 16px 3rem; }
.help ul { margin: .6rem 0 0; padding-left: 1.2rem; }
details summary { cursor: pointer; font-weight: 600; }
.item-list { list-style: none; padding: 0; margin: 1rem 0; }
.item-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.log { background: #1d232b; color: #e6e9ed; padding: .8rem; border-radius: 8px; overflow-x: auto; font-size: .82rem; max-height: 400px; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .05em; overflow-wrap: anywhere; }
.qr { width: 220px; height: 220px; border: 1px solid var(--line); }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1rem; padding: 0; list-style: none; }
.codes code { font-size: 1.05rem; }

/* Menükarte im Admin */
select { font: inherit; padding: .55rem .6rem; border: 1px solid #c4cad1; border-radius: 8px; background: #fff; color: var(--text); font-weight: 400; max-width: 240px; }
.muted { color: var(--muted); font-weight: 400; }
.btn-strong { font-weight: 600; }
.add-row { margin-top: .8rem; }
.add-row input { flex: 1 1 220px; width: auto !important; }
.menu-list .mi-sum { display: flex; flex-direction: column; min-width: 0; flex: 1 1 260px; }
.menu-list .mi-sum small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-list li { scroll-margin-top: 120px; }
.menu-list li:target { background: #fff8e1; }
.is-hidden strong { color: var(--muted); text-decoration: line-through; }
.badge { font-style: normal; font-size: .78rem; background: #eef1f5; color: var(--muted); border-radius: 6px; padding: .05rem .4rem; margin-left: .3rem; }
.vars { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem 1rem; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.vars legend { font-weight: 600; padding: 0 .3rem; }
.var-row { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: .5rem; }

/* Statistik */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; align-items: start; margin-bottom: 1.2rem; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; }
.tile span { color: var(--muted); font-size: .9rem; }
.tile strong { font-size: 1.9rem; line-height: 1.2; }
.tile small { color: var(--muted); }
.tile-reset form { margin: 0; }
.chart { display: flex; gap: .5rem; height: 200px; margin-top: .6rem; }
.chart-scale { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: .8rem; text-align: right; min-width: 2rem; }
.chart-bars { flex: 1; display: flex; align-items: flex-end; gap: 2px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; }
.bar i { display: block; width: 100%; height: 0; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 0; }
.bar:hover i { background: #f5b301; }
.bar:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #1d232b; color: #fff; font-size: .78rem; padding: .25rem .5rem; border-radius: 6px; white-space: nowrap; z-index: 3; pointer-events: none; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; margin: .3rem 0 .8rem 2.5rem; }
.table { border-collapse: collapse; margin-top: .6rem; width: 100%; max-width: 420px; }
.table th, .table td { text-align: left; padding: .3rem .6rem; border-bottom: 1px solid var(--line); }

/* ---------- Handy ---------- */
@media (max-width: 900px) {
  .hero-logo { margin-right: 0; }
  .hero h1, h2.big, h1.big { font-size: 48px; }
  h2.big, .subtitle, .cols, .menu-title, .menu-hours, .menu-cols, .legal, .contact-grid { padding-left: 0; }
  .menu-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.45rem; }
  .brand { padding: 4px 0 18px; font-size: 18px; }
  .site-head .wrap { padding-top: 16px; }
  .site-nav { padding: 6px 0 0; gap: 0 24px; }
  .hero .hero-inner { padding-top: 36px; padding-bottom: 36px; gap: 14px; }
  .hero h1 { font-size: 32px; }
  .hero-logo { width: 104px; height: 104px; }
  .intro .wrap { padding-top: 44px; padding-bottom: 40px; }
  h2.big, h1.big { font-size: 36px; margin-bottom: 20px; }
  .subtitle { font-size: 19px; margin-bottom: 24px; }
  .cols { grid-template-columns: 1fr; }
  .intro-photo { margin-top: 24px; }
  .menu-title { font-size: 28px; }
  .menu-hours { margin-bottom: 28px; }
  .menu-cols { grid-template-columns: 1fr; }
  .ms { margin-bottom: 40px; }
  .contact-head { margin-bottom: 48px; }
  .kicker { font-size: 19px; }
  .contact-intro { font-size: 17px; line-height: 1.6; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-title { font-size: 22px; }
  .site-foot .wrap { padding-bottom: 40px; }
  .card { padding: 1rem; }
  .adm-title { font-size: .92rem; }
  .adm-actions button { padding: .35rem .55rem; font-size: .82rem; }
  .adm-nav-inner { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .codes { grid-template-columns: 1fr; }
}
