/* ==========================================================================
   Gasthaus Nörenberg – Landingpage
   Palette angelehnt an die bestehende Marke (Grün/Creme), modernisiert.
   ========================================================================== */

:root {
  --color-green-900: #24331f;
  --color-green-700: #3d5230;
  --color-green-600: #4f6b3d;
  --color-green-200: #cddcb8;
  --color-cream-100: #fbf7ee;
  --color-cream-200: #f3ead4;
  --color-gold-400: #c9a24b;
  --color-terracotta-500: #a8502f;
  --color-ink-900: #241f18;
  --color-ink-600: #55503f;
  --color-white: #ffffff;

  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow-soft: 0 20px 40px -20px rgba(36, 51, 31, 0.35);
  --container-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink-900);
  background: var(--color-cream-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-green-900);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-green-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 0.98rem;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: 0.6; transform: none; }

.btn-primary {
  background: var(--color-terracotta-500);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: #8f4227; }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.65);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }

.btn-outline {
  background: transparent;
  color: var(--color-green-700);
  border-color: var(--color-green-600);
}
.btn-outline:hover { background: var(--color-green-600); color: #fff; }

.btn-small { padding: 0.55em 1.2em; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(36, 51, 31, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-green-900);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-green-700);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; }
.brand-text small { color: var(--color-ink-600); font-size: 0.75rem; letter-spacing: 0.02em; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink-900);
}
.primary-nav a:hover { color: var(--color-terracotta-500); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(36,51,31,0.15);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-green-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,26,15,0.55) 0%, rgba(20,26,15,0.72) 55%, rgba(20,26,15,0.9) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold-400);
  margin-bottom: 0.8em;
}
.eyebrow.center { text-align: center; }
.eyebrow:not(.center) ~ h1,
.hero .eyebrow { color: var(--color-gold-400); }

.hero h1 { color: #fff; }
.hero-lead { max-width: 560px; font-size: 1.15rem; color: rgba(255,255,255,0.9); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 44px; }

.hero-facts {
  display: flex;
  gap: 40px;
  list-style: none;
  padding: 24px 0 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.25);
  flex-wrap: wrap;
}
.hero-facts li { display: flex; flex-direction: column; }
.fact-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--color-gold-400); }
.fact-label { font-size: 0.85rem; color: rgba(255,255,255,0.85); }

/* ---------- Info strip ---------- */
.info-strip {
  background: var(--color-green-900);
  color: #fff;
  padding: 22px 0;
}
.info-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 240px;
}
.info-icon { font-size: 1.4rem; }
.info-item strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-gold-400); }
.info-item span, .info-item a { color: rgba(255,255,255,0.92); text-decoration: none; font-size: 0.95rem; }
.info-item a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--color-cream-200); }
.section-dark {
  background: var(--color-green-900);
  color: rgba(255,255,255,0.92);
}
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--color-gold-400); }

.center { text-align: center; }
.section-lead { max-width: 620px; color: var(--color-ink-600); }
.section-lead.center { margin-left: auto; margin-right: auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--color-green-700);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-terracotta-500);
  font-weight: 700;
}

/* ---------- Menu cards ---------- */
.menu-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 44px 0 12px;
}
.menu-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.menu-card-icon { font-size: 2.2rem; margin-bottom: 10px; }
.menu-note { text-align: center; font-size: 0.85rem; color: var(--color-ink-600); }

