:root {
  --red: #B3001B;
  --dark: #262626;
  --blue: #255C99;
  --white: #FCF7FF;
  --gray: #f1edf3;
  --brand: var(--red);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100svh;
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  position: relative;
  line-height: 1.5;
}

main {
  margin: auto;
  width: 90vw;
}

.bg-blur {
  position: fixed;
  inset: 0;
  z-index: -2;       
  overflow: hidden;  
}

.bg-cover {
  position: absolute;
  inset: -10px;  
  background: url('/images/unoptimized/Favourite_BG.jpg') center/cover no-repeat;
  filter: blur(0px);  
  transform: scale(1.05); 
}

.bg-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .25);
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--white);
  border-bottom: 6px solid var(--brand);
  text-align: center;
  overflow: hidden;
  width: 100vw;
  height: px;
  margin: 0 auto;
}

.logo {
  width: clamp(300px, 25vw, 125px);
  height: auto;
  display: block;
  margin: 2px;
  margin-left: 25px;
}

.header-bg-shapes {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  margin-left: 500px;
}

.header-bg-shapes::before,
.header-bg-shapes::after {
  content: "";
  display: block;
  width: 25vw;
  height: 100%;
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%);
}

.header-bg-shapes::before {
  background-color: var(--red);
}

.header-bg-shapes::after {
  background-color: var(--blue);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.intro {
  background: var(--gray);
  padding: 2rem;
  border-radius: 16px;
  max-width: 800px;
  border-right: 5px solid var(--red);
  border-bottom: 5px solid var(--red);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.intro-logo {
  width: clamp(80px, 15vw, 120px);
  display: block;
  margin-bottom: 1rem;
}

.intro h2 {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--red);
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.intro-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-items: end;
}

.intro-links a {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease;
}

.intro-links a:hover {
  background: var(--red);
}

.cards {
  display: flex;
  flex-direction: column;
  align-items:flex-end;
  width: 100%;
  gap: 2rem;
  padding: 2rem 2rem 4rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--white);
  color: #000;
  padding: 1rem;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 1rem;
  height: 95%;
}

