/* ==========================================================================
   Paulaner am Thielenplatz – statischer Nachbau
   Autor: kenmedia
   Struktur: 1) Basis  2) Layout  3) Header/Navigation  4) Hero  5) Sektionen
             6) Komponenten  7) Formulare  8) Footer  9) Responsive
   ========================================================================== */

/* 1) Basis -------------------------------------------------------------- */

:root {
  --blue: #002a5a;
  --blue-footer: #012a5a;
  --gold: #d7b448;
  --brown: #ac9587;
  --text: #333333;
  --heading-grey: #666666;
  --light: #f2f2f2;
  --card: #f1f1f1;
  --white: #ffffff;

  --container: 1300px;
  --container-narrow: 1170px;
  --header-height: 90px;

  --font-heading: 'Domine', Georgia, serif;
  --font-body: 'PT Sans', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 30px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip statt hidden: bricht position:sticky nicht */
}

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

/* <picture> erzeugt keine eigene Box – dadurch verhalten sich die Bilder
   nach der WebP-Umstellung exakt wie vorher (u. a. height:100% in Karten). */
picture {
  display: contents;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color .25s ease;
}

a:hover {
  color: var(--brown);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 10px;
  font-weight: 400;
}

h1 {
  font-size: 40px;
  line-height: 60px;
  font-weight: 600;
  color: var(--blue);
}

h2 {
  font-size: 50px;
  line-height: 1.15;
  color: var(--heading-grey);
}

h3 {
  font-size: 24px;
  line-height: 1.3;
  color: var(--blue);
}

p {
  margin: 0 0 10px;
}

/* 2) Layout ------------------------------------------------------------- */

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

.container--narrow {
  max-width: var(--container-narrow);
}

.text-center {
  text-align: center;
}

.section {
  padding: 100px 0;
}

/* 3) Header / Navigation ------------------------------------------------ */

.topbar {
  background: var(--blue);
  height: 17px;
}

/* Platzhalter wird nur gebraucht, wenn der Header fixiert ist (Fallback) */
.nav-placeholder {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo {
  position: relative;
  z-index: 10;
  flex: 0 0 auto;
}

.site-logo img {
  width: 200px;
  height: auto;
  box-shadow: rgba(0, 0, 0, .56) 0 1px 23px -3px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  padding: 0 15px;
  height: var(--header-height);
  line-height: var(--header-height);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.is-active > a {
  color: var(--brown);
}

.main-nav > ul > li.nav-cta > a {
  background: var(--gold);
  color: var(--white);
}

.main-nav > ul > li.nav-cta > a:hover {
  background: #c9a53a;
  color: var(--white);
}

/* Inline-SVG-Icons statt Icon-Font: erben Farbe und Groesse vom Text */
.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -0.125em;
}

.main-nav .nav-cta .icon {
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  color: var(--blue);
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blue);
  margin: 6px 0;
  transition: transform .3s ease, opacity .3s ease;
}

/* Schliessen-Button im mobilen Panel. Der Hamburger liegt unter dem Panel und
   ist dort nicht mehr erreichbar – ohne diesen Button gaebe es keinen Weg zurueck. */
.nav-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 18px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.nav-close:hover,
.nav-close:focus-visible {
  background: var(--light);
  color: var(--brown);
}

.nav-close .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 998;
}

body.nav-open .nav-backdrop {
  display: block;
}

/* Hintergrund nicht mitscrollen lassen, solange das Menue offen ist */
body.nav-open {
  overflow: hidden;
}

/* 4) Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  height: 530px;
  overflow: hidden;
  background: #d9d4cd; /* Platzhalterton, bis das Bild da ist */
}

/* Hero als echtes <img>: preloadbar, WebP-faehig, kein Layout-Shift */
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero--sub {
  height: 300px;
}

.hero__wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 50px;
  display: block;
  z-index: 2;
}

.hero__wave path {
  fill: var(--white);
}

/* 5) Sektionen ---------------------------------------------------------- */

.intro {
  padding: 70px 0 90px;
  text-align: center;
}

