/*
 * Clean & Gut Website V3
 * Visuelle Neugestaltung nach dem Styleguide der Landingpage.
 * Bestehende Inhalte, Bilder und Funktionen bleiben unverändert.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&family=Roboto:wght@300;400;500;600&display=swap');

:root {
  --cg-navy: #023a56;
  --cg-turquoise: #00cccc;
  --cg-sky: #50bbd3;
  --cg-steel: #396482;
  --cg-dark: #333333;
  --cg-muted: #667681;
  --cg-soft: #f3f5f8;
  --cg-white: #ffffff;
  --cg-shadow: 0 18px 45px rgba(2, 58, 86, 0.12);
  --cg-radius: 18px;
  --cg-content: 1060px;
}

html {
  scroll-padding-top: 76px;
}

body {
  background: var(--cg-white);
  color: var(--cg-dark);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

#wrapper {
  overflow: clip;
}

p,
li,
a,
input,
textarea,
button,
label,
td {
  font-family: 'Roboto', Arial, sans-serif;
}

h1,
h2,
h3,
h4 {
  color: var(--cg-navy);
  font-family: 'Poppins', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  opacity: 1;
}

p,
li {
  color: var(--cg-dark);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0;
  opacity: 1;
}

a {
  color: var(--cg-navy);
  font-weight: 400;
  letter-spacing: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 204, 204, 0.55);
  outline-offset: 3px;
}

/* Header und Kontaktdaten */
#headerLogo {
  align-items: center;
  background: var(--cg-white);
  display: flex;
  justify-content: space-between;
  margin: 0;
  min-height: 118px;
  padding: 0 max(24px, calc((100vw - var(--cg-content)) / 2));
}

#navLogo {
  height: auto;
  margin: 0;
  width: 172px;
}

#headerContact {
  align-items: center;
  background: transparent;
  display: flex;
  height: auto;
  justify-content: flex-end;
  padding: 0;
  width: auto;
}

#headerContact .contactItem {
  min-width: 0;
  padding-left: 34px;
  text-align: left;
}

#headerContact h1,
#headerContact h2 {
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0;
  opacity: 1;
}

#headerContact h1 {
  color: var(--cg-navy);
  font-size: 0.98rem;
  font-weight: 500;
  margin: 0 0 3px;
}

#headerContact h2 {
  color: var(--cg-muted);
  font-size: 0.78rem;
  margin: 0;
}

#headerContact .text h1 {
  color: var(--cg-turquoise) !important;
  font-weight: 600;
}

#headerContact .callmodel {
  border: 3px solid var(--cg-soft);
  height: 64px;
  margin-left: 22px;
  width: 64px;
}

/* Hauptnavigation */
#navWrap {
  background: var(--cg-navy);
  box-shadow: 0 8px 22px rgba(2, 58, 86, 0.14);
  position: relative;
  z-index: 99999;
}

.topnav {
  background: transparent;
  margin: 0 auto;
  max-width: var(--cg-content);
  min-width: 0;
  overflow: visible;
  padding: 0;
  width: 100%;
}

.topnav::after {
  clear: both;
  content: '';
  display: table;
}

.topnav a,
.dropdown .dropbtn {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 20px 14px;
}

.topnav a:hover,
.dropdown:hover .dropbtn,
.topnav .active,
.dropdown .dropbtn.active {
  background: var(--cg-turquoise) !important;
  color: var(--cg-navy) !important;
}

.dropdown-content {
  background: var(--cg-white);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--cg-shadow);
  min-width: 235px;
  overflow: hidden;
}

.dropdown-content a {
  color: var(--cg-navy);
  padding: 14px 18px;
}

.dropdown-content a:hover,
.dropdown-content a.active {
  background: var(--cg-turquoise) !important;
  color: var(--cg-navy) !important;
}

.sticky {
  box-shadow: 0 8px 22px rgba(2, 58, 86, 0.2);
}

/* Startseiten-Hero: vorhandene Bilder und Texte in neuem Layout */
#header {
  background: linear-gradient(135deg, var(--cg-sky), var(--cg-steel));
  height: clamp(570px, 70vh, 760px);
  min-height: 570px;
}

