/* global box-sizing and base reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; }
body {
        margin: 0;
        font-family: Arial, Helvetica, sans-serif;
        padding: 0;
        overflow-x: hidden;
}
/* Fahrplan Abschnitt */
#timetable-main-content {
    margin: 0 auto 0 auto;
    padding: 0 0 60px 0;
    background: #f9f9f9;
}
.timetable-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.timetable-heading {
    font-size: 2.2rem;
    color: #1590dd;
    margin-bottom: 32px;
    font-weight: bold;
    text-align: center;
}
.timetable-image-col {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
}
.timetable-image {
    width: 100%;
    min-width: 320px;
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(21,144,221,0.15);
    display: block;
}
.timetable-image-col {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
}
.timetable-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    width: 100%;
}
.timetable-text-col {
    width: 100%;
    text-align: center;
}
.timetable-desc {
    font-size: 1.18rem;
    color: #222;
    margin-top: 10px;
    margin-bottom: 0;
}
@media (max-width: 900px) {
    .timetable-container {
        padding: 24px 5px 0 5px;
    }
    .timetable-image {
        max-width: 100%;
    }
}
.services-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    width: 100%;
}



/* Hero-Bereich */
#hero .hero-background {
    height: 1000px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: grid;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
}

#hero .hero-topic {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    padding-left: 50px;
}

#hero .slogan-body {
    color: white;
    text-align: left;
    font-size: 1.8rem;
    max-width: 500px;
    line-height: 1.5;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1em;
    border-radius: 0.5em;
    display: inline-block;
}

/* Titel */
#hero .slogan-body h2 {
    font-size: 2.5rem;
    margin-top: 10px;
}

/* Zusatztext */
#hero .hero-text {
    font-size: xx-large;
}

/* Button-Container */
#hero .hero-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start; /* linksbündig unter dem Text */
    gap: 15px;
    flex-wrap: wrap;
}
.hero-item{
        background: rgba(21, 144, 221, 255);
    display: table;
    border-radius: 35px;
    margin: 5px;
}

/* Buttons */
.hero-button {
    background-color: #ffffff;
    color: #1570dd;
    font-weight: bold;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-size: x-large;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-button:hover {
    background-color: #1570dd;
    color: #ffffff;
}

/* Zweiter Button */
.hero-button.secondary {
    background-color: #f2f2f2;
    color: #1570dd;
}

.hero-button.secondary:hover {
    background-color: #1570dd;
    color: white;
}

/* Overlay zentriert — responsive: fill available width up to a max */
#hero .hero-overlay {
    border-radius: 10px;
    width: 100%;
    max-width: 1400px; /* don't exceed the designed container width */
    margin: 0 auto;
    opacity: 0.95;
    box-sizing: border-box;
    padding-left: 16px; /* small inner spacing so content doesn't touch edge */
    padding-right: 16px;
}

/* Abschnittsüberschrift */
.section-header h2 {
    font-size: 50px;
    color: white;
    margin-bottom: 20px;
    padding: 10px;
}



/* Über uns-Bereich */
#about {
    margin-top: 10px;
    text-align: center;
}

/* Leistungen Abschnitt */
#services-main-content {
    margin: 60px auto 0 auto;
    padding: 0 0 60px 0;
    background: #f9f9f9;
}
.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.services-heading {
    font-size: 2.2rem;
    color: #1590dd;
    margin-bottom: 38px;
    font-weight: bold;
    text-align: center;
}
.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    justify-items: center;
}
.service-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(21,144,221,0.10);
    padding: 32px 22px 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: anchor-center;
    min-height: 220px;
    max-width: 370px;
    width: 100%;
    font-size: 1.13rem;
}
.service-check {
    font-size: 1.5em;
    color: #1590dd;
    margin-bottom: 8px;
}
.service-card b {
    font-size: 1.15em;
    margin-bottom: 6px;
    display: block;
}
.service-desc {
    font-size: 1.02em;
    color: #444;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .services-cards {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .service-card {
        max-width: 87%;
        min-width: 0;
        display: block !important; 
    }
}

