/* ============================
   SHB - Moderne Styles 2025
   ============================ */

/* CSS Custom Properties (Variablen) */
:root {
  --primary-color: #ffd700;
  --primary-hover: #ffed4e;
  --background-color: #0a0a0a;
  --background-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  --secondary-background: #1e1e1e;
  --card-background: rgba(30, 30, 30, 0.8);
  --text-color: #e0e0e0;
  --text-secondary: #b0b0b0;
  --accent-red: #ff3366;
  --accent-red-glow: rgba(255, 51, 102, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
}

/* Reset und Basis-Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--background-gradient);
  background-attachment: fixed;
  color: var(--text-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  font-size: 18px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header Styles */
header {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--spacing-md) 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.logo h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 0 30px var(--accent-red-glow);
  transition: var(--transition-normal);
  cursor: default;
}

.logo h1:hover {
  text-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.logo h2 {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  display: block;
}

nav ul li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
  transition: var(--transition-normal);
}

nav ul li a:hover,
nav ul li a:focus {
  color: var(--primary-color);
  background: rgba(255, 215, 0, 0.1);
  outline: none;
}

nav ul li a:hover::before,
nav ul li a:focus::before {
  width: 80%;
}

/* Main Content */
main {
  padding: var(--spacing-xl) 0;
  animation: fadeIn 0.8s ease;
}

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

section {
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.6s ease backwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }

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

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  border-radius: 2px;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
  line-height: 1.8;
}

/* Notice Box - Verbessert */
.notice-box {
  background: linear-gradient(135deg, #ff3366 0%, #ff1744 100%);
  color: #ffffff;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-lg), 0 0 40px var(--accent-red-glow);
  font-size: 1.1rem;
  line-height: 1.9;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: var(--shadow-lg), 0 0 40px var(--accent-red-glow);
  }
  50% {
    box-shadow: var(--shadow-lg), 0 0 60px var(--accent-red-glow);
  }
}

.notice-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.notice-box p {
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.notice-box p strong {
  font-weight: 700;
  font-size: 1.15em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.notice-box .signature {
  text-align: right;
  font-style: italic;
  margin-top: var(--spacing-md);
  font-size: 1.2em;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* Galerie - Modernes Grid Layout */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
}

.gallery img:hover,
.gallery img:focus {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--primary-color);
  outline: none;
}

/* Öffnungszeiten - Modernes Card Design */
.hours-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--spacing-sm);
}

.hours-list li {
  background: var(--card-background);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}

.hours-list li:hover {
  transform: translateX(8px);
  background: rgba(30, 30, 30, 0.95);
  box-shadow: var(--shadow-md);
}

.hours-list li.today {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
  border-left-width: 6px;
  border-left-color: var(--primary-color);
  box-shadow: var(--shadow-md), 0 0 20px rgba(255, 215, 0, 0.2);
  font-weight: 600;
  position: relative;
}

.hours-list li.today::after {
  content: '• Heute';
  margin-left: 12px;
  color: var(--primary-color);
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Map Container */
.map-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 215, 0, 0.2);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--border-radius-lg);
}

/* Footer */
footer {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  padding: var(--spacing-lg) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  margin-top: var(--spacing-xl);
}

footer p {
  margin: 0;
}

/* Modal - Glasmorphismus Design */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal .close,
.modal .prev,
.modal .next {
  position: absolute;
  color: #f1f1f1;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 215, 0, 0.2);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal .close {
  top: 30px;
  right: 30px;
}

.modal .prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.modal .next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.modal .close:hover,
.modal .prev:hover,
.modal .next:hover {
  background: var(--primary-color);
  color: var(--background-color);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.modal .prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.modal .next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Cookie Banner - Modern Design */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 30, 30, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-color);
  padding: var(--spacing-md);
  text-align: center;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  border-top: 2px solid rgba(255, 215, 0, 0.3);
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

#cookie-consent p {
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
}

#cookie-consent button {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: var(--background-color);
  border: none;
  padding: 12px 28px;
  margin: 0 8px;
  cursor: pointer;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#cookie-consent button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

#cookie-consent button:active {
  transform: translateY(0);
}

/* Responsive Design */

/* Tablets */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-sm);
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 32px;
    --spacing-xl: 48px;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }

  nav ul {
    margin-top: var(--spacing-sm);
    justify-content: center;
  }

  nav ul li a {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .notice-box {
    font-size: 1rem;
    padding: var(--spacing-md);
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-sm);
  }

  .gallery img {
    height: 200px;
  }

  .modal .close,
  .modal .prev,
  .modal .next {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .modal .close {
    top: 20px;
    right: 20px;
  }

  .modal .prev {
    left: 20px;
  }

  .modal .next {
    right: 20px;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  :root {
    --spacing-lg: 24px;
    --spacing-xl: 40px;
  }

  body {
    font-size: 16px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  header {
    padding: var(--spacing-sm) 0;
  }

  .logo h1 {
    font-size: 2rem;
  }

  .logo h2 {
    font-size: 0.95rem;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-xs);
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    width: 100%;
    text-align: center;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }

  .gallery img {
    height: 150px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .notice-box {
    font-size: 0.95rem;
    padding: var(--spacing-sm);
  }

  .hours-list li {
    font-size: 0.9rem;
    padding: 12px 16px;
  }

  .hours-list li.today::after {
    display: block;
    margin-left: 0;
    margin-top: 6px;
    font-size: 0.75em;
  }

  #cookie-consent button {
    padding: 10px 20px;
    margin: 4px;
    font-size: 0.85rem;
  }

  .modal img {
    max-width: 95%;
    max-height: 85%;
  }

  .modal .close,
  .modal .prev,
  .modal .next {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }

  .modal .close {
    top: 15px;
    right: 15px;
  }

  .modal .prev {
    left: 10px;
  }

  .modal .next {
    right: 10px;
  }
}

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

/* Print Styles */
@media print {
  header,
  footer,
  nav,
  .modal,
  #cookie-consent {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .notice-box {
    border: 2px solid black;
    background: white;
    color: black;
  }
}
