* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

:root {
  --page-side-padding: 0px; /* default padding to align header + hero */
  --page-max-width: 1100px;  /* center column width */
  --slideshow-height-mobile: 200px;
  --slideshow-height-desktop: 450px;
  --slideshow-height-mobile-landscape: 320px; /* approx height for phone in landscape */
  --slideshow-height: var(--slideshow-height-mobile);
  /* Overlay for Tuscany look (defaults) */
  --bg-overlay-opacity: 0.9; /* tweak to taste - slightly lighter by default */
  /* Toskana palette: warm beige -> warm orange */
  --bg-overlay-start: rgba(252, 194, 5, 0.95); /* soft beige */
  --bg-overlay-mid: rgba(193, 219, 47, 0); /* warm sand */
  --bg-overlay-end: rgba(238, 101, 4, 0.92); /* deep orange / terracotta */
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
}

/* Overlay border around the whole viewport */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  border: 8px solid purple;
  pointer-events: none;
  z-index: 999;
  box-sizing: border-box;
}

/* Header Styles */
header {
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  position: relative;
  z-index: 10;
}

.header-banner {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

main, footer, section, div {
  border: none;
  border-radius: 10px;
  margin: 2px;
  padding: 4px;
  position: relative;
  z-index: 10;
}

.hero {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: none;
  padding: 1px var(--page-side-padding); /* ensure hero content aligns with header padding */
  margin: 0;
  display: flex;
  justify-content: center; /* center the slideshow inside */
  /* Abgerundete Ecken für das Hero-Bild */
  border-radius: 16px;
}


@media (max-width: 767px) {
  main, section {
    border: none; /* remove 1px border that causes visual offset */
    padding: 6px var(--page-side-padding); /* slightly smaller padding than desktop */
    margin: 0; /* remove extra margin around blocks */
    border-radius: 0; /* keep corners flush on small screens */
  }

}


.carousel {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  height: var(--slideshow-height);
  position: relative;
}

/* hero slideshow styling (matches .slideshow behavior) */
.hero .slideshow {
  width: 100%;
  max-width: 100%;
  height: var(--slideshow-height); /* mobile default same as .slideshow */
}

/* Caption overlay for slides - bottom center */
.slideshow .slide-caption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 88%;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  background: rgba(0,0,0,0.45);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
  z-index: 8;
}

/* Show caption for the active image */
.slideshow img.active + .slide-caption {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Slightly larger captions on desktop */
@media (min-width: 768px) {
  .slideshow .slide-caption { font-size: 18px; padding: 10px 18px; }
}

.carousel img {
  width: 100%;
  height: var(--slideshow-height);
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  /* Rundet die Ecken des Bildes, damit es zum Hero passt */
  border-radius: 16px;
  transition: opacity 1s ease;
}

.carousel img.active {
  opacity: 1;
  position: relative;
}

main {
  width: 100%;
  transition: width 0.3s ease;
}

.slideshow {
  margin-top: 10px;
  width: 100%;
  overflow: hidden;
  position: relative;
  border: none;
  padding: 0;
  height: var(--slideshow-height); /* keeps layout from jumping */
}

.slideshow img {
  width: 100%;
  height: var(--slideshow-height);
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 900ms ease, opacity 900ms ease;
  will-change: transform, opacity;
  pointer-events: none;
  border-radius: 12px;
}

.slideshow img.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
  pointer-events: auto;
  cursor: zoom-in;
}

.slideshow img.slide-out {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 1;
}

.slideshow-horizontal img {
  transform: translateX(100%);
}

.slideshow-horizontal img.active {
  transform: translateX(0);
}

.slideshow-horizontal img.slide-out {
  transform: translateX(-100%);
}

.slideshow-vertical img {
  transform: translateY(100%);
}

.slideshow-vertical img.active {
  transform: translateY(0);
}

.slideshow-vertical img.slide-out {
  transform: translateY(-100%);
}

