/* ================================
   BASIC PAGE (NODE--PAGE) STYLES
   ================================ */

/* Override Olivero region constraints for full-width node pages */
.region--content:has(.node--page) {
  max-width: none;
  padding: 0;
}

.region--content:has(.node--page) .block__content {
  max-width: none;
}

.node--page {
  width: 100%;
}

/* Page Hero Section with Image Background */
.page-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  background: var(--navy);
}

.page-hero.has-image {
  background: transparent;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(23, 22, 73, 0.5) 0%, rgba(16, 55, 59, 0.6) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-title {
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

/* Page Content Section */
.page-content-section {
  /* background: var(--purple-light); */
  padding: 80px 20px;
}

.page-content-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-content-wrapper {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-dark);
}

.page-content-wrapper h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 20px;
}

.page-content-wrapper h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin: 30px 0 15px;
}

.page-content-wrapper p {
  margin-bottom: 20px;
}

.page-content-wrapper ul,
.page-content-wrapper ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.page-content-wrapper li {
  margin-bottom: 10px;
}

.page-content-wrapper strong {
  color: var(--navy);
  font-weight: 600;
}

/* Field Content Items */
.page-content-wrapper .field--name-field-content {
  margin-bottom: 40px;
}

/* Base styles for all field items */
.page-content-wrapper .field--name-field-content .field__item {
  margin-bottom: 30px;
  padding: 30px;
  border-radius: 12px;
}

/* Single item OR second item: white background */
.page-content-wrapper .field--name-field-content .field__item:only-child,
.page-content-wrapper .field--name-field-content .field__item:nth-child(2) {
  background: var(--white);
}

/* First item when there are two: purple background */
.page-content-wrapper .field--name-field-content .field__item:first-child:not(:only-child) {
  background: var(--purple);
  border-left: none;
}

.page-content-wrapper .field--name-field-content .field__item:first-child:not(:only-child) a {
  color: var(--purple-light);
}

/* Page Contact Form Section */
.page-contact-section {
  background: var(--purple-light);
  padding: 80px 20px;
}

.page-contact-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.page-contact-wrapper {
  text-align: center;
}

.page-contact-wrapper h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 15px;
}

.page-contact-subtitle {
  color: var(--text-gray);
  font-size: 18px;
  margin-bottom: 50px;
}

.page-contact-section .weldera-contact-form {
  text-align: left;
}

/* Hide the featured image field display */
.node--page .field--name-field-featured-image {
  display: none;
}

/* Kontakt Page - Two Column Layout */
.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.weldera-contact-info {
  background: var(--navy);
  padding: 40px;
  border-radius: 12px;
}

.weldera-contact-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 30px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.weldera-contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.weldera-contact-item:last-child {
  margin-bottom: 0;
}

.weldera-contact-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-light);
  border-radius: 10px;
}

.weldera-contact-details h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 8px 0;
}

.weldera-contact-details p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.6;
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
  .kontakt-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .page-hero {
    min-height: 300px;
    padding: 80px 20px;
  }

  .page-title {
    font-size: 38px;
  }

  .page-content-section {
    padding: 60px 20px;
  }

  .page-content-wrapper {
    font-size: 16px;
  }

  .page-contact-section {
    padding: 60px 20px;
  }

  .page-contact-wrapper h2 {
    font-size: 32px;
  }

  .page-contact-section .form-row {
    grid-template-columns: 1fr;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 479px) {
  .page-hero {
    min-height: 250px;
    padding: 60px 15px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-content-section {
    padding: 40px 15px;
  }

  .page-contact-section {
    padding: 40px 15px;
  }

  .page-contact-wrapper h2 {
    font-size: 26px;
  }

  .page-contact-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

}
