* {
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-family: "PT Sans", sans-serif;
  font-style: normal;
}

:root {
  --main-red: #c02323;
  --main-dark-red: #7a0000;
  --p-color: #333333b3;
}
.pt-sans-regular {
  font-family: "PT Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.pt-sans-bold {
  font-family: "PT Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.pt-sans-regular-italic {
  font-family: "PT Sans", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.pt-sans-bold-italic {
  font-family: "PT Sans", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.my-container {
  max-width: 1200px;
  margin: 0 auto;
}



.navbar {
  background-color: transparent !important;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 15px 0;
  box-shadow: none !important;
  margin: 0;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

/* Ensure navbar without scrolled class is always transparent */
.navbar:not(.scrolled) {
  background-color: transparent !important;
  box-shadow: none !important;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: relative;
  width: 100%;
  gap: 2rem;
}

.nav-left {
  display: none; /* Hide nav-left, all links go to nav-right */
}

.nav-right {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-logo {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 10;
  position: relative;
  pointer-events: auto;
  margin-right: auto;
}

.nav-logo a {
  display: block;
  transition: transform 0.3s ease;
}

.nav-logo a:hover {
  transform: scale(1.05);
}

.nav-logo a:focus {
  outline: none;
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.navbar.scrolled .logo-img {
  height: 45px;
}

.nav-link {
  text-decoration: none;
  color: #000000b3;
  font-size: 16px;
  font-weight: 400;
  line-height: 200%;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #c02323;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #c02323;
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

.navbar.scrolled .nav-link {
  color: #333;
}

.navbar.scrolled .nav-link:hover {
  color: #c02323;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Ensure navbar doesn't cover content */
main {
  position: relative;
  z-index: 1;
}

/* Ensure nav links are visible on light backgrounds */
.navbar.scrolled .nav-link {
  color: #333;
}

.navbar:not(.scrolled) .nav-link {
  color: #000000b3;
}

.navbar:not(.scrolled) .nav-link:hover {
  color: #c02323;
}

.phone .flex {
  display: flex;
  justify-content: space-between;
  height: 24px;
  width: 18px;
}

.phone {
  transform: rotateZ(90deg);
  display: none;
}

.phone span {
  width: 2px;
  height: 20px;
  background-color: #505050;
  margin: 2px;
  display: block;
  transition: all 0.5s ease;
}

.phone .leftx {
  width: 2px;
  height: 20px;
  background-color: #505050;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%) rotateZ(45deg);
  transition: transform 0.3s ease;
}

.phone .rightx {
  width: 2px;
  height: 20px;
  background-color: #505050;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%) rotateZ(135deg);
  transition: transform 0.3s ease;
}

.phone .nonex {
  display: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

/* Old .desktop styles removed - now using .nav-left and .nav-right */

.main-section {
  background-image: url(FigmaPics/Section_hero-wrap.webp);
  background-size: cover;
  background-attachment: fixed;
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  padding-top: 0;
}

.main-section p,
.main-section h1 {
  position: relative;
  z-index: 2;
}

.main-section h1 {
  color: var(--main-red);
  font-size: 60px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
}

.main-section p {
  margin: 35px 0;
  color: #000000b3;
  font-size: 16px;
  font-weight: 400;
  line-height: 200%;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.03);
  z-index: 1;
}

.red-line {
  margin-bottom: 2px;
  width: 60px;
  height: 3px;
  background-color: #7a0000;
}

.first-wrapper {
  max-width: 40%;
  position: relative;
  z-index: 3;
  margin: 0 20px;
}

.main-section .button {
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  background-color: #c02323;
  padding: 9px 15px;
  text-align: center;
  width: 160px;
  display: inline-block;
  border-radius: 5px;
}

.descriptive-section {
  width: 100%;
  padding: 50px;
  background-image: linear-gradient(
    90deg,
    var(--main-dark-red),
    var(--main-red) 50%,
    var(--main-dark-red)
  );
  text-align: center;
  color: #fff;
}

.descriptive-section h2 {
  font-weight: 700;
  font-size: 32px;
  margin: 10px 0;
}

.descriptive-section p {
  margin-top: 10px;
  line-height: 160%;
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 30px;
}

.third-section {
  padding: 100px 20px;
  font-size: 16px;
  line-height: 170%;
}

.third-section .row {
  height: auto;
}

.third-section .text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  height: 100%;
  width: 90%;
  margin: 0 auto;
}

.third-section .text-wrapper h3 {
  text-align: center;
  font-weight: bolder;
  letter-spacing: 0.3rem;
  font-size: 4rem;
  color: #c02323;
  line-height: 1.2;
  word-wrap: break-word;
}

.third-section .text-wrapper p {
  color: var(--p-color);
}

.third-section .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #fff;
}

.third-section .form-wrapper {
  width: 275px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background-image: url(FigmaPics/ContactBG.webp);
  background-size:cover;
  background-position-x: center;
  padding: 20px;
  position: relative;
}

.third-section form {
  display: block;
  position: relative;
  z-index: 2;
}

.third-section .flexWrapper {
  position: relative;
  z-index: 2;
}

.third-section .flexWrapper h4 {
  font-size: 24px;
  margin: 10px 0;
}



.third-section input {
  display: block;
  margin-bottom: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid #fff;
  background-color: transparent;
  transition: all 0.1s;
}

.third-section input::placeholder {
  color: #fff;
}

.third-section textarea {
  display: block;
  margin-bottom: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid #fff;
  background-color: transparent;
  transition: all 0.1s;
  color: #fff;
}

.third-section textarea::placeholder {
  color: #fff;
}
.third-section textarea:hover {
  background-color: #dff0fa33;
}

.third-section button {
  width: 100%;
  display: block;
  padding: 5px 0;
  text-align: center;
  border: none;
  background-color: #c02323;
  color: #fff;
  margin-top: 30px;
  transition: all 0.2s;
}

.third-section .overlay {
  background-color: #81666654;
}

.third-section .grid {
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  text-align: center;
  margin-top: 100px;
  position: relative;
}

.third-section input {
  color: #fff;
}

.third-section input:hover {
  background-color: #dff0fa33;
}

.third-section button:hover {
  background-color: #960202;
}

.cellFullW {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cellFullW p {
  margin-bottom: 0;
}

.third-section .red-line {
  transform: rotate(180deg);
  display: block;
  width: 2px;
  height: 30px;
  border-radius: 100%;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 150px;
  row-gap: 100px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.text-cell {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.projects .picture-cell img {
  max-width: 100%;
  box-shadow: 2px 2px 20px 5px #0003;
}

.picture-holder {
  margin: 0 auto;
  overflow: hidden;
  width: 400px;
  max-height: 500px;
  border-radius: 20px;
  box-shadow: 2px 2px 60px 3px rgba(0, 0, 0, 0.22);
  position: relative;
}

.picture {
  border-radius: 20px;
  position: relative;
  z-index: 3;
  transition: transform 0.3s;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.picture-holder a {
  text-decoration: none;
  color: #fff;
}

.picture-holder:hover .picture {
  transform: scale(1.09);
  filter: brightness(60%);
}

.show-more {
  opacity: 0;
  position: absolute;
  width: 100%;
  color: #fff;
  border-radius: 5px;
  font-size: 20px;
  z-index: 4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s;
}
.show-more a {
  padding: 10px;
  font-size: 21px;
  max-width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
}

input.number-to-text::-webkit-outer-spin-button,
input.number-to-text::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number].number-to-text {
    -moz-appearance: textfield;
    appearance: textfield;
}



.picture-holder:hover .show-more {
  opacity: 1;
}

.picture-cell {
  max-height: 500px;
  max-width: 100%;
}

.first {
  grid-column: 1 / 2;
}

.third {
  grid-column: 2 / 3;
}

.fourth {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.fifth {
  grid-column: 1 / 2;
}

.seventh {
  grid-column: 2 / 3;
}

.eighth {
  grid-column: 1 / 2;
  grid-row: 4 / 5;
}

.text-cell h3 {
  margin-bottom: 30px;
}

.text-cell p {
  margin-bottom: 50px;
}

.text-cell a {
  padding: 8px 15px;
  background-color: #c02323;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s;
}

.text-cell a:hover {
  background-color: #960202;
}

footer {
  background-image: linear-gradient(
    90deg,
    #860007,
    #bb0000 20%,
    #bd0101 50%,
    #bb0000 80%,
    #860007
  );
  background-size: cover;
  background-position: left;
  position: relative;
  padding: 50px 0;
  color: #fff;
}

footer h5 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  position: relative;
  margin-left: 20px;
  text-align: left;
}

footer a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  position: relative;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ffcccc;
  text-decoration: underline;
}

footer li a[href^="tel:"] {
  color: #fff;
  text-decoration: none;
}

footer li a[href^="tel:"]:hover {
  color: #ffcccc;
  text-decoration: underline;
}

footer li a[href*="google.com/maps"] {
  color: #fff;
  text-decoration: none;
}

footer li a[href*="google.com/maps"]:hover {
  color: #ffcccc;
  text-decoration: underline;
}

footer li {
  list-style: none;
  box-sizing: content-box;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.6;
}

footer ul {
  padding: 0;
  margin: 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  position: relative;
  padding: 0 20px;
  gap: 30px;
  align-items: start;
}

footer input {
  border: none;
  border-radius: 3px;
  padding: 8px 12px;
  margin-bottom: 15px;
  margin-right: 0;
  color: #c02323;
  width: 100%;
  box-sizing: border-box;
}

footer .form-wrapper button {
  color: #fff;  
  background-color: transparent;
  border: 1px solid #fff;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.15s ease-in;
  width: 100%;
  cursor: pointer;
  font-size: 14px;
}

footer .form-wrapper button:hover {
  background-color: #ffffff;
  color: #7a0000;
}

footer input::placeholder {
  color: #7a000094;
}

footer .overlay {
  background-color: rgba(255, 255, 255, 0.774);
  display: none;
}

footer {
  background-image: linear-gradient(
    90deg,
    #860007,
    #bb0000 20%,
    #bd0101 50%,
    #bb0000 80%,
    #860007
  );
  background-size: cover;
  background-position: left;
  position: relative;
  padding: 50px 0;
  color: #fff;
}

.submit {
    margin-bottom: 20px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  align-items: stretch;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.burger:focus {
  outline: none;
}

.burger span {
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
  position: absolute;
  left: 0;
}

.burger span:nth-child(1) {
  top: 0;
}

.burger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.burger span:nth-child(3) {
  bottom: 0;
}

.burger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%);
}

.burger.active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 80px 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  pointer-events: none;
}

.mobile-menu.active {
  pointer-events: auto;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  display: flex !important;
  pointer-events: auto;
}

.mobile-link {
  text-decoration: none;
  color: #333;
  font-size: 24px;
  font-weight: 500;
  padding: 10px 20px;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 20px;
  width: 0;
  height: 2px;
  background-color: #c02323;
  transition: width 0.3s ease;
}

.mobile-link:hover {
  color: #c02323;
  transform: translateX(10px);
}

.mobile-link:hover::after {
  width: calc(100% - 40px);
}

@media (max-width: 480px) {
  .mobile-link {
    font-size: 20px;
    padding: 8px 15px;
  }

  .logo-img {
    height: 35px;
    max-width: 100px;
  }

  .navbar.scrolled .logo-img {
    height: 35px;
  }

  .nav-container {
    padding: 0 10px;
  }

  .navbar {
    background-color: transparent;
    padding: 12px 0;
  }
  
  .navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
  }
  
  .nav-logo {
    position: relative;
    left: auto;
    transform: none;
  }
}

/* Duplicate removed - using styles from line 766 */

.red-num {
    color: #A30102;
    font-size: 1.2rem;
}

.button-start-div{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.minimal-space {
 margin-left: 1px;
}

.start {
  transition: all 0.2s;
}

.start:hover {
  background-color: #960202;
}

.unstyled {
  text-decoration: none;
  color: #fff;
}

.legal-h1 {
  margin-bottom: 10px;
}

.privacy-label {
  font-size: 13px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  line-height: 1.4;
}

.privacy-label a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.privacy-label a:hover {
  color: #c02323;
}

.privacy-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #c02323;
  cursor: pointer;
}

.kontaktieren {
  font-size: 20px;
  letter-spacing: 0.085rem;
}


@media (max-width: 1260px) {

  .first-wrapper{
    margin: 0 80px
  }

  .project-grid {
        column-gap: 0px;
  }

  .text-cell {
      max-height: 400px;
      padding: 0 30px;
  }
  .picture-holder {
      max-height: 438px;
      max-width: 350px;
      overflow: hidden;
  }

  .picture-holder img {
      max-height: 450px;
      max-width: 350px;
      width: 100%;
      height: 100%;
      object-fit: cover;
  }


  .footer-grid {
      padding: 0 20px;
      gap: 25px;
  }

  footer h5 {
    font-size: 28px;
  }

  footer .cell {
    margin-bottom: 15px;
  }

  }

@media (max-width: 902px) {

  .first {
    grid-column: auto;
  } 

  .third {
    grid-column: auto;
  } 

  .fourth {
    grid-column: auto;
    grid-row: auto;
  } 

  .fifth {
    grid-column: auto;
  } 

  .seventh {
    grid-column: auto;
  } 

  .eighth {
    grid-column: auto;
    grid-row: auto;
  }
  

  .grid {
    grid-template-columns: 1fr;
  }
  .project-grid {
    grid-template-columns: 1fr;
    column-gap: 50px;
    row-gap: 80px;
  }
  .cellFullW {
    display: block;
    margin: 0 auto;
  }

  .third-section .red-line {
    display: none;
  }

  .cellFullW p {
    margin: 0;
  }

  .third-section .row {
    height: auto;
  }

  .third-section .form-wrapper {
    width: 80%;
    padding: 20px;
  }

  .third-section .flexWrapper h4 {
    font-size: 22px;
    margin: 8px 0;
    line-height: 1.3;
  }

  .third-section .text-wrapper {
    width: 100%;
  }

   .first-wrapper {
    max-width: 100%;
  }

  .main-section h1 {
    font-size: 42px;
    line-height: 1.3;
  }

  .third-section {
    padding: 20px;
    padding-top: 30px;
  }

  .text-wrapper {
    padding-bottom: 20px;
    text-align: center;
  }

  .third-section .text-wrapper h3 {
    font-size: 3rem;
    letter-spacing: 0.2rem;
    line-height: 1.3;
  }


  

}

@media (max-width: 968px) {
  .nav-left,
  .nav-right {
    display: none;
  }

  .burger {
    display: flex !important;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
  }

  .nav-logo {
    position: relative;
    left: auto;
    transform: none;
    z-index: 10;
    pointer-events: auto;
  }

  .logo-img {
    height: 45px;
  }

  .mobile-menu {
    display: flex !important;
  }

  .navbar.menu-active {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
  }

  .nav-container {
    position: relative;
  }

  
  .navbar {
    padding: 12px 0;
    background-color: transparent !important;
  }
  
  .navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
  }
  
  .nav-container {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 0;
    background-color: transparent !important;
    box-shadow: none !important;
  }
  
  .navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
  }
  
  .navbar:not(.scrolled) {
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .nav-container {
    padding: 0 15px;
  }

  .logo-img {
    height: 40px;
    max-width: 120px;
  }

  .navbar.scrolled .logo-img {
    height: 40px;
  }

  .burger {
    width: 28px;
    height: 20px;
  }

  .nav-logo {
    position: relative;
    left: auto;
    transform: none;
  }

  .third-section .grid {
    grid-template-columns: 1fr;
  }

  html,
  body {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: scroll;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Add padding to body when navbar is fixed */

  @media (max-width: 768px) {
   

  .navbar.menu-active {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  }

  .main-section p {
    font-size: 16px;
  }

  .third-section .text-wrapper h3 {
    font-size: 2.5rem;
    letter-spacing: 0.15rem;
    line-height: 1.3;
  }

  .button {
    margin-right: 0px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    justify-items: center;
    text-align: center;
  }

  .form-wrapper {
    margin-top: 10px;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 400px;
  }

  footer h5 {
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
    margin-left: 0;
  }

  footer .cell {
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  footer ul {
    margin-bottom: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  footer .cell ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  
  footer .cell ul li {
    text-align: center;
    width: 100%;
    margin-bottom: 5px;
  }
  
  footer .cell strong {
    display: block;
    text-align: center;
    margin-bottom: 3px;
  }

  .third-section .form-wrapper {
    width: 70%;
    margin: auto;
  }


  .third-section .flexWrapper h4 {
    font-size: 20px;
    margin: 5px 0;
  }


   .privacy-label {
    justify-content: center;
    font-size: 12px;
  }

  .privacy-label a {
    color: #fff;
  }
  
}
@media (max-width: 605px) {
  footer {
    padding: 40px 0;
  }

  footer h5 {
    font-size: 24px;
    margin-left: 0;
    margin-bottom: 12px;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 20px;
    justify-items: center;
    text-align: center;
  }

  footer .cell {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  footer .cell ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
  }

  footer ul li {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  footer .cell strong {
    display: block;
    text-align: center;
    margin: 0 auto 2px;
  }
  
  footer .cell a {
    text-align: center;
    margin: 0 auto;
  }

  footer input {
    width: 100%;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 10px 12px;
    font-size: 14px;
  }

  footer .form-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  footer .form-wrapper button {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    margin: 0 auto;
  }
  
  footer .form-wrapper input {
    text-align: center;
  }
  
  footer .privacy-note {
    text-align: center;
    margin: 6px auto 0;

  }
  
  footer .kontaktieren {
    text-align: center;
  
  }

  .privacy-note {

    margin-top: 8px;
    line-height: 1.5;
    text-align: center;
  }

  .kontaktieren {
    font-size: 16px;

    text-align: center;
  }
}

@media (max-width: 430px) {

  .main-section {
    background-attachment: scroll; 
    background-position: -195% -100%;
  }

  .main-section .overlay{
    background-color: rgba(0, 0, 0, 0.15);
  }

  .first-wrapper{
    margin: 0 auto;
    max-width: 80%;
  }

  .main-section h1 {
    font-size: 28px;
    line-height: 1.4;
  }

  .picture-holder {
      max-height: 312.5px;
      max-width: 250px;
      overflow: hidden;
  }

  .picture-holder img {
      max-height: 350px;
      max-width: 250px;
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

  .third-section .form-wrapper {
    width: 100%;
    margin: auto;
  }


  .third-section .flexWrapper h4 {
    font-size: 18px;
    margin: 5px 0;
  }

  .third-section .text-wrapper h3 {
    font-size: 2rem;
    letter-spacing: 0.1rem;
    line-height: 1.4;
  }
  }

  .neki-holder {
    margin: 0 auto;
    width: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
  }

/* =========================================================
   PRINT STYLES
   ========================================================= */
@media print {
  /* Set page margins first */
  @page {
    margin: 1.5cm;
    size: A4;
  }

  /* Prevent empty pages */
  @page :blank {
    display: none;
  }

  /* Reset body for print */
  html,
  body {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: white !important;
    color: #000 !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }

  /* Fix fixed positioning elements */
  .navbar,
  header,
  nav {
    position: static !important;
    display: none !important;
    visibility: hidden !important;
  }

  /* Hide interactive and navigation elements */
  .burger,
  .desktop,
  footer,
  .form-wrapper,
  form,
  button,
  .button,
  .submit,
  .popup-overlay,
  .popup-content,
  .img-overlay,
  .show-more,
  .arrow-btn,
  #close-popup,
  .gallery-return,
  .return-btn {
    display: none !important;
    visibility: hidden !important;
  }

  /* Remove all pseudo-elements with backgrounds */
  body::before,
  body::after,
  .overlay,
  .main-section::before,
  .main-section::after,
  body.placeholder-background::before,
  *::before,
  *::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
  }

  /* Remove background images and colors */
  .main-section,
  .descriptive-section,
  footer,
  body.placeholder-background,
  section,
  div {
    background-image: none !important;
    background-color: transparent !important;
    background: white !important;
  }

  /* Fix all positioned elements */
  .navbar,
  .overlay,
  .popup-overlay,
  .popup-content,
  .img-overlay,
  .show-more {
    position: static !important;
    float: none !important;
  }

  /* Make text readable - black on white */
  body,
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  li,
  span,
  div,
  .text-wrapper,
  .cell,
  .cellFullW {
    color: #000 !important;
    background: transparent !important;
    background-color: transparent !important;
  }

  /* Ensure images print properly - allow breaking if too large */
  img,
  .picture,
  .img-item {
    max-width: 100% !important;
    max-height: 20cm !important;
    width: auto !important;
    height: auto !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
    display: block !important;
    object-fit: contain !important;
  }

  /* Only avoid breaking small images */
  img[height],
  .picture[height] {
    max-height: 15cm !important;
  }

  /* Remove all visual effects */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Allow page breaks in sections - prevent only on small elements */
  section,
  .my-container,
  .third-section,
  .main-section,
  .descriptive-section {
    page-break-inside: auto !important;
    break-inside: auto !important;
    position: relative !important;
    overflow: visible !important;
    min-height: auto !important;
    height: auto !important;
  }

  /* Only prevent breaking on small content blocks */
  .text-cell,
  .picture-cell,
  .cell,
  .wrapper {
    page-break-inside: avoid;
    break-inside: avoid;
    max-height: 25cm !important;
  }

  /* Allow project grid to break */
  .project-grid {
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  /* Fix containers - allow breaking */
  .my-container,
  .third-section,
  section,
  main {
    margin: 0 !important;
    padding: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
  }

  /* Hide decorative elements */
  .red-line,
  .overlay {
    display: none !important;
    visibility: hidden !important;
  }

  /* Ensure links are visible */
  a {
    color: #000 !important;
    text-decoration: underline !important;
  }

  /* Print URLs for external links only */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  /* Fix grid layouts for print - allow breaking */
  .grid,
  .project-grid,
  .footer-grid,
  .picture-grid {
    display: block !important;
    grid-template-columns: none !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  .grid > *,
  .project-grid > *,
  .footer-grid > *,
  .picture-grid > * {
    display: block !important;
    margin-bottom: 15px !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
    max-height: 20cm !important;
  }

  /* Only prevent breaking on very small elements */
  .grid > *:not(.picture-cell):not(.text-cell),
  .project-grid > *:not(.picture-cell):not(.text-cell) {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Fix flex layouts */
  .flexWrapper,
  .button-start-div,
  .cellFullW {
    display: block !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  /* Ensure proper spacing - allow breaking paragraphs */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
    margin-top: 1em;
    margin-bottom: 0.5em;
  }

  p {
    margin: 0.5em 0;
    orphans: 2;
    widows: 2;
    page-break-inside: auto;
  }

  /* Prevent orphans and widows */
  p, li {
    orphans: 2;
    widows: 2;
  }

  /* Remove empty space from hidden elements */
  header:empty,
  nav:empty,
  footer:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Prevent page breaks that create empty pages */
  section:first-child {
    page-break-before: auto;
  }

  section:last-child {
    page-break-after: auto;
  }

  /* Ensure no element creates excessive height */
  .main-section {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
  }

  /* Fix any 100vh heights */
  * {
    min-height: auto !important;
  }

  body,
  html {
    min-height: auto !important;
    height: auto !important;
  }
}
}