.slideshow-diagonal img {
  transform: translate(100%, 100%);
}

/* map random effect classes to same transforms so container.effect-xxx works */
.slideshow.effect-horizontal img { transform: translateX(100%); }
.slideshow.effect-horizontal img.active { transform: translateX(0); }
.slideshow.effect-horizontal img.slide-out { transform: translateX(-100%); }

.slideshow.effect-vertical img { transform: translateY(100%); }
.slideshow.effect-vertical img.active { transform: translateY(0); }
.slideshow.effect-vertical img.slide-out { transform: translateY(-100%); }

.slideshow.effect-diagonal img { transform: translate(100%, 100%); }
.slideshow.effect-diagonal img.active { transform: translate(0, 0); }
.slideshow.effect-diagonal img.slide-out { transform: translate(-100%, -100%); }

.slideshow-diagonal img.active {
  transform: translate(0, 0);
}

.slideshow-diagonal img.slide-out {
  transform: translate(-100%, -100%);
}

/* ========== ADDITIONAL SLIDESHOW EFFECTS ========== */
/* Fade + scale effect (soft zoom-in) */
.slideshow.effect-fade-scale img {
  opacity: 0;
  transform: scale(1.06);
  transition: transform 900ms ease, opacity 900ms ease;
}
.slideshow.effect-fade-scale img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.slideshow.effect-fade-scale img.slide-out {
  opacity: 0;
  transform: scale(.98);
}

/* Zoom effect (full-screen zoom on slide in) */
.slideshow.effect-zoom img {
  transform: scale(1.12);
  opacity: 0;
  transition: transform 900ms ease, opacity 900ms ease;
}
.slideshow.effect-zoom img.active {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
}
.slideshow.effect-zoom img.slide-out {
  transform: scale(0.96);
  opacity: 0;
}

/* Flip effect - 3D rotateY */
.slideshow.effect-flip img {
  transform: rotateY(90deg) translateZ(0);
  opacity: 0;
  transition: transform 900ms cubic-bezier(.4,.2,.2,1), opacity 900ms ease;
  backface-visibility: hidden;
  transform-origin: center;
}
.slideshow.effect-flip img.active {
  transform: rotateY(0deg);
  opacity: 1;
  z-index: 2;
}
.slideshow.effect-flip img.slide-out {
  transform: rotateY(-90deg);
  opacity: 0;
}

/* By default use a perspective on slideshow containers for 3D (flip) effect */
.slideshow { perspective: 1200px; }

.hero .slideshow img {
  border-radius: 16px;
}



/* Blog Carousel Wrapper */
.blog-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0 40px; /* Platz für die Pfeile */
  margin: 10px 0;
}

