/*!
 * Gastroenterologie am Claraplatz - Complete Figma Design Implementation
 * Pixel-perfect CSS based on Figma design (node 1:3)
 */

/* Import Shared Components */
@import url('components/navigation.css');
@import url('components/footer.css');

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.5;
  color: #003974;
  background-color: #ffffff;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
  margin: 0;
  padding: 0;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #003974;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
}

.skip-link:focus {
  top: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Typography Classes */
.adjust-letter-spacing {
  letter-spacing: inherit;
}

/* Main Container */
.home {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background-color: #ffffff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Practice Images Section - Mobile First */
.practice-images-section {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* Mobile: 2 Spalten */
  gap: 0;
  width: 100%;
  overflow: hidden;
}

.practice-image {
  width: 100%;
  height: 172px;  /* Mobile Höhe wie Angebot */
  overflow: hidden;
}

.practice-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Hide 3rd image on mobile */
.practice-image-3 {
  display: none;
}

/* Hero Content Section */
.hero-content-section {
  position: relative;
  width: 100%;
  background: white;
  padding: 60px 96px;
  z-index: 2;
  margin-top: 0;
  min-height: 680px; /* Increased to accommodate contact section with all elements visible */
}

/* Hero Content Container */
.hero-content-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  gap: 96px;
  min-height: 350px;
}

/* Welcome Section */
.welcome-section {
  position: relative;
  padding: 0;
  flex: 0 1 auto;
  width: auto;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
}

.welcome-text {
  font-family: 'Dosis', sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.369;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.welcome-text p {
  margin: 0;
  line-height: 1.369;
}

.welcome-line-1 {
  color: #bbd976;
}

.welcome-line-2 {
  color: #00a88e;
}

.welcome-line-3 {
  color: #00698c;
}

.welcome-line-4 {
  color: #003974;
}

.doctor-prefix {
  color: #00698c;
}

.doctor-name {
  color: #003974;
}

/* Contact Section */
.contact-section {
  position: absolute;
  right: 96px;
  top: 380px; /* Moved down from 240px to match Figma positioning */
  padding: 0;
  width: auto;
  max-width: 400px;
  text-align: right;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  flex-shrink: 0;
  gap: 16px;
  z-index: 15;
}

.practice-address {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.2px;
  color: #003974;
  font-style: normal;
  margin-bottom: 0;
  white-space: nowrap;
}

.email-link {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0.2px;
  color: #003974;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-position: from-font;
  margin-bottom: 0;
  white-space: nowrap;
}

.email-link:hover {
  color: #00a88e;
}

.phone-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #6dc8bf;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Dosis', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  padding: 20px 48px;
  border-radius: 40px;
  height: 48px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.phone-button:hover {
  background-color: #5cb3aa;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(109, 200, 191, 0.3);
}

/* Gray Background */
.gray-background {
  display: none;
}

/* Info Cards Section */
.info-cards-section {
  position: relative;
  width: 100%;
  min-height: 829px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 120px 143px;
  background-color: #f3f3f3;
  z-index: 10;
}

.info-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 318px;
  min-height: 396px;
  position: relative;
}

.card-icon {
  width: 88px;
  height: 72px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 100%;
  height: 100%;
}

.card-title {
  font-family: 'Dosis', sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 2.8px;
  margin: 32px 0 0 0;
  text-align: left;
  white-space: nowrap;
}

.card-patients .card-title {
  color: #bbd976;
}

.card-doctors .card-title {
  color: #6dc8bf;
}

.card-screening .card-title {
  color: #00a88e;
}

.card-text {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.2px;
  color: #003974;
  margin: 39px 0 0 0;
  text-align: left;
}

.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Dosis', sans-serif;
  margin-top: auto;
  margin-bottom: 60px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 40px;
  height: 48px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.button-patients {
  background-color: #bbd976;
}

.button-patients:hover {
  background-color: #a8c965;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(187, 217, 118, 0.3);
}

.button-doctors {
  background-color: #6dc8bf;
}

.button-doctors:hover {
  background-color: #5cb3aa;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(109, 200, 191, 0.3);
}

.button-screening {
  background-color: #00a88e;
}

.button-screening:hover {
  background-color: #009178;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 168, 142, 0.3);
}

/* Services Section */
.services-section {
  position: relative;
  width: 100%;
  padding: 100px 96px;
  padding-bottom: 221px; /* Abstand zum Footer laut Figma */
  background-color: #ffffff;
}

.services-header {
  margin-bottom: 40px;
}

.services-label {
  font-family: 'Dosis', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: #003974;
  text-align: left;
  white-space: nowrap;
  margin-bottom: 20px;
}

.services-title {
  font-family: 'Dosis', sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: #bbd976;
  white-space: pre-wrap;
  margin-bottom: 40px;
  text-align: center;
}

.services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.service-item {
  width: 100%;
}

.service-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  background-color: #00698c;
  height: 79px;
  width: 100%;
  padding: 0 48px;
  border-radius: 40px;
  transition: all 0.3s ease;
  position: relative;
}

.service-link.service-1 {
  background-color: #003974;
}

.service-link.service-2,
.service-link.service-3,
.service-link.service-4 {
  background-color: #00698c;
}

