:root {
  --hauptfarbe: rgb(6, 175, 202);
  --hauptfarbe-dunkel: rgb(0, 140, 160);
  --hauptfarbe-hell: rgb(255, 255, 255);
  --bg-hell: #f7fbfc;
  --bg-section: #fff;
  --bg-footer: #065a6e;
  --text: #181c20;
  --text-light: #fff;
  --shadow: 0 4px 24px rgba(6, 175, 202, 0.08);
  --radius: 14px;
  --transition: 0.2s;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  font-size: 17px;
  color: var(--text);
  background: var(--bg-hell);
  margin: 0;
  padding: 0;
}

.header {
  height: 90vh;
  position: relative;
  background-image: url("img/head_bg_pic_roof.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  z-index: 0;
}

.header > * {
  position: relative;
  z-index: 1;
}

.navbar {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgb(242, 247, 255);
  box-shadow: 0 2px 12px rgba(6, 175, 202, 0.07);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: height 0.6s cubic-bezier(0.4,0,0.2,1), padding 0.6s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden; /* WICHTIG für smoothes Verkleinern */
}

.navbar-logo {
  font-weight: 700;
  font-size: 1.3em;
  letter-spacing: 1px;
  color: var(--hauptfarbe-dunkel);
}

.deppe-logo {
  height: 160px;
  transition: height 0.6s cubic-bezier(0.4,0,0.2,1);
  display: block;
  object-fit: contain;
}

.deppe-logo.logo-small {
  height: 120px !important;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border var(--transition), color var(--transition);
}

.navbar-links a:hover,
.navbar-links .nav-cta {
  color: var(--hauptfarbe);
  border-bottom: 2px solid var(--hauptfarbe);
}

.nav-cta {
  color: #fff !important;
  background: var(--hauptfarbe);
  border-radius: 6px;
  padding: 8px 18px !important;
  border: none !important;
  transition: background var(--transition), color var(--transition);
}

.nav-cta:hover {
  background: var(--hauptfarbe-dunkel);
  color: #fff !important;
}

.navbar.navbar-small {
  height: 80px !important;
  padding: 0 3vw !important;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 60vh;
  padding: 12vw;
  position: relative;
}

.hero-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: auto;
  margin-top: 64px;
  margin: 0 80px 0 80px;
  width: 900px;
}

.hero-content h1 {
  font-size: 2.333em;
  font-weight: 700;
  margin: 0 0 18px 0;
  color: var(--text);
}
.hero-content h2 {
  font-size: 1.2em;
  font-weight: 600;
  color: rgb(0, 140, 160,0.7);
}

.hero-content p {
  font-size: 1.125em;
  margin: 0 0 32px 0;
  color: var(--text);
  line-height: 1.5;
  padding-top: 16px;
}

.btn-primary {
  display: inline-block;
  background: var(--hauptfarbe);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  padding: 12px 32px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(6, 175, 202, 0.13);
  transition: background var(--transition);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--hauptfarbe-dunkel);
}

.btn-outline {
  display: inline-block;
  background: none;
  border: 2px solid var(--hauptfarbe);
  color: var(--hauptfarbe);
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 1em;
  font-weight: 600;
  margin-top: 24px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--hauptfarbe);
  color: #fff;
}

main {
  width: 100%;
  margin: 0 auto;
}

.about-services {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 80px 5vw 24px 5vw;
  background: rgba(215, 215, 215, 0.456);
  /* rgb(6, 90, 110, 0.75) */
}

.about p {
  line-height: 32px;
  text-wrap: balance;
}

.about,
.services {
  background: var(--bg-section);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 60px 32px;
  flex: 1 1 340px;
  /* min-width: 280px;
  max-width: 500px; */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.services {
  display: flex;
}

.service-row {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}

.about h2,
.services h2 {
  color: var(--hauptfarbe-dunkel);
  margin-top: 0;
}

.service-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
}

.service-list p {
  line-height: 24px;
}

.service-card {
  display: flex;
  align-items: center;
  width: 500px;
  gap: 18px;
  background: #f7fbfc;
  border-radius: 8px;
  padding: 18px 18px 14px 18px;
  box-shadow: 0 2px 8px rgba(6, 175, 202, 0.3);
}

.service-icon {
  font-size: 2em;
  margin-top: 2px;
}

.service-card h3 {
  margin: 0 0 6px 0;
  color: var(--hauptfarbe);
  font-size: 1.1em;
}

.service-card p {
  margin: 0;
  color: var(--text);
  font-size: 1em;
}

