/* Mäxle 38 – Design Tokens */
:root {
  --beige: #FAF6E9;
  --green: #273725;
  --red: #A32020;
  --sand: #d9c9a3;
  --grey: #6b7368;
  --serif-display: 'Cormorant Garamond', Georgia, serif;
  --serif-text: 'EB Garamond', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--beige);
  color: var(--green);
  font-family: var(--serif-text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--red); }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--beige);
  position: relative;
  overflow-x: clip;
}

.nowrap { white-space: nowrap; }

/* ---------- Hopfen-Parallax ---------- */
.hops {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hops img {
  position: absolute;
  opacity: .85;
  will-change: transform, opacity;
}
.hop-top {
  top: var(--header-h, 64px);
  left: 50%;
  width: 100vw;
  transform: translate(-50%, 0);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.hop-left, .hop-right {
  /* oberes Band ist ~20vw hoch → Seitenranken überlappen es leicht */
  top: calc(var(--header-h, 64px) + 14vw);
  height: auto;
  /* skaliert mit der Breite wie das obere Band, lässt die Mitte aber frei */
  /* --hop-free: Breite des Inhalts, der frei bleiben soll (pro Seite setzbar) */
  width: min(22vw, max(var(--hop-min, 80px), calc((100vw - var(--hop-free, 640px)) / 2)));
}
.hop-left {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, #000 65%, transparent 100%);
  mask-image: linear-gradient(to right, #000 65%, transparent 100%);
}
.hop-right {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, #000 65%, transparent 100%);
  mask-image: linear-gradient(to left, #000 65%, transparent 100%);
}
@media (max-width: 700px) {
  .hop-left, .hop-right { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--beige);
  border-bottom: 1px solid var(--green);
}
.site-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; padding: 16px 0; }
.brand img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  padding: 10px 14px;
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  color: var(--green);
}
.nav-links a:hover { color: var(--red); }
.nav-links a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

/* Burger-Menü (mobil) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--green);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:hover span { background: var(--red); }

@media (max-width: 700px) {
  .site-nav { position: relative; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--beige);
    border-bottom: 1px solid var(--green);
    padding: 8px 24px 16px;
    /* unter die Header-Linie schieben */
    margin-top: 1px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    font-size: 19px;
    border-bottom: 1px solid rgba(39, 55, 37, .2);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a[aria-current="page"] { border-bottom-color: rgba(39, 55, 37, .2); }
  .nav-links a:last-child[aria-current="page"] { border-bottom: 0; }
}

main { flex: 1; position: relative; z-index: 2; }
/* Unterseiten mit Hopfen: Inhalt beginnt unter dem oberen Band */
.hops ~ main > :first-child { padding-top: calc(17.5vw + 16px); }

/* ---------- Shared ---------- */
.eyebrow {
  font-size: 14px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red);
}
.label {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
}
.h1 {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
}
.lead { margin: 0; font-size: 19px; line-height: 1.55; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--serif-text);
  font-size: 17px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--green);
  border-radius: 0;
  cursor: pointer;
}
.btn-primary { background: var(--green); color: var(--beige); }
.btn-primary:hover { background: var(--red); border-color: var(--red); color: var(--beige); }
.btn-secondary { background: transparent; color: var(--green); }
.btn-secondary:hover { color: var(--red); border-color: var(--red); }

/* ---------- Home ---------- */
.home {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(17.5vw + 16px) 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.home-logo { width: min(560px, 86vw); height: auto; display: block; }
.home-copy { display: flex; flex-direction: column; gap: 14px; max-width: 620px; text-wrap: pretty; }
.slogan {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 600;
  font-style: italic;
}
.home-copy .text { margin: 0; font-size: 20px; line-height: 1.55; }
.home-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  width: 100%;
  max-width: 820px;
  margin-top: 24px;
  background: var(--green);
  border: 1px solid var(--green);
}
.info-grid > div {
  background: var(--beige);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-grid .value { font-size: 18px; line-height: 1.4; }

/* ---------- Offene Stellen ---------- */
.jobs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.jobs-head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; text-wrap: pretty; }
.job {
  border: 1px solid var(--green);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}
