/* ==========================================================
   Taverna Paros – Stylesheet
   Markenfarben aus der bisherigen Seite, Überschriften in
   Marcellus (angelehnt an die Antiqua im Paros-Logo)
   ========================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Marcellus";
  src: url("../fonts/Marcellus-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #1d4370;        /* Logo-Blau: Text, Buttons */
  --navy-dark: #132f50;
  --sky: #d2e1e7;         /* Sektionen */
  --sky-dark: #9bbdcb;    /* Footer */
  --orange: #dd6c3b;      /* Linien, Akzente */
  --ink: #14202e;         /* Fließtext */
  --white: #fff;
  --radius: 10px;
  --pad: clamp(16px, 4vw, 56px);
  --header-h: 72px;
  --serif: "Marcellus", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--orange); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typografie ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  color: var(--navy);
  text-wrap: balance;
  overflow-wrap: break-word;
}
@media (max-width: 480px) { h1, h2, h3 { hyphens: auto; } }
.h-xl { font-size: clamp(2.9rem, 1.4rem + 6.4vw, 7.5rem); line-height: .98; letter-spacing: -.005em; }
.h-l  { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
.h-m  { font-size: clamp(1.45rem, 1.15rem + 1vw, 2rem); }
.h-s  { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); }
.lead { font-size: 1.12em; max-width: 34em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(29, 67, 112, .08);
}
.header-inner {
  height: var(--header-h);
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { width: 54px; height: 54px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 3.5vw, 52px); }
.main-nav a {
  color: var(--navy); text-decoration: none; font-weight: 600;
  font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--navy); border-bottom-color: var(--orange); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.header-social { display: flex; gap: 12px; }
.header-social a { color: var(--navy); display: inline-flex; }
.header-social a:hover { color: var(--orange); }
.header-social svg { width: 20px; height: 20px; fill: currentColor; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; fill: currentColor; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .header-social { margin-left: auto; }
  .main-nav {
    position: fixed; inset: 0; z-index: 60;
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 30px; }
  .main-nav a { font-family: var(--serif); font-weight: 400; font-size: 2rem; letter-spacing: 0; text-transform: none; }
  .nav-close { position: absolute; top: 16px; right: var(--pad); }
}
@media (min-width: 761px) { .nav-close { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px;
  padding: .8em 1.7em;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  font: 600 .95rem/1.2 var(--sans);
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover {
  background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -8px rgba(19, 47, 80, .55);
}
.btn:active { transform: translateY(0); box-shadow: none; }
/* Umriss-Variante */
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
/* Auf Fotos */
.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--ghost-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.85); color: var(--white); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0 1.6em; }
.btn-row.center { justify-content: center; }

/* Textlink (z. B. „PDF herunterladen“) */
.text-link { font-weight: 600; font-size: .95rem; color: var(--navy); }

/* ---------- Sektionen ---------- */
.section { background: var(--sky); padding: clamp(48px, 7vw, 104px) var(--pad); }
.section + .section,
.cover + .section, .section + .cover, .cover + .cover { border-top: 6px solid var(--white); }
.narrow { max-width: 680px; margin: 0 auto; }
.center { text-align: center; }

/* Vollbild-Foto mit Text */
.cover {
  position: relative; overflow: hidden;
  display: flex; color: var(--white);
  min-height: clamp(460px, 64vw, 1000px);
  padding: clamp(32px, 6vw, 120px) clamp(20px, 7vw, 168px);
}
.cover > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  object-position: var(--focus, 50% 50%);
}
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--tint, linear-gradient(to top, rgba(10, 24, 42, .62), rgba(10, 24, 42, 0) 60%));
}
.cover-content { position: relative; z-index: 2; width: 100%; }
.cover h1, .cover h2 { color: var(--white); }
.cover--bottom { align-items: flex-end; }
.cover--center { align-items: center; }

/* Hero (Startseite) */
.hero { min-height: max(560px, calc(100svh - var(--header-h))); }
.hero .cover-content { max-width: 1100px; }
.hero h1 { margin-bottom: .3em; text-shadow: 0 2px 30px rgba(10, 24, 42, .35); }
.hero .hero-sub { font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); margin: 0; }

/* Raster */
.grid { display: grid; gap: clamp(12px, 1.8vw, 24px); }
.grid > *, .split > *, .menu-picker > *, .footer-cols > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.tile img, .gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius);
}
.tile h2 { text-align: center; margin: 0 0 .7em; min-height: 2.3em; display: flex; align-items: flex-end; justify-content: center; }

/* Galerien: volle Seitenbreite */
.section.gallery { padding: 10px; }
.gallery .grid { gap: 10px; }
.gallery img { border-radius: 6px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split > img { border-radius: var(--radius); width: 100%; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Überschrift mit Linien */
.ruled { border-top: 1px solid var(--orange); border-bottom: 1px solid var(--orange); padding: .45em 0 .4em; margin: 0 0 .8em; }

/* Karten-Kacheln Google / Apple */
.map-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); max-width: 100%; gap: 16px; margin-top: 1.2em; }
.map-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.map-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s; }
.map-card:hover img { transform: scale(1.03); }
.map-card .btn { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap; }
.map-card:hover .btn { background: var(--navy); border-color: var(--navy); color: var(--white); }