#header .slider::after {
  background: linear-gradient(125deg, rgba(2, 58, 86, 0.77), rgba(57, 100, 130, 0.45) 55%, rgba(0, 204, 204, 0.35));
  content: '';
  inset: 0;
  position: absolute;
  z-index: 1;
}

#header .slide {
  filter: saturate(0.82) contrast(0.98);
}

#headerImgIcon {
  background: url(../img/logo_icon.png) no-repeat 7% 50% / min(34vw, 420px);
  opacity: 0.14;
  z-index: 2;
}

#mobilehead {
  align-items: center;
  background: transparent;
  bottom: auto;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  z-index: 3;
}

#mobilehead .mh-logo,
#mobilehead .callmodel {
  display: none;
}

#mobilehead .text h1 {
  color: var(--cg-white) !important;
  font-family: 'Poppins', 'Roboto', Arial, sans-serif;
  font-size: clamp(3.5rem, 6.5vw, 5.3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 auto 38px;
  max-width: 930px;
  padding: 0;
  text-shadow: 0 5px 28px rgba(2, 58, 86, 0.3);
}

#MobilContact {
  display: flex;
  gap: 14px;
  margin: 0;
}

#MobilContact > div {
  display: flex;
  gap: 14px;
}

#mobilehead .contactItem:not(.text) {
  background: var(--cg-turquoise);
  border-radius: 100px;
  min-width: 250px;
  padding: 13px 28px;
}

#mobilehead .contactItem:not(.text) h1,
#mobilehead .contactItem:not(.text) h2 {
  color: var(--cg-navy);
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

#mobilehead .contactItem:not(.text) h1 {
  font-size: 1rem;
  font-weight: 600;
}

#mobilehead .contactItem:not(.text) h2 {
  font-size: 0.76rem;
  line-height: 1.2;
}

/* Inhaltsbereiche */
main {
  background: var(--cg-white);
}

section {
  width: 100%;
}

.spacer {
  display: none;
}

#intro {
  background: var(--cg-white);
  padding: 100px max(24px, calc((100vw - var(--cg-content)) / 2));
}

#introLeft {
  max-width: 900px;
  width: 100%;
}

#introLeft > h1:first-child {
  color: var(--cg-navy);
  font-size: clamp(2.6rem, 5vw, 4.05rem);
  line-height: 1.08;
  margin-bottom: 30px;
}

#introLeft h1:not(:first-child) {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 42px 0 14px;
}

#introLeft h2 {
  color: var(--cg-navy);
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 36px 0 12px;
}

#introLeft h3 {
  color: var(--cg-navy);
  font-size: 1.1rem;
  margin: 28px 0 10px;
}

#introLeft p,
#introLeft li {
  color: var(--cg-dark);
  font-size: 1.08rem;
  line-height: 1.75;
}

#introLeft p + p {
  margin-top: 18px;
}

#introLeft ul,
#introLeft ol {
  margin: 18px 0 18px 22px;
}

#introLeft a {
  color: var(--cg-steel);
  text-decoration: underline;
  text-decoration-color: var(--cg-turquoise);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.underline {
  background: var(--cg-turquoise);
  border-radius: 99px;
  height: 5px;
  margin: 0 0 28px;
  width: 72px;
}

#partner {
  background: linear-gradient(135deg, var(--cg-sky), var(--cg-steel));
  color: var(--cg-white);
}

#partner .textbox {
  margin: 0 auto;
  max-width: var(--cg-content);
  padding: 78px 0;
  width: calc(100% - 48px);
}

#partner h1,
#partner h2,
#partner p {
  color: var(--cg-white);
  opacity: 1;
}

#partner h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

#partner h2 {
  font-size: 1.45rem;
  margin-bottom: 18px;
}

#partner p {
  font-size: 1.08rem;
  max-width: 800px;
}

/* Leistungsdarstellung */
#Leistung {
  background: var(--cg-soft);
  gap: 26px;
  padding: 92px max(24px, calc((100vw - var(--cg-content)) / 2));
}

