/* ==========================================================
   Restaurant Brückenwaage – Stylesheet
   Farben stammen direkt aus dem Logo (Variante für dunklen Hintergrund).
   ========================================================== */

:root {
  --bg: #161514;
  --bg-raised: #1e1c1a;
  --bg-soft: #24211e;
  --line: rgba(243, 240, 234, 0.12);
  --text: #f3f0ea;          /* Logo-Weiss */
  --muted: #b8b0a4;
  --accent: #c29d70;        /* Logo-Bronze */
  --accent-strong: #d4b48b;
  --danger: #e0715f;
  --ok: #8fbf8a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --wrap: 1120px;
  --header-h: 68px;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: .005em;
}

p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--accent);
  color: #161514;
  padding: .5rem 1rem;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #161514;
  font: 600 1rem/1 var(--sans);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { background: rgba(243, 240, 234, .06); border-color: var(--muted); }

.btn--light {
  background: var(--text);
  border-color: var(--text);
  color: #161514;
}
.btn--light:hover { background: #ffffff; border-color: #ffffff; }

.btn--danger { background: transparent; color: var(--danger); border-color: rgba(224, 113, 95, .5); }
.btn--danger:hover { background: rgba(224, 113, 95, .1); border-color: var(--danger); }

.btn--small { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }

.btn, .nav-toggle, button { touch-action: manipulation; }

.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(22, 21, 20, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s, transform .3s;
}
.site-header.is-scrolled .brand,
.site-header.is-open .brand { opacity: 1; transform: none; }
.brand img { width: 52px; height: auto; }
.brand span { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 380px) { .brand span { font-size: 1.05rem; } }

.nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 2rem;
}
.nav a {
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .4rem 0;
  transition: color .2s;
}
.nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(22, 21, 20, .97);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.5rem;
    display: none;
  }
  .site-header.is-open { background: rgba(22, 21, 20, .97); border-bottom-color: var(--line); }
  .site-header.is-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }
  .nav li:last-child a { border-bottom: 0; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--header-h);
  background: var(--bg);
}

.hero__grid {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 2.5rem 3.5rem;
}

.hero__content { text-align: center; }

.hero__logo {
  width: clamp(220px, 24vw, 320px);
  height: auto;
  margin: 0 auto 2rem;
  animation: rise 1s ease-out both;
}

.hero__lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  margin: 0 auto 2rem;
  max-width: 32ch;
  color: var(--text);
  animation: rise 1s .2s ease-out both;
}

/* Zwei gleich grosse Buttons */
.hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  max-width: 470px;
  margin-inline: auto;
  animation: rise 1s .3s ease-out both;
}
.hero__actions .btn { width: 100%; white-space: nowrap; padding-inline: 1rem; }

.hero__today {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: .95rem;
  min-height: 1.6em;
  animation: rise 1s .4s ease-out both;
}
.hero__today strong { color: var(--text); font-weight: 600; }

/* ---------- Kalenderblatt (Eröffnung + Anlässe) ---------- */
.cal-leaf {
  flex: none;
  width: 54px;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  background: var(--text);
  color: #161514;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  line-height: 1;
}
.cal-leaf small {
  display: block;
  background: var(--accent);
  color: #161514;
  font: 700 .68rem/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 0 .3rem;
}
.cal-leaf strong {
  display: block;
  font: 600 1.55rem/1 var(--serif);
  padding: .35rem 0 .4rem;
}