.info-list > div { margin-bottom: 1.6em; }
.info-list h3 { margin-bottom: .25em; }

/* Social-Icons */
.social-icons { display: flex; gap: 12px; list-style: none; padding: 0; margin: 1.2em 0 0; }
.social-icons.center { justify-content: center; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 34px; border-radius: 999px; color: #fff;
  transition: transform .2s, box-shadow .2s;
}
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.social-icon:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.social-icon--fb { background: #0866ff; }
.social-icon--ig { background: #f00075; }

/* Speisekarten-Auswahl */
.menu-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); max-width: 1240px; margin: 0 auto; }
@media (max-width: 900px) { .menu-picker { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
.menu-option { display: flex; flex-direction: column; }
.menu-thumb {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(19,47,80,.08), 0 18px 40px -22px rgba(19,47,80,.45);
  transition: transform .3s, box-shadow .3s;
}
.menu-thumb img { width: 100%; height: auto; }
.menu-thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(to top, #fff, rgba(255,255,255,0)); }
.menu-thumb:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(19,47,80,.08), 0 26px 50px -24px rgba(19,47,80,.55); }
.menu-option h3 { margin: 1.1em 0 .25em; }
.menu-option p { margin: 0 0 1em; }
.menu-option .actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }

/* Rechtstexte */
.legal { font-size: 1rem; }
.legal h1 { margin-bottom: .8em; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--ink); margin: 1.6em 0 .4em; letter-spacing: 0; }
.legal a { word-break: break-word; }
.legal ul { padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { color: var(--navy); }
.footer-main { background: var(--sky-dark); padding: clamp(44px, 5vw, 72px) var(--pad); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); font-size: 1.02rem; }
.footer-cols h2 { font-size: 1.45rem; color: var(--navy); }
.footer-cols p { color: var(--navy-dark); }
.footer-cols a { color: var(--navy-dark); }
.footer-cols a:hover { color: var(--navy); text-decoration-thickness: 2px; }
.footer-social { list-style: none; padding: 0; margin: 0; }
.footer-social li { margin-bottom: .5em; }
.footer-social a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-legal { background: var(--sky); text-align: center; padding: 14px var(--pad); }
.footer-legal a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; margin: 0 1.4em; }
.footer-legal a:hover { color: var(--orange); }
.copyright { color: var(--ink); text-align: center; font-size: .85rem; padding: 18px; margin: 0; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Speisekarten-Lightbox (mit Zoom) ---------- */
.menu-dialog {
  border: 0; padding: 0; margin: auto;
  width: min(1000px, 96vw); height: 92vh; max-height: 92vh;
  border-radius: 12px; overflow: hidden;
  background: var(--sky);
}
.menu-dialog[open] { display: flex; flex-direction: column; }
.menu-dialog::backdrop { background: rgba(10, 24, 42, .75); }
.menu-dialog .dialog-bar {
  flex: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px;
}
.menu-dialog .dialog-bar h2 { margin: 0; font-size: 1.4rem; }
.menu-dialog .bar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.menu-dialog .dialog-bar .btn { min-height: 40px; padding: .55em 1.2em; font-size: .85rem; }
.zoom-controls { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; background: var(--white); border-radius: 999px; padding: 3px; }
.zoom-controls button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--navy); font: 600 1.2rem/1 var(--sans); cursor: pointer; }
.zoom-controls button:hover { background: var(--sky); }
.zoom-controls output { min-width: 3.4em; text-align: center; font: 600 .8rem var(--sans); color: var(--navy); }
@media (pointer: coarse) { .zoom-controls { display: none; } }
.dialog-close { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--navy); padding: 0 6px; }
.menu-pages { flex: 1; min-height: 0; overflow: auto; padding: 0 16px 16px; }
.menu-pages img {
  width: calc(100% * var(--zoom, 1)); max-width: none;
  margin: 0 auto 12px; border-radius: 6px; background: #fff;
  cursor: zoom-in;
}
.menu-dialog.is-zoomed .menu-pages img { cursor: zoom-out; }

