/* ── KüchenKumpel – Gemeinsames Stylesheet ── */

/* ── Custom Properties ── */
:root {
  --bg:           #f7ede2;
  --card:         #fffcf7;
  --border:       #e8d4b4;
  --shadow:       0 4px 28px rgba(90,45,15,0.10);
  --primary:      #c15a38;
  --primary-dark: #9e3e22;
  --danger:       #c0392b;
  --secondary:    #5c7026;
  --accent:       #d4924a;
  --sea:          #1e6f8c;
  --text:         #2d1a0f;
  --text-muted:   #8a6e56;
  --radius:       14px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image: url('bg.svg');
  background-size: 560px 560px;
  background-repeat: repeat;
  color: var(--text);
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
}

/* ── Site Header ── */
.site-header {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 2.2rem 1rem 1.6rem;
  background: linear-gradient(160deg, #c15a38 0%, #8b3a20 55%, #5c2010 100%);
  box-shadow: 0 4px 18px rgba(90,30,10,0.22);
}

.site-subtitle {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255,252,247,0.72);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

/* ── Sign-Out Button ── */
#signout-btn {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  background: rgba(255,252,247,0.14) !important;
  border: 1.5px solid rgba(255,252,247,0.38) !important;
  color: rgba(255,252,247,0.88) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 0.42rem 1.1rem !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  letter-spacing: 0.04em;
  margin: 0 !important;
  display: none;
}

#signout-btn:hover {
  background: rgba(255,252,247,0.26) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* ── Footer / Impressum ── */
.site-footer {
  text-align: center;
  padding: 1.2rem 1rem;
  font-size: 0.82rem;
  color: #a08870;
}

.site-footer a {
  color: #a08870;
  text-decoration: underline;
  cursor: pointer;
}

.site-footer a:hover { color: var(--primary); }

.impressum-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45,26,15,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.impressum-overlay.open { display: flex; }

.impressum-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem 2.2rem 1.8rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(45,26,15,0.22);
  position: relative;
}

.impressum-card h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--primary);
  margin: 0 0 1.1rem;
}

.impressum-card p, .impressum-card address {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
  font-style: normal;
  margin: 0 0 0.7rem;
}

.impressum-card .impressum-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 1rem 0 0.2rem;
}

.impressum-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  box-shadow: none;
}

.impressum-close:hover { background: rgba(193,90,56,0.1); color: var(--primary); box-shadow: none; }

/* ── Tabellen-Basis ── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}

th:last-child, td:last-child { border-right: none; }
tr:last-child td { border-bottom: none; }

thead tr {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

tbody tr:hover { background: rgba(212,146,74,0.06); }

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