.blog {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 5px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.blog::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.blog .post {
  background: #e9ecef;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #5e7940;
  flex: 0 0 calc(50% - 10px); /* Mobil: 2 nebeneinander */
  min-width: calc(50% - 10px);
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog .post img {
  width: auto;
  max-width: 100%;
  height: auto !important;
  max-height: 320px;
  border-radius: 6px;
  align-self: center;
  object-fit: contain;
}

.blog .post h3 {
  font-size: 0.6em !important;
  margin: 2px 0 !important;
}

.blog .post p {
  font-size: 0.7em !important;
  margin: 4px 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog .post small {
  font-size: 0.65em !important;
}

/* Navigation Buttons */
.blog-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 204, 0, 0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  color: #333;
}

.blog-nav-btn:hover {
  background: rgba(255, 204, 0, 1);
  transform: translateY(-50%) scale(1.1);
}

.blog-nav-prev {
  left: 5px;
}

.blog-nav-next {
  right: 5px;
}

.empty {
  background: #fff;
  height: 100px;
}

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

footer a {
  color: #ffcc00;
  text-decoration: none;
  margin: 0 5px;
}

@media (min-width: 768px) {
  /* increase container width for larger screens */
  :root { --page-max-width: 1100px; --page-side-padding: 18px; --slideshow-height: var(--slideshow-height-desktop); }
  
  /* Header auf Desktop 70% Breite */
  header {
    width: 70%;
    margin: 5px auto;
    border-radius: 10px;
  }
  
 
  /* Hero & Slideshow bleiben volle Breite */
  .hero,
  .slideshow {
    width: 100%;
    max-width: 100%;
  }

  /* Main-Inhalt auf 70 % Breite zentrieren (Desktop) */
  main {
    width: 70%;
    margin: 0 auto;
  }

  /* Größeres Hero-Bild auf Desktop */
  .carousel {
    height: var(--slideshow-height);
  }

  .carousel img {
    height: var(--slideshow-height);
  }

  /* Hero slideshow should be centered and 80% of page width */
  .hero .slideshow {
    max-width: calc(var(--page-max-width) * 0.8);
    /* inherit .slideshow height (200px) for consistent behavior */
  }

  .container-row {
    flex-direction: row;
  }

  /* Blog section auf Desktop 75% Breite */
  .blog-carousel-wrapper {
    width: 75%;
    margin: 10px auto;
  }

  .blog .post {
    flex: 0 0 calc(25% - 10px); /* Desktop: 4 nebeneinander */
    min-width: calc(25% - 10px);
    max-width: 280px;
    max-height: 350px; /* Desktop: normale Höhe */
    padding: 16px;
  }

  .blog .post img {
    height: 120px !important; /* Größeres Bild auf Desktop */
  }

  .blog .post h3 {
    font-size: 1.05em !important;
  }

  .blog .post p {
    font-size: 0.85em !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .blog-nav-btn {
    width: 44px;
    height: 44px;
  }

  .blog-nav-prev {
    left: 10px;
  }

  .blog-nav-next {
    right: 10px;
  }

 }

.container-row .box button,
.container-row .box a.btn1,
.container-row .box a.btn2 {
  display: inline-flex; /* inline-flex + align center prevents height changes */
  padding: 10px 14px;
  border: none;
  background: #4b006e;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  align-items: center; /* center icon/text vertically */
  white-space: nowrap; /* avoid multi-line buttons that increase height */
  line-height: 1; /* consistent compact line height */
  height: auto; /* ensure the element doesn't forcibly set a taller height */
}

/* Keep button sizing stable / prevent accidental transform on :active focus
   Use focus-visible for keyboard accessibility while removing outline for mouse click */
.container-row .box a.btn1:focus:not(:focus-visible),
.container-row .box button.btn1:focus:not(:focus-visible),
.container-row .box a.btn2:focus:not(:focus-visible),
.container-row .box button.btn2:focus:not(:focus-visible) {
  outline: none;
}

.container-row .box a.btn1:active,
.container-row .box button.btn1:active,
.container-row .box a.btn2:active,
.container-row .box button.btn2:active {
  transform: none !important;
}

.container-row .box button.btn1,
.container-row .box button.btn2,
.container-row .box a.btn1,
.container-row .box a.btn2 {
  min-width: 120px; /* default on small screens */
  max-width: calc(100% - 20px);
}

/* Inline speisekarte removed: styles deleted because section now contains only buttons */

@media (min-width: 768px) {
  .container-row .box {
    gap: 18px;
  }
  .container-row .box button.btn1,
  .container-row .box button.btn2,
  .container-row .box a.btn1,
  .container-row .box a.btn2 {
    min-width: 160px;
    padding: 12px 18px;
    font-size: 0.95rem;
  }
}

@media (min-width: 1200px) {
  :root { --page-max-width: 1400px; --page-side-padding: 24px; --slideshow-height: var(--slideshow-height-desktop); }
  .container-row .box button.btn1,
  .container-row .box button.btn2,
  .container-row .box a.btn1,
  .container-row .box a.btn2 {
    min-width: 200px; /* slightly larger on wide screens but not oversized */
    padding: 12px 20px;
  }
}

/* Mobile landscape: increase slideshow height for phone landscape captures */
@media (max-width: 767px) and (orientation: landscape) {
  :root { --slideshow-height: var(--slideshow-height-mobile-landscape); }
  /* If hero should be slightly larger in landscape, keep it centered */
  .hero .slideshow, .slideshow { height: var(--slideshow-height); }
  .hero .slideshow img, .slideshow img { height: var(--slideshow-height); }
}

/* Mobile overrides moved further down so they are not overridden by base styles */

.contact-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 4px 4px;
}

/* Reservation hint text - styled heading */
.reservation-note {
  display: block;
  text-align: center;
  font-weight: 700;
  font-family: 'Lora', Georgia, serif;
  letter-spacing: 0.5px;
  
  /* Dunkler Text für gelben Hintergrund der Seite */
  background: transparent;
  color: #2d1f0d;
  -webkit-text-fill-color: #2d1f0d;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
  
  /* Spacing */
  padding: 8px 16px;
  margin: 15px auto 10px;
  
  /* Mobil: kleinere Schrift */
  font-size: 1.1rem;
  width: 100%;
}

/* Section Divider - dezente Trennlinie */
.section-divider {
  width: 60%;
  max-width: 400px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b5a2b, transparent);
  border: none;
  margin: 8px auto 12px;
  opacity: 0.6;
}

.payment-alert {
  color: #ff1a1a;
  font-weight: 700;
  animation: payment-blink 1s steps(1, start) infinite;
  display: inline-block;
}

@keyframes payment-blink {
  50% { opacity: 0; }
}


@media (min-width: 768px) {
  .reservation-note {
    font-size: 1.6rem;
    padding: 14px 32px;
    margin: 20px auto 15px;
    border-radius: 10px;
    letter-spacing: 1px;
  }
  .section-heading { font-size: 2rem; margin-bottom: 10px; }
}

/* Ensure icons are grouped on their own row under the notice */
.contact-icon-row {
      width: 100%;
      display: flex;
      gap: 20px;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      /* reduce margin to bring icons closer to the text */
      margin-top: 2px;
}

.contact-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-align: center;
  min-height: 12px;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 5px;
  background: transparent;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  --icon-shadow: rgba(0, 0, 0, 0.12);
  --icon-shadow-hover: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 14px var(--icon-shadow);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 150ms ease;
  filter: none;
}