.intro h1 {
  margin-bottom: 40px;
}

.intro p {
  margin-bottom: 20px;
}

/* Holz-Sektion mit Info-Karten */
.wood {
  padding: 100px 0;
  background-image: url('../img/bg/bg-holz.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.wood--sub {
  background-image: url('../img/inhaltsbilder/AdobeStock_202305622_Preview-2.jpg');
}

.wood__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 15px;
  align-items: start;
}

.info-card {
  background: var(--blue);
  color: var(--white);
  padding: 30px;
}

.info-card h2 {
  color: var(--white);
  font-size: 40px;
  font-weight: 300;
  line-height: 44px;
  margin-bottom: 20px;
}

.info-card p {
  margin: 0;
}

.info-card strong {
  font-weight: 700;
}

.info-card__spacer {
  height: 30px;
}

/* Split-Sektionen: halb Bild, halb Text */
.split {
  display: flex;
  flex-wrap: wrap;
  background: var(--light);
}

.split--blue {
  background: var(--blue);
}

.split__media {
  flex: 0 0 50%;
  min-height: 700px;
  background-size: cover;
  background-position: center;
}

.split__body {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  padding: 80px 65px;
}

.split__inner {
  max-width: 490px;
  width: 100%;
}

.split--text-right .split__body {
  justify-content: flex-start;
}

.split--text-left .split__body {
  justify-content: flex-end;
}

.split__body h2 {
  margin-bottom: 25px;
}

.split--blue .split__body h2 {
  color: var(--white);
}

.split--blue .split__body,
.split--blue .split__body p {
  color: var(--white);
}

.split__body p {
  margin-bottom: 25px;
}

/* Leistungsliste */
.feature-list {
  list-style: none;
  margin: 0 0 35px;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 20px;
  line-height: 30px;
}

.feature-list .icon {
  color: var(--gold);
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 5px;
}

/* 6) Komponenten -------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--blue);
  color: var(--gold);
  border: 2px dashed var(--gold);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.btn:hover {
  background: var(--gold);
  color: var(--blue);
  border-color: var(--gold);
}

.btn--icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn--icon .icon {
  width: 20px;
  height: 20px;
}

.btn--solid {
  background: var(--blue);
  color: var(--white);
  border: 0;
  border-radius: 3px;
  padding: 12px 20px;
  font-size: 18px;
}

.btn--solid:hover {
  background: #01386f;
  color: var(--white);
}

/* Karten-Grid (Speisekarten) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 360px);
  justify-content: center;
  gap: 40px 55px;
  padding: 30px 15px 60px;
}

/* Letzte, allein stehende Karte mittig setzen (wie im Original) */
@media (min-width: 1200px) {
  .card-grid .menu-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

.menu-card {
  position: relative;
  display: block;
  width: 360px;
  height: 240px;
  overflow: hidden;
}

.menu-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.menu-card:hover img {
  transform: scale(1.05);
}

.menu-card__label {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(241, 241, 241, .9);
  padding: 30px 40px;
  text-align: center;
}

.menu-card__label h3 {
  margin: 0;
  font-size: 24px;
  line-height: 26px;
  color: var(--blue);
}

/* Bier-Zeilen */
.beer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 15px;
}

.beer__media {
  flex: 0 0 50%;
  padding: 0 15px;
  text-align: center;
}

.beer__media img {
  margin: 0 auto;
  max-height: 508px;
  width: auto;
}

.beer__body {
  flex: 0 0 50%;
  padding: 0 15px;
}

.beer__body h2 {
  font-size: 30px;
  font-weight: 300;
  color: var(--heading-grey);
  margin-bottom: 20px;
}

.beer__body p {
  margin-bottom: 25px;
}

.beer__body h4 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.beer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 20px;
}

.beer-table td {
  padding: 8px 10px;
  border-top: 1px solid #e2e2e2;
}

.beer-table tr:last-child td {
  border-bottom: 1px solid #e2e2e2;
}

.beer-table td:first-child {
  width: 45%;
}

