/* =========================================================
   PIT's Bistro & Bar – Stylesheet
   Klassisches Logo-Farbschema: Schwarz & Rot,
   warmer Creme-Hintergrund, serifenbetonte Headlines.
   ========================================================= */

:root {
  --color-bg: #eeeadc;
  --color-bg-alt: #e4dfcd;
  --color-surface: #ffffff;
  --color-text: #201c18;
  --color-text-muted: #5c554b;
  --color-primary: #161213;      /* Logo-Schwarz */
  --color-primary-dark: #0a0808;
  --color-accent: #c8102e;       /* Logo-Rot */
  --color-accent-dark: #970f24;
  --color-border: #ddd6c1;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.14);
  --shadow-card: 0 4px 14px rgba(22, 18, 19, 0.1);
  --radius: 10px;
  --max-width: 1140px;
  --font-heading: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

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

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

p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-accent-dark);
  margin-bottom: 0.6em;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--color-accent-dark); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn--outline:hover { background: rgba(255,255,255,0.12); }

.btn--outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline-dark:hover { background: var(--color-primary); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  color: #fff;
}

.brand-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.brand-logo-badge img {
  height: 34px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 4px;
}

/* Große Logo-Darstellung auf der Startseite */
.logo-masthead {
  background: var(--color-bg);
  text-align: center;
  padding: 44px 24px 8px;
}

.logo-masthead img {
  width: min(280px, 60vw);
  height: auto;
  margin: 0 auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #f1ece0;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

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

.hero {
  position: relative;
  color: #fff;
  padding: 96px 0 104px;
  background:
    radial-gradient(circle at 15% 20%, rgba(200,16,46,0.35), transparent 45%),
    linear-gradient(160deg, var(--color-primary-dark), var(--color-primary) 60%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 26px);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 720px; }

.hero p.lead {
  font-size: 1.15rem;
  color: #e7e2d4;
  max-width: 560px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
}

.page-hero {
  padding: 64px 0 72px;
}

.page-hero .eyebrow { color: var(--color-accent); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #e7e2d4; max-width: 620px; }

/* ---------- Cards / Grids ---------- */

.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* ---------- Opening hours table ---------- */

.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hours-table th, .hours-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.98rem;
}

.hours-table th { background: var(--color-bg-alt); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td.closed { color: var(--color-accent-dark); font-weight: 700; }

/* ---------- Menu (Speisekarte) ---------- */

.menu-category { margin-bottom: 48px; }

.menu-category h3 {
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 10px;
  margin-bottom: 22px;
  font-size: 1.3rem;
}

.menu-jump {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.menu-jump-inner {
  display: flex;
  gap: 28px;
  padding: 14px 20px;
}

.menu-jump a {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1.05rem;
}

.menu-jump a:hover { color: var(--color-accent); }

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--color-border);
}
.menu-item:last-child { border-bottom: none; }

.menu-item-name { font-weight: 700; }
.menu-item-desc { color: var(--color-text-muted); font-size: 0.92rem; margin-top: 2px; }
.menu-item-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.menu-note {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

/* ---------- Events ---------- */

.event-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.event-date {
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 14px 8px;
  height: fit-content;
}
.event-date .day { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.event-date .month { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--color-accent); margin-top: 4px; }
.event-date .year { font-size: 0.72rem; color: #d8d2c2; margin-top: 2px; }

@media (max-width: 560px) {
  .event-card { grid-template-columns: 1fr; }
  .event-date { display: flex; align-items: center; gap: 10px; justify-content: flex-start; }
}

.event-card h3 a { color: inherit; }
.event-card h3 a:hover { color: var(--color-accent-dark); }

.event-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent-dark);
}
.event-more:hover { text-decoration: underline; }

/* ---------- Bild-Platzhalter ---------- */

.image-placeholder {
  border: 2px dashed var(--color-border);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--color-text-muted);
  padding: 24px;
}
.image-placeholder .icon { font-size: 2.2rem; }
.image-placeholder strong {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.image-placeholder span { font-size: 0.85rem; max-width: 320px; }

/* ---------- Event-Detailseite ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
}
.back-link:hover { color: var(--color-accent-dark); }

.event-detail-meta {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.event-detail-meta li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.event-detail-meta .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
  font-weight: 700;
  margin-bottom: 4px;
}

/* ---------- Nächstes Event (Startseite) ---------- */

.next-event {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  align-items: center;
}
@media (max-width: 720px) {
  .next-event { grid-template-columns: 1fr; }
}
.next-event .image-placeholder { min-height: 180px; }

/* ---------- Streaming-Anbieter-Banner ---------- */

.section--tight { padding: 40px 0 56px; }

.stream-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.stream-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.stream-caption {
  text-align: center;
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* ---------- Galerie & Lightbox ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); }

.gallery-item:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.gallery-block { margin-top: 44px; }
.gallery-block h3 { margin-bottom: 16px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 8, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 64px;
}
.lightbox[hidden] { display: none; }

.lightbox-figure { margin: 0; max-width: 100%; text-align: center; }
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}
.lightbox-figure figcaption { color: #e7e2d4; font-size: 0.9rem; margin-top: 12px; }

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  border-radius: 999px;
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-btn:hover { background: var(--color-accent); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lightbox { padding: 56px 12px 24px; }
  .lightbox-prev { top: auto; bottom: 12px; left: 16px; transform: none; }
  .lightbox-next { top: auto; bottom: 12px; right: 16px; transform: none; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.info-list li:last-child { border-bottom: none; }
.info-list .label { font-weight: 700; min-width: 90px; color: var(--color-primary); }

form.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--color-bg);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.form-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 10px; }

/* ---------- Map placeholder ---------- */

.map-placeholder {
  height: 260px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(22,18,19,0.92), rgba(22,18,19,0.78)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 10px, transparent 10px 20px);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  margin-top: 24px;
}
.map-placeholder strong { font-family: var(--font-heading); font-size: 1.1rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  margin-top: 60px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e7e2d4; }

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

.site-footer {
  background: var(--color-primary-dark);
  color: #d8d2c2;
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 { color: #fff; font-family: var(--font-heading); margin-bottom: 14px; }
.footer-grid p, .footer-grid li { color: #c9c2b0; font-size: 0.92rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--color-accent); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #a39d8c;
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */

.legal-content h2 { margin-top: 1.6em; }
.legal-content p, .legal-content li { color: var(--color-text-muted); }
.legal-content a { color: var(--color-primary); text-decoration: underline; }