.contact-icon:hover,
.contact-icon:focus {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 26px var(--icon-shadow-hover);
}

.contact-icon:hover img,
.contact-icon:focus img {
  transform: scale(1.04);
}

.contact-icon-whatsapp {
  --icon-shadow: rgba(37, 211, 102, 0.28);
  --icon-shadow-hover: rgba(37, 211, 102, 0.42);
}

.contact-icon-facebook {
  --icon-shadow: rgba(24, 119, 242, 0.28);
  --icon-shadow-hover: rgba(24, 119, 242, 0.42);
}

.contact-icon-instagram {
  --icon-shadow: rgba(225, 48, 108, 0.28);
  --icon-shadow-hover: rgba(225, 48, 108, 0.45);
}

/* Color styles for phone & mobile */
.contact-icon-telefon {
  --icon-shadow: rgba(255, 93, 50, 0.28);
  --icon-shadow-hover: rgba(255, 93, 50, 0.42);
}

.contact-icon-mobil {
  --icon-shadow: rgba(46, 204, 113, 0.28);
  --icon-shadow-hover: rgba(46, 204, 113, 0.42);
}

/* Make contact icons same style on mobile as desktop */
@media (max-width: 767px) {
  .contact-icon-row { gap: 20px; }
  .contact-icon { width: 52px; height: 52px; padding: 5px; }
  .contact-label { font-size: 12px; }
  .contact-icons { padding: 8px 4px; }
  /* Mobile reservation-note Styles */
  .reservation-note {
    font-size: 1.4rem;
    padding: 8px 16px;
    margin: 12px auto 8px;
  }
  .text-3d {
    font-size: 0.9rem;
    text-align: center;
  }  
  
  .contact-icon-row { margin-top: 2px; }
  .contact-icon-wrapper { gap: 6px; }
}

