/* Camilli da Moretti – statische Seite. Schriften liegen lokal unter /assets/fonts, keine externen Quellen.
   Maße, Schriften und Farben sind am Original (WordPress-Theme „Berg“) abgenommen:
   Fließtext Cabin 16px/26px #333, Überschriften Playfair Display fett mit 1px Laufweite,
   Navigation Cabin 13px halbfett, Versalien, 1px Laufweite. */
@font-face { font-family: "Cabin"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/cabin-v12-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Cabin"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/cabin-v12-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Cabin"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/cabin-v12-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Cabin"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/cabin-v12-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Cabin"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/cabin-v12-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/playfair-display-v13-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/playfair-display-v13-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/playfair-display-v13-latin-700.woff2") format("woff2"); }

:root {
  --text: #333333;
  --muted: #6f6866;
  --accent: #8f8480;   /* Taupe (Buttons, aktive Navigation, Kachel Startseite) */
  --sand: #b5a496;     /* helleres Taupe der Kachel „Der Chef“ */
  --dark: #2d2d36;
  --light: #f7f7f7;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Cabin", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 400 16px/26px var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 30px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h5 { font-family: var(--serif); font-weight: 700; letter-spacing: 1px; line-height: 1.33; margin: 0 0 22px; }
h1 { font-size: 36px; }
h2 { font-size: 32px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Unterstrichene Kleinüberschrift („underlined“ im Original) */
.label { display: table; border-bottom: 2px solid currentColor; margin-bottom: 30px; }
.label.upper { text-transform: uppercase; }
/* Textlinks im Original: fett mit feiner Linie */
.strong-link, .site-footer a, .tile.dark p a { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: rgba(51,51,51,.45); }
.tile.dark p a { text-decoration-color: rgba(255,255,255,.6); }
.site-footer a.plain-link, .tile.dark p a.plain-link { font-weight: 400; text-decoration: none; }

/* Kopf: liegt transparent über der Bühne */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 90px 0 35px; }
.logo img { width: 40px; height: 40px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.main-nav a { position: relative; display: block; color: #fff; text-decoration: none; text-transform: uppercase; font-size: 13px; font-weight: 600; letter-spacing: 1px; line-height: 80px; }
.main-nav a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 26px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s; }
.main-nav a:hover::before { transform: scaleX(1); }
.nav-toggle, .nav-toggle-label { display: none; }
/* Seiten ohne Bühne: dunkle Navigation, aktiver Punkt in Taupe */
.plain .main-nav a { color: var(--text); }
.plain .main-nav a.active { color: var(--accent); }
.plain .nav-toggle-label span, .plain .nav-toggle-label span::before, .plain .nav-toggle-label span::after { background: var(--text) !important; }

/* Bühnen mit Hintergrundbild */
.hero, .banner, .intro-half { position: relative; color: #fff; text-align: center; background: #333 center / cover no-repeat; }
.hero::before, .banner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.43); }
.banner::before { background: rgba(0,0,0,.19); }
.hero > *, .banner > * { position: relative; }
.hero { padding: 200px 1rem 290px; }
.hero .schleife { margin: 0 auto 35px; }
.kicker { font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 21px; letter-spacing: 1px; margin: 0 0 22px; }
.kicker span { border-bottom: 2px solid currentColor; }
.kicker.upper { text-transform: uppercase; }
.display { font-size: 62px; line-height: 1.33; margin-bottom: 22px; }
.banner { padding: 122px 1rem 128px; }
.banner h1, .banner h2 { font-size: 36px; margin-bottom: 22px; }
.intro-half { height: 400px; }
.buttons { display: flex; flex-direction: column; align-items: center; gap: 30px; }

/* Bildzuordnung (statt Inline-Styles, damit die CSP ohne 'unsafe-inline' auskommt) */
.bg-download { background-image: url("/assets/img/download.jpg"); }
.bg-download-1 { background-image: url("/assets/img/download-1.jpg"); }
.bg-download-7 { background-image: url("/assets/img/download-7.jpg"); }
.bg-download-12 { background-image: url("/assets/img/download-12.jpg"); }
.bg-k2 { background-image: url("/assets/img/k2.jpg"); }
.bg-23A9301 { background-image: url("/assets/img/23A9301.jpg"); }
.bg-040ws { background-image: url("/assets/img/040ws_sued15.jpg"); }
.bg-download-10 { background-image: url("/assets/img/download-10.jpg"); }

.btn { display: inline-block; padding: 18px 40px; background: var(--accent); color: #fff; text-decoration: none; font-size: 20px; line-height: 29px; font-weight: 700; letter-spacing: 1px; transition: background .2s; }
.btn:hover { background: #7a706c; }

/* Abschnitte */
.section { max-width: 970px; margin: 0 auto; padding: 120px 15px; }
.grey-band { background: var(--light); }
.tiles { max-width: 970px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; }
.tiles.overlap { position: relative; top: -66px; margin-bottom: 54px; grid-auto-rows: minmax(454px, auto) minmax(484px, auto); }
.tile { padding: 80px 60px; }
.tile.photo { background-position: center; background-size: cover; background-repeat: no-repeat; background-color: #ddd; min-height: 300px; }
.tile.accent { background: var(--accent); color: #fff; }
.tile.sand { background: var(--sand); color: #fff; }
.tile.white { background: #fff; }
.tile.offwhite { background: #fdfdfd; }
.tile.dark { background: var(--dark); color: #fff; padding: 120px 100px; }
.tile.dark .schleife { margin-bottom: 22px; }
.tiles.wide { max-width: none; }
.contact-row { grid-auto-rows: minmax(700px, auto); }
.social { display: flex; gap: 14px; }
.social a { display: inline-flex; padding: 7px; }

/* Das Restaurant: Spalte 808px wie im Original, größere Schrift */
.r-wrap { max-width: 838px; }
.lead p { font-size: 22px; line-height: 35.75px; }
.lead .label { font-size: 16px; line-height: 26px; }
.lead-xl p { font-size: 24px; line-height: 39px; }
.lead-xl .label { font-size: 16px; line-height: 26px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 0 15px; }
.r-center { max-width: 374px; box-sizing: content-box; }
.img-pair { display: grid; grid-template-columns: 1fr 1fr; margin-top: 35px; }
.img-pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.section.r-wrap + .section.r-wrap { padding-top: 0; }
.r-band { padding: 0; }
.r-tiles { max-width: 808px; }
.r-tiles .tile { padding: 60px; }
.r-tiles .tile:nth-child(-n+2) { min-height: 535px; }
.r-tiles .tile:nth-child(n+3) { min-height: 463px; }

/* Reservierung: Bild links, weiße Karte überlappend (wie Original) */
.reserve { position: relative; background: #f8f8f8; min-height: 1235px; padding: 100px 0; }
.reserve-img { position: absolute; top: 0; bottom: 0; left: 15px; width: calc(50% - 30px); background-position: center; background-size: cover; }
.reserve-card { position: relative; margin-left: calc(50% - 185px); width: 653px; max-width: 100%; min-height: 1035px; background: #fff; padding: 22px 91px 60px; }
.reserve-card h1 { margin-bottom: 35px; max-width: 470px; }
.reserve-card p { max-width: 230px; }
.reserve-card .spacer { height: 26px; }
.reserve-card .btn { padding: 14px 26px; font-size: 16px; line-height: 22px; white-space: nowrap; }

/* Speisekarte */
.menu-head { max-width: 970px; margin: 0 auto; padding: 140px 15px 0; }
.menu-banner { height: 180px; background-position: 0 0; background-size: auto; }
.menu-nav { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); text-align: center; }
.menu-nav ul { list-style: none; margin: 0 auto; padding: 0 15px; display: flex; flex-wrap: wrap; justify-content: center; }
.menu-nav a { position: relative; display: block; padding: 20px 0; margin: 0 10px; font-size: 14px; line-height: 23px; color: var(--text); text-decoration: none; }
.menu-nav a::after { content: ""; position: absolute; left: 5%; right: 5%; bottom: 12px; height: 1px; background: var(--text); opacity: 0; transform: translateX(-30%); transition: all .3s; }
.menu-nav a:hover::after, .menu-nav a:focus-visible::after { opacity: .5; transform: none; }
.menu { max-width: 970px; margin: 0 auto; padding: 0 15px 90px; }
.menu-section { padding-top: 60px; scroll-margin-top: 50px; }
.menu-section h2 { text-align: center; text-transform: uppercase; margin: 0; }
.menu-section h2::after { content: ""; display: block; width: 40px; height: 2px; margin: 18px auto 0; background: var(--accent); }
.menu-intro { text-align: center; font-size: 14px; color: rgba(51,51,51,.55); margin: 12px 0 0; }
.dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 30px; padding: 56px 0 30px; }
.dish h3 { position: relative; margin: 0 0 6px; padding-right: 78px; font-size: 16px; line-height: 21px; letter-spacing: 1px; }
/* Punktlinie liegt unter der letzten Zeile; Name und Preis decken sie mit weißem Grund ab (wie im Original) */
.dish h3::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; background: radial-gradient(circle closest-side, var(--text) 99%, transparent 100%) bottom left / 6px 2px repeat-x; opacity: .3; }
.dish .name { position: relative; z-index: 1; background: #fff; padding-right: 10px; }
.dish .price { position: absolute; z-index: 1; right: 0; bottom: 0; background: #fff; padding-left: 10px; white-space: nowrap; }
.dish p { margin: 0; font-size: 14px; line-height: 22.75px; color: var(--muted); }

.tageskarte { max-width: 838px; padding-top: 40px; }
.tageskarte img { margin: 0 auto 35px; }
.legal-text { max-width: 838px; padding-top: 172px; }
.legal-text h2 { margin-top: 0; }

/* Fuß: helles Feld über die volle Breite wie im Original */
.site-footer { background: var(--light); padding: 50px; display: grid; grid-template-columns: repeat(4, 1fr); }
.site-footer > div { padding: 0 35px; }
.site-footer .brand img { width: 218px; margin-bottom: 35px; }
.site-footer .schleife { width: 50px; }
.site-footer .contact { padding-top: 80px; }

@media (max-width: 1100px) {
  .site-header { padding-right: 35px; }
  .main-nav ul { gap: 14px; }
}
@media (max-width: 991px) {
  .site-header { padding: 0 15px; }
  .nav-toggle-label { display: block; width: 26px; height: 22px; cursor: pointer; position: relative; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after { position: absolute; left: 0; width: 26px; height: 3px; background: #fff; content: ""; }
  .nav-toggle-label span { top: 10px; }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(45,45,54,.97); }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 25px 20px; }
  .main-nav a, .plain .main-nav a { line-height: 46px; font-size: 14px; color: #fff; }
  .plain .main-nav a.active { color: #cfc6c2; }
  .main-nav a::before { display: none; }
  .site-footer { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .site-footer > div:nth-child(2) { display: none; }
  .reserve-card { margin: 0 auto; }
  .reserve-img { width: calc(100% - 30px); }
}
@media (max-width: 767px) {
  .hide-mobile { display: none; }
  .tiles, .two-col, .img-pair, .dishes { grid-template-columns: 1fr; }
  .tiles.overlap { top: 0; margin-bottom: 0; grid-auto-rows: auto; }
  .grey-band:has(.overlap) { padding-bottom: 120px; }
  .tile { padding: 60px 30px; }
  .tile.dark { padding: 80px 30px; }
  .contact-row { grid-auto-rows: auto; }
  .contact-row .photo { min-height: 260px; }
  .hero { padding: 150px 15px 120px; }
  .display { font-size: 44px; }
  .section { padding: 60px 15px; }
  .two-col { padding: 0; gap: 0; }
  .img-pair { margin: 35px -15px 0; gap: 35px; }
  .two-col > div:first-child { margin-bottom: 30px; }
  .r-tiles .tile:nth-child(n) { min-height: 0; }
  .intro-half { height: 266px; margin-top: 80px; }
  body:not(.page-home) .site-header { background: #fff; }
  body:not(.page-home) .nav-toggle-label span, body:not(.page-home) .nav-toggle-label span::before, body:not(.page-home) .nav-toggle-label span::after { background: var(--text); }
  .reserve { padding: 80px 0 60px; min-height: 0; }
  .reserve-img { position: static; width: auto; height: 230px; margin: 0 15px 70px; }
  .reserve-card { width: auto; min-height: 0; margin: 0 15px; padding: 22px 15px 50px; }
  .reserve-card p { max-width: none; }
  .reserve-card h1 { font-size: 26px; }
  .menu-head { padding: 80px 0 0; }
  .menu-banner { height: 150px; }
  .menu-nav ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 0 8px; }
  .menu-nav ul::-webkit-scrollbar { display: none; }
  .menu-nav li { flex: none; }
  .menu-nav a { padding: 14px 0; white-space: nowrap; }
  .menu-nav a::after { bottom: 8px; }
  .menu-nav { box-shadow: 0 1px 0 rgba(0,0,0,.06); }
  .menu-section { padding-top: 50px; }
  .menu-section h2 { font-size: 26px; }
  .dishes { gap: 26px; padding: 36px 0 10px; }
  .legal-text { padding-top: 120px; }
  .legal-text h1 { font-size: 28px; overflow-wrap: break-word; hyphens: auto; }
  .legal-text h2 { font-size: 24px; }
  .site-footer { grid-template-columns: 1fr; padding: 50px; }
  .site-footer .contact { padding-top: 30px; }
}

/* Tageskarte als Text (aus tageskarte/daten.json): Aufbau wie die Speisekarte */
.tageskarte-text .tk-titel { margin: 0; padding-top: 50px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.tageskarte-text .name { text-transform: uppercase; }
.page-tageskarte .menu-banner { background-size: cover; background-position: center 65%; }

/* Parallax wie im Original (Startseite: Bühne oben und Öffnungszeiten-Band), reines CSS ohne JavaScript.
   Chrome, Edge, Safari 26+: Bild läuft beim Scrollen langsamer mit (scroll-driven animation).
   Firefox am Desktop: Bild bleibt stehen (background-attachment: fixed). Sonst und bei
   "Bewegung reduzieren" im Betriebssystem: ruhiges Bild wie bisher. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero, .banner { overflow: clip; isolation: isolate; view-timeline: --buehne; }
    .hero::after, .banner::after {
      content: ""; position: absolute; inset: -25% 0; z-index: -1;
      background: inherit;
      animation: parallax linear both; animation-timeline: --buehne;
    }
    @keyframes parallax { from { transform: translateY(-15%); } to { transform: translateY(15%); } }
  }
  @supports not (animation-timeline: view()) {
    @media (hover: hover) and (pointer: fine) {
      .hero, .banner { background-attachment: fixed; }
    }
  }
}