/* Punkt-Trenner */
.dot-divider {
  width: 360px;
  height: 4px;
  margin: 70px auto;
  background-image: radial-gradient(circle, var(--gold) 2px, transparent 2.1px);
  background-size: 11px 4px;
  background-repeat: repeat-x;
}

/* Job-Karten */
.job-card {
  background: var(--card);
  padding: 60px 40px;
  text-align: center;
  margin-bottom: 70px;
}

.job-card h2 {
  font-size: 30px;
  font-weight: 300;
  color: var(--heading-grey);
  margin-bottom: 25px;
}

.job-card p {
  margin-bottom: 20px;
}

.job-card .btn {
  margin-top: 20px;
}

/* Textseiten (Impressum etc.) */
.legal {
  padding: 60px 0 90px;
}

.legal h1 {
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.legal h2 {
  font-size: 30px;
  color: var(--blue);
  margin: 45px 0 15px;
}

.legal h3 {
  font-size: 24px;
  color: var(--heading-grey);
  margin: 30px 0 10px;
}

.legal p,
.legal li {
  font-size: 18px;
  line-height: 28px;
}

.legal ul {
  padding-left: 20px;
}

.legal a {
  word-break: break-word;
}

/* 7) Formulare ---------------------------------------------------------- */

.form-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 15px 90px;
}

.form-intro {
  text-align: center;
  padding: 60px 0 40px;
}

.form-intro h1 {
  margin-bottom: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group label .req {
  color: #c0392b;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 26px;
  color: var(--text);
  background: var(--white);
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  transition: border-color .25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-row span {
  font-size: 20px;
  white-space: nowrap;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  margin: 10px 0 25px;
}

.form-check input {
  margin-top: 5px;
}

.form-note {
  font-size: 16px;
  line-height: 24px;
  color: #777;
  margin-top: 20px;
  min-height: 24px;
}

/* Honeypot: fuer Menschen unsichtbar, fuer Bots verlockend.
   Bewusst nicht display:none – manche Bots ueberspringen versteckte Felder. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn--solid[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

/* 8) Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--blue-footer);
  color: var(--white);
  padding: 20px 0 50px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 40px 0 0;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px 30px;
}

.site-footer a {
  color: rgba(255, 255, 255, .9);
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer a::before {
  content: '\203A';
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, .9);
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer a:hover::before {
  color: var(--gold);
}

/* 9) Responsive --------------------------------------------------------- */

@media (max-width: 1199px) {
  .split__body {
    padding: 60px 40px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 360px);
  }
}

@media (max-width: 991px) {
  h2 {
    font-size: 36px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-close {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--white);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 999;
    padding: 90px 0 30px;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, .15);
  }

  body.nav-open .main-nav {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav > ul > li > a {
    height: auto;
    line-height: 1.4;
    padding: 16px 25px;
    border-bottom: 1px solid #eee;
  }

  .site-logo img {
    width: 150px;
  }

  .hero {
    height: 400px;
  }

  .hero--sub {
    height: 240px;
  }

  .hero__wave {
    height: 32px;
  }

  .split__media {
    flex: 0 0 100%;
    min-height: 320px;
  }

  .split__body {
    flex: 0 0 100%;
    padding: 50px 25px;
    justify-content: center !important;
  }

  .split__inner {
    max-width: 600px;
  }

  .split--text-left {
    flex-direction: column-reverse;
  }

  .wood__grid {
    grid-template-columns: 1fr;
  }

  .wood {
    background-attachment: scroll;
    padding: 60px 0;
  }

  .beer__media,
  .beer__body {
    flex: 0 0 100%;
  }

  .beer__media {
    margin-bottom: 30px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    gap: 30px;
  }

  .menu-card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 18px;
    line-height: 28px;
  }

  h1 {
    font-size: 30px;
    line-height: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .info-card h2 {
    font-size: 30px;
    line-height: 38px;
  }

  .intro {
    padding: 50px 0 60px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .job-card {
    padding: 35px 20px;
  }

  .site-footer ul {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dot-divider {
    width: 240px;
    margin: 45px auto;
  }
}