.service-link.service-5 {
  background-color: #00a88e;
}

.service-link.service-6 {
  background-color: #6dc8bf;
}

.service-link.service-7 {
  background-color: #bbd976;
}

.service-link:hover {
  transform: translateX(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-number {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 24px;
  margin-right: 48px;
  min-width: 40px;
}

.service-title {
  flex: 1;
  font-family: 'Dosis', sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  text-align: left;
}

.service-arrow {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

/* Network Section */
.network-section {
  position: relative;
  width: 100%;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 40px 125px;
}

.network-logo {
  position: relative;
  width: 322px;
  height: 92px;
}

/* Footer - Now using shared footer.css component */

/* Responsive Design */

/* Desktop (769px+) - Show all 3 images */
@media (min-width: 769px) {
  .practice-images-section {
    grid-template-columns: repeat(3, 1fr);  /* Desktop: 3 Spalten */
    height: 416px;
  }

  .practice-image {
    height: 416px;
  }

  /* Show 3rd image on desktop */
  .practice-image-3 {
    display: block;
  }
}

@media (max-width: 1200px) {
  .home {
    max-width: 100%;
  }

  .navigation nav {
    padding: 0 40px;
  }

  .hero-content-wrapper {
    padding: 60px 40px;
  }

  .info-cards-section {
    padding: 0 40px;
  }

  .services-section {
    padding: 0 40px;
  }

  .network-section {
    padding: 0 40px;
  }

  .footer-content {
    padding: 172px 40px 57px;
  }
}

@media (max-width: 768px) {
  /* Practice Images Mobile - 2-Spalten-Grid wie Angebot-Seite */
  .practice-images-section {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 2 Spalten nebeneinander */
    gap: 0;
    width: 100%;
    overflow: hidden;
    height: auto;
  }

  .practice-image {
    width: 100%;
    height: 172px;  /* Einheitliche Höhe wie Angebot */
  }

  .practice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Hide 3rd practice image on mobile - show only 2 images like Angebot page */
  .practice-image-3 {
    display: none;
  }

  /* Hero Content Section Mobile */
  .hero-content-section {
    padding: 16px; /* Mobile: 16px (proportional to desktop) */
  }

  /* Hero Content Wrapper Mobile */
  .hero-content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    justify-content: center;
  }

  /* Welcome Section Mobile */
  .welcome-section {
    max-width: 100%;
    text-align: center;
  }

  .welcome-text {
    font-size: 28px;
    line-height: 1.2;
  }

  /* Contact Section Mobile */
  .contact-section {
    position: relative;
    right: auto;
    bottom: auto;
    text-align: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
  }

  .practice-address {
    font-size: 18px;
    line-height: 24px;
    white-space: normal;
  }

  .email-link {
    font-size: 18px;
    line-height: 24px;
    white-space: normal;
  }

  /* Gray Background Mobile - Hidden */
  .gray-background {
    display: none;
  }

  /* Info Cards Mobile */
  .info-cards-section {
    position: relative;
    flex-direction: column;
    height: auto;
    gap: 60px;
    padding: 32px 20px; /* Mobile: 32px vertical (proportional to desktop 120px) */
  }

  .info-card {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .card-title {
    text-align: center;
    font-size: 32px;
  }

  .card-text {
    text-align: center;
    height: auto;
    overflow: visible;
  }

  .card-icon {
    margin: 0 auto;
  }

  /* Services Mobile */
  .services-section {
    position: relative;
    padding: 0 20px;
    padding-bottom: 66px; /* Mobile: proportional spacing to footer (30% of desktop 221px) */
  }

  .services-header {
    text-align: center;
  }

  .services-label {
    position: relative;
    left: auto;
    transform: none;
    text-align: center;
    margin-bottom: 20px;
  }

  .services-title {
    margin-left: 0;
    text-align: center;
    font-size: 32px;
  }

  .services-list {
    margin-top: 40px;
  }

  .service-link {
    padding: 0 20px;
  }

  .service-title {
    font-size: 24px;
  }

  .service-number {
    font-size: 24px;
    margin-right: 8px;
  }

  /* Network Mobile */
  .network-section {
    position: relative;
    flex-direction: column;
    height: auto;
    text-align: center;
    padding: 40px 20px;
    gap: 20px;
  }


  .network-logo {
    width: 250px;
    height: auto;
    margin: 0 auto;
  }

  /* Footer Mobile - Now using shared footer.css component */

  /* Contact Section Mobile - unterhalb des Titels anzeigen */
  .contact-section {
    position: static;
    width: 100%;
    max-width: 100%;
    text-align: center;
    align-items: center;
    padding: 0 20px;
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .welcome-text {
    font-size: 24px;
  }

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

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

  .service-title {
    font-size: 20px;
  }


  .service-link {
    padding: 0 15px;
  }

  .service-number {
    font-size: 20px;
    margin-right: 6px;
  }
}

/* Extra small screens (Galaxy S9+ etc.) */
@media (max-width: 360px) {
  .service-link {
    padding: 0 10px;
  }

  .service-number {
    font-size: 18px;
    margin-right: 4px;
  }

  .service-title {
    font-size: 14px;
  }

  .service-arrow {
    width: 20px;
    height: 20px;
  }
}