:root {
  --text: #707070;
  --heading: #0093d5;
  --accent: #006eab;

  --red: #e30613;
  --pink: #e6005e;
  --purple: #b31080;
  --violet: #582583;
  --blue: #0053a2;
  --blue-light: #0077c0;
  --cyan: #009dc7;
  --orange: #f08100;

  --before: #00975f;
  --after: #8cbe22;

  --footer: #087bb5;
  --white: #ffffff;
  --light-blue: #dceefa;

  --shadow: 0 8px 18px rgba(0, 58, 88, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-container {
  width: min(100% - 40px, 1550px);
  margin: 0 auto;
  padding: 10px;
}

.section {
  padding: 115px 0;
  background: var(--white);
}

.eyebrow {
  margin: 0 0 8px;
  color: #676767;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  margin-bottom: 8px;
  font-family: "Caveat", cursive;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(22px, 2.6vw, 31px);
  font-weight: 800;
}

h3 {
  margin-bottom: 22px;
  font-size: 20px;
  font-weight: 700;
}

p {
  margin: 0 0 17px;
}

.button {
  display: inline-block;
  padding: 9px 25px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-family: "Caveat", cursive;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-bottom: 10px;
}

.button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.button-red {
  background: var(--red);
}

.button-pink {
  background: var(--pink);
}

.button-purple {
  background: var(--purple);
}

.button-blue {
  background: var(--blue);
}

.button-cyan {
  background: #0089ce;
}

.button-orange {
  background: var(--orange);
}

.button-white {
  color: var(--accent);
  background: var(--white);
}

.button-dark {
  min-width: 180px;
  color: var(--white);
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  background: #1f1f1f;
}

.color-link {
  color: var(--text);
  text-decoration: underline;
}

.color-link:hover {
  color: var(--red);
  transition: 0.3s;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  overflow: hidden;
  height: 85vh;
  background: #dceefa;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.83) 36%,
      rgba(255, 255, 255, 0.12) 65%,
      rgba(255, 255, 255, 0) 100%);
}

.hero-container {
  position: relative;
  z-index: 2;
  min-height: 70vh;
}

.logo {
  position: absolute;
  top: 38px;
  left: 0;
  width: 255px;

}

.logo img {
  height: auto;
}

/* =========================
   BURGER NAVIGATION / OFF-CANVAS
========================= */
.menu-toggle {
  position: absolute;
  top: 32px;
  right: 0;
  z-index: 30;
  display: flex;
  width: 46px;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--pink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Die Navigation füllt die vollständige Bildschirmhöhe */
.main-nav {
  position: fixed;
  z-index: 25;
  top: 0;
  right: 0;
  display: flex;
  width: min(100%, 550px);
  height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 100px 60px;
  color: var(--white);
  background: var(--accent);
  box-shadow: -10px 0 30px rgba(0, 50, 85, 0.2);

  /* Ausgangsposition: außerhalb rechts */
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.4s ease,
    visibility 0s linear 0.4s;
}

/* Wird per JavaScript gesetzt */
.main-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.4s ease;
}

.main-nav a {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.main-nav a:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  padding-left: 12px;
  color: #dceefa;
}

/* Burger wird bei offenem Menü zu einem X */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 0;
  width: min(520px, 55%);
  transform: translateY(-25%);
}

.hero-description {
  max-width: 510px;
  color: #696969;
  font-size: 19px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
}

/* =========================
   TRUSTBAR
========================= */

.trustbar {
  padding: 30px 0 34px;
  color: var(--white);
  background: #009ad2;
}

.trustbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  text-align: center;
}

.trust-item img {
  width: 80px;
  display: inline;

}

.trust-icon {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 43px;
  line-height: 1;
}


.trust-item p {
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}

/* =========================
   ALLGEMEINE LAYOUTS
========================= */

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
}
#impressum .two-columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: start;
}


.image-box img {
  aspect-ratio: 1.32 / 1;
  border-radius: 13px;
  object-fit: cover;
}

.text-box {
  max-width: 550px;
}

.text-box p {
  max-width: 540px;
}

.slogan {
  color: var(--heading);
  font-family: "Caveat", cursive;
  font-size: 21px;
  font-weight: 700;
}

