/*
Theme Name: Athen
Description: Maßgeschneidertes One-Page-Theme für das Restaurant Athen Oldenburg — Schwarz/Weiß, editorial, dezenter Gold-Akzent. Design-Vorlage: athen-v2.
Author: Marcel Neuhaus Marketing
Version: 1.0.0
Requires PHP: 8.1
Text Domain: athen
*/

/* ============================================================
   Fonts — selbst gehostet (DSGVO)
   ============================================================ */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-v21-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/jost-v20-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jost-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jost-v20-latin-500.woff2') format('woff2');
}

/* ============================================================
   Restaurant Athen — Design System
   Schwarz / Weiß, editorial, hochwertig.
   ============================================================ */
:root {
  --black: #0a0a0a;
  --ink: #141414;
  --ink-soft: #1c1c1c;
  --white: #f6f4ef;
  --white-pure: #ffffff;
  --muted: rgba(246, 244, 239, 0.62);
  --muted-dim: rgba(246, 244, 239, 0.38);
  --line: rgba(246, 244, 239, 0.16);
  --gold: #c4a572;
  --gold-soft: rgba(196, 165, 114, 0.5);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1200px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 12vw, 11rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--black); }

/* Admin-Bar (eingeloggt) */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }

/* ---------- Typo-Helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.005em;
}
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--muted { color: var(--muted); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); }
.section--tight-top { padding-top: clamp(2rem, 5vw, 4rem); }
.section--tight-bottom { padding-bottom: clamp(1.5rem, 4vw, 3rem); }

.rule {
  width: 1px; height: clamp(48px, 9vw, 96px);
  background: linear-gradient(var(--gold), transparent);
  margin: 1.75rem auto 0;
}
.rule--center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-sans);
  font-size: 0.74rem; font-weight: 400;
  letter-spacing: 0.26em; text-transform: uppercase;
  padding: 1.05em 2.3em;
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: background 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}
.btn:hover { background: var(--white); color: var(--black); }
.btn--gold { border-color: var(--gold); color: var(--gold); }
.btn--gold:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn--solid { background: var(--white); color: var(--black); }
.btn--solid:hover { background: transparent; color: var(--white); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--pad);
  transition: background 0.5s ease, padding 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(12px);
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase;
  padding-left: 0.34em;
}
.nav__links { display: flex; align-items: center; gap: 2.4rem; }
.nav__link {
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  position: relative; padding-block: 0.4rem;
  transition: color 0.35s ease;
}
.nav__link:hover { color: var(--white); }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.4s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__cta {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 0.7em 1.5em;
  color: var(--white); transition: all 0.4s ease;
}
.nav__cta:hover { border-color: var(--gold); color: var(--gold); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav__toggle span { width: 26px; height: 1.5px; background: var(--white); transition: transform 0.4s, opacity 0.3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(10,10,10,0.98); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.2rem;
  opacity: 0; pointer-events: none; transition: opacity 0.45s ease;
}
.nav__mobile.is-open { opacity: 1; pointer-events: auto; }
.nav__mobile a {
  font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 0.06em;
  color: var(--white);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem var(--pad) 4rem;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 35%, rgba(10,10,10,0.42) 0%, rgba(10,10,10,0.78) 62%, rgba(10,10,10,0.96) 100%),
    linear-gradient(to bottom, rgba(10,10,10,0.55), rgba(10,10,10,0.35) 40%, var(--black));
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: clamp(260px, 42vw, 520px); height: auto; }
.hero__tagline {
  margin-top: 2.4rem; font-size: 0.8rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--muted);
}
.hero__cta { margin-top: 3rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero__notice {
  margin-top: 2.2rem; max-width: 31rem;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(196, 165, 114, 0.5);
  border-top: 2px solid var(--gold);
  background: rgba(18, 15, 11, 0.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  text-align: center;
}
.hero__notice__label { display: block; font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.hero__notice__text { font-size: 0.98rem; line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
.hero__notice__text strong { color: var(--gold); font-weight: 500; }
.hero__notice__text a.gold, .hours__note a.gold { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 1;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-dim);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--muted-dim), transparent); animation: scrollpulse 2.4s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.head { text-align: center; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.head__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; margin-top: 1.1rem;
}
.head__sub { margin-top: 1.3rem; color: var(--muted); max-width: 46ch; margin-inline: auto; font-size: 1.02rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.about__img { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.about__img:hover img { transform: scale(1.05); }
.about__img::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.about__title { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; margin: 1.1rem 0 1.8rem; }
.about__text p { color: var(--muted); margin-bottom: 1.2rem; max-width: 52ch; }
.about__text p strong { color: var(--white); font-weight: 400; }
.about__text p a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); transition: border-color 0.3s ease; }
.about__text p a:hover { border-color: var(--gold); }

/* ============================================================
   GALLERY / IMPRESSIONEN
   ============================================================ */
.gallery { background: var(--ink); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.75rem, 2vw, 1.4rem); margin-top: 3.5rem; }
.gallery__item { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) brightness(0.92); transition: transform 1s ease, filter 0.8s ease; }
.gallery__item:hover img { transform: scale(1.06); filter: grayscale(0) brightness(1); }

/* ============================================================
   HOURS
   ============================================================ */
