/* ==========================================================================
   RESTAURANT ATELIER v1.0 – Editorial Gourmet-Magazin-Stil
   Dunkel, elegant, kulinarisch
   ========================================================================== */

:root {
  --c-primary: #8b1e2f;
  --c-primary-dark: #6e1726;
  --c-primary-light: #b03d4f;
  --c-secondary: #f4ede2;
  --c-accent: #d4af37;
  --c-accent-dark: #b89422;
  --c-text: #1a1614;

  --c-bg: #fdfaf5;
  --c-bg-dark: #1a1614;
  --c-bg-darker: #0d0a08;
  --c-bg-paper: #f4ede2;
  --c-border: #e5d8c3;
  --c-text-muted: #6b5d4f;
  --c-text-light: #d4c4a8;

  --shadow-soft: 0 8px 30px rgba(26, 22, 20, 0.12);
  --shadow-medium: 0 15px 50px rgba(26, 22, 20, 0.18);
  --shadow-deep: 0 25px 80px rgba(26, 22, 20, 0.3);

  --container: 1280px;
  --header-h: 88px;

  --ease: 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);

  --font-display: "Playfair Display", "Bodoni 72", Didot, "Times New Roman", serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--color-bg, #ffffff);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover { color: var(--c-primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }

p { margin-bottom: 1rem; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--c-accent); color: var(--c-bg-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.8rem;
}
@media (max-width: 640px) { .container { padding: 0 1.2rem; } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border-radius: 0;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: all var(--ease);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: left 0.5s var(--ease);
}
.btn:hover::before { left: 100%; }

.btn-primary {
  background: var(--c-accent);
  color: var(--c-primary);
  border-color: var(--c-accent);
}
.btn-primary:hover {
  background: var(--c-accent-dark);
  color: var(--c-primary);
  border-color: var(--c-accent-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-text);
}
.btn-ghost:hover {
  background: var(--c-text);
  color: var(--c-bg);
}

/* Reservieren-Button im Header */
.btn-reserve {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: transparent;
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid var(--c-text);
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-reserve:hover {
  background: var(--c-text);
  color: var(--c-bg);
}

/* ==========================================================================
   Header – elegant, mit Logo zentriert, Nav links + rechts
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  z-index: 50;
  background: var(--c-secondary);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--ease), background var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(26, 22, 20, 0.08);
  background: var(--c-secondary);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: grid;
  /* Logo zentral, links Nav, rechts Nav + Actions als feste Slots
     damit nichts mehr überlagert. min-width: 0 verhindert overflow. */
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  height: 100%;
  gap: 1.2rem;
  position: relative;
  min-width: 0;
}
.header-inner > * { min-width: 0; }

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--c-text);
  gap: 0.3rem;
  transition: opacity var(--ease);
}
.logo:hover { opacity: 0.85; }
.logo img {
  max-height: 56px;
  width: auto;
}
.logo-ornament {
  display: inline-flex;
  color: var(--c-primary);
  margin-bottom: 0.2rem;
}
.logo-name {
  font-family: var(--font-display);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.logo-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--c-text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
}
.site-nav-left { justify-content: flex-end; }
.site-nav-right { justify-content: flex-start; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  align-items: center;
}
.nav-item { position: relative; }
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 1rem;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: all var(--ease);
  position: relative;
}
.nav-item > a::after {
  content: "";
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--c-primary);
  transition: all var(--ease);
  transform: translateX(-50%);
}
.nav-item > a:hover {
  color: var(--c-primary);
}
.nav-item > a:hover::after {
  width: 24px;
}

.nav-submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-medium);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--ease);
  z-index: 100;
}
.nav-item.has-submenu:hover > .nav-submenu,
.nav-item.has-submenu:focus-within > .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-submenu .nav-item > a {
  display: block;
  padding: 0.55rem 0.8rem;
  font-size: 0.75rem;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.header-actions > * { flex-shrink: 0; }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--c-text);
  transition: all var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Bei vielen Module-Outputs im Header (Hours-Badge + Contact-CTA + Reviews-Badge …)
   wird's eng — daher schon ab 1180px auf Mobile umschalten. */
