/*
Theme Name: Sapori Windach
Theme URI: https://www.ristorum.de/
Author: T3M Culina GmbH
Description: Website von Sapori Windach – Nachbau der bisherigen Jimdo-Seite, dunkles Design mit lokal ausgelieferter Schrift Jura (keine externen Schriften).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: sapori
*/

/* Schrift lokal (DSGVO) – Lizenz: assets/fonts/OFL.txt */
@font-face {
  font-family: "Jura";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/jura-latin.woff2") format("woff2");
}

:root {
  --sapori-rot: #c8303a;
  --sapori-gruen: #81b445;
  --sapori-nav: #1a1815;
  --sapori-main: #2c2c2c;
  --sapori-text: #fafafa;
  --sapori-font: "Jura", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: #fff;
  font: 300 16px/1.6 var(--sapori-font);
  background: #141210;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: #000; }

/* Fester Vollbild-Hintergrund wie im Jimdo-Original */
.sapori-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #141210 url("assets/img/hintergrund.jpg") 50% 50% / cover no-repeat;
  background-image: image-set(url("assets/img/hintergrund.webp") type("image/webp"), url("assets/img/hintergrund.jpg") type("image/jpeg"));
}

/* ------------------------------------------------------------ Kopfbereich */
.site-head { position: relative; }
.site-head__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
  min-height: 718px;
  display: flex;
  flex-direction: column;
}
.site-title {
  margin: 200px 0 0;
  padding: 5px;
  text-align: center;
  font-family: var(--sapori-font);
  font-size: 85px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--sapori-text);
  letter-spacing: 0;
}
.site-title a { color: inherit; text-decoration: none; }

.site-nav { margin-top: auto; margin-bottom: 60px; }
.site-nav__toggle, .site-nav__burger { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 20px;
  background: var(--sapori-nav);
  color: var(--sapori-text);
  font: 400 20px/24px var(--sapori-font);
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 4px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_ancestor > a { color: var(--sapori-rot); border-bottom-color: var(--sapori-rot); }
.site-nav a:focus-visible { outline: 2px solid var(--sapori-rot); outline-offset: -2px; }
.site-nav .sub-menu { display: none; }

/* ------------------------------------------------------------ Inhalt */
.site-main { background: var(--sapori-main); padding-bottom: 50px; }
.site-main__inner { max-width: 960px; margin: 0 auto; padding: 60px 15px 0; }
.site-main__inner > *:first-child { margin-top: 0; }
.sapori-spacer { width: 100%; }
.sapori-hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .15); margin: 30px 0; }

/* Hinweisleiste (Laufband) */
.sapori-hinweis {
  background: rgba(200, 48, 58, .08);
  border-top: 1px solid rgba(200, 48, 58, .25);
  border-bottom: 1px solid rgba(200, 48, 58, .25);
  padding: 12px 0;
  overflow: hidden;
  margin: 0 0 24px;
}
.sapori-hinweis__wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.sapori-hinweis__track {
  overflow: hidden; position: relative; height: 20px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}
