/*
Theme Name: Tunnelschänke
Theme URI: https://tunnelschaenke.de
Author: ChatGPT Theme Generator
Description: Custom WordPress theme for the Tunnelschänke Bergheim.  Built from scratch based on the provided mock‑ups.
Version: 1.0
Requires PHP: 8.1
Requires at least: 6.0
*/

/*
 * This stylesheet contains all of the bespoke design used to render the
 * Tunnelschänke start page.  It defines a palette, helper classes and
 * responsive layouts.  Images referenced here live in the
 * `assets/images` directory of the theme.  When updating any of the
 * pictures you only need to replace the corresponding file in that
 * directory.
 */

:root {
  --ts-red: #a83228;
  --ts-red-dark: #781f19;
  --ts-beige: #f3e3c8;
  --ts-beige-light: #fff6e8;
  --ts-dark: #101820;
  --ts-blueblack: #0b1720;
  --ts-wood: #2a1710;
  --ts-text: #2b2119;
  --ts-white: #ffffff;
  --ts-radius: 28px;
  --ts-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

body {
  background: var(--ts-beige-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  color: var(--ts-text);
}

.ts-home {
  color: var(--ts-text);
  overflow: hidden;
}

.ts-container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

/*
 * Hero section uses a dark overlay on top of a photograph.  The image is
 * pulled from the theme’s assets directory.  Adjust the URL if you wish
 * to replace the picture.
 */
.ts-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0.38)),
    url("assets/images/hero-tunnelschaenke-aussen.webp") center / cover no-repeat;
  color: var(--ts-white);
  padding: 110px 18px 90px;
}

.ts-hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -45px;
  height: 90px;
  background: var(--ts-beige);
  border-radius: 50% 50% 0 0;
  z-index: 2;
}

.ts-hero__content {
  position: relative;
  z-index: 3;
  width: min(1180px, 100%);
  margin: 0 auto;
  max-width: 780px;
}

.ts-kicker {
  display: inline-block;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ts-red);
}

.ts-hero .ts-kicker {
  color: #ffd08a;
}

.ts-hero h1,
.ts-section h2,
.ts-cta h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.ts-hero h1 {
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  max-width: 900px;
}

.ts-hero__text {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.ts-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.ts-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ts-button--primary {
  background: var(--ts-red);
  color: var(--ts-white);
  box-shadow: 0 12px 28px rgba(168, 50, 40, 0.35);
}

.ts-button--secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--ts-white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
}

.ts-section {
  padding: 96px 0;
}

.ts-section--beige {
  background: var(--ts-beige);
}

.ts-section--dark {
  background: var(--ts-blueblack);
  color: var(--ts-white);
}

.ts-section--wood {
  background:
    linear-gradient(rgba(22, 10, 5, 0.82), rgba(22, 10, 5, 0.9)),
    url("assets/images/holzstruktur-dunkel.webp") center / cover no-repeat;
  color: var(--ts-white);
}

.ts-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.ts-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.ts-section h2,
.ts-cta h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.ts-section p {
  font-size: 1.08rem;
  line-height: 1.75;
}

.ts-image-stack {
  position: relative;
  min-height: 480px;
}

.ts-image {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--ts-radius);
  box-shadow: var(--ts-shadow);
}

.ts-image--main {
  height: 430px;
}

.ts-image--small {
  position: absolute;
  width: 48%;
  height: 220px;
  right: -10px;
  bottom: -35px;
  border: 8px solid var(--ts-beige);
}