.hours { text-align: center; }
.hours__table { max-width: 520px; margin: 0 auto; }
.hours__row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.hours__row:last-child { border-bottom: 0; }
.hours__day { font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.hours__time { font-family: var(--font-display); font-size: 1.5rem; }
.hours__time small { display: block; font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dim); margin-top: 0.2rem; }
.hours__time--closed { color: var(--muted-dim); font-style: italic; }
.hours__note { margin-top: 2.4rem; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted); }
.hours__note .gold { color: var(--gold); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.contact__info { display: flex; flex-direction: column; justify-content: center; }
.contact__block { margin-bottom: 2.2rem; }
.contact__label { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem; }
.contact__value { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.5; }
.contact__value a { transition: color 0.3s ease; }
.contact__value a:hover { color: var(--gold); }
.contact__map { min-height: 360px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }
.contact__map-consent {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.2rem; text-align: center;
  background: var(--ink); padding: 2rem;
}
.contact__map-consent p { color: var(--muted); font-size: 0.88rem; max-width: 38ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.footer__logo { width: 190px; margin-bottom: 1.5rem; }
.footer__col h4 { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; font-weight: 400; }
.footer__col p, .footer__col a { color: var(--muted); font-size: 0.92rem; line-height: 1.9; }
.footer__col a:hover { color: var(--white); }
.footer__links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer__urlaub { color: var(--gold); margin-top: 0.8rem; }
.footer__bottom {
  margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.74rem; letter-spacing: 0.08em; color: var(--muted-dim);
}
.footer__bottom a { color: var(--muted-dim); }
.footer__bottom a:hover { color: var(--white); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   SPEISEKARTE — Booklet (PDF-Flipbook)
   ============================================================ */
.menu-book { text-align: center; background: var(--ink-soft); border-top: 1px solid rgba(196, 165, 114, 0.14); border-bottom: 1px solid rgba(196, 165, 114, 0.14); }
.booklet { display: flex; flex-direction: column; align-items: center; margin-top: 3.5rem; width: 100%; }

.booklet__flip { margin: 0 auto; filter: drop-shadow(0 16px 28px rgba(0,0,0,0.55)) drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }
.booklet__page { background: #fff; overflow: hidden; }
.booklet__page img { width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; }

.booklet__track {
  display: flex; width: 100%; max-width: 560px; margin: 0 auto;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  gap: 0; border-radius: 2px;
}
.booklet__track::-webkit-scrollbar { display: none; }
.booklet__slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; justify-content: center; padding: 0 2px; }
.booklet__slide img {
  width: 100%; height: auto; max-height: 74vh; object-fit: contain;
  background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.booklet__state { color: var(--muted); padding: 4rem 0; font-size: 1rem; letter-spacing: 0.02em; }
.booklet__state a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }

.booklet__controls { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 2.2rem; }
.booklet__btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--white);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.4s ease, color 0.4s ease, opacity 0.3s ease;
}
.booklet__btn:hover { border-color: var(--gold); color: var(--gold); }
.booklet__btn:disabled { opacity: 0.3; cursor: default; }
.booklet__counter {
  font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.16em;
  color: var(--muted); min-width: 5.5rem;
}

.booklet__meta { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-top: 1.6rem; }
.booklet__sound {
  background: none; border: 0; cursor: pointer;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); transition: color 0.4s ease;
}
.booklet__sound:hover { color: var(--gold); }
.booklet__pdf {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--gold-soft); padding-bottom: 5px;
  transition: color 0.4s ease;
}
.booklet__pdf:hover { color: var(--gold); }

/* ============================================================
   LEGAL — Impressum / Datenschutz
   ============================================================ */
.legal { min-height: 100vh; display: flex; flex-direction: column; }
.legal__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.3rem var(--pad); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(10px);
}
body.admin-bar .legal__bar { top: 32px; }
.legal__brand {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase; padding-left: 0.34em;
}
.legal__back { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color 0.3s ease; }
.legal__back:hover { color: var(--gold); }
.legal__container { max-width: 780px; width: 100%; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--pad); flex: 1; }
.legal__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin-bottom: 2.6rem; }
.legal__body { color: var(--muted); line-height: 1.85; font-size: 1rem; }
.legal__body h2 { font-family: var(--font-display); font-weight: 500; color: var(--white); font-size: clamp(1.3rem, 3vw, 1.75rem); margin: 2.8rem 0 1rem; }
.legal__body h3 { font-family: var(--font-sans); font-weight: 500; color: var(--white); font-size: 1.05rem; margin: 2rem 0 0.8rem; }
.legal__body p { margin-bottom: 1.2rem; }
.legal__body strong { color: var(--white); font-weight: 500; }
.legal__body ul { margin: 0 0 1.4rem 1.3rem; }
.legal__body li { margin-bottom: 0.55rem; padding-left: 0.3rem; }
.legal__body a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); word-break: break-word; transition: color 0.3s ease; }
.legal__body a:hover { color: var(--white); }
.legal__footer {
  border-top: 1px solid var(--line); padding: 2rem var(--pad);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted-dim);
}
.legal__footer a { color: var(--muted-dim); }
.legal__footer a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .about__grid { grid-template-columns: 1fr; }
  .about__img { aspect-ratio: 16/11; order: -1; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Mobil: Banner strafferer Abstand + „Entdecken"-Hinweis ausblenden (sonst Überschneidung mit Banner) */
  .hero__notice { margin-top: 1.6rem; padding: 1.25rem 1.4rem; }
  .hero__scroll { display: none; }
}
@media (max-width: 520px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .hours__time { font-size: 1.25rem; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { justify-content: center; }
}

/* Mobil: Abstand Willkommen -> Speisekarte verkleinern */
@media (max-width: 768px) {
  #ueber-uns { padding-bottom: clamp(1.5rem, 5vw, 2.75rem); }
  #ueber-uns .rule { display: none; }
  .menu-book { padding-top: clamp(1.75rem, 6vw, 3rem); }
  .menu-book .head { margin-bottom: clamp(2rem, 6vw, 3rem); }
  .booklet { margin-top: 2rem; }
}