.leistungCard {
  gap: 0;
  overflow: hidden;
}

#Leistung > .leistungCard,
#LeistungCleanMore {
  background: var(--cg-white);
  border-radius: var(--cg-radius);
  box-shadow: var(--cg-shadow);
}

#LeistungClean .textbox,
.LeistungText {
  background: var(--cg-white);
  padding: 58px;
}

#LeistungClean .textbox {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 50%;
}

#LeistungClean h1,
.LeistungText h1 {
  color: var(--cg-navy) !important;
  font-size: clamp(1.65rem, 3vw, 2.35rem) !important;
  line-height: 1.2;
  margin-bottom: 16px;
}

#LeistungClean button,
footer form button {
  background: var(--cg-turquoise);
  border: 0;
  border-radius: 100px;
  color: var(--cg-navy);
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  padding: 16px 35px;
  width: auto;
}

#LeistungClean button:hover,
footer form button:hover {
  background: var(--cg-navy);
  color: var(--cg-white);
  transform: translateY(-2px);
}

.LeistungImage {
  background-color: var(--cg-soft);
  min-height: 330px;
  overflow: hidden;
}

.LeistungImage img {
  height: 100%;
  object-fit: cover;
  opacity: 1;
  width: 100%;
}

#cleanImg {
  background-position: center !important;
  min-height: 440px;
}

#Leistung > #LeistungCleanMore {
  background: linear-gradient(135deg, var(--cg-sky), var(--cg-steel));
  color: var(--cg-white);
  padding: 0;
}

#LeistungCleanMore .textbox {
  padding: 58px;
}

#Leistung > #LeistungCleanMore h2,
#Leistung > #LeistungCleanMore ul li,
#Leistung > #LeistungCleanMore a {
  color: var(--cg-white);
  opacity: 1;
}

#LeistungCleanMore h2 {
  font-size: 1.85rem;
}

#LeistungCleanMore ul li {
  font-size: 1.05rem;
  margin: 8px 0;
}

#LeistungCleanMore ul li::before {
  color: var(--cg-turquoise);
}

#LeistungCleanMore .textboxlogo {
  align-items: center;
  display: flex;
  justify-content: center;
}

.logobox {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  margin: 8px;
  padding: 20px;
}

.logobox a {
  color: var(--cg-navy) !important;
}

#LeistungConst {
  flex-direction: column;
}

#LeistungConst .LeistungImage {
  min-height: 480px;
}

/* Kontakt und Anschrift */
footer {
  background: var(--cg-white);
  display: grid;
  gap: 62px;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  padding: 100px max(24px, calc((100vw - var(--cg-content)) / 2));
}

footer #form,
footer #adress {
  width: 100%;
}

footer #form {
  background: var(--cg-soft);
  border-radius: var(--cg-radius);
  box-shadow: var(--cg-shadow);
  padding: 48px;
}

footer #adress {
  align-self: start;
  background: linear-gradient(145deg, var(--cg-navy), var(--cg-steel));
  border-radius: var(--cg-radius);
  box-shadow: var(--cg-shadow);
  margin: 0;
  padding: 48px 38px;
}

footer h1 {
  color: var(--cg-navy);
  font-size: 2rem;
  margin-bottom: 20px;
}

footer p,
footer label {
  color: var(--cg-dark);
  opacity: 1;
}

footer .maillink,
footer .blue {
  color: var(--cg-steel);
}

footer form {
  margin: 32px 0 0;
}

footer form input,
footer form textarea {
  background: var(--cg-white);
  border: 1px solid #c7d3da;
  border-radius: 10px;
  color: var(--cg-dark);
  margin-top: 12px;
  padding: 15px 17px;
}

footer form input:focus,
footer form textarea:focus {
  border-color: var(--cg-turquoise);
}

footer form input::placeholder,
footer form textarea::placeholder {
  color: #63727b;
}

footer form button {
  margin-top: 22px;
}

footer .checkbox {
  align-items: flex-start;
  gap: 9px;
}

footer .checkbox input {
  margin: 4px 0 0;
}

