/* Base Styles & Variables */
:root {
  --primary-color: #f7c0ae;
  --secondary-color: #ffcba4;
  --accent-color: #ff9a76;
  --text-color: #22223b;
  --text-light: #4a4e69;
  --bg-color: #fff6ea;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  --transition-slow: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --border-radius: 12px;
}

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  position: relative;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 4.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
.btn {
  cursor: pointer;
  outline: none;
  border: none;
  transition: var(--transition-fast);
}

/* Container & Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background-color: #fcf5ed;
}

.content-card {
  margin-bottom: 3rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.subtitle {
  color: var(--text-light);
  margin-top: -1rem;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDUiLz48L3N2Zz4=');
  pointer-events: none;
  z-index: 100;
  opacity: 0.3;
}

/* Navigation & Header */
header {
  position: relative;
  height: 100vh;
  background: linear-gradient(45deg, #f9c5d1, #f2a8b8);
  background-size: cover;
  background-position: center;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('src/assets/festival_vibes.png');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  z-index: 1;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  position: relative;
  font-weight: 600;
  padding-bottom: 0.25rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background-color: var(--text-color);
  margin: 3px 0;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero h1 {
  margin-bottom: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .subtitle {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.date {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 15px rgba(255, 154, 118, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-color);
  opacity: 0.7;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-color);
  border-radius: 20px;
  position: relative;
  margin-bottom: 0.5rem;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--text-color);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

.parallax-wrapper {
  position: relative;
  height: auto;
}

.sticky-image {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.sticky-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scroll-content {
  position: relative;
  margin-top: -100vh;
  z-index: 2;
  padding-top: 100vh;
  padding-bottom: 6rem;
  background-color: rgba(255, 246, 234, 0.6); /* var(--bg-color) mit 75% Deckkraft */
}

@keyframes scroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

/* Cards & UI Elements */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--card-shadow);
  padding: 2rem;
  transition: var(--transition-fast);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(31, 38, 135, 0.15);
}

.chip {
  display: inline-block;
  padding: 0.3rem 1rem;
  background-color: var(--primary-color);
  color: var(--text-color);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 154, 118, 0.3);
}

.btn-primary:hover {
  background-color: #ff8a66;
  transform: translateY(-2px);
}

.img-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin: 3rem 0;
}

.feature-img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.img-container:hover .feature-img {
  transform: scale(1.05);
}

/* Schedule Section */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.event-timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 3.5rem;
  top: 0.8rem;
  bottom: -1.5rem;
  width: 1px;
  background-color: var(--primary-color);
}

.timeline-item:last-child::before {
  display: none;
}

.time {
  flex: 0 0 3rem;
  font-weight: 600;
  padding-right: 2rem;
}

.event {
  position: relative;
  padding-left: 1.5rem;
}

.event::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

/* Location Section */
.map-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  height: 450px;
}

iframe {
  border-radius: var(--border-radius);
}

/* Photo Upload Section */
.upload-container {
  margin: 2rem 0;
}

.upload-area {
  padding: 3rem 2rem;
  border: 2px dashed var(--primary-color);
  border-radius: var(--border-radius);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: 1.5rem;
}

.upload-area:hover {
  background-color: rgba(255, 192, 174, 0.1);
}

.upload-area i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.upload-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.upload-preview-item {
  position: relative;
  padding-top: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.upload-preview-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview-item .remove-btn {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.gallery-preview {
  margin: 3rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  padding-top: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* RSVP Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group.disabled {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.5);
  transition: var(--transition-fast);
}

.form-group.collapsible {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
}

.form-group.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-light);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-color);
  transition: var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 154, 118, 0.2);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.radio {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio input {
  width: auto;
  margin-right: 0.5rem;
}

/* FAQ Accordion */
.accordion {
  width: 100%;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background-color: var(--card-bg);
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--primary-color);
}

.accordion-header .icon {
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
}

.accordion-content-inner {
  padding: 1.5rem;
}

.accordion-item.active .accordion-header {
  background-color: var(--primary-color);
}

.accordion-item.active .icon {
  transform: rotate(45deg);
}

.accordion-item.active .accordion-content {
  max-height: 300px;
}

/* News Section */
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: #fcf5ed;
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-message {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-date {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.back-to-top {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.back-to-top:hover {
  color: var(--accent-color);
}

.back-to-top i {
  margin-left: 0.5rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1001;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-fast);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-content {
  padding: 1rem 1.5rem;
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  font-weight: 500;
  max-width: 300px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  .sticky-image img {
    transform: scale(1.0); /* Zoomstufe – evtl. auf 1.1 oder 1.3 anpassen */
    object-position: center center; /* Falls du z.B. lieber top center willst, anpassen */
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    width: 80%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition-slow);
    padding: 2rem;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 1.5rem 0;
  }

  .content-grid,
  .news-container {
    grid-template-columns: 1fr;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .section {
    padding: 4rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Animation for Page Scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.loading-shimmer {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0.2) 20%,
      rgba(255, 255, 255, 0.5) 60%,
      rgba(255, 255, 255, 0));
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Overview Section */
/* Übersichtsliste für Admin-Panel */
.overview {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.overview li {
  background: rgba(255, 255, 255, 0.7);
  border-left: 4px solid var(--accent-color);
  padding: 1rem 1.2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
  text-align: left;
}

.overview li:hover {
  transform: translateY(-3px);
  background-color: #fff;
}

.overview strong {
  display: block;
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.overview li::before {
  content: '📌';
  margin-right: 0.5rem;
}


/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  table-layout: fixed;
}

th:nth-child(1),
td:nth-child(1) {
  width: 15%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 20%;
}

th:nth-child(3),
td:nth-child(3) {
  width: 10%;
}

th:nth-child(4),
td:nth-child(4) {
  width: 10%;
}

th:nth-child(5),
td:nth-child(5) {
  width: 30%;
}

th:nth-child(6),
td:nth-child(6) {
  width: 15%;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: top;
  overflow: break-word;
}

tbody tr {
  transition: all 0.3s ease;
  cursor: pointer;
}

tbody tr:hover {
  background-color: rgba(255, 154, 118, 0.05);
  cursor: pointer;
}

/* Feste Höhe + Ellipsis */
td {
  max-width: 200px;
  padding: 1rem;
  vertical-align: top;
}

/* Aufgeklappte Zeile */
tr.expanded td {
  white-space: normal;
  height: auto;
  overflow: visible;
  max-width: none;
}

.td-content {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-height: 3.5rem;
  transition: all 0.3s ease;
}

tr.expanded .td-content {
  white-space: pre-wrap;
  max-height: none;
  overflow: visible;
}

tr.expanded {
  background: #ffe;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.btn.btn-secondary {
  background-color: #eee;
  color: #333;
  border: 1px solid #ccc;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn.btn-secondary:hover {
  background-color: #ddd;
}

.glide__arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.glide__arrow {
  background: rgba(255,255,255,0.97);
  border: none;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 12px rgba(255,154,118,0.13);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  transition: background 0.22s, color 0.22s, box-shadow 0.17s, transform 0.13s;
  outline: none;
}

.glide__arrow:active {
  transform: scale(0.95);
  background: #ffebe1;
}

.glide__arrow:hover,
.glide__arrow:focus {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 24px rgba(255,154,118,0.23);
  border-color: var(--accent-color);
  transform: scale(1.13);
}

.glide__arrow i {
  font-size: 1.4em;
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 800px) {
  .glide__arrow { width: 36px; height: 36px; font-size: 1.2rem; }
}
