body {
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  margin-top: 0;
}

.page-hero {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem 2rem;
  background: linear-gradient(rgba(217, 35, 42, 0.2), rgba(0, 0, 0, 0.75)), url('../public/immobilien_concepte_hauck_kontakt.jpg') center center / cover no-repeat;
  position: relative;
}

@supports (background-image: -webkit-image-set(url('../public/immobilien_concepte_hauck_kontakt.webp') 1x)) {
  .page-hero {
    background: linear-gradient(rgba(217, 35, 42, 0.2), rgba(0, 0, 0, 0.75)), url('../public/immobilien_concepte_hauck_kontakt.webp') center center / cover no-repeat;
  }
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(217, 35, 42, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero p {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0;
  font-weight: 400;
  line-height: 1.8;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.contact-content {
  padding: 5rem 2rem 8rem 2rem;
  background: #ffffff;
}

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

.contact-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #d9232a;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.contact-intro h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.contact-intro p {
  font-size: 1.15rem;
  color: #555555;
  line-height: 1.8;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid #f0f0f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(217, 35, 42, 0.05), transparent);
  transition: left 0.6s ease;
}

.contact-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 1.5rem;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.contact-link {
  font-size: 1.15rem;
  color: #d9232a;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  position: relative;
}

.contact-hours {
  font-size: 0.95rem;
  color: #999999;
  margin: 0;
}

.opening-hours {
  background: #f9f9f9;
  padding: 4rem 3.5rem;
  border-radius: 20px;
  text-align: center;
  border: 2px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.opening-hours-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #d9232a 0%, #b71c23 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin: 0 auto 1.5rem;
}

.opening-hours h3 {
  font-size: 1.75rem;
  color: #1a1a1a;
  margin: 0 0 2rem 0;
  font-weight: 600;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}

.hours-item .day {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 1rem;
}

.hours-item .time {
  color: #666666;
  font-size: 1rem;
}

@media (hover: hover) and (min-width: 769px) {
  .contact-card:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 60px rgba(217, 35, 42, 0.15);
    border-color: #d9232a;
  }

  .contact-card:hover::before {
    left: 100%;
  }

  .contact-card:hover .contact-icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, #d9232a 0%, #b71c23 100%);
  }
}

footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  list-style: none;
  margin-bottom: 2rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #d9232a;
}

.footer-copyright {
  font-size: 0.9rem;
  color: #999999;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.footer-credit {
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0;
}

.footer-credit .sie7en-link {
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.footer-credit .sie7en {
  font-weight: 700;
  letter-spacing: 0.15em;
}

.footer-credit .seven {
  color: #ecc6b5;
}

@media (max-width: 1024px) {
  .page-hero h1 {
    font-size: 3rem;
  }

  .page-hero p {
    font-size: 1.15rem;
  }

  .contact-form-section h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .page-hero {
    margin-top: 78px;
    height: 35vh;
    min-height: 35vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1.5rem;
  }

  .page-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .page-hero-badge {
    margin-bottom: 1rem;
  }

  .page-hero h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
  }

  .page-hero p {
    font-size: 1.05rem;
    margin: 0;
  }

  .contact-content {
    padding: 3rem 1.5rem 5rem 1.5rem;
  }

  .contact-intro {
    margin-bottom: 3rem;
  }

  .contact-intro h2 {
    font-size: 2rem;
  }

  .contact-intro p {
    font-size: 1.05rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info-cards {
    gap: 1.5rem;
  }

  .contact-card {
    padding: 2rem;
  }

  .opening-hours {
    padding: 2.5rem 2rem;
  }

  .opening-hours h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .hours-item {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  footer {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .page-hero {
    margin-top: 67px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    margin-top: 67px;
    height: 30vh;
    min-height: 30vh;
    padding: 0 1rem;
  }

  .page-hero-badge {
    margin-bottom: 0.75rem;
  }

  .page-hero h1 {
    font-size: 1.85rem;
    margin-bottom: 0.5rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .contact-intro {
    margin-bottom: 2.5rem;
  }

  .contact-intro h2 {
    font-size: 1.75rem;
  }

  .contact-intro p {
    font-size: 1rem;
  }

  .contact-card {
    padding: 1.75rem 1.5rem;
  }

  .contact-card h3 {
    font-size: 1.3rem;
  }

  .contact-link {
    font-size: 1.05rem;
  }

  .contact-hours {
    font-size: 0.9rem;
  }

  .contact-icon {
    width: 56px;
    height: 56px;
  }

  .opening-hours {
    padding: 2rem 1.5rem;
  }

  .opening-hours h3 {
    font-size: 1.35rem;
  }

  .hours-item {
    padding: 0.875rem 1.25rem;
  }

  .hours-item .day,
  .hours-item .time {
    font-size: 0.95rem;
  }
}

@media (min-width: 2560px) {
  .page-hero h1 {
    font-size: 4.5rem;
  }

  .page-hero p {
    font-size: 1.5rem;
  }

  .contact-intro h2 {
    font-size: 3rem;
  }

  .contact-intro p {
    font-size: 1.25rem;
  }
}
