/* ============================================================
   Taverna am Fluss – Reservierung & Admin
   Apple-Look · Systemschrift · Tiefes Grün, kein Gelb
   ============================================================ */
:root {
  --parchment:  #f3ead4;
  --parchment-2:#ece0c2;
  --cream:      #fbf6e9;
  --white:      #ffffff;
  --green-950:  #1c240f;
  --green-900:  #232d13;
  --olive:      #3d4c1f;
  --olive-deep: #2a3414;
  --olive-mid:  #566a2c;
  --olive-soft: #869056;
  --olive-tint: #edf0e2;
  --accent:     #46602a;
  --accent-soft:#6f7f4a;
  --accent-bright:#a9c491;
  --ink:        #2a2716;
  --ink-soft:   #56502f;
  --ink-faint:  #8a8368;
  --line:       rgba(61, 76, 31, .20);
  --line-soft:  rgba(61, 76, 31, .12);
  --ok:         #4f6a2c;
  --ok-bg:      #e4ecd6;
  --warn:       #8a6a1f;
  --warn-bg:    #f2e9d2;
  --danger:     #9c3b28;
  --danger-bg:  #f2e0da;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.32, .5, 1);
  --sh-sm: 0 1px 2px rgba(28,36,15,.05), 0 8px 24px -18px rgba(28,36,15,.32);
  --sh-md: 0 2px 6px rgba(28,36,15,.05), 0 24px 60px -32px rgba(28,36,15,.35);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--parchment);
  line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--olive); }
h1 { font-family: var(--display); font-weight: 700; letter-spacing: -.022em; color: var(--olive); line-height: 1.05; margin: 0; }
h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; color: var(--olive); margin: 0; }
strong { font-weight: 600; }

/* -------- Sanftes Einblenden beim Laden -------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.res-hero, .res-card, .res-alert, .ad-stats, .ad-section, .ad-list, .ad-empty, .ad-login-wrap > * {
  animation: riseIn .7s var(--ease) both; }
.res-card { animation-delay: .12s; }
.ad-list { animation-delay: .1s; }
@media (prefers-reduced-motion: reduce) {
  .res-hero, .res-card, .res-alert, .ad-stats, .ad-section, .ad-list, .ad-empty, .ad-login-wrap > * { animation: none; }
}

/* -------- Logo -------- */
.logo-coin { display: block; object-fit: contain; }

/* ============================================================
   Öffentliche Reservierungsseite
   ============================================================ */
.res-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(760px, 92vw); margin: 0 auto; padding: 1.5rem 0 .5rem; }
.res-top .logo-coin { width: 46px; height: 46px; }
.res-back { font-size: .92rem; font-weight: 500; color: var(--olive-mid); }
.res-back:hover { color: var(--olive); }

.res-wrap { width: min(760px, 92vw); margin: 0 auto; padding: 1rem 0 2rem; }

.res-hero { text-align: center; padding: 2rem 0 2.4rem; }
.res-hero .logo-coin { width: 96px; height: 96px; margin: 0 auto 1.4rem; }
.res-eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .22em; font-size: .74rem;
  font-weight: 600; color: var(--accent); margin: 0 0 .8rem; }
.res-hero h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.res-lead { color: var(--ink-soft); font-size: 1.06rem; max-width: 46ch; margin: 1rem auto 0; }
.res-rule { display: none; }