.allrounder-layout {
  padding-bottom: 20px;
}

/* =========================
   PINSELSTREIFEN
========================= */

.brush-divider {
  display: grid;
  min-height: 440px;
  place-items: center;
  padding: 40px 20px;
  color: var(--white);
  text-align: center;
  background-image:
    url("../img/brush.webp");
  background-position: center;
  background-size: cover;
}

.brush-divider p {
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
}

/* =========================
   LEISTUNGEN
========================= */

.services-section {
  padding-top: 115px;
}

.section-heading {
  margin-bottom: 60px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 75px;
}

.service-card {
  overflow: hidden;
  min-height: 610px;
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card>img {
  height: 400px;
  object-fit: cover;
}

.service-content {
  padding: 25px 27px 30px;
}

.service-content h3 {
  min-height: 48px;
  margin-bottom: 24px;
}

.service-content p {
  margin-bottom: 16px;
  font-size: 14px;
}

.service-content strong {
  color: var(--accent);
  font-size: 16px;
}

.service-content ul {
  margin: 2px 0 22px;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.service-content li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--accent);
  font-weight: 800;
}

/* =========================
   PARALLAX
========================= */

.parallax-section {
  min-height: 410px;
  background: url("../img/malermeister-marco-krater-hilft.webp") center / cover fixed;
}

.parallax-overlay {
  display: grid;
  min-height: 410px;
  place-items: center;
  padding: 60px 20px;
  background: rgba(0, 101, 182, 0.79);
}

.parallax-content {
  color: var(--white);
  text-align: center;
}

.parallax-content h2 {
  max-width: 850px;
  margin: 0 auto 28px;
  color: var(--white);
  font-size: clamp(25px, 3.5vw, 30px);
}

/* =========================
   ÜBER UNS
========================= */

.about-section {
  padding-top: 125px;
  padding-bottom: 125px;
}

/* =========================
   REFERENZEN / SLIDER
========================= */

.references-section {
  padding-top: 90px;
  padding-bottom: 100px;
}

.references-layout {
  align-items: center;
}

.before-after {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.4 / 1;
  border-radius: 13px;
  background: #ddd;
  user-select: none;
}

.before-image,
.after-image,
.after-image img {
  width: 100%;
  height: 100%;
}

.before-image,
.after-image img {
  object-fit: cover;
}

.after-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 50%);
}

.comparison-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
}

.comparison-line span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  background: #0089ce;
  transform: translate(-50%, -50%);
}

.comparison-slider {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.comparison-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100% - 40px, 1180px);
  padding-right: calc(20% + 430px);
  margin-top: 10px;
  text-align: center;
}

.before-label,
.after-label {
  display: inline-block;
  justify-self: center;
  width: 108px;
  padding: 4px 15px;
  border-radius: 999px;
  color: var(--white);
  font-family: "Caveat", cursive;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.before-label {
  background: var(--before);
}

.after-label {
  background: var(--after);
}

/* =========================
   GALERIE
========================= */

.gallery-section {
  min-height: 625px;
}

.gallery-layout {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 75px;
  align-items: center;
}

.gallery-accordion h2 {
  margin-bottom: 28px;
}

.gallery-category {
  margin-bottom: 9px;
  color: #777;
  font-size: 16px;
  font-weight: 700;
}

.accordion-button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border: 0;
  border-bottom: 2px solid #148ed0;
  color: #6c6c6c;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.accordion-button span {
  font-size: 13px;
  font-weight: 700;
}

.accordion-button b {
  color: var(--accent);
  font-size: 27px;
  line-height: 0.8;
}

.accordion-button.is-active {
  padding: 16px 18px 8px;
  border-bottom: 0;
  color: var(--accent);
  background: var(--light-blue);
}

.accordion-panel {
  display: none;
  padding: 0 18px 16px;
  border-bottom: 2px solid #148ed0;
  font-size: 12px;
  line-height: 1.35;
  background: var(--light-blue);
}

.accordion-panel.is-open {
  display: block;
}

.gallery-set {
  display: none;
}

.gallery-set.is-active {
  display: block;
}

.gallery-set img {
  aspect-ratio: 1.47 / 1;
  border-radius: 13px;
  object-fit: cover;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 11px;
}