.job-title {
  padding: 32px 28px;
  border-bottom: 1px solid var(--green);
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: 1 / -1;
}
.job-title h2 {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.1;
}
.job-title p { margin: 0; font-size: 18px; line-height: 1.5; max-width: 720px; text-wrap: pretty; }
.job-col {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
}
.job-col:nth-child(4) { border-right: 0; }
.job-col ul {
  margin: 0;
  padding-left: 18px;
  font-size: 17px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.job-foot {
  grid-column: 1 / -1;
  padding: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--green);
  color: var(--beige);
}
.job-foot span { font-size: 17px; line-height: 1.4; }
.job-foot a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--beige);
  color: var(--green);
  font-size: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.job-foot a:hover { background: var(--red); color: var(--beige); }

/* ---------- Speisekarte ---------- */
.menu-soon {
  max-width: 820px;
  margin: 0 auto;
  padding: 96px 24px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  text-wrap: balance;
}

/* ---------- Kontakt ---------- */
.contact {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.contact-info { display: flex; flex-direction: column; gap: 18px; text-wrap: pretty; }
.contact-info dl {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  font-size: 18px;
  line-height: 1.45;
}
.contact-info dt {
  color: var(--red);
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: 13px;
  padding-top: 4px;
}
.contact-info dd { margin: 0; }
.contact-info dd a { border-bottom: 1px solid var(--green); }
.muted { color: var(--grey); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--green);
  padding: 28px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-family: var(--serif-text);
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  padding: 10px 12px;
  border: 1px solid var(--green);
  border-radius: 0;
  background: var(--beige);
  color: var(--green);
  outline: none;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); }
.contact-form button { align-self: flex-start; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 16px; line-height: 1.45; min-height: 1em; }

.form-note { margin: 0; font-size: 15px; line-height: 1.45; color: var(--grey); }
.form-note a { border-bottom: 1px solid var(--grey); color: inherit; }

/* ---------- Rechtstexte ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}
.legal .h1 { margin-bottom: 12px; }
.legal h2 {
  margin: 22px 0 0;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
}
.legal p { margin: 0; }
.legal a { border-bottom: 1px solid var(--green); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--green); background: var(--green); color: var(--beige); position: relative; z-index: 2; }
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo { align-items: center; justify-content: center; }
.footer-logo a { height: 100%; display: flex; align-items: center; }
/* so hoch wie die Nachbarspalten */
.footer-logo img { height: 100%; max-height: 320px; width: auto; max-width: 100%; display: block; }
@media (max-width: 900px) {
  .footer-logo img { height: 180px; }
}
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.55; }
.footer-col p { margin: 0; text-wrap: pretty; }
.footer-label { font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--sand); }
.footer-col a { color: var(--beige); }
.footer-col a:hover { color: var(--sand); }
.footer-col .mail { border-bottom: 1px solid rgba(250, 246, 233, .4); }
.footer-col .route {
  display: inline-block;
  align-self: flex-start;
  padding: 10px 18px;
  border: 1px solid var(--beige);
  color: var(--beige);
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-col .route:hover { background: var(--beige); color: var(--green); }
.footer-col iframe {
  width: 100%;
  /* füllt die restliche Spaltenhöhe, damit alle drei Spalten gleich hoch sind */
  flex: 1;
  min-height: 120px;
  border: 1px solid rgba(250, 246, 233, .3);
  filter: grayscale(1) sepia(.25) contrast(.95);
  margin-top: 6px;
}
.hours {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 22px;
}
.hours-days {
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
  line-height: 1.6;
  /* Wochentage über die ganze Spaltenhöhe verteilen */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hours-note {
  margin: 0;
  align-self: center;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.2;
  text-wrap: balance;
}

.footer-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid rgba(250, 246, 233, .2);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 8px;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.footer-nav a { color: var(--beige); padding: 0 18px; }
.footer-nav a + a { border-left: 1px solid rgba(250, 246, 233, .3); }
@media (max-width: 520px) {
  .footer-nav { flex-direction: column; align-items: center; }
  .footer-nav a { padding: 6px 0; }
  .footer-nav a + a { border-left: 0; }
}
.footer-nav a:hover,
.footer-nav a[aria-current="page"] { color: var(--sand); }
.footer-bottom { border-top: 1px solid rgba(250, 246, 233, .2); }
.footer-bottom > div {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
