/* Kontakt page specific styles */
/* Variables defined in common.css */

/* Contact Information Section - Hero-like layout */
.contact-info-section {
  background: linear-gradient(135deg, var(--kc-green) 0%, #1a5c3a 50%, var(--kc-green) 100%);
  /* reduced top gap */
  padding: 80px 0;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 44px 44px;
  position: relative;
  overflow: hidden;
}

.contact-info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(199, 153, 58, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(199, 153, 58, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.contact-info-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  box-sizing: border-box;
  text-align: center;
}

.contact-info-section h1 {
  /* slightly bigger title */
  font-size: 3.5rem;
  color: white;
  font-weight: 700;
  margin-bottom: 30px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-info-section h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: var(--kc-gold);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(199, 153, 58, 0.3);
}

.contact-subtitle {
  font-size: 1.4rem;
  color: white;
  font-weight: 500;
  margin-bottom: 40px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 80px;
  text-align: left;
}

.contact-person,
.company-info {
  background: white;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.contact-person:hover,
.company-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.contact-person h3,
.company-info h3 {
  color: var(--kc-green);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.contact-item:last-child {
  border-bottom: none;
}

.phone {
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.phone::before {
  margin-right: 8px;
  font-size: 0.9rem;
}

.email {
  color: var(--kc-gold);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.3s ease;
}

.email:hover {
  color: var(--kc-green);
  text-decoration: none;
}

.email::before {
  margin-right: 8px;
  font-size: 0.9rem;
}

.company-info p {
  color: #555;
  margin: 8px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-departments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.department {
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  /* center content inside cards */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 160px;
}

.department h4 {
  color: var(--kc-green);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.department .phone,
.department .email {
  display: block;
  margin: 5px 0;
}

/* Contact Form and Map Section */
.contact-form-section {
  background-color: var(--kc-green);
  padding: 80px 0;
  border-radius: 44px 44px 0 0;
  margin-top: 60px;
  position: relative;
}

.form-map-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  /* center map with form vertically */
  align-items: center;
}

/* Contact card styles removed (shared via common.css) */
/* Contact form specific overrides for this page */
.contact-form-section .contact-card {
  text-align: left; /* override shared center alignment just on kontakt page */
  align-items: stretch;
}

.contact-form-section .contact-card .section-title {
  text-align: left;
  color: var(--kc-gold);
}

.map-container {
  background: white;
  padding: 13px;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
  height: 500px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.map-container iframe {
  height: 100%;
  min-height: 450px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-info-section {
    padding: 60px 0;
    min-height: 350px;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 60px;
  }
  
  .form-map-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .map-container {
    height: 400px;
  }
}

/* Shared responsive rules for contact card removed */

@media (max-width: 768px) {
  .contact-info-section {
    padding: 50px 0;
    min-height: 300px;
  }
  
  .contact-info-section h1 {
  font-size: 2.75rem; /* keep a bit larger on mobile too */
    margin-bottom: 20px;
  }
  
  .contact-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
  }
  
  .contact-form-section {
    padding: 60px 0;
  }
  
  .contact-departments {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    height: 350px;
  }
}

/* Shared contact form stacking handled in common.css */

@media (max-width: 480px) {
  .contact-info-section {
    padding: 40px 0;
    min-height: 250px;
  }
  
  .contact-info-section h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .contact-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  
  .contact-info-grid {
    margin-bottom: 30px;
  }
  
  .contact-card .section-title {
    font-size: 32px;
  }
  
  .map-container {
    height: 300px;
  }
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation classes */
.animate-slide-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in-scale {
  opacity: 0;
  transform: scale(0.98);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-in-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}
