/**
 * Lotte's Stuttgart – Seiten-Design
 *
 * Übernommen aus „Simple Custom CSS and JS“ (Post 52 „Lottes Global CSS“), Schritt 2.4a.
 * Schriften kommen lokal aus theme.json (kein Google-Fonts-Import).
 */

body {
  font-family: "Jost", sans-serif;
}

h1,
h2,
h3,
.lottes-title {
  font-family: "Cormorant Garamond", serif;
}

:root {
  --bg: #566366;
  --gold: #f5c98a;
  --gold-light: #fde3b8;
  --cream: #fdf6ee;
  --dark: #2e3a3c;
  --text-muted: rgba(253,246,238,0.6);
}

body,
.wp-site-blocks {
  background-color: var(--bg);
  color: var(--cream);
}

body {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

h1,
h2,
h3,
.lottes-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  color: var(--gold-light);
}

a {
  color: var(--gold);
  text-decoration: none;
}

.lottes-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 7rem 2.5rem 5rem;
}

/* Abschnitt in einem Abschnitt (Seite „Anschrift“): kein doppelter seitlicher Abstand,
   sonst werden Adresse und Öffnungszeiten – v. a. auf dem Handy – zu schmal (wie auf „Home“). */
.lottes-section .lottes-section {
  padding-left: 0;
  padding-right: 0;
}

.lottes-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.lottes-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  margin: 1.5rem 0 2.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.address-block {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  line-height: 2;
  color: rgba(253,246,238,0.85);
}

  .address-block a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'Jost', sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 1rem;
    border-bottom: 1px solid var(--gold);
    opacity: 0.8;
    transition: opacity 0.3s;
  }

  .address-block a:hover { opacity: 1; }

.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hours-day {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-light);
  white-space: nowrap;
}

.hours-time {
  color: rgba(253,246,238,0.8);
}

.hours-closed {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.lottes-map-link,
.lottes-map-link:visited,
.lottes-map-link:hover,
.lottes-map-link:active {
  color: var(--gold) !important;
  background: transparent !important;
  text-decoration: none !important;
}

.lottes-map-link::before {
  content: none !important;
  display: none !important;
}

.lottes-map-link::after {
  content: "↗" !important;
  display: inline-block !important;
  margin-left: 0.45rem;
  font-size: 0.85em;
  line-height: 1;
  background: transparent !important;
  color: var(--gold) !important;
  transform: translateY(-0.04em);
}

.lottes-map-link {
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 1.1rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(245,201,138,0.45);
  opacity: 0.82;
  transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.lottes-map-link:hover {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-1px);
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: lottesFadeUp 1.2s ease forwards;
}

.fade-delay-1 {
  animation-delay: 0.3s;
}

.fade-delay-2 {
  animation-delay: 0.5s;
}

@keyframes lottesFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== NAVIGATION ===== */

header,
.wp-block-template-part.header {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px); /* angemeldet: unter der WordPress-Werkzeugleiste, sonst 0 */
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(
    to bottom,
    rgba(86,99,102,0.95),
    transparent
  );
}

.wp-block-navigation {
  display: flex;
  justify-content: flex-end;
  gap: 2.5rem;
  padding: 1.5rem 3rem;
}

.wp-block-navigation a {
  color: var(--gold-light) !important;
  text-decoration: none !important;
  opacity: 0.8;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: "Jost", sans-serif;
  transition: opacity 0.3s ease;
}

.wp-block-navigation a:hover {
  opacity: 1;
}

/* ===== HEADER LAYOUT ===== */

header .wp-block-group,
header .wp-block-row,
header .wp-block-columns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */

header img {
  width: 140px;
  height: auto;
  opacity: 0.95;
  display: block;
}

/* Navigation rechts */

header .wp-block-navigation {
  margin-left: auto;
}

@media (max-width: 768px) {
  .wp-block-navigation {
    gap: 1.2rem;
    padding: 1.2rem 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .wp-block-navigation a {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }
}

/* Footer Text */

footer p,
.wp-block-template-part.footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: "Jost", sans-serif;
  opacity: 0.75;
}

/* Footer-Navigation (Impressum, Datenschutz): immer mittig, gleiche Abstände links/rechts.
   Die allgemeine Navigationsregel oben (padding 3rem, justify-content: flex-end) ist für den Header gedacht. */
footer .wp-block-navigation,
.wp-block-template-part footer .wp-block-navigation,
footer .wp-block-navigation__container {
  justify-content: center !important;
  margin-left: auto;
  margin-right: auto;
}