@media (min-width: 768px) {
  .contact-icon { width: 60px; height: 60px; padding: 6px; }
  .contact-label { font-size: 12px; }
  .contact-icons { gap: 24px; }
}

@media (min-width: 1200px) {
  .contact-icon { width: 66px; height: 66px; padding: 7px; }
  .contact-label { font-size: 13px; }
  /* Desktop slideshow height stays desktop size */
  :root { --slideshow-height: var(--slideshow-height-desktop); }
}

.cyber-purple {
  color: #b300ff;
  text-shadow: 0 0 10px #b300ff, 0 0 20px #8f00ff, 0 0 40px #b300ff;
}

.ice-blue {
  color: #c8ffff;
  text-shadow: 0 0 5px #aaffff, 0 0 15px #66ffff, 0 0 25px #33ffff;
}

.gold-text {
  color: #ffd700;
  text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffaa00, 0 0 20px #ff8800;
}

.silver-text {
  color: #e0e0e0;
  text-shadow: 0 0 5px #bbb, 0 0 10px #ddd, 0 0 20px #fff;
}

@keyframes glow-rainbow {
  0% { text-shadow: 0 0 10px #ff0080; color: #ff0080; }
  25% { text-shadow: 0 0 10px #00ffff; color: #00ffff; }
  50% { text-shadow: 0 0 10px #39ff14; color: #39ff14; }
  75% { text-shadow: 0 0 10px #ffea00; color: #ffea00; }
  100% { text-shadow: 0 0 10px #ff0080; color: #ff0080; }
}

.glow-rainbow {
  animation: glow-rainbow 3s infinite alternate;
}

.retro-80s {
  font-family: "Orbitron", sans-serif;
  color: #ff00cc;
  text-shadow: 2px 2px 0 #00ffff, 4px 4px 0 #000;
}

@keyframes shimmer {
  0% { background-position: -500px 0; }
  100% { background-position: 500px 0; }
}

.shimmer {
  color: #fff;
  background: linear-gradient(90deg, #fff, #00eaff, #fff);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s infinite;
}

.glow-shadow {
  color: #fff;
  text-shadow: 2px 2px 8px #000, 0 0 15px #00ffff;
}

.matrix {
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00, 0 0 20px #00cc00, 0 0 40px #009900;
}

@keyframes fire {
  0% { color: #ff0; text-shadow: 0 0 5px #f00; }
  50% { color: #f00; text-shadow: 0 0 20px #ff0; }
  100% { color: #ff0; text-shadow: 0 0 5px #f00; }
}

.fire-text {
  animation: fire 1.5s infinite alternate;
}

.glass-text {
  color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.smoke {
  color: #ccc;
  text-shadow: 0 0 10px #999, 0 0 20px #777, 0 0 40px #555;
}

.rainbow-text {
  background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, rgb(187, 40, 21));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.neon-pink {
  color: #ff00c8;
  text-shadow: 0 0 5px #ff00c8, 0 0 10px #ff00c8, 0 0 20px #ff00c8, 0 0 40px #ff00c8;
}

.text-3d {
    text-align: center;
  font-weight: 800;
  /* decorative serif for the reservation hint */
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2em;
  color: #fc0202;
  text-shadow: 1px 1px 0 #ccc, 2px 2px 0 #999, 3px 3px 0 #666;

}

@media (min-width: 768px) {
  .text-3d {
    font-size: 2.3em;
  }
}

.metallic {
  color: #d7d7d7;
  text-shadow: 0 1px 0 #fff, 0 2px 0 #ccc, 0 3px 2px #999;
}

.fire-red {
  color: #ff3300;
  text-shadow: 0 0 5px #ff3300, 0 0 10px #ff6600, 0 0 20px #ff0000;
}

.neon-green {
  color: #39ff14;
  text-shadow: 0 0 5px #39ff14, 0 0 10px #39ff14, 0 0 20px #39ff14;
}

#matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  pointer-events: none;
}

.matrix-column {
  position: absolute;
  top: 0;
  color: #00ff00;
  font-size: 20px;
  font-weight: bold;
  white-space: pre;
  text-shadow: 0 0 10px #00ff00;
  animation: fall 8s linear forwards;
}

.matrix-column:nth-child(odd) {
  color: #00dd00;
  text-shadow: 0 0 8px #00dd00;
}

.matrix-column:nth-child(even) {
  color: #b6172c;
  text-shadow: 0 0 8px #00aa00;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

.neon-blue {
  color: #0ff;
  text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #0ff;
}

/* ========== STARS BACKGROUND ANIMATION ========== */
#stars-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Hinter der Matrix */
  overflow: hidden;
  pointer-events: none;
  perspective: 800px; /* gives a subtle 3D perspective */
}

/* Decorative overlay that sits above the animation but below the content */
#bg-overlay {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  z-index: 5; /* above animated backgrounds (z-index:0-1) but below content (z-index:10)
                header and other content use z-index:10 in this stylesheet */
  pointer-events: none; /* do not block clicks */
  /* Use a layered background: main gradient + subtle diagonal grain for texture.
     We keep a low opacity and multiply blend so it tints the animated/star backgrounds
     and images without overpowering them. */
  background-image:
    linear-gradient(135deg, var(--bg-overlay-start) 0%, var(--bg-overlay-mid) 45%, var(--bg-overlay-end) 100%),
    repeating-linear-gradient(45deg, rgba(124, 189, 63, 0.03) 0 2px, rgba(0,0,0,0.03) 2px 4px);
  background-size: cover, 16px 16px;
  background-repeat: no-repeat, repeat;
  opacity: var(--bg-overlay-opacity);
  mix-blend-mode: multiply; /* subtle color blending with underlying animation/images */
  transition: opacity 200ms ease, background 200ms ease;
}

/* Quick toggles */
body.no-bg-overlay #bg-overlay { display: none; }
body.dim-overlay #bg-overlay { opacity: calc(var(--bg-overlay-opacity) * 0.5); }

/* Optional utility: .tuscany-soft makes the overlay lighter */
.tuscany-soft #bg-overlay { opacity: calc(var(--bg-overlay-opacity) * 0.6); }

/* Optional variants: add one of these classes to the <body> to tweak the Tuscan palette.
  Examples: <body class="toskana-soft"> ... or <body class="toskana-strong"> */
body.toskana-soft { --bg-overlay-opacity: 0.18; }
body.toskana-strong { --bg-overlay-start: rgba(65, 39, 16, 0.98); --bg-overlay-mid: rgba(243,154,77,0.96); --bg-overlay-end: rgba(206,92,28,0.98); --bg-overlay-opacity: 0.44; }

.star {
  position: absolute;
  background: #196107;
  border-radius: 50%;
  transform-origin: center;
  /* uses CSS variables set from JS per-star */
  animation: star-3d var(--duration, 6s) linear forwards;
}

.star:nth-child(odd) {
  background: #e0e0e0;
  box-shadow: 0 0 2px #fff;
}

.star:nth-child(3n) {
  background: #f0f0f0;
  box-shadow: 0 0 4px #fff;
}

.star:nth-child(5n) {
  background: #fff;
  box-shadow: 0 0 6px #fff, 0 0 12px #fff;
}

@keyframes star-3d {
  0% {
    transform: translateY(100vh) translateX(0) scale(var(--scale-start, 0.2));
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  25% {
    transform: translateY(70vh) translateX(var(--a1, 0px)) scale(calc(var(--scale-start, 0.2) * 1.2));
  }
  50% {
    transform: translateY(45vh) translateX(calc(var(--a1, 0px) * -1)) scale(calc(var(--scale-start, 0.2) * 1.8));
  }
  75% {
    transform: translateY(20vh) translateX(var(--a2, 0px)) scale(var(--scale-end, 1.2));
  }
  100% {
    transform: translateY(-10vh) translateX(0) scale(var(--scale-end, 1.4));
    opacity: 0;
  }
}

/* Force all borders to be hidden site-wide except for elements inside .blog
   This overrides inline styles and other component-specific borders, while
   preserving the blog post border set above. Use sparingly since it can affect
   form controls; exclude form elements if needed. */
body *:not(.blog):not(.blog *) {
  border: none !important;
}

/* ========== MODAL STYLES ========== */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999; /* ensure modal is above all other content */
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms ease;
}

.modal-close:hover {
  color: #333;
}

.modal-title {
  margin-top: 0;
  font-size: 28px;
  color: #1e293b;
  font-weight: 700;
  font-family: 'Lora', Georgia, serif;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 18px;
  color: #666;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 20px;
  font-style: italic;
}

.modal-body {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.modal-body p {
  margin: 0;
}

.blog-modal-meta {
  margin: 0 0 16px;
  color: #666;
  font-size: 0.9rem;
}

.blog-modal-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 20px;
  background: #000;
}

#lightbox-modal .modal-content {
  background: #000;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

#lightbox-modal .modal-close {
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
}

#lightbox-modal .modal-close:hover {
  color: #ffcc00;
}

@media (max-width: 600px) {
  .modal-content {
    padding: 30px 20px;
    max-width: 95%;
  }
  
  .modal-title {
    font-size: 22px;
  }
  
  .modal-subtitle {
    font-size: 16px;
  }
  
  .modal-body {
    font-size: 14px;
  }
}

/* ========== FOOTER STYLES ========== */
footer {
  background: linear-gradient(135deg, rgba(45, 74, 202, 0.9), rgba(101, 50, 15, 0.9));
  color: #f5f5f5;
  padding: 40px 20px 20px;
  margin-top: 60px;
  border-top: 3px solid #ffcc00;
  font-size: 0.95em;
  line-height: 1.6;
}

footer h3 {
  color: #8cff09;
  font-family: 'Lora', serif;
  font-size: 1.3em;
  margin-bottom: 15px;
  font-weight: 600;
}

footer p {
  margin: 10px 0;
  color: #e0e0e0;
}

footer a {
  color: #ffcc00;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Footer Grid Layout */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-section {
  padding: 15px;
}

.footer-section strong {
  color: #ffcc00;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-links a:hover .social-icon {
  opacity: 1;
  transform: scale(1.2);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 204, 0, 0.3);
  font-size: 0.85em;
  color: #b0b0b0;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  margin: 0 5px;
  font-size: 0.9em;
}

/* Tablet Responsive */
@media (max-width: 768px) {
  footer {
    padding: 30px 15px 15px;
    margin-top: 40px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  footer h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
  }

  footer p {
    font-size: 0.9em;
  }

  .social-icon {
    width: 30px;
    height: 30px;
  }

  .footer-bottom {
    font-size: 0.8em;
  }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  footer {
    padding: 16px 12px 12px;
    border-top-width: 2px;
    line-height: 1.5;
  }

  .footer-container {
    gap: 12px;
  }

  footer h3 {
    font-size: 1.4em;
    margin-bottom: 6px;
  }

  footer p,
  footer a {
    font-size: 1.2em;
  }

  .footer-section {
    padding: 8px;
  }

  .social-links {
    gap: 8px;
  }

  .social-icon {
    width: 30px;
    height: 30px;
  }

  .footer-bottom {
    font-size: 0.85em;
  }

  .footer-links {
    margin-top: 6px;
  }

  .footer-links a {
    margin: 0 4px;
    font-size: 1.1em;
  }
}
