/*
 Theme Name:   Twenty Seventeen Child
 Description:  Child Theme for Vordere Fluh
 Author:       Tobias Rabel
 Author URI:   http://www.vordere-fluh.de
 Template:     twentyseventeen
 Version:      1.2
 Text Domain:  twentyseventeen-child
*/
/* Add shadow tho the site-title */
.site-title a,
.site-description {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* enlarge site description */
body.has-header-image .site-branding .site-description,
body.has-header-video .site-branding .site-description {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Center navigation with flex (modern + stable) */
.navigation-top .main-navigation {
  float: none;
  display: flex;
  justify-content: center;
  /* THIS centers the menu */
}

.navigation-top .menu {
  display: flex;
  flex-wrap: nowrap;
  /* prevents line breaks */
}

/* Keep your wider container */
.navigation-top .wrap {
  max-width: 1400px;
  margin: 0 auto;
}

/* adjust list elements*/
ul {
  margin-left: 18px;
  margin-bottom: 10px;
}

@media screen and (max-width: 48em) {
  .navigation-top .main-navigation {
    display: block;
    /* reset flex */
    justify-content: initial;
  }

  .navigation-top .menu {
    display: block;
    /* reset flex */
  }
}


/* libre-franklin-300 - latin */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/libre-franklin-v13-latin-300.eot');
  /* IE9 Compat Modes */
  src: local(''),
    url('fonts/libre-franklin-v13-latin-300.eot?#iefix') format('embedded-opentype'),
    /* IE6-IE8 */
    url('fonts/libre-franklin-v13-latin-300.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('fonts/libre-franklin-v13-latin-300.woff') format('woff'),
    /* Modern Browsers */
    url('fonts/libre-franklin-v13-latin-300.ttf') format('truetype'),
    /* Safari, Android, iOS */
    url('fonts/libre-franklin-v13-latin-300.svg#LibreFranklin') format('svg');
  /* Legacy iOS */
}

/* libre-franklin-regular - latin */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/libre-franklin-v13-latin-regular.eot');
  /* IE9 Compat Modes */
  src: local(''),
    url('fonts/libre-franklin-v13-latin-regular.eot?#iefix') format('embedded-opentype'),
    /* IE6-IE8 */
    url('fonts/libre-franklin-v13-latin-regular.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('fonts/libre-franklin-v13-latin-regular.woff') format('woff'),
    /* Modern Browsers */
    url('fonts/libre-franklin-v13-latin-regular.ttf') format('truetype'),
    /* Safari, Android, iOS */
    url('fonts/libre-franklin-v13-latin-regular.svg#LibreFranklin') format('svg');
  /* Legacy iOS */
}

/* libre-franklin-600 - latin */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/libre-franklin-v13-latin-600.eot');
  /* IE9 Compat Modes */
  src: local(''),
    url('fonts/libre-franklin-v13-latin-600.eot?#iefix') format('embedded-opentype'),
    /* IE6-IE8 */
    url('fonts/libre-franklin-v13-latin-600.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('fonts/libre-franklin-v13-latin-600.woff') format('woff'),
    /* Modern Browsers */
    url('fonts/libre-franklin-v13-latin-600.ttf') format('truetype'),
    /* Safari, Android, iOS */
    url('fonts/libre-franklin-v13-latin-600.svg#LibreFranklin') format('svg');
  /* Legacy iOS */
}

/* libre-franklin-800 - latin */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/libre-franklin-v13-latin-800.eot');
  /* IE9 Compat Modes */
  src: local(''),
    url('fonts/libre-franklin-v13-latin-800.eot?#iefix') format('embedded-opentype'),
    /* IE6-IE8 */
    url('fonts/libre-franklin-v13-latin-800.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('fonts/libre-franklin-v13-latin-800.woff') format('woff'),
    /* Modern Browsers */
    url('fonts/libre-franklin-v13-latin-800.ttf') format('truetype'),
    /* Safari, Android, iOS */
    url('fonts/libre-franklin-v13-latin-800.svg#LibreFranklin') format('svg');
  /* Legacy iOS */
}

/* libre-franklin-300italic - latin */
@font-face {
  font-family: 'Libre Franklin';
  font-style: italic;
  font-weight: 300;
  src: url('fonts/libre-franklin-v13-latin-300italic.eot');
  /* IE9 Compat Modes */
  src: local(''),
    url('fonts/libre-franklin-v13-latin-300italic.eot?#iefix') format('embedded-opentype'),
    /* IE6-IE8 */
    url('fonts/libre-franklin-v13-latin-300italic.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('fonts/libre-franklin-v13-latin-300italic.woff') format('woff'),
    /* Modern Browsers */
    url('fonts/libre-franklin-v13-latin-300italic.ttf') format('truetype'),
    /* Safari, Android, iOS */
    url('fonts/libre-franklin-v13-latin-300italic.svg#LibreFranklin') format('svg');
  /* Legacy iOS */
}

/* libre-franklin-italic - latin */
@font-face {
  font-family: 'Libre Franklin';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/libre-franklin-v13-latin-italic.eot');
  /* IE9 Compat Modes */
  src: local(''),
    url('fonts/libre-franklin-v13-latin-italic.eot?#iefix') format('embedded-opentype'),
    /* IE6-IE8 */
    url('fonts/libre-franklin-v13-latin-italic.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('fonts/libre-franklin-v13-latin-italic.woff') format('woff'),
    /* Modern Browsers */
    url('fonts/libre-franklin-v13-latin-italic.ttf') format('truetype'),
    /* Safari, Android, iOS */
    url('fonts/libre-franklin-v13-latin-italic.svg#LibreFranklin') format('svg');
  /* Legacy iOS */
}

/* libre-franklin-600italic - latin */
@font-face {
  font-family: 'Libre Franklin';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/libre-franklin-v13-latin-600italic.eot');
  /* IE9 Compat Modes */
  src: local(''),
    url('fonts/libre-franklin-v13-latin-600italic.eot?#iefix') format('embedded-opentype'),
    /* IE6-IE8 */
    url('fonts/libre-franklin-v13-latin-600italic.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('fonts/libre-franklin-v13-latin-600italic.woff') format('woff'),
    /* Modern Browsers */
    url('fonts/libre-franklin-v13-latin-600italic.ttf') format('truetype'),
    /* Safari, Android, iOS */
    url('fonts/libre-franklin-v13-latin-600italic.svg#LibreFranklin') format('svg');
  /* Legacy iOS */
}

/* libre-franklin-800italic - latin */
@font-face {
  font-family: 'Libre Franklin';
  font-style: italic;
  font-weight: 800;
  src: url('fonts/libre-franklin-v13-latin-800italic.eot');
  /* IE9 Compat Modes */
  src: local(''),
    url('fonts/libre-franklin-v13-latin-800italic.eot?#iefix') format('embedded-opentype'),
    /* IE6-IE8 */
    url('fonts/libre-franklin-v13-latin-800italic.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('fonts/libre-franklin-v13-latin-800italic.woff') format('woff'),
    /* Modern Browsers */
    url('fonts/libre-franklin-v13-latin-800italic.ttf') format('truetype'),
    /* Safari, Android, iOS */
    url('fonts/libre-franklin-v13-latin-800italic.svg#LibreFranklin') format('svg');
  /* Legacy iOS */
}

/* adjust fields*/
/* Make number and select fields uniform height, excluding checkboxes/radios */
.booking-form .form-field input[type="text"],
.booking-form .form-field input[type="email"],
.booking-form .form-field input[type="tel"],
.booking-form .form-field input[type="number"],
.booking-form .form-field input[type="date"],
.booking-form .form-field select,
.booking-form .form-field textarea {
  height: 40px;
  /* uniform height */
  box-sizing: border-box;
  /* padding included in height */
  font-size: 16px;
  padding: 6px 10px;
}

/* Remove spinner arrows on number input */
.booking-form .form-field input[type="number"]::-webkit-outer-spin-button,
.booking-form .form-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.booking-form .form-field input[type="number"] {
  -moz-appearance: textfield;
  /* Firefox */
}

/* Optional: adjust textarea separately */
.booking-form .form-field textarea {
  height: auto;
  /* keep flexible for multi-line messages */
  min-height: 80px;
}

/* Target date inputs inside your booking form */
.booking-form .form-field input[type="date"] {
  -webkit-appearance: none;
  /* remove native iOS styling */
  -moz-appearance: none;
  /* Firefox */
  appearance: none;
  height: 40px;
  /* match other fields */
  padding: 6px 10px;
  /* same padding as other fields */
  font-size: 16px;
  /* match text size */
  box-sizing: border-box;
}

/* Optional: placeholder alignment on iOS */
.booking-form .form-field input[type="date"]::-webkit-datetime-edit {
  padding: 6px 10px;
}

/* Optional: icon alignment (calendar) */
.booking-form .form-field input[type="date"]::-webkit-calendar-picker-indicator {
  right: 10px;
  padding: 0;
  cursor: pointer;
}


/* ------------------------------------------------
   FORM CONTAINER
------------------------------------------------ */
.booking-form {
  max-width: 900px;
  margin: auto;
}

/* ------------------------------------------------
   GRID LAYOUT
------------------------------------------------ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

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

.booking-form label {
  font-weight: 600;
  margin-bottom: 6px;
}

/* ------------------------------------------------
   INPUT FIELDS
------------------------------------------------ */
.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.wpcf7 textarea {
  min-height: 120px;
}

/* ------------------------------------------------
   SALUTATION BUTTONS
------------------------------------------------ */
.group-salutation {
  margin-bottom: 20px;
}

.group-salutation .wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.group-salutation .wpcf7-list-item {
  margin: 0;
}

.group-salutation input[type="radio"] {
  display: none;
}

.group-salutation .wpcf7-list-item-label {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  background: #f7f7f7;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.group-salutation input[type="radio"]:checked+.wpcf7-list-item-label {
  background: #1e73be;
  color: white;
  border-color: #1e73be;
}

/* ------------------------------------------------
   REQUEST TYPE BUTTONS
------------------------------------------------ */
.group-reservation {
  margin-bottom: 20px;
}

.group-reservation .wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.group-reservation .wpcf7-list-item {
  margin: 0;
}

.group-reservation input[type="radio"] {
  display: none;
}

.group-reservation .wpcf7-list-item-label {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  background: #f7f7f7;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.group-reservation input[type="radio"]:checked+.wpcf7-list-item-label {
  background: #1e73be;
  color: white;
  border-color: #1e73be;
}

/* ------------------------------------------------
   CHILD AGE FIELDS
------------------------------------------------ */
.children-ages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.child-age-field {
  display: flex;
  flex-direction: column;
}

.child-age-field input,
.child-age-field select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

/* ------------------------------------------------
   SUBMIT BUTTON
------------------------------------------------ */
.wpcf7-submit {
  background: #1e73be;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.wpcf7-submit:hover {
  background: #155a96;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* ------------------------------------------------
   CONSENT TEXT
------------------------------------------------ */
.consent {
  font-size: 14px;
}

/* ------------------------------------------------
   CONSENT CHECKBOX
------------------------------------------------ */
.form-field.consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.form-field.consent .wpcf7-list-item {
  width: 100%;
  margin: 0;
}

.form-field.consent .wpcf7-list-item-label {
  flex: 1;
  display: block;
  word-break: break-word;
}

.form-field.consent input[type="checkbox"] {
  width: auto;
  margin: 0;
  position: relative;
  top: 3px;
}

/* ------------------------------------------------
   CF7 ERROR MESSAGES
------------------------------------------------ */
.wpcf7-not-valid-tip {
  display: none;
  /* hide by default */
  color: #d93025;
  /* red text */
  font-size: 0.9rem;
  margin-top: 0.25rem;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.wpcf7-form.wpcf7-submitted .wpcf7-not-valid-tip {
  display: block;
  opacity: 1;
}

.wpcf7-form.wpcf7-submitted .wpcf7-not-valid {
  border-color: #d93025;
  background-color: #fff0f0;
}

/* ------------------------------------------------
   MOBILE RESPONSIVE
------------------------------------------------ */
@media (max-width: 768px) {

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

  .children-ages {
    grid-template-columns: repeat(2, 1fr);
  }

  /* radio buttons stack vertically */
  .group-reservation .wpcf7-form-control,
  .group-salutation .wpcf7-form-control {
    flex-direction: column;
    align-items: stretch;
  }

  .group-reservation .wpcf7-list-item-label,
  .group-salutation .wpcf7-list-item-label {
    width: 100%;
    text-align: center;
  }
}

/* Fade the entire content of a past event */
.event-past {
  opacity: 0.45;
  filter: grayscale(40%);
  transition: opacity .3s ease;
}

.event-past .ctlb-block-title::after {
  content: " (Vergangen)";
  font-size: 0.8em;
  color: #777;
}

/* ------------------------------------------------
   QR MENU LAYOUT
------------------------------------------------ */

#qr-menu {
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* IMPORTANT:
   Keep Twenty Seventeen native content styling active
*/
.menu-content.entry-content {
  width: 100%;
}

/* ------------------------------------------------
   HEADER
------------------------------------------------ */

.menu-header h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* ------------------------------------------------
   STICKY NAVIGATION
------------------------------------------------ */

.menu-nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: center;
  gap: 10px;

  padding: 10px;

  background: #fff;
  border-bottom: 1px solid #eee;
}

/* Buttons */
.menu-nav a {
  display: inline-block;

  padding: 8px 16px;

  background: #acacac;
  color: #fff;

  text-decoration: none;

  border-radius: 20px;

  font-size: 14px;
  font-weight: 500;

  transition: all 0.2s ease;
}

.menu-nav a:hover,
.menu-nav a.active {
  background: #333;
}

/* ------------------------------------------------
   MENU SECTIONS
------------------------------------------------ */

.menu-section {
  margin-bottom: 30px;
}

.menu-section h2 {
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

/* Anchor offset for sticky nav */
.menu-content [id] {
  scroll-margin-top: 80px;
}

html {
  scroll-behavior: smooth;
}

/* ------------------------------------------------
   TABLES
------------------------------------------------ */

/* IMPORTANT:
   Do NOT reset native Twenty Seventeen table behavior
*/

.menu-content.entry-content table {
  width: 100%;
}

/* Zebra stripes */
.menu-content.entry-content table tr:nth-child(odd) td {
  background-color: #f7f7f7;
}

/* Keep price column compact */
.menu-content.entry-content td:last-child {
  white-space: nowrap;
  text-align: right;
}

/* Optional:
   slightly tighter spacing for restaurant menus
*/
.menu-content.entry-content td,
.menu-content.entry-content th {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* ------------------------------------------------
   MOBILE
------------------------------------------------ */

@media (max-width: 600px) {

  .menu-content p {
    grid-template-columns: 1fr;
  }

  .item-price {
    text-align: right;
  }

  .item-desc {
    opacity: 0.7;
    font-size: 0.85em;
  }
}

/* ------------------------------------------------
   MINIMAL FOOTER
------------------------------------------------ */

.footer-minimal {
  text-align: center;
  padding: 20px;
}

.footer-logo img {
  max-width: 120px;
  height: auto;
  margin-bottom: 10px;
}

.footer-links a {
  display: inline-block;
  position: relative;

  margin: 0 8px;

  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links a:not(:last-child)::after {
  content: "|";

  position: absolute;
  right: -10px;

  color: #999;
}

/* ------------------------------------------------
   MOBILE FOOTER
------------------------------------------------ */

@media (max-width: 480px) {

  .footer-links a {
    display: block;
    margin: 5px 0;
  }

  .footer-links a::after {
    display: none;
  }
}