/* -------- Karte / Formular -------- */
.res-card { background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: clamp(1.6rem, 4vw, 2.8rem); }
.res-form { display: flex; flex-direction: column; gap: 1.4rem; }
.res-row { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.res-row > .res-field { flex: 1 1 190px; }
.res-row > .res-field-sm { flex: 0 1 120px; }
.res-field { display: flex; flex-direction: column; gap: .45rem; }
.res-field label { font-size: .84rem; font-weight: 600; color: var(--olive); }
.res-opt { color: var(--ink-faint); font-weight: 400; }

.res-field input, .res-field select, .res-field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: .85rem .95rem; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.res-field textarea { resize: vertical; min-height: 3.4rem; }
.res-field input:focus, .res-field select:focus, .res-field textarea:focus {
  outline: none; border-color: var(--olive-soft); box-shadow: 0 0 0 4px rgba(134,144,86,.18); }
.res-hint { font-size: .8rem; color: var(--ink-faint); }
.res-err { font-size: .84rem; color: var(--danger); font-weight: 500; }
.res-alert { background: var(--danger-bg); border: 1px solid #e2b8ab; color: var(--danger);
  border-radius: var(--r-md); padding: .85rem 1.1rem; margin: 0 auto 1.2rem; width: min(760px,92vw); font-weight: 500; }
.res-fineprint { font-size: .82rem; color: var(--ink-faint); margin: 0; line-height: 1.5; }
.res-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -------- Buttons -------- */
.res-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  padding: .9rem 1.8rem; border-radius: 999px; border: 1.5px solid var(--olive); color: var(--olive);
  background: transparent; cursor: pointer; text-align: center;
  transition: transform .34s var(--ease-spring), background .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease); }
.res-btn:hover { transform: translateY(-1px); background: var(--olive-tint); color: var(--olive); }
.res-btn-primary { background: var(--olive); color: var(--parchment); border-color: var(--olive);
  box-shadow: 0 6px 16px -8px rgba(28,36,15,.5); align-self: flex-start; }
.res-btn-primary:hover { background: var(--olive-deep); color: var(--white); }
.res-btn-ghost { border-color: var(--line); color: var(--olive-mid); }
.res-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* -------- Erfolg -------- */
.res-success { text-align: center; }
.res-success h1 { margin-bottom: .5rem; }
.res-success .res-lead { color: var(--ink); }
.res-check { width: 60px; height: 60px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--olive);
  display: grid; place-items: center; color: var(--parchment); font-size: 1.7rem;
  animation: checkPop .6s var(--ease-spring) .25s both; }
@keyframes checkPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

.res-foot { width: min(760px, 92vw); margin: 2.5rem auto 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft);
  text-align: center; color: var(--ink-faint); font-size: .88rem; }

/* ============================================================
   Admin
   ============================================================ */
.admin-body { background: var(--parchment); }

.ad-topbar { background: rgba(251,246,233,.82); backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 20; }
.ad-topbar-in { width: min(980px, 94vw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0; }
.ad-brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; }
.ad-brand .logo-coin { width: 40px; height: 40px; }
.ad-brand-txt { font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; color: var(--olive); }
.ad-nav { display: flex; align-items: center; gap: 1.3rem; }
.ad-nav a { font-size: .92rem; font-weight: 500; color: var(--olive-mid); }
.ad-nav a:hover { color: var(--olive); }
.ad-logout { border: 1.5px solid var(--line); color: var(--olive) !important; padding: .45rem 1rem; border-radius: 999px; }
.ad-logout:hover { background: var(--olive); color: var(--white) !important; border-color: var(--olive); }

.ad-main { width: min(980px, 94vw); margin: 0 auto; padding: 2.2rem 0 4rem; }

/* Kennzahlen */
.ad-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.6rem; }
.ad-stat { background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 1.15rem 1.3rem; }
.ad-stat-num { display: block; font-family: var(--display); font-weight: 700; letter-spacing: -.02em;
  font-size: 2.2rem; color: var(--olive); line-height: 1; }
.ad-stat-lbl { display: block; margin-top: .4rem; font-size: .8rem; font-weight: 500; color: var(--ink-faint); }

/* Abschnitts-Überschrift */
.ad-section { display: flex; align-items: baseline; gap: .7rem; margin: 0 0 1.1rem; }
.ad-section h2 { font-size: 1.5rem; }
.ad-section.sub { margin-top: 2.8rem; }
.ad-section.sub h2 { font-size: 1.2rem; color: var(--olive-mid); }
.ad-pill { font-size: .74rem; font-weight: 600; background: var(--olive); color: var(--parchment);
  border-radius: 999px; padding: .12rem .62rem; }

