/* ============================================================
   Akropolis Petersfehn – style.css (Relaunch "Griechenland")
   Design: "Illustriertes Mittelmeer" – Flat-Vector, Ink-Outline,
   warmes Papier, Marmor, Weinrot, Ägisblau.
   Mobile-first. Einziges CSS der Site (s. Blueprint Kap. 2.3/3).
   ============================================================ */

/* ---------- Fonts (self-hosted, Cinzel = variable 400-900) ---------- */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/cinzel-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --ink: #231f20;
  --ink-soft: #4a4244;
  --paper: #f7f2e7;
  --paper-2: #efe4d0;
  --stone-1: #ece1c8;
  --stone-2: #e0d2b2;
  --stone-3: #d2c19c;
  --wine: #7b1113;
  --wine-2: #5d0c0e;
  --aegean: #14567f;
  --line: #d8cbb0;

  --wrap: 1100px;
  --radius: 4px;
  --shadow-card: 4px 4px 0 var(--ink);
  --outline: 1.5px solid var(--ink);
  --header-h: 76px;
  --band-h: 10px;

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset (schlank) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg, video, iframe { max-width: 100%; }
img, svg { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
a { color: var(--wine); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--wine-2); }
:focus-visible { outline: 3px solid var(--aegean); outline-offset: 2px; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(2.2rem, 6vw, 4.5rem) 0; }
.section--tint { background: var(--paper-2); border-block: var(--outline); }
.section__head { max-width: 640px; margin-bottom: 1.8rem; }
.section__head p { color: var(--ink-soft); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Meander-Band (Verzierung) */
.band {
  display: block; width: 100%; height: var(--band-h);
  background: url("/assets/svg/verzierung-oben-akro.svg") center / auto 100% repeat-x;
  background-color: var(--stone-1);
}
.band--bottom { background-image: url("/assets/svg/verzierung-unten-akro.svg"); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--outline);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand img { width: 128px; max-width: 34vw; }
.brand:hover .brand__word { color: var(--wine); }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .06em; }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .5rem .55rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: .84rem;
  letter-spacing: .01em; white-space: nowrap;
  color: var(--ink); border: 1.5px solid transparent; border-radius: var(--radius);
}
.main-nav a:hover { border-color: var(--ink); color: var(--wine); }
.main-nav a[aria-current="page"] { background: var(--wine); color: var(--paper); border-color: var(--ink); }

/* Hamburger */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 10px; background: var(--paper);
  border: var(--outline); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Off-canvas-Nav (mobile) */
.mobile-nav {
  position: fixed; inset: 0; z-index: 49; visibility: hidden;
  background: var(--paper); display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 1rem) 24px 2rem;
}
.mobile-nav.is-open { visibility: visible; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mobile-nav a {
  display: block; padding: 1rem .4rem; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a[aria-current="page"] { color: var(--wine); }
.mobile-nav__meta { margin-top: auto; color: var(--ink-soft); font-size: .95rem; }
body.nav-locked { overflow: hidden; }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .nav-toggle, .mobile-nav { display: none; }
}
/* Unter 1200 px: Wortmarke ausblenden, damit die 8 Nav-Items eine Reihe bleiben */
@media (max-width: 1199px) {
  .brand__word { display: none; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--stone-1) 0%, var(--paper) 82%);
  border-bottom: var(--outline);
  padding: clamp(2.4rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.hero__temple { width: min(680px, 92%); margin: 0 auto 1.2rem; display: block; }
.hero__title { margin-bottom: .4rem; }
.hero__tagline {
  font-family: var(--font-display); font-weight: 600;
  color: var(--aegean); letter-spacing: .14em; text-transform: uppercase; font-size: .95rem;
  margin-bottom: 1.4rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; color: var(--ink); background: var(--paper);
  border: var(--outline); border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--wine); color: var(--paper); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn--primary { background: var(--wine); color: var(--paper); }
.btn--primary:hover { background: var(--wine-2); }
.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn svg { flex: none; }

/* ---------- Karten ---------- */
.card {
  background: var(--paper); border: var(--outline); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 1.4rem;
}
.card h3 { margin-bottom: .4rem; }
.card--tint { background: var(--paper-2); }
.card-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }

/* Icon-Chips (Uhr/Pin/Telefon) */
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  background: var(--stone-1); border: var(--outline); border-radius: 50%;
}
.icon-chip svg { width: 22px; height: 22px; }
.card__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }

/* Öffnungszeiten-Liste */
.hours { list-style: none; margin: 0; padding: 0; font-size: .97rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours .d { font-weight: 600; }
.hours .t { color: var(--ink-soft); white-space: nowrap; }
.hours .today { color: var(--wine); font-weight: 700; }

/* ---------- Content-Box (DB-HTML) ---------- */
.page-body { max-width: 760px; }
.page-body--wide { max-width: 100%; }
.content-box { font-size: 1.02rem; }
.content-box h1, .content-box h2 { font-family: var(--font-display); }
.content-box img { max-width: 100%; height: auto; border: var(--outline); border-radius: var(--radius); }
.content-box img[style*="float"] { margin: 0 0 1rem; }
.content-box a { color: var(--aegean); }
.content-box table { border-collapse: collapse; margin-bottom: 1em; }
.content-box table td, .content-box table th { border: 1px solid var(--line); padding: .4rem .6rem; }
.content-box hr { border: 0; border-top: var(--outline); margin: 2rem 0; }

/* ---------- Speisekarte ---------- */
.menu-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .menu-grid { grid-template-columns: 1.1fr .9fr; } }
.pdf-frame {
  border: var(--outline); border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-card); aspect-ratio: 210/297;
}
.pdf-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.menu-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.2rem 0; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a {
  display: block; border: var(--outline); border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2); padding: 0; text-decoration: none;
}
.gallery a:hover { box-shadow: 3px 3px 0 var(--ink); }
.gallery img { display: block; width: 100%; aspect-ratio: 210/297; object-fit: cover; }
.gallery__note { font-size: .9rem; color: var(--ink-soft); margin-top: .8rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(35, 31, 32, .88);
}
.lightbox.is-open { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: min(94vw, 900px); max-height: 88vh; border: 3px solid var(--paper); }
.lightbox button {
  position: absolute; background: var(--paper); color: var(--ink);
  border: var(--outline); border-radius: 50%; width: 48px; height: 48px;
  font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--paper); font-family: var(--font-display); letter-spacing: .1em; }

/* ---------- Fotos ---------- */
.photo-strip { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .photo-strip { grid-template-columns: 3fr 2fr 2fr; } }
.photo-strip figure { margin: 0; border: var(--outline); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.photo-strip img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.photo-strip figcaption { padding: .5rem .7rem; font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* ---------- Formular ---------- */
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid--2col { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: .3rem; }
.form-field label { font-weight: 600; font-size: .95rem; }
.form-field .req { color: var(--wine); }
.form-field input, .form-field textarea, .form-field select {
  font: inherit; color: var(--ink); background: var(--paper);
  border: var(--outline); border-radius: var(--radius);
  padding: .65rem .8rem; width: 100%;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 3px solid var(--aegean); outline-offset: 0; border-color: var(--aegean); }
.form-field .hint { font-size: .85rem; color: var(--ink-soft); }
.form-note { font-size: .88rem; color: var(--ink-soft); margin-top: 1rem; }
.form-status { padding: 1rem 1.2rem; border: var(--outline); border-radius: var(--radius); margin-bottom: 1.2rem; }
.form-status--ok { background: var(--stone-1); }
.form-status--err { background: #f3d9d5; }
/* Honeypot (für Menschen unsichtbar) */
.form-field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Gästebuch ---------- */
.gb-list { display: grid; gap: 1rem; }
.gb-entry { background: var(--paper); border: var(--outline); border-left: 6px solid var(--stone-3); border-radius: var(--radius); padding: 1rem 1.2rem; }
.gb-entry__meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: .4rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; }
.gb-entry__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.gb-entry__text p { margin-bottom: .5em; }
.gb-entry__text p:last-child { margin-bottom: 0; }
.pager { display: flex; gap: .6rem; justify-content: center; margin-top: 1.4rem; }
.pager a, .pager span { display: inline-block; padding: .4rem .9rem; border: var(--outline); border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.pager a { background: var(--paper); }
.pager a:hover { background: var(--wine); color: var(--paper); }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.05fr .95fr; } }
.map-frame { border: var(--outline); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); background: var(--stone-1); aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-facts { list-style: none; margin: 0; padding: 0; }
.contact-facts li { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.contact-facts li:last-child { border-bottom: 0; }

/* ---------- Bon Giorno ---------- */
.bon-giorno { display: grid; gap: 1.4rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) { .bon-giorno { grid-template-columns: 1fr 1fr; } }
.bon-giorno figure { margin: 0; border: var(--outline); border-radius: var(--radius); overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: var(--outline); margin-top: 2rem; }
.site-footer__grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; padding: 2.2rem 0 1.6rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h2 { font-size: 1.05rem; margin-bottom: .6rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer a { color: var(--aegean); }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li { padding: .15rem 0; }
.site-footer__legal { border-top: 1px solid var(--line); padding: 1rem 0 1.4rem; font-size: .85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: space-between; }
.site-footer__brand { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.site-footer__brand img { width: 150px; max-width: 60%; opacity: .85; }

/* ---------- 404 ---------- */
.err { text-align: center; padding: 4rem 0 5rem; }
.err__temple { width: min(340px, 80%); margin: 0 auto 1.4rem; display: block; opacity: .9; }
.err p { max-width: 460px; margin: 0 auto 1.6rem; color: var(--ink-soft); }

/* ---------- Vase-Akzent (dekorativ) ---------- */
.deco-vase { display: none; }
@media (min-width: 1200px) {
  .deco-vase { display: block; position: absolute; bottom: 0; width: 90px; opacity: .5; pointer-events: none; }
  .deco-vase--left { left: 1.5%; }
  .deco-vase--right { right: 1.5%; transform: scaleX(-1); }
}

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