@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .header-inner {
    grid-template-columns: auto 1fr auto;
    justify-content: center;
    gap: .8rem;
  }
  .site-nav-left, .site-nav-right { display: none; }
  .header-actions .btn-reserve { padding: 0.5rem 1rem; font-size: 0.7rem; letter-spacing: 0.15em; }
  .logo-sub { display: none; }
}

@media (max-width: 600px) {
  .header-actions .btn-reserve span { display: none; }
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--c-bg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-medium);
  z-index: 49;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  transform: translateY(-110%);
  transition: transform var(--ease);
}
.mobile-nav.is-open {
  transform: translateY(0);
}
.mobile-nav .nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.mobile-nav .nav-item > a {
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-family: var(--font-serif);
}
.mobile-nav .nav-item > a::after { display: none; }
.mobile-nav .nav-submenu {
  position: static;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0 0 0.5rem 1rem;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mobile-nav .nav-submenu .nav-item > a {
  padding: 0.6rem 0;
  border-bottom: 0;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.mobile-phone {
  display: block;
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background: var(--c-primary);
  color: #fff !important;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   HERO – Bento-Grid mit 4 Bildern + Text
   ========================================================================== */
.hero {
  padding: 4rem 0 6rem;
  background: color-mix(in srgb, var(--color-bg) 100%, white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at right top, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 1000px) {
  .hero-grid-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* TEXT-Block */
.hero-text-block {
  padding: 1rem 0;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  animation: heroFadeUp 1s var(--ease) 0.1s both;
}
.hero-kicker-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--c-primary);
}
.hero-kicker-text {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--c-primary);
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: var(--c-text);
  animation: heroFadeUp 1s var(--ease) 0.2s both;
}
.hero-title em {
  font-style: italic;
  color: var(--c-primary);
}

.hero-tagline {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--c-text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  animation: heroFadeUp 1s var(--ease) 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: heroFadeUp 1s var(--ease) 0.4s both;
}

.hero-contact-line {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  animation: heroFadeUp 1s var(--ease) 0.5s both;
}
.hero-contact-line span {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-right: 0.6rem;
}
.hero-contact-line a {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--c-text);
  letter-spacing: 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}
.hero-contact-line a:hover {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* BENTO-GRID mit 4 Bildern */
.hero-bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.8rem;
  height: 580px;
  position: relative;
  animation: heroFadeIn 1.2s var(--ease) 0.2s both;
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bento-cell {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-dark);
  cursor: pointer;
}
.bento-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.bento-cell:hover img {
  transform: scale(1.05);
}
.bento-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--ease);
}
.bento-cell:hover::after { opacity: 1; }

/* Bento-Layout: */
/* +-----------+--------+
   |           |        |
   |  LARGE    | TALL   |
   |           |        |
   |           |        |
   +-----+-----+        |
   |SMALL|SMALL|        |
   |  1  |  2  |        |
   +-----+-----+--------+ */

.bento-large {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  animation: bentoFloat 1s var(--ease) 0.3s both;
}
.bento-tall {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  animation: bentoFloat 1s var(--ease) 0.45s both;
}
.bento-small-1 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  background: transparent;
  overflow: visible;
}
.bento-small-1 img {
  position: relative;
  grid-column: 1;
}
/* Wir splitten die untere Reihe stattdessen via einfaches Layout-Trick */

