/* Modern design for Kreativer Nachmittag
   Created: April 2025 */

:root {
  --primary: #6a3de8;
  --secondary: #ff7846;
  --accent: #3de8c6;
  --light: #f7f5ff;
  --dark: #2a2438;
  --font-main: 'Montserrat', sans-serif;
  --font-heading: 'Pacifico', cursive;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: 1;
}

.header-bg svg {
  width: 100%;
  height: 100%;
}

.title {
  font-family: var(--font-heading);
  font-size: 4rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.organizers {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

/* Main Content Styles */
.main-content {
  display: flex;
  flex-direction: column;
  margin: 3rem 0;
  gap: 2rem;
}

.image-section {
  text-align: center;
  margin-bottom: 2rem;
  height: auto;
  min-height: 1800px;
}

.image-column {
  margin: 0 auto;
  max-width: 900px;
  height: auto;
  min-height: 1800px;
}

.image-column img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: 1800px;
  object-fit: contain;
  max-height: none;
}

.image-column img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.image-caption {
  text-align: center;
  margin: 10px auto 0;
  background-color: var(--accent);
  color: var(--dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  display: inline-block;
}

.text-column {
  width: 100%;
}

.content-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.content-block {
  width: 100%;
}

.schedule-blocks-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.intro-text {
  font-size: 1.2rem;
  color: var(--dark);
  position: relative;
  background-color: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--accent);
}

.intro-text:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Schedule Blocks */
.schedule-block {
  background-color: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.schedule-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.schedule-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.schedule-block-item {
  flex: 1 1 calc(50% - 0.75rem);
}

.schedule-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary);
}

.schedule-block:nth-child(2)::before {
  background-color: var(--secondary);
}

.workshop-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  position: relative;
}

.workshop-title:nth-child(2) {
  color: var(--secondary);
}

.schedule-icon {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1.5rem;
}

.workshop-desc {
  flex: 1;
  margin-bottom: 1.5rem;
}

.workshop-time {
  margin-top: auto;
  background-color: var(--light);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  margin-top: 0.5rem;
}

/* Benefits Section */
.benefits-section {
  background-color: var(--dark);
  color: white;
  padding: 4rem 0;
  margin: 4rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem;
}

.benefit-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.benefit-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.benefit-desc {
  opacity: 0.9;
}

/* Testimonials */
.testimonials {
  margin: 4rem 0;
}

.testimonials-heading {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.testimonial-card {
  background-color: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 5rem;
  position: absolute;
  top: -20px;
  left: 10px;
  color: var(--light);
  z-index: 0;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: bold;
  text-align: right;
}

/* Contact Section */
.contact-section {
  background-color: var(--light);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 3rem;
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-item {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-right: 1rem;
  min-width: 2.5rem;
  text-align: center;
}

.contact-details a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  border-bottom: 1px dotted var(--primary);
}

.contact-details a:hover {
  color: var(--secondary);
}

/* Map */
.map-section {
  margin-bottom: 3rem;
}

/* FAQ Section */
.faq-section {
  margin-bottom: 4rem;
}

.faq-heading {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  background-color: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-question {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 4rem 2rem;
  border-radius: 15px;
  color: white;
  margin-bottom: 3rem;
}

.cta-heading {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background-color: white;
  color: var(--primary);
  font-weight: bold;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-column {
  flex: 1 1 300px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  font-size: 1.5rem;
  color: white;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (min-width: 992px) {
  .main-content {
    flex-direction: column;
  }
  
  .schedule-blocks-row {
    flex-direction: row;
  }
  
  .schedule-block-item {
    flex: 1 1 calc(50% - 0.75rem);
  }
}

@media (max-width: 991px) {
  .title {
    font-size: 3rem;
  }
  
  .subtitle {
    font-size: 2rem;
  }
  
  .content-block {
    flex: 1 1 100%;
  }
  
  .image-column, .text-column {
    flex: 1 1 100%;
  }
  
  .image-column img {
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
  
  .schedule-block {
    padding: 1.5rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .contact-info {
    display: block;
    margin: 0;
    padding: 0;
  }
  
  .contact-section {
    padding: 1rem;
  }
  
  .contact-heading {
    margin-bottom: 0.5rem;
    justify-content: flex-start;
    text-align: left;
  }
  
  .contact-item {
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    height: auto;
    line-height: 1.2;
  }
  
  .contact-icon {
    min-width: 2rem;
    margin-right: 0.5rem;
    font-size: 1.5rem;
    line-height: 1.2;
  }
  
  .contact-details {
    font-size: 1rem;
    line-height: 1.2;
  }
  
  .contact-details a {
    line-height: 1.2;
    display: inline;
    border: none;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2.5rem;
  }
  
  .footer-column {
    width: 100%;
  }
  
  .footer-links li {
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .footer-links li:last-child {
    border-bottom: none;
  }
}

/* Hamburger menu styles - fixed for all devices */
.mobile-menu-btn {
  display: block !important; /* Force display on all devices */
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  z-index: 20;
  width: 40px;
  height: 40px;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.3s;
  outline: 2px solid rgba(255, 255, 255, 0.5);
}

.mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.menu-icon {
  display: block;
  width: 32px;
  height: 3px;
  background: white;
  border-radius: 3px;
  position: relative;
  transition: background-color 0.3s;
}

.menu-icon::before, .menu-icon::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: white;
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: transform 0.3s, top 0.3s;
}

.menu-icon::before { top: -10px; }
.menu-icon::after { top: 10px; }

/* Animation for hamburger to X */
[aria-expanded="true"] .menu-icon {
  background: transparent;
}

[aria-expanded="true"] .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

[aria-expanded="true"] .menu-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: white;
  position: absolute;
  top: 4.5rem;
  right: 2rem;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border-radius: 12px;
  z-index: 100;
  padding: 1rem 0.5rem;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
  color: var(--primary);
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}

.mobile-menu a:hover {
  background: var(--light);
  color: var(--primary);
  transform: translateX(5px);
}

.mobile-menu:not([hidden]) {
  display: flex;
}

/* Date blocks for termine page - updated with round borders and shake animation */
.date-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.date-block {
  background-color: white;
  border-radius: 15px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-left: 5px solid var(--primary);
}

.date-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  background-color: var(--light);
  animation: shake 0.5s ease-in-out;
}

.date-icon {
  font-size: 1.8rem;
  margin-right: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* Color classes for backward compatibility */
.date-block.blue {
  border-left: 5px solid #3498db !important;
}

.date-block.red {
  border-left: 5px solid #e74c3c !important;
}

.date-block.green {
  border-left: 5px solid #62ef9d !important;
}

.date-block.darkgreen {
  border-left: 5px solid #0c361d !important;
}

.date-content {
  flex: 1;
}

.date-day {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.date-desc {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: var(--dark);
  opacity: 0.9;
}

.date-time {
  color: var(--dark);
  opacity: 0.8;
  font-size: 0.9rem;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.animate-pulse {
  animation: pulse 3s infinite ease-in-out;
}

.animate-float {
  animation: float 6s infinite ease-in-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Cards hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
