/* 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-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;
}

.right-image {
  width: 100%;
  height: 100%;
  max-height: 320px;
  border-radius: 15px;
  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-top: 50px;
  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  {
  left: 12px !important;
  right: auto !important;
  width: 40px;
  top: 18px;
}
.left-container {
  margin-left: 0 !important;
  padding-left: 40px !important;
  padding-right: 20px !important;
  margin-top: 200px;
}

.right-container{
  margin-left: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.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.3rem; }
.text-box p { font-size: 1rem; }

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


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

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

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

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

  .container-Impressum h1{
      font-size: 35px;
  }


  .container-Impressum p{
      font-size: 1rem;
      text-align: center;
  }

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

  .dash-content-Impressum{
    margin-left: 10px;
    margin-right: 10%;
  }

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

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

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

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

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

/* === NEWSLETTER POPUP MOBILE === */
.newsletter-popup-content {
    width: 95%;
    padding: 30px 20px;
    max-width: 380px;
}

.newsletter-popup-inner h2 {
    font-size: 1.6rem !important;
}

.newsletter-popup-inner p {
    font-size: 0.95rem !important;
}

.newsletter-form input[type="email"] {
    padding: 12px;
    font-size: 0.95rem;
}

.newsletter-submit-btn {
    padding: 12px;
    font-size: 1rem;
}

.newsletter-close-btn {
    font-size: 28px;
    width: 30px;
    height: 30px;
}

/* === DEVELOPER PATH SECTION MOBILE === */
.developer-path-section {
    width: 95%;
    padding: 30px 0;
    margin: 40px auto;
}

.path-header h1 {
    font-size: 1.6rem !important;
    font-weight: 700;
    line-height: 1.2;
}

.benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 0 10px;
}

.benefit-card {
    padding: 20px 18px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.benefit-icon i {
    font-size: 24px;
}

.benefit-icon-img {
    width: 200%;
    height: 150%;
    margin-top: 40px;
}

.benefit-card h3 {
    font-size: 1.2rem !important;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.95rem !important;
    line-height: 1.5;
}

/* === AI FEATURES SECTION MOBILE === */
.ai-features-section {
    width: 95%;
    padding: 0 10px;
}

.header-content h1 {
    font-size: 1.6rem !important;
    font-weight: 700;
    text-align: center;
}

.header-content .description {
    font-size: 0.95rem !important;
    line-height: 1.5;
}

.three-feature-grid {
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    flex: 1 1 100% !important;
    padding: 20px;
    min-width: auto;
}

.feature-card h3 {
    font-size: 1.2rem !important;
    margin-bottom: 10px;
    margin-top: 50px;
}

.feature-card p {
    font-size: 0.95rem !important;
}

.card-visual {
    height: 180px !important;
}

.card-visual-container {
    height: 140px !important;
}

/* === TIMELINE MEDIA MOBILE === */
.timeline-media {
    width: 100%;
    margin-bottom: 15px;
}

.timeline-vorteile-img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
}

/* === CONTENT VIDEO HEADER MOBILE === */
.ds-video {
    object-fit: cover;
}

.content img {
    max-width: 90% !important;
    width: auto !important;
}

/* End of mobile.css */