@keyframes bentoFloat {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Achtung: bento-small-1 und bento-small-2 sind beide Cells, einfacher: */
.hero-bento {
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1.4fr 1fr;
  grid-template-areas:
    "large tall"
    "small1 tall"
    "small1 small2";
}
.bento-large   { grid-area: large; }
.bento-tall    { grid-area: tall; }
.bento-small-1 { grid-area: small1; display: block; background: var(--c-bg-dark); animation: bentoFloat 1s var(--ease) 0.6s both; }
.bento-small-2 { grid-area: small2; animation: bentoFloat 1s var(--ease) 0.75s both; }

/* Korrektur: Layout neu definieren mit klareren Grid-Areas */
.hero-bento {
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "large large tall"
    "small1 small2 tall";
  height: 560px;
}

/* Bento-Tag (Overlay-Label im Hauptbild) */
.bento-tag {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: var(--c-bg);
  color: var(--c-text);
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  z-index: 2;
  border-left: 2px solid var(--c-primary);
}

@media (max-width: 1000px) {
  .hero-bento {
    height: 480px;
  }
}

@media (max-width: 700px) {
  .hero-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.2fr 1fr 1fr;
    grid-template-areas:
      "large large"
      "tall small1"
      "tall small2";
    height: 520px;
    gap: 0.5rem;
  }
}

/* Decorative Linie unten am Hero */
.hero-decor-line {
  position: absolute;
  bottom: 0rem;
  left: 0;
  right: 0;
  color: var(--c-secondary);
  pointer-events: none;
  opacity: 1;
}
.hero-decor-line svg { width: 100%; height: 30px; }

/* ==========================================================================
   Page Hero (Unterseiten)
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 6rem 0 4rem;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  animation: heroFadeUp 1s var(--ease);
}
.page-hero h1 {
  color: #fff;
  margin-top: 0.8rem;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.page-header-section {
  background: var(--c-bg-paper);
  padding: 5rem 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--c-border);
}
.page-header-section h1 {
  margin-top: 0.8rem;
}

.page-hero-ornament {
  margin-top: 1.2rem;
  color: var(--c-accent);
  display: flex;
  justify-content: center;
}
.page-header-section .page-hero-ornament { color: var(--c-primary); }

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
  opacity: 0.95;
}
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--ease);
}
.breadcrumbs a:hover { opacity: 1; }
.crumb-sep { opacity: 0.5; }
.page-header-section .breadcrumbs { color: var(--c-text-muted); }
.page-header-section .breadcrumbs a { color: var(--c-primary); }

/* ==========================================================================
   Sections
   ========================================================================== */
.page-section {
  padding: 6rem 0;
  position: relative;
}
@media (max-width: 640px) { .page-section { padding: 3rem 0; } }

.welcome-placeholder {
  background: var(--c-bg-paper);
}
.placeholder-ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--c-primary);
}
.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 620px;
  margin: 1.2rem auto 0;
}