.ts-section-head {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.ts-section-head--light .ts-kicker {
  color: #ffd08a;
}

.ts-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.ts-card {
  overflow: hidden;
  border-radius: var(--ts-radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--ts-shadow);
}

.ts-card img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.ts-card__body {
  padding: 28px;
}

.ts-card h3,
.ts-event h3,
.ts-hours-card h3 {
  margin: 0 0 10px;
  font-size: 1.65rem;
}

.ts-card p,
.ts-event p {
  color: rgba(255, 255, 255, 0.82);
}

.ts-card a,
.ts-event a,
.ts-contact-box a {
  color: #ffd08a;
  font-weight: 800;
  text-decoration: none;
}

.ts-events {
  display: grid;
  gap: 24px;
}

.ts-event {
  position: relative;
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  border-radius: var(--ts-radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--ts-shadow);
}

.ts-event img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.ts-event__body {
  padding: 34px;
}

.ts-event__meta {
  margin-top: 0;
  color: #ffd08a !important;
  font-weight: 800;
}

.ts-event__date {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--ts-red);
  color: var(--ts-white);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.ts-event__date span {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
}

.ts-event__date small {
  display: block;
  margin-top: -12px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.ts-hours-card {
  padding: 36px;
  border-radius: var(--ts-radius);
  background: var(--ts-white);
  box-shadow: var(--ts-shadow);
}

.ts-hours-card dl {
  margin: 22px 0 0;
}

.ts-hours-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ts-hours-card dt {
  font-weight: 800;
}

.ts-hours-card dd {
  margin: 0;
}

.ts-note {
  margin-top: 18px;
  font-size: 0.95rem !important;
  opacity: 0.72;
}

.ts-contact-box {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--ts-radius);
  background: rgba(255, 255, 255, 0.52);
}

.ts-contact-box a {
  color: var(--ts-red);
}

.ts-cta {
  padding: 90px 0;
  text-align: center;
  color: var(--ts-white);
  background:
    linear-gradient(rgba(120, 31, 25, 0.92), rgba(120, 31, 25, 0.92)),
    url("assets/images/hero-tunnelschaenke-innen.webp") center / cover no-repeat;
}

.ts-cta .ts-kicker {
  color: #ffd08a;
}

.ts-cta .ts-button {
  margin-top: 28px;
  background: var(--ts-white);
  color: var(--ts-red-dark);
}

/*
 * Menüansicht für Speisen und Getränke
 * Diese Klassen sorgen für eine klare Tabellendarstellung der Gerichte
 * und Getränke inklusive Größe und Preis.  Kategorien werden mit
 * Überschriften separiert.  Die Tabelle ist schlicht gehalten, damit
 * sich die Inhalte gut lesen lassen.
 */
.ts-menu-category {
  margin-top: 48px;
}

.ts-menu-category h3 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  color: var(--ts-red);
}

.ts-menu-table {
  width: 100%;
  border-collapse: collapse;
  color: inherit;
  margin-top: 8px;
}

.ts-menu-table th,
.ts-menu-table td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.ts-menu-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  opacity: 0.6;
  text-align: left;
}

.ts-menu-name {
  font-weight: 700;
}

.ts-menu-size {
  text-align: right;
  white-space: nowrap;
  opacity: 0.8;
}

.ts-menu-price {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

/*
 * Media queries for responsive behaviour.  On smaller screens the grid
 * collapses and elements are stacked.
 */
@media (max-width: 900px) {
  .ts-grid--2,
  .ts-card-grid,
  .ts-event {
    grid-template-columns: 1fr;
  }
  .ts-section {
    padding: 72px 0;
  }
  .ts-image-stack {
    min-height: auto;
  }
  .ts-image--main {
    height: 330px;
  }
  .ts-image--small {
    position: relative;
    right: auto;
    bottom: auto;
    width: 78%;
    height: 210px;
    margin: -70px 0 0 auto;
  }
  .ts-card img {
    height: 230px;
  }
  .ts-event img {
    height: 240px;
  }
  .ts-hero {
    min-height: 76vh;
    padding-top: 90px;
  }
}

@media (max-width: 560px) {
  .ts-container {
    width: min(100% - 26px, 1180px);
  }
  .ts-hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }
  .ts-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ts-button {
    width: 100%;
  }
  .ts-hours-card dl div {
    flex-direction: column;
    gap: 4px;
  }
}
/* Menü horizontal ausrichten und Bulletpoints entfernen */
.primary-menu .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
    align-items: center;
}

.primary-menu .nav-menu li {
    margin: 0;
}

.primary-menu .nav-menu a {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ts-red);
    text-decoration: none;
}

.primary-menu .nav-menu a:hover {
    text-decoration: underline;
}