.references-section {
  background: rgba(215, 215, 215, 0.456);
  padding: 80px 0 80px 0;
  text-align: center;
}

.references-section h2 {
  color: var(--hauptfarbe-dunkel);
  margin-top: 0;
  margin-bottom: 80px;
}

.references-list {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 0 32px;
  /* flex-wrap: wrap; */
}

.margin-top-40px {
  margin-top: 40px;
}

.reference-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 33%;
  height: auto;
  overflow: hidden;
  text-align: left;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}

.reference-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(6, 175, 202, 0.13);
}

.reference-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-bottom: 3px solid var(--hauptfarbe);
  display: block;
}

.reference-card > div {
  padding: 22px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reference-card h4 {
  margin: 0 0 6px 0;
  color: var(--hauptfarbe);
  font-size: 1.13em;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.reference-card p {
  margin: 0;
  color: var(--text);
  font-size: 1em;
  line-height: 1.6;
}

.contact-section {
  background: rgba(215, 215, 215, 0.456);
  padding-bottom: 60px;
  text-align: center;
}

.contact-section h2 {
  color: var(--hauptfarbe-dunkel);
  margin: 0;
  padding-bottom: 60px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

.form-row {
  display: flex;
  gap: 18px;
  width: 100%;
  max-width: 700px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 340px;
  padding: 12px;
  border-radius: 8px;
  border: 1.5px solid #d0eaf0;
  font-size: 1em;
  color: var(--text);
  background: #f7fbfc;
  transition: border var(--transition);
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border: 2px solid var(--hauptfarbe);
}

.contact-info {
  color: var(--text);
  font-size: 1em;
  margin-top: 12px;
}

.contact-info strong {
  color: var(--hauptfarbe-dunkel);
}

.phonenumber {
  text-decoration: none;
  color: rgba(66, 14, 196, 0.87);
}

.footer {
  background: var(--bg-footer);
  color: #fff;
  text-align: center;
  padding: 32px 0 24px 0;
  font-size: 1em;
  letter-spacing: 0.5px;
}

.footer a {
  color: #fff;
  text-decoration: underline;
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--hauptfarbe);
}
.image-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 48px 0 0 0;
}
.row-img {
  width: 250px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(6,175,202,0.13);
  cursor: pointer;
  transition: transform 0.2s;
}
.row-img:hover {
  transform: scale(1.04);
}
.img-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.img-overlay.active {
  display: flex;
}
.img-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}
.close-overlay {
  position: absolute;
  top: 32px;
  right: 48px;
  background: #06afca;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1.2em;
  cursor: pointer;
}

.custom-slider {
  display: none;
}
.slider-img-wrapper {
  width: 250px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(6,175,202,0.13);
  background: rgba(215, 215, 215, 0.456);
  transition: width 0.2s, height 0.2s;
}
.slider-single-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.slider-arrow {
  background: var(--hauptfarbe, #06afca);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2em;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  box-shadow: 0 2px 8px rgba(6,175,202,0.13);
  opacity: 1;
}








/* IMPRESSUM */
.hero-impressum {
  height: auto;
  background-color: rgb(0, 140, 160,0.3);
  padding-top: 32px;
  padding-bottom: 32px;
}
.hero-content-impressum {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 32px;
  margin-right: 32px;
  background-color: white;
  padding: 32px;
  border-radius: 8px;
}
.impressum-quellangaben {
  text-decoration: none;
  color: black;
}
.slider-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}













.overlay-description {
  color: #fff;
  font-size: 0.8em;
  line-height: 20px;
  margin-top: 24px;
  text-align: center;
  max-width: 90vw;
  background: rgba(0,0,0,0.4);
  padding: 12px 18px;
  border-radius: 8px;
}












