/* =========================================================
   Gasthof zum Elbdeich – Stylesheet
   Designrichtung: warmer, bodenständiger norddeutscher Landgasthof
   ========================================================= */

:root {
  --brick: #7a352b;
  --wood-dark: #2d241f;
  --cream: #f4edde;
  --moss: #5d6a4b;
  --beige: #d7c4a4;
  --brass: #b28a4d;
  --text: #28231f;

  --font-heading: "Cormorant Garamond", "Lora", Georgia, serif;
  --font-body: "Inter", "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 6px;
  --shadow-soft: 0 4px 16px rgba(45, 36, 31, 0.12);
  --container-width: 1140px;
}

/* ---------- Reset & Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--wood-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4.5rem 0;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.6rem;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brick);
  color: var(--cream);
}

.btn-primary:hover {
  background: #8f4033;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--wood-dark);
  border-color: var(--wood-dark);
}

.btn-secondary:hover {
  background: var(--wood-dark);
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  color: var(--brick);
  border-color: var(--brick);
}

.btn-outline:hover {
  background: var(--brick);
  color: var(--cream);
}

.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Gilt auch für Nicht-Button-Links (z. B. Footer-Social-Links) */
a.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

/* ---------- Platzhalter-Elemente ---------- */
.photo-placeholder {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border: 1.5px dashed var(--brass);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    135deg,
    var(--beige),
    var(--beige) 12px,
    var(--cream) 12px,
    var(--cream) 24px
  );
  color: var(--wood-dark);
  font-size: 0.9rem;
}

.photo-placeholder span {
  display: block;
  font-weight: 600;
}

.placeholder-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--beige);
  color: var(--wood-dark);
  font-size: 0.8rem;
  font-style: italic;
}

.placeholder-callout {
  background: var(--beige);
  border-left: 4px solid var(--brick);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

.demo-note {
  font-size: 0.85rem;
  color: var(--wood-dark);
  background: var(--beige);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  margin-top: 0.75rem;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--beige);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: var(--container-width);
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--wood-dark);
  line-height: 1.1;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--wood-dark);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--wood-dark);
}

.nav-menu {
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  gap: 1rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  overflow-y: auto;
}

.nav-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--wood-dark);
}

.nav-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    transform: none;
    opacity: 1;
    visibility: visible;
    overflow: visible;
  }

  .nav-links {
    flex-direction: row;
    gap: 1.75rem;
  }

  .nav-ctas {
    flex-direction: row;
    margin-top: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 0;
  color: var(--cream);
  background: linear-gradient(180deg, rgba(45, 36, 31, 0.35), rgba(45, 36, 31, 0.88)),
    url("../assets/img/gastraum-1.jpeg") center / cover no-repeat;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 5rem 1.25rem;
  display: grid;
  gap: 2rem;
}

.hero h1 {
  color: var(--cream);
}

.hero-lede {
  max-width: 540px;
  font-size: 1.1rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.hero .eyebrow {
  color: #fff;
}

.hero .btn-secondary {
  color: var(--cream);
  border-color: var(--cream);
}

.hero .btn-secondary:hover {
  background: var(--cream);
  color: var(--wood-dark);
}

.hero-quickfacts {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid rgba(244, 237, 222, 0.35);
  border-radius: var(--radius);
  background: rgba(45, 36, 31, 0.35);
  max-width: 420px;
  font-size: 0.95rem;
}

.hero-quickfacts dt {
  font-weight: 600;
  color: var(--beige);
}

.hero-quickfacts dd {
  margin: 0 0 0.6rem;
}

/* ---------- Leistungsleiste ---------- */
.offerings {
  background: var(--beige);
}

.offerings-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.offering-card {
  background: var(--cream);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--wood-dark);
}

/* ---------- Speisekarte ---------- */
.menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Feiern ---------- */
.events {
  background: var(--wood-dark);
  color: var(--cream);
}

.events h2,
.events h3 {
  color: var(--cream);
}

.events-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .events-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.event-form {
  background: rgba(244, 237, 222, 0.06);
  border: 1px solid rgba(244, 237, 222, 0.25);
  border-radius: var(--radius);
  padding: 1.75rem;
}

/* ---------- Formulare ---------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

input,
textarea,
select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--brass);
  background: var(--cream);
  color: var(--text);
}

.events textarea,
.events input,
.events select {
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--beige);
  color: var(--wood-dark);
  font-size: 0.9rem;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #dfe6d4;
}

.form-status.is-error {
  background: #f2d6d0;
}

/* ---------- Galerie ---------- */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.gallery-tabs span {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--brass);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--wood-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-grid .photo-placeholder:nth-child(3n + 1) {
  min-height: 280px;
}

/* Echte Fotos: einheitlicher Bildrahmen für Galerie, Über-uns und Feiern */
.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid .photo-frame:nth-child(3n + 1) {
  aspect-ratio: 3 / 4;
}

.about-grid .photo-frame {
  aspect-ratio: 4 / 3;
}

.event-photo {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}

.event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Datenschutzfreundliche Kartenkomponente: lädt erst nach Klick */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 260px;
  border: 1px solid var(--brass);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
}

.map-embed-fallback {
  min-height: 260px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.5rem;
  background: repeating-linear-gradient(
    135deg,
    var(--beige),
    var(--beige) 12px,
    var(--cream) 12px,
    var(--cream) 24px
  );
}

.map-embed-fallback p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--wood-dark);
  max-width: 320px;
}

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100;
  background: var(--wood-dark);
  color: var(--cream);
  border-top: 3px solid var(--brass);
  padding: 1.25rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  align-items: center;
}

.cookie-banner-text p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--beige);
}

.cookie-banner-text a {
  color: var(--cream);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .cookie-banner-inner {
    grid-template-columns: 1fr auto;
  }
}

.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}


/* ---------- Öffnungszeiten ---------- */
.hours-wrapper {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .hours-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

table.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--beige);
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: none;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-details dt {
  font-weight: 600;
  color: var(--brick);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-details dd {
  margin: 0.2rem 0 0;
}

/* ---------- Reservierung / Bestellung ---------- */
.booking {
  background: var(--beige);
}

.booking-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .booking-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.booking-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--brass);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--wood-dark);
  color: var(--beige);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-grid h3 {
  color: var(--cream);
  font-size: 1.05rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-grid a {
  text-decoration: none;
  color: var(--beige);
}

.footer-grid a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(215, 196, 164, 0.25);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-bottom a {
  text-decoration: underline;
}

/* ---------- Legal-Seiten ---------- */
.legal-page {
  padding: 4rem 0;
  min-height: 60vh;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--brick);
  font-weight: 600;
}

/* ---------- Sichtbarkeit für Screenreader ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