.card h2, .cardbuttons h2{
  color: var(--blue);
  margin-bottom: .75rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.card p {
  line-height: 1.6;
  font-size: clamp(1rem, 1.1vw, 1.4rem);
}

.options {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 80vw;
  margin: 0 auto;
  justify-content: center;
}

.options div{
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--gray);
  border-right: 5px solid var(--white);
  border-bottom: 5px solid var(--white);
  border-radius: 8px;
  font-weight: bold;
  height: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.options div > h2 {
  font-size: 1.5rem;
}

.info-cards {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-evenly;
  gap: 2rem;
}

.info-cards > div {
  flex: 1 1 900px;
}

.diensten-list {
  list-style: none;         
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;       
}

.diensten-list li {
  position: relative;
  padding-left: 1.5rem;      
  font-size: clamp(1.2rem, 1.1vw, 1.4rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

.diensten-list li::before {
  content: "•";              
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);  
  font-size: 1.5rem;
  line-height: 1;
}

.diensten-list li p {
  margin-top: 0.25rem;
  margin-left: 0.25rem;
  font-size: 1.3rem;
  font-weight: 400;
  color: #555;
}

.cardbuttons {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 1rem ;
  margin-top: 1rem;
  width: 100%;
  height: 100%;
}

.cardbuttons div {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--gray);
  color: black;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 1rem;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: start;
}

.cardbuttons div p {
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

.activecard {
  opacity: 1;
  visibility: visible;
  position: relative; 
  z-index: 2;
}

.inactivecard {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

.project-container {
  aspect-ratio: 16 / 9;
  position: relative;
  height: 30vw;
  overflow: hidden;
  border-right: 5px solid var(--red);
  border-bottom: 5px solid var(--red);
  border-radius: 16px;
  margin-top: 12px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  flex: 1 1 450px;
}

.project {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  background: transparent;
}

.project.active {
  opacity: 1;
  visibility: visible;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease;
  transition: transform .2s ease;
  border: none;
  z-index: 5;
}

.arrow-left {
  left: 16px;
}

.arrow-right {
  right: 16px;
}

.arrow:hover {
  background: var(--red);
  transform: translateY(-50%) scale(1.1);
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 6;
}

.dot {
  height: 12px;
  width: 12px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: background-color .2s ease, transform .2s ease;
}

.dot.active {
  background: var(--brand);
  transform: scale(1.2);
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--white);
  color: var(--dark);
  border-top: 6px solid var(--brand);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-footer a {
  color: var(--red);
  text-decoration: none;
  font-weight: bold;
}

.site-footer a:hover {
  text-decoration: underline;
}

.lighthouse {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  padding: 2rem;
}

.lighthouse.hidden {
  display: none;
}

.lighthouse img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
}

.lighthouse-title {
  color: white;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  margin-top: 2rem;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Arial Black', sans-serif;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.lighthouse .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 0.2em 0.5em;
  line-height: 1;
  transition: background 0.3s ease;
}

.lighthouse .close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.contact {
  margin: 2rem auto 3rem;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.contact-card, .success-message {
  background: var(--gray);
  color: var(--dark);
  width: 100%;
  border-radius: 16px;
  padding: clamp(1rem, 2.5vw, 2rem);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  border-right: 5px solid var(--blue);
  border-bottom: 5px solid var(--blue);
}

.contact-card h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 1rem;
  color: var(--blue);
}

.contact-form {
  margin-top: .5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-weight: 700;
  margin-bottom: .35rem;
}

.form-field input,
.form-field textarea {
  appearance: none;
  border: 1px solid #d7d3da;
  border-radius: 10px;
  background: #fff;
  color: #000;
  padding: .8rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.form-field textarea { resize: vertical; }

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent);
}

.form-field input:invalid,
.form-field textarea:invalid {
  border-color: color-mix(in srgb, var(--red) 70%, #d7d3da);
}

.contact-submit {
  margin-top: 1rem;
  display: inline-block;
  padding: .9rem 1.4rem;
  font-weight: 800;
  letter-spacing: .02em;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.contact-submit:hover { filter: brightness(1.05); }

.contact-submit:active { transform: translateY(1px); }

.g-recaptcha{
  margin-top:1rem;
}

@media (max-width: 980px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .form-grid { grid-template-columns: 1fr; }
}

main, .options, .contact {
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
}

h1, h2, h3, p {
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 3vw, 4rem);
}

h2 {
  font-size: clamp(1.5rem, 2vw, 3rem);
}

p {
  font-size: clamp(1rem, 1.1vw, 1.4rem);
}

.hero {
  padding: 2rem;
  width: 100%;
}

.intro-logo {
  width: clamp(80px, 12vw, 220px);
}

.intro h2 {
  font-size: clamp(1.3rem, 1.8vw, 2rem);
}

.intro p {
  max-width: 90ch;
  margin: 0 auto;
}

.project img {
  object-fit: cover;
}

.options {
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
}

.options > div {
  flex: 1 1 45%;
  min-width: 320px;
  max-width: 800px;
}

.cardbuttons div {
  font-size: clamp(0.9rem, 1vw, 1.2rem);
}

.contact-card {
  font-size: clamp(1rem, 1.1vw, 1.4rem);
}

@media (min-width: 2560px) {
  main, .options, .contact { max-width: 2200px; }
  body { font-size: 1.05rem; }
  h1 { font-size: 4.5rem; }
  h2 { font-size: 3rem; }
}

@media (min-width: 3840px) {
  main, .options, .contact { max-width: 2600px; }
  body { font-size: 1.15rem; }
  h1 { font-size: 5rem; }
  h2 { font-size: 3.5rem; }
  .intro-logo { width: 300px; }
}

@media (max-width: 1280px) {
  .hero {
    flex-direction: column;
    align-items: center;
  }

  .intro p{
    font-size: 1.1rem;
  }

  .intro h2{
    font-size: 1.4rem;
  }

  .intro-links {
    justify-content: center;
  }

  .intro a{
    font-size: 0.9rem;
  }

  .project-container {
    height: 45vw;
  }
}

@media (max-width: 768px) {
  .site-header {
    text-align: left;
    padding: 0.5rem 1rem;
  }

  .logo {
    width: 60%;
    margin: 0 auto;
  }

  .header-bg-shapes {
    display: none;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    height: auto;
    flex-wrap: wrap;
  }

  .intro {
    padding: 1rem;
    max-width: 100%;
    border-right: none;
    border-bottom: 4px solid var(--red);
    border-right: 4px solid var(--red);
  }

  .intro h2,
  .intro p {
    font-size: 1.1rem;
  }

  .intro-links {
    justify-content: center;
  }

  .intro a {
    font-size: 0.9rem;
    padding: 0.6rem .5rem;
  }

  .options {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    padding-top: 0;
    gap: 1.5rem;
  }

  .options > div {
    width: 100%;
    max-width: 100%;
    border-bottom: 4px solid var(--white);
    border-right: 4px solid var(--white);
  }

  .cardbuttons,
  .card {
    padding: 1rem;
  }

  .cardbuttons div,
  .diensten-list li {
    font-size: 1rem;
  }

  .diensten-list li p {
    font-size: 0.9rem;
  }
  
  .info-cards {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .info-cards > div {
    flex: 1 1 100%;
  }

  .projects {
    width: 100%;
    padding-top: 1rem;
  }

  .project-container {
    aspect-ratio: 16 / 9;
    height: 100%;
    max-height: 45vw;
  }

  .arrow {
    font-size: 2rem;
    width: 36px;
    height: 36px;
  }

  .dots {
    bottom: 8px;
    gap: 8px;
    scale: 0.7;
  }

  .contact {
    padding: 1rem;
  }

  .contact-card {
    padding: 1rem;
    border-right: none;
    border-bottom: 4px solid var(--blue);
    border-right: 4px solid var(--blue);
  }

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

  .site-footer {
    font-size: 0.85rem;
    padding: 1rem;
  }
}