/* Reservierungs-Liste */
.ad-list { display: flex; flex-direction: column; gap: .8rem; }
.ad-item { display: grid; grid-template-columns: 68px 1fr auto; gap: 1.2rem; align-items: center;
  background: var(--cream); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 1rem 1.2rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ad-item:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.ad-item.st-storniert { opacity: .55; }

.ad-date { text-align: center; background: var(--olive-tint); border-radius: var(--r-sm); padding: .55rem .2rem; }
.ad-item.st-neu .ad-date { background: var(--olive); }
.ad-item.st-neu .ad-date-d, .ad-item.st-neu .ad-date-m { color: var(--parchment); }
.ad-item.st-neu .ad-date-wd { color: rgba(243,234,212,.75); }
.ad-date-d { display: block; font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: var(--olive); line-height: 1; }
.ad-date-m { display: block; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--olive-mid); margin-top: .2rem; }
.ad-date-wd { display: block; font-size: .68rem; color: var(--ink-faint); margin-top: .1rem; }

.ad-info { min-width: 0; }
.ad-info-top { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .7rem; margin-bottom: .25rem; }
.ad-time { font-weight: 600; color: var(--ink); }
.ad-guests { color: var(--ink-soft); font-size: .95rem; }
.ad-name { font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; color: var(--olive); line-height: 1.2; }
.ad-contact { font-size: .9rem; color: var(--ink-soft); margin-top: .1rem; }
.ad-contact a { color: var(--accent); }
.ad-note { font-size: .9rem; color: var(--ink-soft); margin-top: .35rem; font-style: italic;
  padding-left: .7rem; border-left: 2px solid var(--line); }

.ad-badge { font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.b-neu        { background: var(--warn-bg); color: var(--warn); }
.b-bestaetigt { background: var(--ok-bg); color: var(--ok); }
.b-storniert  { background: var(--danger-bg); color: var(--danger); }

.ad-actions { display: flex; flex-direction: column; gap: .4rem; align-items: stretch; }
.ad-actions form { margin: 0; }
.ad-mini { width: 100%; font-family: var(--sans); font-size: .78rem; font-weight: 500; padding: .45rem .85rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); cursor: pointer;
  white-space: nowrap; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.ad-mini.ok:hover      { background: var(--ok);     border-color: var(--ok);     color: var(--white); }
.ad-mini.warn:hover    { background: var(--warn);   border-color: var(--warn);   color: var(--white); }
.ad-mini.neutral:hover { background: var(--olive-mid); border-color: var(--olive-mid); color: var(--white); }
.ad-mini.danger        { color: var(--danger); }
.ad-mini.danger:hover  { background: var(--danger); border-color: var(--danger); color: var(--white); }

.ad-empty { background: var(--cream); border: 1px dashed var(--line); border-radius: var(--r-md);
  padding: 2.4rem; text-align: center; color: var(--ink-faint); }

/* Login */
.ad-login-wrap { width: min(420px, 92vw); margin: 0 auto; padding: 3.5rem 0; text-align: center; }
.ad-login-wrap .logo-coin { width: 96px; height: 96px; margin: 0 auto 1.4rem; }
.ad-login-wrap h1 { font-size: 2.2rem; margin-bottom: .3rem; }
.ad-login-card { margin-top: 1.8rem; text-align: left; }

/* Responsive */
@media (max-width: 760px) {
  .ad-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .res-row > .res-field, .res-row > .res-field-sm { flex: 1 1 100%; }
  .res-btn-primary { align-self: stretch; width: 100%; }
  .ad-item { grid-template-columns: 56px 1fr; }
  .ad-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .ad-mini { width: auto; }
  .ad-brand-txt { display: none; }
  .ad-nav { gap: .8rem; }
  .ad-logout { padding: .4rem .8rem; }
}