.gallery-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid #a8a8a8;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.gallery-dots button.is-active {
  border-color: var(--accent);
  background: var(--accent);
}

/* =========================
   FIXIERTE KONTAKTBUTTONS
========================= */

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  gap: 9px;
}

.floating-contact a {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 10px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.23);
}

/* =========================
   FOOTER
========================= */

.footer {
  color: var(--white);
  background: var(--footer);
  padding: 10px;

}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding-top: 100px;
}

.footer .eyebrow,
.footer h2,
.footer a {
  color: var(--white);
}

.footer h2 {
  max-width: 460px;
  font-size: 22px;
}

.footer-text p {
  max-width: 500px;
  font-size: 16px;
}

.footer address {
  font-size: 16px;
  font-style: normal;
  line-height: 1.35;
}

iframe {
  border: none;
  height: 70vh;
  width: 100%;
}

.subnav .page-container {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.subnav a,
.subnav span {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* =========================
   FIXIERTES LOGO & BURGER-MENÜ
========================= */

/* Logo bleibt immer im sichtbaren Bildschirmbereich */
.logo {
  position: fixed;
  top: 28px;
  left: max(20px, calc((100% - 1550px) / 2));
  z-index: 40;
  width: 220px;
  padding: 10px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

}

.logo img {
  width: 100%;
  height: auto;
}

/* Burger bleibt immer rechts sichtbar */
.menu-toggle {
  position: fixed;
  top: 32px;
  right: max(20px, calc((100% - 1550px) / 2));
  z-index: 50;
}


/* Hintergrundfarbe der geöffneten Navigation */
.main-nav {
  background: var(--blue);
}

/* Im geöffneten Menü bleibt das X weiß für besseren Kontrast */
.menu-toggle[aria-expanded="true"] span {
  background: #fff;
}


.link {
  color: var(--text);
  text-decoration: underline;
}

.link:hover {
  color: var(--red);
  transition: 0.3s;
}
.link2 {
  color: var(--text);
  text-decoration: underline;
}

.link2:hover {
  color: #000;
  transition: 0.3s;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .section {
    padding: 75px 0;
  }

  .two-columns,
  #impressum .two-columns,
  .gallery-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .two-columns, #impressum.two-columns {
    gap: 38px;
  }

  .service-grid {
    gap: 35px;
  }

  .gallery-layout {
    gap: 45px;
  }

  .footer-grid {
    gap: 45px;
    padding: 65px 0;
  }

  .comparison-labels {
    width: min(100% - 40px, 1180px);
    padding-right: 50%;
  }
    .brush-divider {
    background-size: inherit;

  }
}

@media (max-width: 680px) {
  body {
    font-size: 13px;
  }

  .page-container {
    width: min(100% - 30px, 1180px);
  }

  .hero,
  .hero-container {
    min-height: 640px;
  }

  .hero-image img {
    object-position: 68% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 53%,
        rgba(255, 255, 255, 0.2) 100%);
  }

  .logo {
    top: 25px;
    width: 180px;
  }

  .menu-toggle {
    position: fixed;
    top: 25px;
    right: 15px;
    width: 36px;
  }

  .menu-toggle span {
    height: 4px;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .main-nav {
    width: 100%;
    padding: 100px 35px 45px;
  }

  .hero-content {
    top: 51%;
    width: 87%;
    transform: translateY(-15%);
  }

  .hero-description {
    font-size: 16px;
  }

  .trustbar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
  }

  .trust-icon {
    font-size: 35px;
  }

  .trust-item p {
    font-size: 16px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-card>img {
    height: 210px;
  }

  .parallax-section,
  .parallax-overlay {
    min-height: 330px;
    background-attachment: scroll;
  }

  .parallax-content h2 br {
    display: none;
  }

  .references-layout .text-box {
    order: -1;
  }

  .comparison-labels {
    width: min(100% - 30px, 1180px);
    padding-right: 0;
  }

  .gallery-section {
    min-height: auto;
  }

  .floating-contact {
    right: 12px;
    bottom: 15px;
  }

  .floating-contact a {
    width: 43px;
    height: 43px;
  }

  iframe {
    width: 100%;
    height: 700px;
  }
}

@media (max-width: 900px) {
  .hero {
    height: auto;
  }
}