/* iPhone 15 Pro & kleine Smartphones */
@media (max-width: 700px) {
  html, body {
    font-size: 16px !important;
    padding: 0;
    margin: 0;
    background: var(--bg-hell);
  }
  .navbar {
    height: 64px;
    padding: 0 16px;
    justify-content: center;
    box-shadow: none;
    background: rgba(242,247,255,0.98);
  }
  .navbar.navbar-small {
    height: 64px !important;
  }
  .navbar-logo {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .deppe-logo {
    height: 96px !important;
    margin: 0 auto;
    display: block;
  }
  .deppe-logo.logo-small {
    height: 96px !important;
  }
  .navbar-links,
  .nav-cta {
    display: none !important;
  }
  .header {
    /* min-height: unset; */
    height: 80vh;
    padding: 0;
    background-size: cover;
    background-position: center;
  }
  .hero {
    flex-direction: column;
    align-items: center;
    padding: 6vw 0 2vw 0;
    /* min-height: unset; */
    height: 50vh;
  }
  .hero-content {
    width: 80%;
    margin: 0;
    padding: 14px ;
    font-size: 1em;
    text-align: center;
    border-radius: 10px;
  }
  .hero-content h1 {
    font-size: 2em;
    margin-bottom: 10px;
  }
  .hero-content p {
    font-size: 1em;
    margin-bottom: 18px;
  }
  .btn-primary, .btn-outline {
    width: 100%;
    font-size: 1em;
    padding: 10px 0;
    margin-top: 8px;
  }
  .about-services {
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px 32px 16px;
    align-items: center;
  }
  .about, .services {
    padding: 14px 4px;
    font-size: 0.98em;
    align-items: center;
    text-align: center;
    min-width: unset;
    max-width: 100%;
  }
  .about p {
    line-height: 22px;
    text-wrap: balance;
    padding: 0 8px;
  }
  .service-row {
    display: flex;
    flex-direction: column;
  }
  .service-list {
    gap: 32px;
  }
  .service-left {
    margin-bottom: 6px;
  }
  .service-right {
    margin-top: 6px;
  }
  .service-card {
    width: 90%;
    padding: 8px 4px 8px 4px;
    gap: 4px;
    align-items: center;
    text-align: center;
  }
  .service-icon {
    font-size: 1.2em;
  }
  .references-section {
    padding: 18px 0 18px 0;
  }
  .references-section h2 {
    margin-bottom: 18px;
    font-size: 1.8em;
  }
  .references-list {
    flex-direction: column;
    gap: 40px;
    padding: 32px;
    align-items: center;
  }
  .reference-card {
    width: 100%;
    height: auto
  }
  .reference-card img {
    height: 140px;
    width: 100%;
    object-fit: cover;
  }
  .reference-card > div {
    padding: 16px 8px 16px 8px;
    gap: 2px;
  }
  .reference-card h4 {
    display: flex;
    font-size: 0.98em;
    justify-content: center;
    text-align: center;
  }
  .reference-card p {
    display: flex;
    font-size: 0.95em;
    justify-content: center;
    text-align: center;
    padding-bottom: 8px;
  }
  .contact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
    width: 100%;
  }
  .contact-section h2 {
    font-size: 1.5em;
  }
  .contact-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .contact-form .form-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
  }
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    display: block;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    font-size: 1em;
    padding: 8px 0;
    margin-top: 6px;
  }
  .contact-info {
    font-size: 0.95em;
    text-align: center;
  }
  .footer {
    padding: 10px 0 8px 0;
    font-size: 0.95em;
    text-align: center;
  }
  .image-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0 0 0;
    padding-bottom: 12px;
  }
  .row-img {
    width: 80vw;
    min-width: 80vw;
    max-width: 90vw;
    height: 180px;
    border-radius: 8px;
    scroll-snap-align: center;
    flex-shrink: 0;
  }
  .custom-slider {
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(215, 215, 215, 0.456);
  }
  .slider-img-wrapper {
    width: 65vw;
    max-width: 98vw;
    height: auto;
    aspect-ratio: 5/6;
    background: (215, 215, 215, 0.456);
  }
  .slider-single-img {
    height: auto;
    aspect-ratio: 5/6;
  }
}




/* iPad Pro 11" (834px x 1194px) – großzügiges Layout */
@media (min-width: 700px) and (max-width: 1200px) {
  .body {
    padding: 0;
  }
  .navbar {
    height: 90px;
    padding: 0 16px;
  }
  .deppe-logo {
    height: 64px;
  }
  .deppe-logo.logo-small {
    height: 64px;
  }
  .hero-content {
    width: 80vw;
    min-width: 0;
    margin: 0 20px;
    padding: 32px 24px;
    font-size: 1.1em;
  }
  .about-services {
    gap: 32px;
    padding: 60px 3vw 0px 3vw;
  }
    .service-left {
    margin-bottom: 6px;
  }
  .service-right {
    margin-top: 6px;
  }
    .service-row {
    display: flex;
    flex-direction: column;
  }
  .service-card {
    width: 90%;
  }
  .about, .services {
    padding: 32px 18px;
    max-width: 700px;
  }
  .references-list {
    gap: 24px;
    padding: 0 12px;
  }
  .reference-card {
    width: 33%;
    height: auto;
  }
}