/* SEN premium dark botanical layer */
:root {
  color-scheme: dark;
  --sen-bg: #0c1412;
  --sen-surface: #111f1b;
  --sen-surface-2: #172a24;
  --sen-surface-3: #1d332b;
  --sen-ink: #f4f0e8;
  --sen-muted: #b9c1bc;
  --sen-line: rgba(222, 181, 108, 0.2);
  --sen-line-strong: rgba(222, 181, 108, 0.42);
  --sen-accent: #deb56c;
  --sen-accent-strong: #f0c97e;
  --sen-accent-ink: #101713;
  --sen-danger: #e08d7f;
  --sen-shadow: rgba(2, 8, 6, 0.48);
  --sen-radius: 16px;
  --sen-control-radius: 12px;
  --sen-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', Arial, sans-serif;

  --color-dark: var(--sen-bg);
  --color-cream: var(--sen-ink);
  --color-gold: var(--sen-accent);
  --color-gold-light: var(--sen-accent-strong);
  --color-green: var(--sen-surface);
  --color-green-light: var(--sen-surface-2);
  --color-white: var(--sen-ink);
  --color-text: var(--sen-ink);
  --color-text-light: var(--sen-muted);
  --color-border: var(--sen-line);
  --color-card-bg: var(--sen-surface);
}

html,
body {
  background: var(--sen-bg);
}

body {
  color: var(--sen-ink);
}

::selection {
  background: var(--sen-accent);
  color: var(--sen-accent-ink);
}

::-webkit-scrollbar-track {
  background: var(--sen-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--sen-accent);
}

:focus-visible {
  outline-color: var(--sen-accent-strong);
}

/* One continuous dark world with small surface shifts */
.section,
.section-dark,
.hours-section,
#speisekarte,
#galerie,
#reservierung {
  background: var(--sen-bg) !important;
  color: var(--sen-ink);
}

#highlights,
#galerie,
#reservierung,
.hours-section,
#kontakt {
  background: var(--sen-surface) !important;
}

main > .section {
  isolation: isolate;
  overflow: clip;
}

main > .section:not(.hero)::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 0;
  width: min(100% - 40px, 1320px);
  height: 38px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent, var(--sen-line-strong)) left center / calc(50% - 32px) 1px no-repeat,
    url('../assets/brand/sen-lotus-mark.svg') center / 36px auto no-repeat,
    linear-gradient(90deg, var(--sen-line-strong), transparent) right center / calc(50% - 32px) 1px no-repeat;
  opacity: 0.48;
  pointer-events: none;
}

main > .section:not(.hero)::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: clamp(-160px, -9vw, -72px);
  bottom: clamp(-170px, -10vw, -86px);
  width: clamp(260px, 29vw, 500px);
  aspect-ratio: 1;
  background: url('../assets/brand/sen-lotus-mark.svg') center / contain no-repeat;
  opacity: 0.025;
  filter: grayscale(1) sepia(0.5);
  transform: rotate(-12deg);
  pointer-events: none;
}

main > .section:nth-of-type(even)::after {
  right: auto;
  left: clamp(-160px, -9vw, -72px);
  transform: rotate(12deg);
}

.section > .container,
.hours-section > .container {
  position: relative;
  z-index: 1;
}

.section-title,
.about-text h2,
.hours-info h3,
.reservation-info h3,
.menu-category-title {
  color: var(--sen-ink);
}

.section-title,
.about-text h2,
.hours-info h3,
.reservation-info h3 {
  max-width: 13ch;
  line-height: 1;
}

.section-subtitle,
.about-text p,
.hours-info p,
.reservation-info p,
.menu-category-desc,
#speisekarte .menu-category-desc {
  color: var(--sen-muted) !important;
}

/* Header */
.header::after {
  background: rgba(12, 20, 18, 0.9);
  border-color: transparent;
  box-shadow: 0 14px 44px rgba(2, 8, 6, 0.28);
}

.header.scrolled::after {
  border-color: var(--sen-line);
}

.scroll-progress,
.cart-count {
  box-shadow: none;
}

.logo-copy strong,
.logo-copy small,
.nav-link,
.header-cart,
.mobile-header-cart,
.hamburger span {
  color: var(--sen-ink);
}

.hamburger span {
  background: var(--sen-ink);
}