footer .checkbox a {
  color: var(--cg-navy);
}

#adress h1,
#adress p,
#adress a,
#adress .blue,
#adress a p {
  color: var(--cg-white);
}

#adress table {
  width: 100%;
}

#adress table tr td {
  padding: 10px 14px 10px 0;
  vertical-align: top;
}

#footerImgIcon {
  background-size: auto 230px;
  bottom: 30px;
  opacity: 0.08;
  right: 30px;
}

@media (max-width: 1050px) {
  #headerLogo {
    padding-left: 28px;
    padding-right: 28px;
  }

  #headerContact .text {
    display: none;
  }

  .topnav {
    padding: 0 18px;
  }

  .topnav a,
  .dropdown .dropbtn {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 930px) {
  #Leistung {
    padding-bottom: 70px;
    padding-top: 70px;
  }

  #LeistungClean .textbox,
  .LeistungText,
  #LeistungCleanMore .textbox {
    padding: 42px;
  }

  #LeistungCleanMore .textboxlogo {
    margin: 0;
  }

  .logobox {
    padding: 18px;
  }

  footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 54px;
  }

  #headerLogo {
    display: flex;
    min-height: 92px;
    padding: 12px 20px;
  }

  #navLogo {
    width: 138px;
  }

  #headerContact {
    display: none;
  }

  #navWrap {
    position: sticky;
    top: 0;
  }

  .topnav {
    min-height: 54px;
    overflow: hidden;
    padding: 0;
  }

  .topnav a.icon {
    color: var(--cg-white);
    font-size: 1.4rem;
    padding: 13px 20px;
  }

  .topnav.responsive {
    background: var(--cg-navy);
    min-height: calc(100vh - 54px);
    overflow-y: auto;
  }

  .topnav.responsive a.icon {
    background: var(--cg-turquoise);
    color: var(--cg-navy);
  }

  .topnav.responsive a,
  .topnav.responsive .dropdown .dropbtn {
    color: var(--cg-white);
    padding: 16px 22px;
  }

  .topnav.responsive .dropdown-content {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }

  .topnav.responsive .dropdown-content a {
    color: var(--cg-white);
    padding-left: 42px;
  }

  #header {
    height: 650px;
    min-height: 650px;
  }

  #headerImgIcon {
    background-position: center 18%;
    background-size: 250px;
    height: 100%;
  }

  #mobilehead {
    display: flex;
    height: 100%;
    padding: 40px 20px;
  }

  #mobilehead .text h1 {
    font-size: clamp(2.65rem, 12vw, 3.4rem);
    margin-bottom: 28px;
  }

  #MobilContact,
  #MobilContact > div {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  #mobilehead .contactItem:not(.text) {
    margin: 0 auto;
    max-width: 320px;
    min-width: 0;
    width: 100%;
  }

  #intro {
    padding-bottom: 72px;
    padding-top: 72px;
  }

  #introLeft > h1:first-child {
    font-size: clamp(2.35rem, 10vw, 3rem);
  }

  #intro:not(.mainPage) #introLeft > h1:first-child {
    font-size: 2rem;
    overflow-wrap: anywhere;
  }

  #introLeft p,
  #introLeft li,
  #partner p {
    font-size: 1rem;
  }

  #partner .textbox {
    padding-bottom: 58px;
    padding-top: 58px;
  }

  #LeistungClean .textbox,
  .LeistungText,
  #LeistungCleanMore .textbox {
    padding: 34px 26px;
  }

  .LeistungImage,
  #cleanImg,
  #LeistungConst .LeistungImage {
    min-height: 280px;
  }

  #LeistungCleanMore .textboxlogo,
  .logoboxwrap {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .logobox {
    margin: 6px 0;
  }

  footer {
    gap: 30px;
    padding-bottom: 70px;
    padding-top: 70px;
  }

  footer #form,
  footer #adress {
    padding: 34px 24px;
  }

  #adress table,
  #adress tbody,
  #adress tr,
  #adress td {
    display: block;
  }

  #adress table tr {
    margin-bottom: 14px;
  }

  #adress table tr td {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