.sapori-hinweis__inner { display: inline-flex; gap: 40px; white-space: nowrap; position: absolute; left: 0; top: 0; will-change: transform; }
.sapori-hinweis__titel { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.sapori-hinweis__text { font-size: 13px; font-weight: 500; color: #fff; }
@media (prefers-reduced-motion: reduce) { .sapori-hinweis__inner { position: static; flex-wrap: wrap; white-space: normal; } .sapori-hinweis__track { height: auto; -webkit-mask-image: none; mask-image: none; } }

/* Textseiten (Impressum, Datenschutz) */
.sapori-textseite { color: #fff; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.sapori-textseite h1, .sapori-textseite h2, .sapori-textseite h3 { font-weight: 600; line-height: 1.25; margin: 1.4em 0 .5em; }
.sapori-textseite h1 { font-size: 32px; margin-top: 0; }
.sapori-textseite h2 { font-size: 24px; }
.sapori-textseite h3 { font-size: 19px; }
.sapori-textseite a { color: var(--sapori-gruen); }

/* ------------------------------------------------------------ Öffnungszeiten + Fußleiste */
.site-sidebar { background: rgba(0, 0, 0, .55); padding: 40px 0; }
.site-sidebar__inner { max-width: 960px; margin: 0 auto; padding: 0 15px; }
.site-footer { background: rgba(16, 16, 16, .95); padding: 25px 0; text-align: center; }
.site-footer__links { list-style: none; margin: 0; padding: 0 15px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; font-size: 13px; }
.site-footer__links li + li::before { content: "|"; color: rgba(255, 255, 255, .5); margin: 0 8px; }
.site-footer__links a { color: var(--sapori-gruen); text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ Formulare */
.sapori-form { max-width: 720px; margin: 0 auto; padding: 34px 30px; border-radius: 9px; background: rgba(255, 255, 255, .018); border: 1px solid rgba(255, 255, 255, .10); box-shadow: 0 20px 48px rgba(0, 0, 0, .18); }
.sapori-form__eyebrow { color: var(--sapori-rot); font-size: 13px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; margin: 0 0 12px; }
.sapori-form h2 { margin: 0 0 22px; font-size: 32px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; }
.sapori-form__feld { margin: 0 0 16px; }
.sapori-form label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.sapori-form input, .sapori-form textarea {
  width: 100%; padding: 13px 14px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .05); color: #fff; font: 400 16px/1.4 var(--sapori-font);
}
.sapori-form input:focus, .sapori-form textarea:focus { outline: none; border-color: var(--sapori-rot); box-shadow: 0 0 0 3px rgba(200, 48, 58, .2); }
.sapori-form__zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sapori-form__falle { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.sapori-form__hinweis { font-size: 13px; color: rgba(255, 255, 255, .64); margin: 4px 0 18px; }
.sapori-form__hinweis a { color: var(--sapori-gruen); }
.sapori-form button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 15px 28px; border-radius: 4px;
  background: var(--sapori-rot); border: 1px solid var(--sapori-rot); color: #fff; cursor: pointer;
  font: 700 13px/1 var(--sapori-font); letter-spacing: 2px; text-transform: uppercase;
}
.sapori-form button:hover { background: #000; border-color: #000; }
.sapori-meldung { max-width: 720px; margin: 0 auto 20px; padding: 14px 16px; border-radius: 6px; font-size: 15px; }
.sapori-meldung--ok { background: rgba(129, 180, 69, .14); border: 1px solid rgba(129, 180, 69, .45); color: #d9efc0; }
.sapori-meldung--fehler { background: rgba(200, 48, 58, .12); border: 1px solid rgba(200, 48, 58, .45); color: #ffd3d6; }

/* Sitemap */
.sapori-sitemap { list-style: none; padding: 0; font-size: 18px; }
.sapori-sitemap ul { list-style: none; padding-left: 22px; }
.sapori-sitemap li { margin: 8px 0; }
.sapori-sitemap a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(200, 48, 58, .6); }

/* 404 */
.sapori-404 { text-align: center; padding: 40px 0; }
.sapori-404 h1 { font-size: 40px; letter-spacing: 5px; text-transform: uppercase; margin: 0 0 12px; }
.sapori-404 a { color: var(--sapori-rot); }

/* ------------------------------------------------------------ Mobil */
@media (max-width: 900px) {
  .site-head__inner { min-height: 0; }
  .site-title { margin: 110px 0 40px; font-size: 54px; }
  .site-nav { margin: 0 0 24px; }
  .site-nav__burger {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 18px 20px; background: var(--sapori-nav); color: var(--sapori-text); cursor: pointer;
    font: 400 18px/1 var(--sapori-font); text-transform: uppercase; border-bottom: 4px solid var(--sapori-rot);
  }
  .site-nav__burger span:last-child { font-size: 26px; line-height: 1; }
  .site-nav ul { display: none; flex-direction: column; }
  .site-nav__toggle:checked ~ ul { display: flex; }
  .site-nav a { border-bottom: 1px solid rgba(255, 255, 255, .06); border-left: 4px solid transparent; }
  .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a { border-bottom-color: rgba(255, 255, 255, .06); border-left-color: var(--sapori-rot); }
  .site-main__inner { padding-top: 32px; }
}
@media (max-width: 600px) {
  .site-title { margin: 80px 0 32px; font-size: 40px; }
  .sapori-form { padding: 24px 18px; }
  .sapori-form__zeile { grid-template-columns: 1fr; gap: 0; }
}