.nav-link::after {
  background: var(--sen-accent);
}

.nav-link:hover,
.nav-link.active {
  color: var(--sen-accent-strong);
}

.mobile-menu {
  background:
    radial-gradient(circle at 50% 18%, rgba(222, 181, 108, 0.08), transparent 30%),
    var(--sen-bg);
}

.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 10% 18%;
  background: url('../assets/brand/sen-lotus-mark.svg') center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.mobile-menu nav {
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 18% 24%, rgba(222, 181, 108, 0.09), transparent 28%),
    linear-gradient(145deg, #0b1512 0%, #10201b 58%, #0c1412 100%) !important;
}

.hero::before {
  background:
    radial-gradient(circle at 70% 40%, rgba(222, 181, 108, 0.09), transparent 28%),
    linear-gradient(90deg, rgba(12, 20, 18, 0.08), rgba(12, 20, 18, 0.62));
  opacity: 1;
}

.hero-content::before {
  content: '';
  display: block;
  width: 76px;
  height: 1px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--sen-accent), transparent);
}

.hero-title,
.hero-subtitle,
.hero-location {
  color: var(--sen-ink);
}

.hero-title-line strong {
  color: var(--sen-accent-strong);
  text-shadow: none;
}

.hero-subtitle,
.hero-location {
  color: var(--sen-muted);
}

.hero-location {
  letter-spacing: 0.03em;
}

.hero-visual {
  border: 1px solid var(--sen-line);
  background: var(--sen-surface);
  box-shadow: 0 34px 90px rgba(2, 8, 6, 0.58);
}

.hero-visual::after {
  background: linear-gradient(135deg, rgba(12, 20, 18, 0.03), rgba(12, 20, 18, 0.36));
}

.hero-visual::before {
  border-color: rgba(240, 201, 126, 0.62);
  background-color: rgba(12, 20, 18, 0.74);
  box-shadow: 0 18px 44px rgba(2, 8, 6, 0.32);
}

.hero-lotus-mark {
  opacity: 0.075;
  filter: saturate(0.7);
}

/* Buttons */
.btn,
.menu-tab,
.add-to-cart,
.action-btn,
.cart-trigger,
.cart-close,
.quantity-button,
.cart-remove,
.whatsapp-order {
  transition:
    color 0.28s ease,
    background-color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.35s var(--sen-ease),
    transform 0.35s var(--sen-ease);
}

.btn-primary {
  border-color: var(--sen-accent);
  background: var(--sen-accent);
  color: var(--sen-accent-ink);
  box-shadow: 0 14px 34px rgba(2, 8, 6, 0.3);
}

.btn-primary:hover {
  background: var(--sen-accent-strong);
  box-shadow: 0 18px 46px rgba(2, 8, 6, 0.38);
  transform: translateY(-3px);
}

.btn-secondary,
.btn-outline {
  border-color: var(--sen-line-strong);
  background: rgba(17, 31, 27, 0.54);
  color: var(--sen-ink);
}

.btn-secondary:hover,
.btn-outline:hover {
  border-color: var(--sen-accent);
  background: rgba(222, 181, 108, 0.1);
  color: var(--sen-accent-strong);
  transform: translateY(-3px);
}

.btn:active,
.menu-tab:active,
.add-to-cart:active,
.cart-trigger:active {
  transform: translateY(1px) scale(0.985);
}

/* About */
.about-image-wrapper {
  border-color: var(--sen-line);
  background: var(--sen-surface);
  box-shadow: 0 30px 80px var(--sen-shadow);
}

.about-image-wrapper::before {
  border-color: var(--sen-line-strong);
}

.about-image {
  filter: saturate(0.94) contrast(1.02);
}

/* Featured cuisine */
.highlights-grid {
  gap: 18px;
}

.highlight-card {
  border: 1px solid var(--sen-line);
  background: var(--sen-surface-2);
  box-shadow: none;
}

.highlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(circle at 75% 18%, rgba(240, 201, 126, 0.14), transparent 34%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.highlight-card:hover {
  border-color: var(--sen-line-strong);
  box-shadow: 0 28px 72px rgba(2, 8, 6, 0.44);
  transform: translateY(-5px);
}

.highlight-card:hover::after {
  opacity: 1;
}

.highlight-card-image img {
  filter: saturate(0.93) contrast(1.03);
}

.highlight-card:hover .highlight-card-image img {
  transform: scale(1.045);
  filter: saturate(1.03) contrast(1.03);
}

.highlight-card-overlay {
  background: linear-gradient(180deg, transparent 22%, rgba(5, 12, 9, 0.9) 100%);
}

.highlight-card-title,
.highlight-card-desc {
  color: var(--sen-ink);
}

/* Menu navigation and category imagery */
.menu-nav {
  border-color: var(--sen-line);
  background: rgba(12, 20, 18, 0.9);
  box-shadow: 0 18px 42px rgba(2, 8, 6, 0.22);
}

.menu-tab {
  border-color: var(--sen-line);
  background: rgba(17, 31, 27, 0.72);
  color: var(--sen-muted);
}

.menu-tab:hover {
  border-color: var(--sen-line-strong);
  background: var(--sen-surface-2);
  color: var(--sen-ink);
}

.menu-tab.active,
.menu-tab.active:hover {
  border-color: var(--sen-accent);
  background: var(--sen-accent);
  color: var(--sen-accent-ink);
  box-shadow: 0 10px 28px rgba(2, 8, 6, 0.26);
}

.menu-category-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(190px, 24vw, 330px);
  gap: 14px;
  margin: 26px 0 46px;
}

.menu-category-visual {
  position: relative;
  grid-column: span 12;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--sen-line);
  border-radius: var(--sen-radius);
  background: var(--sen-surface-2);
  box-shadow: none;
}

.menu-category-gallery-2 .menu-category-visual,
.menu-category-gallery-4 .menu-category-visual {
  grid-column: span 6;
}

.menu-category-gallery-3 .menu-category-visual:first-child {
  grid-column: span 7;
  grid-row: span 2;
}

.menu-category-gallery-3 .menu-category-visual:not(:first-child) {
  grid-column: span 5;
}

.menu-category-visual::after,
.menu-item-media::after,
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240, 201, 126, 0.08), transparent 46%, rgba(5, 12, 9, 0.18));
  opacity: 0;
  transition: opacity 0.42s ease;
  pointer-events: none;
}

.menu-category-visual img,
.menu-item-media img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
  transition: transform 0.75s var(--sen-ease), filter 0.45s ease;
}

.menu-category-visual:hover img,
.menu-item.has-dish-image:hover .menu-item-media img,
.gallery-item:hover img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.03);
}

.menu-category-visual:hover::after,
.menu-item.has-dish-image:hover .menu-item-media::after,
.gallery-item:hover::after {
  opacity: 1;
}

.menu-grid {
  gap: 0 54px;
}

.menu-item {
  border-color: var(--sen-line);
}

.menu-item-media {
  position: relative;
  border-color: var(--sen-line);
  background: var(--sen-surface-2);
  box-shadow: 0 14px 34px rgba(2, 8, 6, 0.34);
}

.menu-item-name,
.menu-variant-name {
  color: var(--sen-ink);
}

.menu-item-number,
.menu-item-price,
.menu-variant-price {
  color: var(--sen-accent-strong);
}

.menu-item-desc,
.menu-item-allergens,
.menu-variant-allergens {
  color: var(--sen-muted);
}

.menu-item-dots,
.menu-variant-dots {
  border-color: var(--sen-line);
}

.add-to-cart {
  border-color: var(--sen-line-strong);
  background: rgba(17, 31, 27, 0.66);
  color: var(--sen-ink);
}

.add-to-cart:hover,
.add-to-cart.added {
  border-color: var(--sen-accent);
  background: var(--sen-accent);
  color: var(--sen-accent-ink);
  box-shadow: 0 10px 24px rgba(2, 8, 6, 0.28);
}

/* Gallery */
.gallery-item {
  border: 1px solid var(--sen-line);
  background: var(--sen-surface-2);
  box-shadow: none;
}

.gallery-item-overlay {
  background: linear-gradient(180deg, transparent 58%, rgba(5, 12, 9, 0.46));
}

.lightbox {
  background: rgba(5, 10, 8, 0.94) !important;
  backdrop-filter: blur(16px);
}