/* ==========================================================================
   Prose
   ========================================================================== */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--c-text);
}
.prose > * + * { margin-top: 1.2rem; }
.prose > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  float: left;
  line-height: 0.85;
  padding-right: 0.8rem;
  padding-top: 0.4rem;
  font-weight: 400;
  color: var(--c-primary);
}
.prose h2 {
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  position: relative;
  padding-bottom: 1.2rem;
}
.prose h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--c-primary);
}
.prose h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.6rem;
  color: var(--c-text);
}
.prose h4 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.prose a {
  color: var(--c-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.prose a:hover {
  color: var(--c-primary-dark);
  text-decoration-thickness: 2px;
}
.prose ul, .prose ol {
  padding-left: 1.6rem;
  margin: 1rem 0;
}
.prose li { margin-bottom: 0.4rem; }
.prose ul li::marker { color: var(--c-primary); }
.prose blockquote {
  border: 0;
  padding: 2rem 1rem;
  margin: 2.5rem auto;
  text-align: center;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--c-text);
  position: relative;
  max-width: 600px;
}
.prose blockquote::before,
.prose blockquote::after {
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  background: var(--c-primary);
  margin: 0 auto;
  opacity: 0.6;
}
.prose blockquote::before { margin-bottom: 1.5rem; }
.prose blockquote::after { margin-top: 1.5rem; }
.prose pre {
  background: var(--c-bg-dark);
  color: var(--c-secondary);
  padding: 1.2rem;
  border-radius: 0;
  overflow-x: auto;
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
.prose code {
  background: var(--c-bg-paper);
  padding: 0.15rem 0.5rem;
  font-size: 0.9em;
  color: var(--c-primary-dark);
  font-family: "SF Mono", Monaco, Consolas, monospace;
}
.prose pre code { background: transparent; color: inherit; padding: 0; }

.prose .ql-align-center { text-align: center; }
.prose .ql-align-right  { text-align: right; }
.prose .ql-align-justify{ text-align: justify; }

/* ==========================================================================
   Content-Bilder (fw-image)
   ========================================================================== */
.content .fw-image {
  margin: 2.5rem 0;
}
.content .fw-image img {
  border-radius: 0;
  box-shadow: var(--shadow-soft);
}
.content .fw-image figcaption {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  font-style: italic;
  text-align: center;
  padding-top: 0.7rem;
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}

.content .fw-image.align-left  { float: left;  margin: 0.5rem 2rem 1.5rem 0; }
.content .fw-image.align-right { float: right; margin: 0.5rem 0 1.5rem 2rem; }
.content .fw-image.align-center { float: none; margin-left: auto; margin-right: auto; }

.content .fw-image.size-small  { width: 30%; }
.content .fw-image.size-medium { width: 50%; }
.content .fw-image.size-large  { width: 75%; }
.content .fw-image.size-full   {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  float: none;
}

.content p::after { content: ""; display: table; clear: both; }

/* === fw-image mit Side-Text-Box === */
.content .fw-image.has-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "img side" "cap side";
  gap: 0 1.5rem;
  width: 100% !important;
  float: none !important;
  margin: 2rem 0;
}
.content .fw-image.has-side > img        { grid-area: img; max-width: 100%; height: auto; }
.content .fw-image.has-side > figcaption { grid-area: cap; text-align: left; }
.content .fw-image.has-side > .fw-image__side { grid-area: side; align-self: start; padding: .25rem 0; }
.content .fw-image.has-side.side-left  { grid-template-areas: "side img" "side cap"; }
.content .fw-image.has-side.side-right { grid-template-areas: "img side" "cap side"; }

@media (max-width: 768px) {
  .content .fw-image {
    width: 100% !important;
    float: none !important;
    margin: 1.5rem 0 !important;
  }
  .content .fw-image.size-full {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
  .content .fw-image.has-side {
    grid-template-columns: 1fr !important;
    grid-template-areas: "img" "cap" "side" !important;
  }
}

/* ==========================================================================
   Galerien (fw-gallery)
   ========================================================================== */
.content .fw-gallery {
  display: grid;
  gap: 0.6rem;
  margin: 3rem 0;
}
.content .fw-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), box-shadow var(--ease);
  position: relative;
}
.content .fw-gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 30, 47, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}
.content .fw-gallery a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}
.content .fw-gallery a:hover::after { opacity: 1; }
.content .fw-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.content .fw-gallery a:hover img {
  transform: scale(1.06);
}

.content .fw-gallery.layout-grid2 { grid-template-columns: repeat(2, 1fr); }
.content .fw-gallery.layout-grid3 { grid-template-columns: repeat(3, 1fr); }
.content .fw-gallery.layout-grid4 { grid-template-columns: repeat(4, 1fr); }
.content .fw-gallery.layout-grid2 a,
.content .fw-gallery.layout-grid3 a,
.content .fw-gallery.layout-grid4 a { aspect-ratio: 1/1; }

.content .fw-gallery.layout-masonry {
  display: block;
  column-count: 3;
  column-gap: 0.6rem;
}
.content .fw-gallery.layout-masonry a {
  display: block;
  margin-bottom: 0.6rem;
  break-inside: avoid;
}

.content .fw-gallery.layout-carousel {
  display: flex;
  overflow-x: auto;
  gap: 0.6rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}
.content .fw-gallery.layout-carousel a {
  flex: 0 0 360px;
  aspect-ratio: 4/3;
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .content .fw-gallery.layout-grid3,
  .content .fw-gallery.layout-grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .content .fw-gallery.layout-masonry { column-count: 2; }
}
@media (max-width: 480px) {
  .content .fw-gallery.layout-grid3,
  .content .fw-gallery.layout-grid4 {
    grid-template-columns: 1fr;
  }
  .content .fw-gallery.layout-masonry { column-count: 1; }
}