/* MOBILE / SMALLER TABLET ADJUSTMENTS (inspiriert von sanierung.css) */
@media (max-width: 1200px) {
    /* Make hero-overlay more flexible */
    #hero .hero-background { height: 720px; background-position: center; }
    #hero .hero-overlay { max-width: 99vw; padding-left: 20px; padding-right: 20px; }
    .hero-item { border-radius: 28px; padding: 8px; }
    .hero-button { font-size: 1.05rem; padding: 10px 18px; }
    .about-image img { width: 100%; max-width: 520px; }
}

@media (max-width: 900px) {
    /* Stack hero content and reduce heights for phones */
    #hero .hero-background { height: auto; padding: 48px 0; }
    #hero .hero-overlay { padding-left: 16px; padding-right: 16px; border-radius: 12px; }
    .hero-item { display:block; padding: 10px; border-radius: 18px; }
    .section-header h2 { font-size: 32px; }
    .hero-text { font-size: 1.15rem; }
    .hero-buttons { justify-content: center; }
    .hero-button { font-size: 1rem; padding: 10px 16px; }
    .about-image img { width: 98vw; max-width: 380px; border-radius: 16px; }
    .about-text { font-size: 1rem; text-align: left; }
    .services-container { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 540px) {
    /* Small phones - compact everything */
    #hero .hero-background { height: auto; padding: 32px 0; }
    .section-header h2 { font-size: 26px; }
    .hero-text { font-size: 1rem; }
    .hero-button { font-size: 0.95rem; padding: 8px 12px; }
    .about-image img { max-width: 100%; height: auto; }
    .about-text { font-size: 0.95rem; }
    .service-card { padding: 20px 14px; }
}


.about-header {
  display: flex;
  align-items: center;      /* vertikal zentriert */
  justify-content: center;  /* horizontal zentriert */
  gap: 10px;                /* Abstand zwischen Icon und Text */
  text-align: center;
  flex-wrap: wrap;          /* optional für Mobile */
}

.about-header-icon {
  height: auto;             /* oder was passt */
  width: auto;
}


.about-container {
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}


.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  position: relative;
  margin-top: 10px;
}

/* Bild-Bereich und Button zusammenfassen */
.about-image {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Button links ausrichten */
  gap: 15px;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 600px;
}

.about-text {
  flex: 1;
  min-width: 280px;
  font-size: x-large;
  line-height: 1.6;
  text-align: center; /* Textblock zentriert */
}

/* Footer mit Button nur unter Bild, deshalb nicht ganz unten */
.about-footer {
  margin-top: 10px; /* Kein Abstand, da Button im about-image Bereich */
display: flex;
}

/* Button Styling */
.hero-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: rgba(21,144,221,255);
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.hero-button:hover {
  background-color: #005fa3;
}

/* Button unter Bild im about-image Bereich */
.about-image .hero-button {
  margin-top: 10px;
}


.contact-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item img {
    height: 20px;
    width: 20px;
}