.lightbox img {
  border-radius: var(--sen-radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

/* Hours, map, reservation, contact */
.hours-row,
.contact-card {
  border-color: var(--sen-line);
}

.hours-card {
  padding-inline: 12px;
}

.contact-card {
  padding-inline: clamp(18px, 3vw, 38px) !important;
}

.hours-day,
.hours-address p,
.contact-card h4,
.contact-card h3,
.contact-card p,
.contact-card a {
  color: var(--sen-ink);
}

.contact-card h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.hours-time,
#standort .container > p a {
  color: var(--sen-accent-strong);
}

.map-container {
  border: 1px solid var(--sen-line);
  background: var(--sen-surface-2);
  box-shadow: 0 30px 80px var(--sen-shadow);
}

.map-container iframe {
  filter: grayscale(0.42) invert(0.9) hue-rotate(122deg) saturate(0.65) contrast(0.9);
}

.reservation-form {
  border: 1px solid var(--sen-line);
  background:
    radial-gradient(circle at 88% 5%, rgba(222, 181, 108, 0.08), transparent 28%),
    var(--sen-surface-2);
  box-shadow: 0 30px 80px var(--sen-shadow);
}

.form-label,
.cart-field span {
  color: var(--sen-ink);
}

.form-input,
.form-textarea,
.form-select,
.cart-field input,
.cart-field textarea {
  border-color: var(--sen-line);
  background: rgba(12, 20, 18, 0.72);
  color: var(--sen-ink);
}

.form-input::placeholder,
.form-textarea::placeholder,
.cart-field input::placeholder,
.cart-field textarea::placeholder {
  color: #87928c;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.cart-field input:focus,
.cart-field textarea:focus {
  border-color: var(--sen-accent);
  outline: 2px solid var(--sen-accent);
  outline-offset: 2px;
  box-shadow: none;
}

.form-select option {
  background: var(--sen-surface);
  color: var(--sen-ink);
}

.contact-card {
  background: transparent;
}

.contact-social-link {
  border-color: var(--sen-line);
  background: var(--sen-surface-2);
  color: var(--sen-ink);
}

.contact-social-link:hover {
  border-color: var(--sen-accent);
  color: var(--sen-accent-strong);
}

/* Footer and ordering drawer */
.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--sen-line);
  background: #08100e;
  color: var(--sen-ink);
}