/* ---------- Rooms ---------- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.room-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.room-card img { height: 200px; object-fit: cover; }
.room-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.room-card-body p { flex: 1; color: var(--color-ink-600); font-size: 0.95rem; }
.room-price { font-size: 0.95rem; color: var(--color-green-700); }
.room-price strong { color: var(--color-terracotta-500); font-size: 1.2rem; }
.room-price span { display: block; font-size: 0.78rem; color: var(--color-ink-600); }

.room-card-cta {
  background: var(--color-green-700);
  color: #fff;
  justify-content: center;
}
.room-card-body-cta { justify-content: center; text-align: center; }
.room-card-cta h3 { color: #fff; }
.room-card-cta p { color: rgba(255,255,255,0.85); }

/* ---------- Tags ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}
.gallery-grid img:hover { transform: scale(1.02); }

/* ---------- Contact ---------- */
.contact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin: 28px 0 32px;
}
.contact-list dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-green-700);
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-list dd { margin: 0; color: var(--color-ink-900); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { color: var(--color-ink-600); font-size: 0.82rem; }

.form-note {
  font-size: 0.82rem;
  color: var(--color-ink-600);
  background: var(--color-cream-200);
  padding: 10px 14px;
  border-radius: 8px;
}

/* ---------- Anrufen & WhatsApp ---------- */
.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex-shrink: 0; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-actions .btn { flex: 1 1 210px; gap: 10px; box-shadow: var(--shadow-soft); }
.contact-actions-note { margin: 12px 0 0; font-size: 0.82rem; color: var(--color-ink-600); }

/* Buttonpaar in den dunklen Bereichen (Gästezimmer, Feiern) */
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.room-card-body-cta .cta-actions { flex-direction: column; }
.cta-actions .btn { gap: 10px; }
.cta-actions .btn-whatsapp { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }

.btn-call { background: var(--color-green-700); color: #fff; }
.btn-call:hover { background: var(--color-green-900); }
.btn-whatsapp { background: #128c7e; color: #fff; }
.btn-whatsapp:hover { background: #0b6e63; }

/* Schwebende Schnellkontakt-Buttons (alle Seiten mit Karte/Startseite) */
.quick-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.qc-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75em 1.2em;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease;
}
.qc-btn:hover { transform: translateY(-2px); }
.qc-call { background: var(--color-terracotta-500); }
.qc-wa { background: #128c7e; }

/* Anrufen ist am Handy sinnvoll; am breiten Desktop mit Maus bleibt nur WhatsApp */
@media (min-width: 721px) and (hover: hover) and (pointer: fine) {
  .qc-call { display: none; }
}

@media (max-width: 720px) {
  .qc-btn { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .qc-btn span { display: none; }
  .qc-btn .ico { width: 26px; height: 26px; }
}

@media print { .quick-contact { display: none !important; } }

/* ---------- Karte (Google Maps erst nach Klick) ---------- */
.map-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.map-placeholder {
  position: relative;
  width: 100%;
  background: var(--color-green-200);
  border-radius: var(--radius);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.map-placeholder iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { text-align: center; padding: 24px; max-width: 380px; color: var(--color-green-900); }
.map-consent-icon { font-size: 2.4rem; display: block; margin-bottom: 6px; }
.map-consent h3 { margin-bottom: 4px; }
.map-consent p { color: var(--color-ink-600); }
.map-consent .btn { margin-top: 4px; }
.map-consent-note { margin: 16px 0 0; font-size: 0.78rem; line-height: 1.45; }
.map-consent-note a { color: var(--color-green-700); font-weight: 600; }

/* ---------- Öffnungszeiten ---------- */
.open-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; }
.open-status:empty { display: none; }
.open-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9a9584; flex-shrink: 0; }
.open-status.is-open::before { background: #2fa866; box-shadow: 0 0 0 3px rgba(47, 168, 102, 0.25); }
.open-status.is-closed::before { background: var(--color-terracotta-500); }
.info-item small.open-status { display: flex; margin-top: 2px; color: rgba(255, 255, 255, 0.92); }
.info-item small.open-status:empty { display: none; }
.hours-card .open-status { color: var(--color-green-700); }

.hours-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 28px 18px;
}
.hours-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.hours-head h3 { margin: 0; font-size: 1.4rem; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(36, 51, 31, 0.08);
  text-align: left;
  font-size: 0.97rem;
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 600; color: var(--color-green-900); white-space: nowrap; }
.hours-table td { text-align: right; }
.hours-table td.closed { color: var(--color-ink-600); font-style: italic; }
.hours-table tr.is-today th, .hours-table tr.is-today td { background: var(--color-cream-200); }
.hours-table tr.is-today th { border-radius: 10px 0 0 10px; }
.hours-table tr.is-today td { border-radius: 0 10px 10px 0; font-weight: 600; }
.today-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--color-terracotta-500);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.hours-notes { list-style: none; margin: 24px 0 0; padding: 0; }
.hours-notes li { padding: 11px 0; border-top: 1px solid rgba(36, 51, 31, 0.12); color: var(--color-ink-600); }
.hours-notes li:last-child { border-bottom: 1px solid rgba(36, 51, 31, 0.12); }
.hours-notes strong { color: var(--color-green-900); }
.hours-notes a { color: var(--color-green-700); font-weight: 600; text-decoration: none; }
.hours-notes a:hover { text-decoration: underline; }

/* ---------- Catering ---------- */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 44px 0 32px; }
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.service-card-icon { font-size: 2.2rem; margin-bottom: 10px; }
.service-card p { color: var(--color-ink-600); font-size: 0.95rem; margin-bottom: 0; }
.service-card a { color: var(--color-green-700); font-weight: 600; }
.catering-lead { font-weight: 600; color: var(--color-green-900); }
.cta-actions.center { justify-content: center; }
.cta-actions.center .btn { box-shadow: var(--shadow-soft); }

@media (max-width: 900px) {
  .service-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .map-placeholder { min-height: 360px; }
  .hours-card { padding: 20px 14px 12px; }
  .hours-table th, .hours-table td { padding: 11px 8px; font-size: 0.92rem; }
  .hours-table td { text-align: right; }
  .cta-actions.center .btn { flex: 1 1 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink-900);
  color: rgba(255,255,255,0.75);
  padding: 40px 0 88px; /* Platz, damit die schwebenden Kontakt-Buttons nichts verdecken */
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.footer-inner a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-nav { display: flex; gap: 20px; }
.footer-note { width: 100%; text-align: center; margin: 20px 0 0; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .room-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream-100);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 14px;
    border-bottom: 1px solid rgba(36,51,31,0.1);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 10px 0; }
  .nav-toggle { display: flex; }

  .menu-cards { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .hero-facts { gap: 24px; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