footer .wp-block-navigation {
  padding-left: 0;
  padding-right: 0;
}

/* ===== MOBILE HEADER / MENU ===== */

@media (max-width: 768px) {
  /* Logo nur ganz oben zeigen; beim Scrollen weich ausblenden (Klasse von assets/js/header.js).
     Die Kopfzeile bleibt fixiert, damit das Menü-Symbol immer erreichbar ist. */
  header img,
  .wp-block-template-part.header img {
    width: 110px;
  }

  header .wp-block-image,
  .wp-block-template-part.header .wp-block-image {
    margin: 0 0 0 1.4rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  body.lottes-scrolled header .wp-block-image,
  body.lottes-scrolled .wp-block-template-part.header .wp-block-image {
    opacity: 0;
    visibility: hidden;
  }

  .wp-block-navigation__responsive-container.is-menu-open {
    background-color: var(--bg) !important;
    color: var(--cream) !important;
    padding: 2rem;
  }

  .wp-block-navigation__responsive-container.is-menu-open a {
    color: var(--gold-light) !important;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .wp-block-navigation__responsive-container-close,
  .wp-block-navigation__responsive-container-open {
    color: var(--gold-light) !important;
  }

  .wp-block-navigation__responsive-container-open svg,
  .wp-block-navigation__responsive-container-close svg {
    fill: var(--gold-light) !important;
  }
}

/* ===== IOS SAFE AREA ===== */

footer,
.wp-block-template-part.footer {
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
}

/* ===== ÜBERSCHRIFT H1 (alle Seiten) ===== */

h1 {
  text-align: center;
  margin: 0 0 1.2rem;
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
}

h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: rgba(245,201,138,0.7);
  margin: 1.4rem auto 1.5rem;
}



/* Handy: lange Überschriften (z. B. „Datenschutzerklärung“) trennen statt über den Rand laufen */
@media (max-width: 640px) {
  h1 {
    hyphens: auto;
    overflow-wrap: break-word;
  }
}

/* Speisekarte: CSS liegt seit Schritt 3.4b im Plugin lottes-speisekarte (blocks/speisekarte/style.css). */

/* ===== RESERVIERUNG / CONTACT FORM 7 ===== */

.wpcf7-form {
  max-width: 560px;
  margin: 0 auto;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 1.6rem;
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.wpcf7-form-control {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(253,246,238,0.3);
  color: var(--cream);
  font-family: "Jost", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.3s ease;
}

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

.wpcf7-form-control::placeholder {
  color: rgba(253,246,238,0.4);
}

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

/* Zahlen-/Datumsfelder: Browser-Icon ans Gold anpassen (nur Chrome/Edge) */
input[type="date"].wpcf7-form-control,
input[type="number"].wpcf7-form-control {
  color-scheme: dark;
}

/* Submit-Button im Stil eurer Links (z. B. .lottes-map-link) */
.wpcf7-submit {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2.4rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.wpcf7-submit:hover {
  background: var(--gold);
  color: var(--dark);
}

/* Fehlermeldungen */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.4rem;
  color: #f3a5a5;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: normal;
}

/* Erfolgsmeldung nach Absenden */
.wpcf7-response-output {
  margin-top: 2rem;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(245,201,138,0.4);
  color: var(--cream);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 640px) {
  .wpcf7-form {
    padding: 0 0.5rem;
  }
}

/* Native Spinner-Pfeile komplett verstecken */
input[type="number"].wpcf7-form-control::-webkit-inner-spin-button,
input[type="number"].wpcf7-form-control::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"].wpcf7-form-control {
  -moz-appearance: textfield;
}

/* ===== RESERVIERUNG INTRO ===== */

.lottes-reservierung-introc {
  max-width: 560px;
  margin: 0 auto 2.8rem;
  text-align: center;
  color: rgba(253,246,238,0.76);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.lottes-reservierung-intro {
  max-width: 560px;
  margin: 0 auto 2.8rem;
  text-align: justify;
  hyphens: auto;
  color: rgba(253,246,238,0.76);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

/* Handy: Blocksatz erzeugt auf schmalen Bildschirmen große Lücken → linksbündig */
@media (max-width: 640px) {
  .lottes-reservierung-intro {
    text-align: left;
  }
}

/* Nur für Screenreader und Suchmaschinen sichtbar (z. B. Hauptüberschrift der Startseite) */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