.footer::before {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 460px;
  aspect-ratio: 1;
  background: url('../assets/brand/sen-lotus-mark.svg') center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer h4,
.footer h3,
.footer-brand p,
.footer-link a,
.footer-bottom,
.footer-col p,
.footer-col a {
  color: var(--sen-muted) !important;
}

.footer h4,
.footer h3,
.footer .logo-copy strong {
  color: var(--sen-ink) !important;
}

.footer-col h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-link a:hover,
.footer-col a:hover {
  color: var(--sen-accent-strong) !important;
}

.footer-bottom {
  border-color: var(--sen-line);
}

.cart-backdrop {
  background: rgba(2, 8, 6, 0.74);
  backdrop-filter: blur(8px);
}

.cart-drawer {
  border-left: 1px solid var(--sen-line);
  background: var(--sen-surface);
  color: var(--sen-ink);
  box-shadow: -30px 0 80px rgba(2, 8, 6, 0.56);
}

.cart-drawer-header,
.cart-checkout,
.cart-item {
  border-color: var(--sen-line);
}

.cart-checkout {
  background: var(--sen-surface-2);
  box-shadow: 0 -12px 30px rgba(2, 8, 6, 0.24);
}

.cart-total-row,
.quantity-value {
  color: var(--sen-ink);
}

.cart-item-price {
  color: var(--sen-accent-strong);
}

.quantity-control {
  border-color: var(--sen-line);
}

.cart-drawer-header h2,
.cart-empty h3,
.cart-item-name,
.cart-total-row strong {
  color: var(--sen-ink);
}

.cart-drawer-header p,
.cart-empty p,
.cart-disclaimer,
.cart-item-code {
  color: var(--sen-muted);
}

.cart-close,
.quantity-button,
.cart-remove {
  border-color: var(--sen-line);
  background: var(--sen-surface-2);
  color: var(--sen-ink);
}

.cart-close:hover,
.quantity-button:hover,
.cart-remove:hover {
  border-color: var(--sen-accent);
  color: var(--sen-accent-strong);
}

.whatsapp-order:not(:disabled) {
  background: var(--sen-accent);
  color: var(--sen-accent-ink);
}

.whatsapp-order:not(:disabled):hover {
  background: var(--sen-accent-strong);
  box-shadow: 0 14px 34px rgba(2, 8, 6, 0.32);
  transform: translateY(-2px);
}

.mobile-action-bar {
  border-color: var(--sen-line);
  background: rgba(12, 20, 18, 0.92);
}

.action-btn {
  color: var(--sen-ink);
}

.action-btn:hover,
.action-btn:active {
  background: rgba(222, 181, 108, 0.1);
  color: var(--sen-accent-strong);
}

/* Purposeful reveals: headings clarify hierarchy, panels reveal state */
.reveal-section,
.reveal-panel,
.reveal-line {
  opacity: 0;
  transition:
    opacity 0.82s var(--sen-ease),
    transform 0.82s var(--sen-ease),
    filter 0.82s var(--sen-ease),
    clip-path 0.9s var(--sen-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-section {
  transform: translateY(24px);
  filter: blur(5px);
}

.reveal-panel {
  transform: translateY(30px) scale(0.985);
  clip-path: inset(0 0 12% 0 round var(--sen-radius));
}

.reveal-line {
  transform: translateX(-20px);
}

.reveal-section.visible,
.reveal-panel.visible,
.reveal-line.visible {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0 round var(--sen-radius));
}

/* Legal pages inherit the same visual world */
.legal-header {
  border-color: var(--sen-line) !important;
  background: rgba(12, 20, 18, 0.94) !important;
  backdrop-filter: blur(18px);
}

.legal-content {
  color: var(--sen-ink);
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content p,
.legal-content address,
.legal-content li {
  color: var(--sen-ink) !important;
}

.legal-content h2 {
  border-color: var(--sen-line) !important;
}

.legal-content a,
.legal-header .back-link {
  color: var(--sen-accent-strong) !important;
}

.legal-content .contact-block {
  border-color: var(--sen-line) !important;
  background: var(--sen-surface) !important;
  box-shadow: 0 18px 48px rgba(2, 8, 6, 0.28);
}

.legal-content .info-box {
  border: 1px solid var(--sen-line) !important;
  border-left-width: 1px !important;
  background: var(--sen-surface) !important;
  color: var(--sen-ink) !important;
  box-shadow: none;
}

.legal-content .placeholder {
  border-color: var(--sen-line-strong) !important;
  background: rgba(222, 181, 108, 0.1) !important;
  color: var(--sen-accent-strong) !important;
}

@media (max-width: 992px) {
  main > .section:not(.hero)::before {
    top: 20px;
  }

  .menu-category-gallery {
    grid-auto-rows: clamp(180px, 34vw, 300px);
  }
}

@media (max-width: 768px) {
  main > .section:not(.hero)::before {
    width: calc(100% - 32px);
    opacity: 0.38;
  }

  main > .section:not(.hero)::after {
    width: 280px;
    opacity: 0.02;
  }

  .hero {
    min-height: auto;
  }

  .hero-content::before {
    margin-bottom: 22px;
  }

  .menu-category-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 210px;
    margin: 22px 0 38px;
  }

  .menu-category-gallery .menu-category-visual,
  .menu-category-gallery-2 .menu-category-visual,
  .menu-category-gallery-3 .menu-category-visual,
  .menu-category-gallery-4 .menu-category-visual {
    grid-column: span 1;
    grid-row: auto;
  }

  .menu-category-gallery-1 .menu-category-visual,
  .menu-category-gallery-3 .menu-category-visual:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .menu-category-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
    gap: 10px;
  }

  .menu-category-gallery .menu-category-visual,
  .menu-category-gallery-3 .menu-category-visual:first-child {
    grid-column: auto;
  }

  .menu-item.has-dish-image {
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 14px;
  }

  .section-title,
  .about-text h2,
  .hours-info h3,
  .reservation-info h3 {
    max-width: 15ch;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .header::after,
  .menu-nav,
  .mobile-action-bar,
  .cart-backdrop,
  .legal-header {
    backdrop-filter: none;
    background: var(--sen-bg) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section,
  .reveal-panel,
  .reveal-line {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }
}
