/* Feinschmeckerei Lang — Theme. Farben/Schrift-Fallback kommen als CSS-Vars aus cms_settings
   (inline <style> in base.html). --font-display ist Teil des Theme-Designs (nicht Settings-gesteuert). */

@font-face { font-family: 'Fraunces'; src: url('/static/fonts/fraunces-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/static/fonts/fraunces-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/static/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/static/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --primary: #de1d51;
  --primary-ink: #a5123c;
  --secondary: #2e367a;
  --font-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --page-width: 1160px;
  --content-width: 92%;
  --text: #2a2620;
  --text-soft: #6b6357;
  --bg: #fbf7f1;
  --card-bg: #ffffff;
  --border: #ece2d4;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 20px 45px -22px rgba(46, 54, 122, .28);
  --shadow-s: 0 8px 20px -10px rgba(46, 54, 122, .22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--secondary);
}
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
p { color: var(--text); }
.inner { max-width: var(--page-width); margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* Header */
.site-header {
  background: var(--secondary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .12);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; padding-top: .85rem; padding-bottom: .85rem; }
.site-header .brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; }
.site-header .brand img { max-height: 46px; }

.nav-links-desktop { display: none; list-style: none; margin: 0; padding: 0; gap: 1.9rem; align-items: center; }
.nav-links-desktop a {
  color: #f2eee8;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  letter-spacing: .01em;
  position: relative;
  padding: .3rem 0;
}
.nav-links-desktop a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--primary); transition: right .2s ease;
}
.nav-links-desktop a:hover::after { right: 0; }
.nav-links-desktop a.admin-link { color: #cfd3e6; }

.burger summary {
  cursor: pointer; color: #fff; list-style: none; font-weight: 600;
  padding: .45rem .9rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  font-size: .9rem;
}
.burger summary::-webkit-details-marker { display: none; }
.burger ul { list-style: none; margin: .6rem 0 .3rem; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.burger a { color: #f2eee8; text-decoration: none; display: block; padding: .6rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }

@media (min-width: 860px) {
  .nav-links-desktop { display: flex; }
  .burger { display: none; }
}

/* Footer */
.site-footer { background: var(--secondary); color: #cfd3e6; margin-top: 4rem; }
.site-footer .inner {
  padding: 3rem 1.5rem 2rem;
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .site-footer .inner { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.site-footer a { color: #f2eee8; }
.site-footer a:hover { color: #fff; }
.footer-kontakt strong { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0; margin: 0 0 1rem; }
.copyright { opacity: .6; font-size: .82rem; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.25rem; margin-top: 1.25rem; }
.site-footer .inner .copyright { grid-column: 1 / -1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--primary); color: #fff; text-decoration: none;
  padding: .75rem 1.6rem; border-radius: 3px; font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-s);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--primary-ink); box-shadow: 0 14px 26px -12px rgba(165, 18, 60, .45); }
.btn-s { padding: .5rem 1.1rem; font-size: .85rem; }
.btn-l { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-half { width: 50%; justify-content: center; }
.btn-full { width: 100%; justify-content: center; }
.btn-danger { background: #a33; box-shadow: none; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--card-bg), #fdf3f6);
  border: 1px solid var(--border);
  padding: 2rem; border-radius: var(--radius); margin: 2.5rem 0;
  box-shadow: var(--shadow-s);
}
.cta h3 { margin-top: 0; }
.cta-mitte { text-align: center; }

/* Band (farbige Sektion) */
.band { padding: 2.75rem 0; margin: 2.5rem 0; }
.band-primary { background: var(--primary); color: #fff; border-radius: var(--radius); }
.band-primary h3 { color: #fff; }
.band-primary a { color: #fff; text-decoration: underline; }
.band-secondary { background: var(--secondary); color: #fff; border-radius: var(--radius); }
.band-secondary h3 { color: #fff; }
.band-secondary a { color: #fff; text-decoration: underline; }
.band-hell {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}
.band-hell h3 { text-align: center; margin-top: 0; }
.band-inner { max-width: var(--content-width); margin: 0 auto; padding: 0 1.75rem; }
.band-fw { border-radius: 0; }
.band-fw .band-inner { max-width: none; }
/* Öffnungszeiten-Block im hellen Band als 3er-Grid */
.band-hell .band-inner p strong { display: block; font-family: var(--font-display); color: var(--secondary); font-size: 1.05rem; margin-bottom: .2rem; }
@media (min-width: 720px) {
  .band-hell .band-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
  .band-hell .band-inner h3 { grid-column: 1 / -1; }
}

/* Galerie */
.galerie { display: grid; grid-template-columns: 1fr; gap: .75rem; margin: 2rem 0; }
.galerie-2 { grid-template-columns: repeat(2, 1fr); }
.galerie-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .galerie-2, .galerie-3 { grid-template-columns: 1fr 1fr; } }
.galerie img { border-radius: var(--radius-s); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-s); }
.lightbox-overlay { position: fixed; inset: 0; background: rgba(20, 16, 12, .9); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 1rem; }
.lightbox-overlay img { max-height: 90vh; border-radius: 8px; }

/* Trenner / Abstand */
.trenner { border: none; background: linear-gradient(to right, transparent, var(--border), transparent); height: 1px; }

/* Kontakt / Karte */
.kontaktblock { background: var(--card-bg); border: 1px solid var(--border); padding: 1.5rem 1.75rem; border-radius: var(--radius); box-shadow: var(--shadow-s); line-height: 1.9; }
.karte-embed iframe { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow-s); }

/* Seiteninhalt */
.page, .wrapper .inner { max-width: var(--content-width); margin: 0 auto; }
.wrapper { padding: 2rem 0; }
.wrapper .inner { padding: 0 1.5rem; }
article.page { max-width: var(--page-width); margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
article.page > p:first-of-type { font-size: 1.1rem; color: var(--text-soft); max-width: 65ch; }
article.page ul { padding-left: 1.25rem; }
article.page li { margin-bottom: .3rem; }
/* Freistehendes Bild direkt im Markdown (nicht im Spotlight) — eigene, ruhige Bildbehandlung */
article.page > figure > img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 2rem 0; }

/* Karten (Events, Team ...) */
.karte, .event-karte { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 1.5rem; box-shadow: var(--shadow-s); }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.event-datum { display: inline-block; background: var(--primary); color: #fff; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; margin-bottom: .6rem; }

/* Blog */
.blog-liste { display: grid; gap: 1.75rem; margin-top: 2rem; }
.blog-teaser { border-bottom: 1px solid var(--border); padding-bottom: 1.75rem; }
.blog-teaser h2 { margin-bottom: .3rem; }
.blog-datum { color: var(--text-soft); font-size: .88rem; }
.blog-tags a { margin-right: .6rem; font-size: .85rem; }

/* Formular */
.anfrage-formular {
  display: flex; flex-direction: column; gap: 1rem; max-width: 480px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-s);
}
.anfrage-formular h3 { margin-top: 0; }
.anfrage-formular label { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; color: var(--text-soft); }
.anfrage-formular input, .anfrage-formular textarea {
  padding: .65rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-s);
  font: inherit; color: var(--text); background: #fdfcfa;
}
.anfrage-formular input:focus, .anfrage-formular textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.hp-feld { position: absolute; left: -9999px; }
.dsgvo-check { flex-direction: row !important; align-items: center; gap: .5rem !important; }
.formular-danke { color: #2a7a2a; font-weight: 600; }
.formular-fehler { color: #a33; font-weight: 600; }

/* Login */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--secondary); font-family: var(--font-sans); }
.login-box { background: #fff; padding: 2.5rem; border-radius: var(--radius); width: 90%; max-width: 380px; box-shadow: var(--shadow); }
.login-box h1 { font-size: 1.3rem; }
.login-box form { display: flex; flex-direction: column; gap: 1rem; }
.login-box input { padding: .7rem; border: 1px solid var(--border); border-radius: var(--radius-s); font: inherit; }

/* Spotlight: Bild-links/Text-rechts (und umgekehrt), Original-Seiten-Muster.
   Bild-Box streckt sich auf die Hoehe des Textblocks (align-self:stretch + height:100%),
   object-fit:cover schneidet das Foto passend zu — verhindert ueberlange Bilder neben kurzen Texten. */
.spotlight-row { display: flex; flex-direction: column; gap: 2rem; align-items: center; margin: 3rem 0; }
.spotlight-row .spotlight-media { flex: 1 1 45%; min-width: 0; align-self: stretch; }
.spotlight-row .spotlight-media img { display: block; border-radius: var(--radius); aspect-ratio: 3/2; object-fit: cover; width: 100%; height: 100%; box-shadow: var(--shadow); }
.spotlight-row .spotlight-content { flex: 1 1 55%; min-width: 0; }
.spotlight-row .spotlight-content h3 { margin-top: 0; }
.spotlight-row .spotlight-content p { color: var(--text-soft); }
@media (min-width: 720px) {
  .spotlight-row { flex-direction: row; align-items: stretch; }
  .spotlight-row.spotlight-rechts { flex-direction: row-reverse; }
  .spotlight-row .spotlight-media { flex-basis: 42%; }
  .spotlight-row .spotlight-media img { aspect-ratio: auto; min-height: 100%; }
  .spotlight-row .spotlight-content { display: flex; flex-direction: column; justify-content: center; }
}

@media (max-width: 360px) { .inner, article.page { padding-left: 1rem; padding-right: 1rem; } }