/* ---------- Runder Eröffnungs-Banner ---------- */
.seal {
  position: absolute;
  top: 2%;
  left: 0;
  z-index: 2;
  width: clamp(104px, 11vw, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: rotate(-10deg);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45));
  transition: transform .3s;
}
.seal:hover { transform: rotate(-4deg) scale(1.05); }
.seal svg { width: 100%; height: 100%; overflow: visible; animation: pop .8s .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.seal text { font-family: var(--sans); fill: #161514; }
.seal__ring { transform-origin: 100px 100px; animation: spin 26s linear infinite; }
.seal__ring text { font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.seal__date { font-family: var(--serif) !important; font-size: 30px; font-weight: 600; fill: var(--text) !important; }
.seal__year { font-size: 15px; font-weight: 600; letter-spacing: .14em; fill: var(--accent) !important; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop {
  from { opacity: 0; transform: rotate(-20deg) scale(.6); }
  to { opacity: 1; transform: none; }
}

/* ---------- Gastgeber ---------- */
.hero__hosts {
  position: relative;
  margin: 0;
  animation: fade 1.4s .2s ease-out both;
}

/* Warmer Schimmer hinter dem Paar */
.hero__hosts::before {
  content: "";
  position: absolute;
  inset: -8% -6% 8%;
  z-index: -1;
  background:
    radial-gradient(ellipse 45% 45% at 50% 42%, rgba(212, 180, 139, .30), rgba(212, 180, 139, .08) 60%, transparent 80%),
    radial-gradient(ellipse 65% 60% at 50% 50%, rgba(194, 157, 112, .10), transparent 80%);
  filter: blur(28px);
  animation: glow 7s ease-in-out infinite alternate;
}

.hero__hosts img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

.hero__caption {
  position: relative;
  margin-top: 1rem;
  text-align: center;
}
.hero__caption span {
  display: block;
  font-size: .75rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .25rem;
}
.hero__caption strong {
  font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.2 var(--serif);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.5rem;
    padding-block: 2rem 3rem;
    text-align: center;
  }
  .hero__logo { margin: 0 auto 1.75rem; width: clamp(200px, 55vw, 280px); }
  .hero__lead { margin-inline: auto; }
  .hero__actions { margin-inline: auto; }
  .hero__hosts { width: min(100%, 560px); margin: 0 auto; }
}

@media (max-width: 480px) {
  .hero__actions { grid-template-columns: 1fr; max-width: 320px; }
}
@media (max-width: 900px) {
  .seal { top: -4%; left: 0; width: clamp(92px, 24vw, 130px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes glow {
  from { opacity: .75; transform: scale(.97); }
  to { opacity: 1; transform: scale(1.04); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--alt { background: var(--bg-raised); border-block: 1px solid var(--line); }

.eyebrow {
  display: block;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
  font-weight: 600;
}

.section__head { max-width: 640px; margin-bottom: 2.75rem; }
.section__head h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.section__head p { color: var(--muted); }

/* Über uns */
.about {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: stretch;
}
.about__text > :last-child { margin-bottom: 0; }
.about__text p { color: var(--muted); font-size: 1.1rem; }
.about__text p:first-of-type { color: var(--text); font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-auto-rows: 1fr; }
.features li {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.features svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.features strong { display: block; font-weight: 600; margin-bottom: .15rem; }
.features span { color: var(--muted); font-size: .97rem; }

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

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* PC: zwei nebeneinander */
  gap: 1.75rem;
  max-width: 980px;
  margin-inline: auto;
}
@media (max-width: 720px) { .news-grid { grid-template-columns: 1fr; } }  /* Handy: untereinander */

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.news-card__img {
  width: 100%;
  height: auto;
  background: var(--bg-soft);
}
.news-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.news-card time {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.news-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.news-card__text {
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card.is-expanded .news-card__text { -webkit-line-clamp: unset; display: block; }
.news-card__more {
  align-self: flex-start;
  margin-top: .8rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: 600 .95rem var(--sans);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Anlass-Kacheln unten in der News-Karte */
.event-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  padding: 0 1.1rem 1.1rem;
  margin-top: -.3rem;
}
.tile {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 74px;
  padding: .6rem .65rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, background .2s;
}
.tile:hover { border-color: var(--accent); background: rgba(194, 157, 112, .1); }
.tile .cal-leaf { width: 42px; height: 50px; box-shadow: none; display: flex; flex-direction: column; }
.tile .cal-leaf strong { flex: 1; display: grid; place-items: center; }
.tile .cal-leaf small { font-size: .6rem; padding: .28rem 0 .24rem; }
.tile .cal-leaf strong { font-size: 1.25rem; padding: .25rem 0 .3rem; }
.tile__icon {
  flex: none;
  width: 42px; height: 50px;   /* gleich gross wie das Kalenderblatt */
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--text);
  color: #a07f58;
}
.tile__icon svg { width: 28px; height: 28px; }
.tile__text { display: grid; min-width: 0; line-height: 1.25; }
.tile__text strong { font-size: .95rem; font-weight: 600; }
.tile__text span { font-size: .82rem; color: var(--muted); }
.tile__text em {
  font-style: normal;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: .2rem;
}
.tile__text strong, .tile__text span, .tile__text em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.state {
  color: var(--muted);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  grid-column: 1 / -1;
}

.news-more { text-align: center; margin-top: 2.5rem; }

/* Öffnungszeiten & Kontakt */
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.card h3 { font-size: 1.6rem; margin-bottom: 1.25rem; }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.hours li:last-child { border-bottom: 0; }
.hours .day { font-weight: 500; }
.hours .time { color: var(--muted); text-align: right; white-space: pre-line; }
.hours li.is-today .day,
.hours li.is-today .time { color: var(--accent-strong); }
.hours li.is-today .day::after {
  content: "heute";
  margin-left: .6rem;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  vertical-align: 2px;
}

.contact-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-list small { display: block; color: var(--muted); font-size: .9rem; }

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* beide Buttons gleich gross */
  gap: .75rem;
}
.contact-actions .btn { width: 100%; white-space: nowrap; padding-inline: 1rem; }
@media (max-width: 380px) { .contact-actions { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer {
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
.site-footer img { width: 210px; margin: 0 auto 1.75rem; opacity: .9; }
.site-footer p { margin: 0 0 .4rem; }
.site-footer nav { margin-top: 1.5rem; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }

/* ---------- Rechtliches ---------- */

.legal { padding: calc(var(--header-h) + 3rem) 0 5rem; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal p, .legal li { color: var(--muted); }
.legal .site-header .brand { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Feinschliff */
.about h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.news-grid { align-items: start; }

/* Nur ein Beitrag (z. B. Eröffnung): breite Darstellung mit Bild links */
@media (min-width: 860px) {
  .news-grid > .news-card:only-child {
    grid-column: 1 / -1;
    justify-self: center;   /* einzelner Beitrag mittig */
    width: 100%;
    max-width: 920px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
  }
  .news-grid > .news-card:only-child .news-card__img { grid-row: 1 / 3; height: 100%; object-fit: cover; }
  .news-grid > .news-card:only-child .news-card__body { padding: 2.25rem 2rem 1rem; justify-content: center; }
  .news-grid > .news-card:only-child .news-card__body h3 { font-size: 1.9rem; }
  .news-grid > .news-card:only-child .news-card__text { -webkit-line-clamp: 12; }
  .news-grid > .news-card:only-child .event-tiles { padding: 0 2rem 2rem; margin: 0; }
  .news-grid > .news-card:only-child:not(:has(.news-card__img)) { display: flex; }
}

/* Aktuelles: Titel mittig über den zentrierten Beiträgen */
#aktuelles .section__head { text-align: center; margin-inline: auto; }

/* Unauffälliger Zugang zur Verwaltung über das ©-Zeichen */
.copy-link { color: inherit; text-decoration: none; cursor: default; }
.copy-link:hover, .copy-link:focus-visible { color: var(--accent); }
.legal h3 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; font-family: var(--sans); font-weight: 600; }
.legal main a { color: var(--accent); }
