/*
Theme Name: Madeleine
Theme URI: https://madeleine-restaurant.lu
Author: Madeleine Restaurant
Description: Schlankes Restaurant-Theme ohne Page Builder. Inhalte unter "Restaurant" im Admin-Menü.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: madeleine
*/

:root {
  --teal: #2e4f59;
  --teal-d: #213a42;
  --gold: #9b7f4a;
  --gold-d: #86693a;
  --gray: #5a5a5a;
  --ink: #232b2e;
  --cream: #faf7f2;
  --tint: #f1ece3;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--gold-d); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--teal); margin: 0 0 .6em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-block; padding: .85em 1.6em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; line-height: 1.2; text-align: center; }
.btn-small { padding: .55em 1.2em; font-size: .95rem; }
.btn-gold { background: var(--gold-d); color: #fff; }
.btn-gold:hover { background: #6f562e; color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-d); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--teal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 2px 18px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand img { height: 50px; width: auto; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 12px 20px 22px; flex-direction: column; gap: 4px; box-shadow: 0 14px 24px rgba(0,0,0,.08); }
.site-nav.is-open { display: flex; }
.site-nav a { text-decoration: none; padding: .7em 0; font-weight: 500; color: var(--ink); }
.site-nav a:hover { color: var(--gold-d); }
.site-nav a.btn { color: #fff; margin-top: 8px; }
.nav-toggle { width: 46px; height: 46px; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 24px; height: 2px; background: var(--teal); border-radius: 2px; position: relative; margin: auto; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle .bars::after { position: absolute; top: 7px; left: 0; }
@media (min-width: 880px) {
  .brand img { height: 58px; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 28px; padding: 0; box-shadow: none; background: none; }
  .site-nav a { padding: .4em 0; }
  .site-nav a.btn { margin: 0; padding: .55em 1.3em; }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--teal-d); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33,58,66,.35) 0%, rgba(33,58,66,.5) 45%, rgba(25,44,51,.9) 100%); }
@media (min-width: 880px) {
  .hero-shade { background: linear-gradient(90deg, rgba(25,44,51,.88) 0%, rgba(25,44,51,.7) 38%, rgba(25,44,51,.1) 72%), linear-gradient(180deg, transparent 60%, rgba(25,44,51,.6) 100%); }
}
.hero-content { position: relative; padding-block: 120px 56px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 7vw, 4.6rem); max-width: 14ch; text-wrap: balance; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 40ch; opacity: .95; }
.kicker, .eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 600; margin-bottom: .9rem; }
.kicker { color: #e8d6ae; }
.eyebrow { color: var(--gold-d); }

/* Info strip */
.strip { background: var(--teal); color: #fff; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 36px; padding-block: 16px; font-weight: 500; text-align: center; }

/* Sections */
.section { padding-block: clamp(56px, 9vw, 110px); }
.tint { background: var(--cream); }
.split { display: grid; gap: 40px; align-items: center; }
.split-media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo img { aspect-ratio: 3 / 4.4; }
.duo img:last-child { margin-top: 36px; }
.lux { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--teal); }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split.reverse .split-media { order: -1; }
}

/* Cards */
.cards { display: grid; gap: 20px; margin-top: 2.2rem; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 30px; text-decoration: none; color: var(--ink); border: 1px solid #e6dfd2; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(46,79,89,.12); color: var(--ink); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--gray); flex: 1; }
.card-link { color: var(--gold-d); font-weight: 600; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* Madeleines */
.madeleines { background: #fff; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; }
.gallery img { width: 100%; height: clamp(180px, 34vw, 460px); object-fit: cover; }
.gallery img:first-child { object-position: 30% 50%; }
.gallery img:last-child { object-position: 50% 88%; }

/* Info */
.info-grid { display: grid; gap: 36px; }
.info-box { background: var(--cream); border-radius: var(--radius); padding: 32px; }
.info-box h2 { font-size: 1.8rem; }
.hours { list-style: none; padding: 0; margin: 0 0 .8em; }
.hours li { padding: .5em 0; border-bottom: 1px solid #e6dfd2; font-weight: 500; }
.note { color: var(--gray); font-size: .95rem; }
.group-note { background: #fff; border-left: 4px solid var(--gold); border-radius: 8px; padding: .8em 1em; font-weight: 500; }
.strip-group { color: #e8d6ae; }
address { font-style: normal; margin-bottom: 1em; }
.social a { margin-right: 1.2em; }
.map { min-height: 280px; display: flex; flex-direction: column; gap: 10px; }
.map iframe, .map-load { width: 100%; flex: 1; min-height: 280px; border: 0; border-radius: var(--radius); }
.map-load { background: var(--tint); cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--teal); font: inherit; font-weight: 600; padding: 20px; }
.map-load img { width: 34px; height: auto; }
.map-load small { font-weight: 400; color: var(--gray); max-width: 30ch; }
.map-load:hover { background: #e9e2d4; }
.map-link { font-size: .95rem; }
@media (min-width: 880px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .map { grid-column: 1 / -1; }
  .map iframe, .map-load { min-height: 380px; }
}
@media (min-width: 1100px) {
  .info-grid { grid-template-columns: 1fr 1fr 1.4fr; align-items: stretch; }
  .map { grid-column: auto; }
}

/* Job bar, footer */
.job-bar { background: var(--gold-d); color: #fff; text-align: center; padding: 12px 0; font-weight: 500; }
.job-bar a { color: #fff; }
.site-footer { background: var(--teal-d); color: #dbe5e8; padding-top: 48px; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 40px; height: auto; filter: brightness(0) invert(1); opacity: .85; }
.footer-brand p, .footer-contact { margin: 0; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.copyright { margin-top: 36px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; opacity: .75; }
@media (min-width: 880px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; } }

/* Standard pages */
.page { padding-block: 64px 96px; }
.entry > * + * { margin-top: 1em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
