* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #f6f4f1;
  line-height: 1.5;
}

a { color: inherit; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.btn.primary {
  background: #8b5e3c;
  color: white;
}

.btn.secondary {
  background: #fff;
  color: #8b5e3c;
  border: 1px solid rgba(139, 94, 60, .35);
}

.lang-btn {
  border: 1px solid rgba(139, 94, 60, .35);
  background: white;
  color: #8b5e3c;
  border-radius: 999px;
  padding: .6rem .9rem;
  font-weight: bold;
  cursor: pointer;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: .5rem;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)),
    url('images/pavilion_exterior.jpg') center/cover no-repeat;
}

.login-overlay {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-card,
.content-card {
  width: min(100%, 980px);
  background: rgba(255,255,255,.95);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 10px 35px rgba(0,0,0,.12);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #8b5e3c;
  font-size: .8rem;
  margin-bottom: .5rem;
}

.hero .eyebrow {
  color: #ff4444;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.login-form,
.reply-form {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

input,
select,
textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid #d4c9be;
  border-radius: 12px;
  background: white;
  font: inherit;
}

.error {
  color: #b42318;
  margin: 0;
}

.legal-links,
.site-footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 10px rgba(0,0,0,.05);
  flex-wrap: wrap;
}

.brand {
  font-size: 1.3rem;
  font-weight: bold;
  color: #8b5e3c;
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  font-size: .95rem;
}

.hamburger-btn {
  font-size: 1.3rem;
  padding: .5rem .8rem;
}

.hamburger-menu {
  position: fixed;
  top: 60px;
  right: 1rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  padding: .75rem;
  flex-direction: column;
  gap: .5rem;
  z-index: 200;
  min-width: 180px;
}

.hamburger-menu a,
.hamburger-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: .7rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #5a3d28;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.hamburger-menu a:hover,
.hamburger-menu button:hover {
  background: #f9f4ef;
}

.hamburger-menu .tab-btn.active {
  background: #8b5e3c;
  color: #fff;
}

/* Blur-Bild in style.css */
.hero {
  min-height: 62vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)),
    url('images/Blick.jpeg') center/cover no-repeat;
  color: white;
}

.hero-inner {
  max-width: 760px;
  padding: 2rem 1rem 4rem;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin: .2rem 0;
}

.lead {
  font-size: 1.1rem;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.container {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 1rem;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

.section {
  margin: 1rem 0;
}

.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.image-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

.image-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.image-card .caption {
  padding: .85rem 1rem;
  font-size: .95rem;
  color: #5a4b40;
}

.mobile-photo {
  display: block;
  width: 100%;
  max-width: 520px;
  max-height: 360px;
  object-fit: cover;
  border-radius: 18px;
  margin: 1rem auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.mobile-photo-wide {
  max-width: 720px;
  max-height: 420px;
}

.mobile-map {
  display: block;
  width: 100%;
  max-width: 760px;
  max-height: 460px;
  object-fit: contain;
  border-radius: 18px;
  margin: 1rem auto;
  background: #fff;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.stat-box {
  background: #f9f4ef;
  border: 1px solid #eadfd3;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}

.stat-box strong,
.stat-box span {
  display: block;
}

.stat-box span {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: .35rem;
  color: #8b5e3c;
}

.table-wrap {
  overflow-x: auto;
}

.reply-table {
  width: 100%;
  border-collapse: collapse;
}

.reply-table th,
.reply-table td {
  border-bottom: 1px solid #eadfd3;
  padding: .8rem;
  text-align: left;
  vertical-align: top;
}

.reply-table th {
  background: #f9f4ef;
}

@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    gap: .75rem;
  }

  .main-nav {
    justify-content: center;
  }

  .grid.two,
  .admin-stats,
  .image-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 52vh;
  }

  .image-card img {
    height: 210px;
  }

  .mobile-photo {
    max-height: 280px;
  }

  .mobile-photo-wide {
    max-height: 320px;
  }

  .mobile-map {
    max-height: 360px;
  }
}

/* Bildauswahl für Essen */
.meal-image-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: .5rem 0 1rem;
}

.meal-card {
  position: relative;
  display: block;
  background: #fff;
  border: 2px solid #eadfd3;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.meal-card:hover {
  transform: translateY(-3px);
  border-color: #c9a47f;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.meal-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.meal-card img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.meal-card span {
  display: block;
  padding: .8rem;
  font-weight: 700;
  color: #5a3d28;
  background: #fff;
}

.meal-card:has(input:checked) {
  border-color: #8b5e3c;
  box-shadow: 0 0 0 4px rgba(139,94,60,.18), 0 10px 24px rgba(0,0,0,.12);
}

.meal-card:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #8b5e3c;
  color: white;
  font-weight: 800;
}

@media (max-width: 700px) {
  .meal-image-selection {
    grid-template-columns: 1fr;
  }

  .meal-card img {
    height: 180px;
  }
}

/* Meal Button Selection */
.meal-btn-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: .5rem 0 1rem;
}

.meal-btn-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.meal-btn-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.meal-btn-inner {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.1rem 1.3rem;
  background: #fff;
  border: 2px solid #eadfd3;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.meal-btn-card:hover .meal-btn-inner {
  transform: translateY(-2px);
  border-color: #c9a47f;
  box-shadow: 0 8px 20px rgba(0,0,0,.11);
}

.meal-btn-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #5a3d28;
}

.meal-btn-desc {
  font-size: .95rem;
  color: #9b7a5e;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

.meal-btn-inner {
  min-height: 90px;
  justify-content: center;
  padding: 1.4rem 1.3rem;
}

.meal-btn-card:has(input:checked) .meal-btn-inner {
  border-color: #8b5e3c;
  background: #f9f4ef;
  box-shadow: 0 0 0 3px rgba(139,94,60,.18), 0 8px 20px rgba(0,0,0,.10);
}

.meal-btn-card:has(input:checked) .meal-btn-title {
  color: #8b5e3c;
}