.icon-link-2 {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-link-2:hover {
    color: #4a4b4d;
    text-decoration: underline;
}

/* Black Section - similar to first-black-section */
.second-black-section {
    background-color: black;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.second-black-section h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

/* Services im Detail Abschnitt */
#services-detail {
    background-color: #443a3a;
    padding: 50px 0;
}

.services-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.services-titles {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.service-title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

.service-detail {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-image img {
    max-width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 10px;
}

.service-text {
    color: white;
    font-size: 1rem;
    max-width: 500px;
    line-height: 1.6;
}

/* Kontakt-Sektion */
#contact-section {
    background-color: #f4f4f4;
    padding: 50px 0;
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 1000px;
    text-align: left;
}

.contact-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-text-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.contact-text-item span {
    font-size: 18px;
}
.about-content-contact{
    display: flex;
    gap: 25px;
}
.contact-image{
    width: 45%;
    margin-left: 8px;
    border-radius: 10px;
}
.icon-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-link:hover {
    color: #515253;
    text-decoration: underline;
}

/* Google Maps Sektion */
#google-maps-section {
    padding: 50px 0;
    background-color: #f4f4f4;
    text-align: center;
}

.google-maps-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.google-maps h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.google-maps iframe {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* rechte Buttons */
.fixed-contact-buttons {
  position: fixed;
  right: 0;
  bottom: 25%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1490;
}

.contact-button-wrapper {
  position: relative;
}

.contact-button {
  background-color: rgba(21,144,221,255);
  color: white;
  font-size: xx-large;
  width: 90px;
  height: 90px;
  /*border-radius: 50%;*/
   border-radius: 500px 0 0 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  position: relative;
}

.contact-button:hover {
  transform: scale(1.1);
}

/* Label (Text) */
.contact-label {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(21,144,221,255);
  color: white;
  padding: 6px 10px;
  border-radius: 20px;
  white-space: nowrap;
  font-size: x-large;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, right 0.3s ease;
}

/* Sichtbar beim Hover */
.contact-button:hover .contact-label {
  opacity: 1;
  right: 70px;
}
.additional-service-btn{
    display:inline-block;
     padding:10px 16px; 
     background:#0077ff;
      color:white; 
      text-decoration:none; font-weight:bold;
       border-radius:8px;
        transition:0.3s;
}
/* Mobile-Anpassungen: Responsive Media Queries */

/* Anpassungen für kleine Bildschirme */
@media (max-width: 920px) {
    .about-text {
  flex: 1;
  min-width: 280px;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center; /* Textblock zentriert */
}
    .contact-button {
  color: white;
  font-size: 24px;
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  position: relative;
}
    /* Hero-Bereich */
    #hero .hero-background {
        height: 500px;
    }

    #hero .hero-topic {
display: none;
        
    }

   /* #hero .slogan-body {
        font-size: 1.5rem;
        max-width: 100%;
        
    background-color: rgba(0, 0, 0, 0.6); 
    padding: 1em;
    border-radius: 0.5em;
    display: inline-block;
    }

    #hero .slogan-body h2 {
        font-size: 2rem;
    }
    #hero .hero-overlay {
        padding: 0;
    }*/

    /* Services-Bereich */
    .services-list {
       display: grid;
       gap: 0;
    }

    .services-list .service-item {
        flex: 1 0 45%;
        max-width: 45%;
        padding: 8px;
        font-size: xx-large;
    }
    .about-footer {
        display: revert;
    }
    /* Über uns-Bereich */
    #about .about-content {
        flex-direction: column;
        gap: 20px;
    }

    #about .about-image img {
        max-width: 100%;
        width: 90%;
    }

    #about .about-text {
        font-size: 1rem;
        text-align: center;
        max-width: 100%;
    }

    /* Kontakt-Bereich */
    .contact-row {
        padding-top: 15px;
        flex-direction: column;
    }

    .contact-item {
        margin-bottom: 15px;
    }

    /* Google Maps */
    .google-maps-container {
        width: 90%;
        max-width: 90%;
    }

    .google-maps h3 {
        font-size: 20px;
    }

    /* Services-Detail */
    .services-titles {
        display: block;
    }
    .service-title{
        margin: 10px;

    }

    .service-detail {
        flex-direction: column;
        text-align: center;
    }

    .service-image img {
        max-height: 400px;
        object-fit: cover;
    }

    .service-text {
        font-size: 1rem;
        max-width: 90%;
    }
    .first-black-section h3 {
        margin: 0;
        max-width: 800px;
        font-size: large;
    }
}

/* Sehr kleine Bildschirme (unter 480px) */
@media (max-width: 540px) {
    /* Allgemeine Schriftgrößen und Layouts anpassen */
    body {
        font-size: 14px; /* Kleinere Schrift auf sehr kleinen Geräten */
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .contact-text-item span {
        font-size: 16px;
    }
}

@media (max-width: 920px) {
  /* Hero-Bereich mobile optimiert */
  #hero .hero-background {
    height: auto;
    text-align: center;
  }

  #hero .hero-topic {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  #hero .slogan-body {
    font-size: 1.2rem;
    max-width: 90%;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1em;
    border-radius: 0.5em;
    text-align: center;
  }

  #hero .slogan-body h2 {
    font-size: 1.8rem;
    margin-top: 10px;
  }

  #hero .hero-text {
    font-size: 1.1rem;
  }

  #hero .hero-overlay {
    width: 80%;
    border-radius: 0;
  }

  #hero .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
  }

  .hero-button {
    font-size: 1rem;
    padding: 10px 20px;
    width: 80%;
    max-width: 300px;
  }
}
