/* Mobile-specific overrides (applies for screens <= 600px) */
/* Load this with media="(max-width:600px)" to keep desktop styles untouched */

/* Layout adjustments */
html, body {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

.slide-container {
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

#header{
    background-image: url(/static/images/euai-ditor-mobile.png);
}


.header-content h1 {
  font-size: 2rem !important;
  line-height: 1.08;
  margin-bottom: 0.6rem;
}

.header-content h2 {
  font-size: 1.1rem !important;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}


.content-left {
  margin-left: 0;
  padding-right: 0;
}

.content-right {
  margin-left: 0;
  min-height: 220px;
  padding-top: 10px;
}

.right-image {
  width: 100%;
  height: auto;
  max-height: 320px;
  border-radius: 12px;
  object-fit: cover;
}

.title, .header-content  {
  font-size: 2.4rem !important;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

/* Make hero/header container flow and reduce huge top spacing on mobile */
.container-header {
  position: relative !important;
  right: auto !important;
  top: 30% !important;
  transform: none !important;
  width: 100% !important;
  padding: 12px 16px !important;
}

.content {
  margin-top: 0 !important;
  margin-left: 0 !important;
  max-width: 100% !important;
  padding: 6px 0 !important;
}

/* Reduce visually overwhelming title sizes for content and hero */
.content h1, .title {
  font-size: 2rem !important;
  line-height: 1.05 !important;
}

.content h2 {
  font-size: 2.2rem !important;
}
.content p {
  font-size: 1.5rem !important;
  font-weight: 400;
}

.subtitle {
  font-size: 1rem;
}

.description {
  font-size: 1rem;
  line-height: 1.5;
}

.features li, .features-vorteile li {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Timeline adjustments */
.timeline {
  margin: 30px 12px;
  max-width: 100%;
}

.timeline::after {
  left: 32px; /* move central line left to align with stacked items */
}

.container {
  width: 100% !important;
  padding-left: 80px !important;
  padding-right: 20px !important;
}

.container img, .left-container img, .right-container img {
  left: 12px !important;
  right: auto !important;
  width: 40px;
  top: 18px;
}

.text-box {
  padding: 16px 18px;
  font-size: 0.95rem;
}

.left-container-arrow, .right-container-arrow {
  display: none; /* remove arrow decorations on small screens to keep layout simple */
}

.timeline-end {
  margin-top: 24px;
}

.end-text {
  font-size: 1.2rem;
  padding: 8px 12px;
}

/* Footer tweaks */
footer .footer-top-section, footer .footer-bottom-section {
  padding: 18px;
}

.footer-links-and-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-form { 
  margin-top: 52px;
}

/* Make subscribe block flow normally on small screens so footer content sits below the form */
.subscribe-container {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 20px !important;
  box-sizing: border-box;
}

/* Reduce extra vertical spacing that was used for the absolute overlapping layout */
footer .footer-top-section {
  padding-top: 24px;
  padding-bottom: 16px;
}

footer .footer-bottom-section {
  margin-top: 0;
}

.subscribe-title { font-size: 1rem; }
.subscribe-text { font-size: 0.95rem; }

/* Forms and buttons touch-friendly */
.email-input { padding: 12px; font-size: 1rem; }
.subscribe-button { padding: 12px 16px; font-size: 1rem; }

/* Reduce heavy shadows and large gaps on mobile */
.feature-card { box-shadow: none; padding: 18px; border-radius: 12px; }

/* Accessibility: larger tap targets for social icons */
.social-icons a { display: inline-block; padding: 10px; font-size: 1.2rem; margin-top: 13px; }

/* Utility: make images responsive inside cards */
.card-image { height: auto; max-height: 240px; }

/* Fine tune small text sizes that may be too large */
.text-box h2 { font-size: 1.2rem; }
.text-box p { font-size: 0.95rem; }

/* Ensure the main container doesn't overflow horizontally */
body, .container-content { overflow-x: hidden; }


  #header-datenschutz{
    background-image: url(/static/images/euaiditor-datenschutz-mobile.png)
  }

  .container-datenschutz h1{
      font-size: 19px;
  }
  .container-datenschutz p{
      font-size: 1rem;
      text-align: center;
  }

  .container-datenschutz{
      margin-top: 0 !important;
      margin-left: 0 !important;
      max-width: 100% !important;
      padding: 6px 0 !important;
  }

  .content-datenschutz{
      margin-top: 0 !important;
      margin-left: 0 !important;
      max-width: 100% !important;
  }

  #header-Impressum{
    background-image: url(/static/images/euaiditor-impressum.png)
  }

  .container-Impressum h1{
      font-size: 2.2rem;
  }
  .container-Impressum p{
      font-size: 1.5rem;
      text-align: center;
  }

  .container-Impressum{
      margin-top: 0 !important;
      margin-left: 0 !important;
      max-width: 100% !important;
      padding: 6px 0 !important;
  }

  .content-Impressum{
      margin-top: 0 !important;
      margin-left: 0 !important;
      max-width: 100% !important;
  }
  
  .dash-content-Impressum{
    margin-left: 30px;
    margin-right: 30px;
  }

  .dash-content-Impressum p{
      font-size: 1rem;

  }
  .dash-content-Impressum h2{
      font-size: 1.7rem;

  }
  .dash-content{
    margin-left: 30px;
    margin-right: 30px;
  }

  .dash-content p{
      font-size: 1rem;
  }

  .dash-content h2{
      font-size: 1.7rem;
  }

/* End of mobile.css */