/* Zeitlich begrenzte Inhalte (z. B. Silvester) */
.special { min-height: auto; }
.special .cover-content { max-width: 1200px; margin: 0 auto; }
.special .split { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.special .h-special { font-size: clamp(2.6rem, 1.3rem + 4.4vw, 6rem); line-height: 1; margin-bottom: .35em; }
.special .menu-thumb { max-width: 380px; justify-self: end; width: 100%; aspect-ratio: 1414 / 1600; }
.special .menu-thumb::after { display: none; }
.special-label { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; color: #f6c2a7; margin: 0 0 .9em; }
.special .price { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + .8vw, 1.9rem); margin: .2em 0 .5em; }
.special .note { opacity: .92; margin-bottom: 0; }
.special .note a { color: var(--white); font-weight: 600; }
@media (max-width: 820px) { .special .split { grid-template-columns: minmax(0, 1fr); } .special .menu-thumb { justify-self: start; max-width: 320px; } }

/* Text + Bild ausgewogen (Reservierung) */
.split--text { max-width: 1240px; margin: 0 auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.split--text > div p { font-size: 1.05em; }
.split--text > img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 820px) { .split--text { grid-template-columns: minmax(0, 1fr); } .split--text > img { aspect-ratio: 4 / 3; } }

/* Social: Bild + Text nebeneinander */
.social-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(420px, 46vw, 820px); background: var(--sky); }
.section + .social-split, .social-split + .section { border-top: 6px solid var(--white); }
.social-split > img { width: 100%; height: 100%; object-fit: cover; }
.social-split .social-text { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: clamp(40px, 6vw, 120px) clamp(24px, 6vw, 120px); }
.social-split h2 { max-width: 14em; }
@media (max-width: 760px) { .social-split { grid-template-columns: minmax(0, 1fr); } .social-split > img { aspect-ratio: 4 / 3; height: auto; } }

/* Anfahrt: drei gleichwertige Spalten, Karten-Links dezent */
.directions { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; }
.directions > .ruled { grid-column: 1 / -1; text-align: center; }
.directions h3 { margin-bottom: .3em; }
@media (max-width: 820px) { .directions { grid-template-columns: minmax(0, 1fr); } .directions > .ruled { text-align: left; } }
.map-mini { display: flex; flex-wrap: wrap; gap: 14px; margin-top: .4em; }
.map-mini a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem; background: var(--white); border-radius: 999px; padding: 5px 18px 5px 5px; transition: background-color .2s, color .2s, transform .2s; }
.map-mini a:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }
.map-mini img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.section--wide { padding-left: clamp(20px, 7vw, 168px); padding-right: clamp(20px, 7vw, 168px); }

/* Anfahrt-Seite: abwechselnde Zeilen, mit Abstand zum Rand */
.rows { max-width: 1240px; margin: 0 auto; display: grid; gap: clamp(56px, 8vw, 120px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.row > img { width: 100%; border-radius: var(--radius); }
.row--flip > :first-child { order: 2; }
@media (max-width: 820px) { .row { grid-template-columns: minmax(0, 1fr); } .row--flip > :first-child { order: 0; } }

/* Gruppenmenüs auf der Reservierungsseite: klickbar zum Vergrößern */
.zoom-thumb { display: block; position: relative; border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.zoom-thumb img { transition: transform .4s; }
.zoom-thumb:hover img { transform: scale(1.015); }
.zoom-thumb .zoom-hint { position: absolute; right: 12px; bottom: 12px; background: var(--navy); color: #fff; font: 600 .8rem var(--sans); padding: .5em .9em; border-radius: 999px; }

/* ---------- Cookie-Banner ---------- */
.consent {
  position: fixed; z-index: 900; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px;
  background: var(--white); color: var(--ink);
  border-radius: 14px; padding: 22px 24px 20px;
  box-shadow: 0 24px 60px -20px rgba(10, 24, 42, .5), 0 0 0 1px rgba(29, 67, 112, .08);
  font-size: .95rem; line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.5rem; margin-bottom: .4em; }
.consent p { margin-bottom: 1em; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.consent-actions .btn, .consent-details .btn { min-height: 44px; padding: .65em 1.4em; font-size: .9rem; }
.consent-link { background: none; border: 0; padding: 6px 4px; font: 600 .9rem var(--sans); color: var(--navy); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.consent-details { display: none; margin: 0 0 16px; padding: 14px 0 0; border-top: 1px solid var(--sky); }
.consent.show-details .consent-details { display: block; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: .9rem; }
.consent-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }


/* ---------- Handy-Optimierungen ---------- */
/* Telefonnummern nie umbrechen */
a[href^="tel:"] { white-space: nowrap; }

@media (max-width: 760px) {
  /* Weichzeichner aus: sonst wird das Vollbild-Menü auf die Kopfzeile begrenzt */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .main-nav { height: 100vh; height: 100dvh; }
  .main-nav ul { gap: 26px; }
  .main-nav a { text-transform: none; letter-spacing: 0; font-size: 2.2rem; border-bottom-width: 2px; }
  .nav-close { top: 14px; }
  .nav-extra { position: absolute; bottom: max(32px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; }
  .nav-extra a { font-family: var(--sans); font-size: 1rem; font-weight: 600; border: 0; }
}
@media (min-width: 761px) { .nav-extra { display: none; } }

/* Galerien am Handy: 2x2-Raster */
@media (max-width: 640px) {
  .section.gallery { padding: 6px; }
  .gallery .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  /* Gerichte-Kacheln zweispaltig */
  .grid-4:not(.gallery .grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tile h2 { font-size: 1.05rem; min-height: 2.6em; }
}