/* ==========================================================================
   Preview Banner
   ========================================================================== */
.preview-banner {
  background: var(--c-bg-paper);
  color: var(--c-text);
  padding: 1rem 1.3rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--c-primary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Error Page
   ========================================================================== */
.error-section { padding: 7rem 0; }
.error-content {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.error-number {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 12vw, 8rem);
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.error-divider {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
  color: var(--c-accent);
}
.error-content h1 {
  margin-bottom: 1rem;
}
.error-text {
  color: var(--c-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-serif);
  font-style: italic;
}

/* ==========================================================================
   Footer – dunkel, Editorial
   ========================================================================== */
.site-footer {
  background: var(--c-secondary);
  color: var(--c-text);
  padding: 5rem 0 0;
  margin-top: 6rem;
  position: relative;
}

.footer-content { padding-bottom: 3rem; }

.footer-ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  color: var(--c-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
  color: var(--c-primary);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 500;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.8rem;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background: var(--c-accent);
}

.footer-col p,
.footer-col a {
  color: var(--c-text);
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-col a {
  text-decoration: none;
  transition: color var(--ease);
}
.footer-col a:hover {
  color: var(--c-accent);
}

.footer-brand .footer-name {
  color: var(--c-primary);
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.footer-logo {
  max-width: 180px;
  max-height: 60px;
  margin-bottom: 1rem;
  opacity: 0.95;
}
.footer-tagline {
  color: var(--c-accent);
  margin-bottom: 1.8rem;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.footer-address {
  white-space: pre-line;
  margin-bottom: 0.8rem;
}

.opening-hours {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2;
}
.opening-hours .muted-hour {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-style: normal;
  font-family: var(--font-sans);
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.9rem;
  position: relative;
  display: inline-block;
  padding-left: 0;
  transition: padding-left var(--ease);
}
.footer-links a:hover {
  padding-left: 0.5rem;
  color: var(--c-accent);
}

.footer-socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--c-primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all var(--ease);
}
.social-link:hover {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  transform: translateY(-2px);
}

.footer-map-wrap {
  margin-top: 3rem;
  position: relative;
  padding-top: 30%;
  background: rgba(255, 255, 255, 0.03);
}
.footer-map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(70%) contrast(1.1) brightness(0.85);
  transition: filter var(--ease);
}
.footer-map-wrap:hover iframe {
  filter: grayscale(0%) contrast(1) brightness(1);
}
@media (max-width: 768px) {
  .footer-map-wrap { padding-top: 60%; }
}

.footer-legal {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.5rem 0;
  margin-top: 2rem;
}
.footer-legal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal p {
  color: var(--c-text-muted, rgba(0, 0, 0, 0.5));
  font-size: 0.8rem;
  margin: 0;
  letter-spacing: 0.05em;
}
.legal-links {
  display: flex;
  gap: 1.5rem;
}
.legal-links a {
  color: var(--c-text-muted, rgba(0, 0, 0, 0.55));
  font-size: 0.8rem;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.legal-links a:hover { color: var(--c-accent); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
body.fw-lb-open { overflow: hidden; }
.fw-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 10, 8, 0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fwLbIn 0.3s ease-out;
}
@keyframes fwLbIn { from { opacity: 0; } to { opacity: 1; } }
.fw-lb-content { max-width: 92vw; max-height: 92vh; position: relative; }
.fw-lb-content img {
  max-width: 92vw;
  max-height: 88vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.fw-lb-counter {
  position: absolute;
  bottom: -2.5rem; left: 50%;
  transform: translateX(-50%);
  color: var(--c-accent);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: var(--font-serif);
}
.fw-lb-close, .fw-lb-prev, .fw-lb-next {
  position: absolute;
  background: rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(12px);
  color: var(--c-accent);
  border: 1px solid rgba(212, 175, 55, 0.3);
  width: 52px; height: 52px;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}
.fw-lb-close:hover, .fw-lb-prev:hover, .fw-lb-next:hover {
  background: var(--c-accent);
  color: var(--c-bg-dark);
}
.fw-lb-prev:hover, .fw-lb-next:hover { transform: translateY(-50%); }
.fw-lb-close { top: 1.5rem; right: 1.5rem; }
.fw-lb-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.fw-lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Utilities
   ========================================================================== */
.muted { color: var(--c-text-muted); }
.text-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.bento-tag-bottom {
  top: auto;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  font-size: 0.65rem;
  padding: 0.4rem 0.8rem;
  border-left: 1px solid var(--c-accent);
}
/* ==========================================================================
   Startseite-Varianten (home2 / home3)
   ========================================================================== */

/* === Variante 2: zentriertes Hauptbild + 3 Polaroids === */
.hero--variant-feature { padding: 4rem 0; }
.hero--variant-feature .hero-text-block--center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 0;
}
.hero--variant-feature .hero-kicker { justify-content: center; }
.hero-feature-img {
  margin: 0 auto;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.hero-feature-img img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 16 / 9; object-fit: cover;
}
.hero-feature-img figcaption {
  position: absolute; left: 1.5rem; bottom: 1.5rem;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: .55rem 1.25rem;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero-polaroids {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 2.5rem auto 0;
}
.hero-polaroid {
  margin: 0;
  background: #fff;
  padding: .65rem .65rem 1.25rem;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transform: rotate(-1.5deg);
  transition: transform .25s ease;
}
.hero-polaroid:nth-child(2) { transform: rotate(1deg); margin-top: 1rem; }
.hero-polaroid:nth-child(3) { transform: rotate(-.5deg); margin-top: -.5rem; }
.hero-polaroid:hover { transform: rotate(0deg) translateY(-4px); }
.hero-polaroid img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
}
.hero-polaroid figcaption {
  text-align: center;
  margin-top: .75rem;
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: .9rem;
  color: var(--c-primary, var(--color-primary));
}
@media (max-width: 700px) {
  .hero-polaroids { grid-template-columns: 1fr; }
  .hero-polaroid, .hero-polaroid:nth-child(n) { transform: none; margin-top: 0; }
}

/* === Variante 3: 4 Bild-Streifen-Hintergrund + Text mittig === */
.hero--variant-stripes {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-stripes {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-stripe {
  background-size: cover;
  background-position: center;
  filter: grayscale(.3) brightness(.55);
  transition: filter .3s ease, transform .3s ease;
}
.hero-stripes:hover .hero-stripe { filter: grayscale(.5) brightness(.45); }
.hero-stripe:hover { filter: none !important; transform: scale(1.02); }
.hero-stripes-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.1) 0%, rgba(0,0,0,.6) 100%);
}
.hero-stripes__text {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 720px;
  padding: 2rem;
}
.hero-stripes__text .hero-title { color: #fff; }
.hero-stripes__text .hero-kicker { justify-content: center; color: rgba(255,255,255,.85); }
.hero-stripes__text .hero-tagline { color: rgba(255,255,255,.92); }
.hero-stripes__text .hero-kicker-line { background: rgba(255,255,255,.5); }
@media (max-width: 700px) {
  .hero-stripes { grid-template-columns: repeat(2, 1fr); }
}

/* === Modul-Variable-Aliase: --color-* spiegeln --c-* (für Module-CSS-Konsistenz) === */
:root {
  --color-primary:        var(--c-primary);
  --color-primary-dark:   var(--c-primary-dark);
  --color-primary-light:  var(--c-primary-light);
  --color-secondary:      var(--c-secondary);
  --color-accent:         var(--c-accent);
  --color-accent-dark:    var(--c-accent-dark);
  --color-text:           var(--c-text);
  --color-text-muted:     var(--c-text-muted, var(--c-text-dim));
  --color-bg:             var(--c-bg);
  --color-background:     var(--c-bg);
  --color-border:         var(--c-line, var(--c-border));
}
