.error { color: red; margin-top: 10px; }

:root{
  --light-blue: rgb(173, 216, 230);
  --blue: #0170BB;
  --darker-blue: #005E93;
  --dark-grey: #616161;
  --darker-grey: rgb(59, 59, 59);
  --light-purple: #efeef7;
  --bg:#ffffff;
  --card-shadow: 0 0px 28px rgba(79,58,108,0.25);
  --soft-shadow: 0 6px 18px rgba(79,58,108,0.06);
  --radius-lg:18px;
  --radius-xl:22px;
}

html,body{
  height:100%;
  margin:0;
  font-family: "Open Sans", sans-serif;
  background:var(--bg);
  color: #222;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x: hidden;
}

/* wrap van pagina */
.wrap{
  max-width:1300px;
  margin:0px auto 0px;
  padding: 30px 36px;
  box-sizing:border-box;
}

/* TOP: titel & spraakwolkje */
.top{
  display:grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap:20px;
  align-items:start;
  margin-bottom:130px;
  flex-wrap: wrap;    
}

/* titel */
.hero{
  display: flex;
  align-items: flex;
}

.title{
  margin:6px 0 0px 0;
  color:var(--blue);
  font-family: "Exo", sans-serif;
  font-weight:600;
  font-size:56px;
  line-height:1.2;
  letter-spacing:0.8px;
}

.groot-imis-logo {
  width: 200px;
  height: auto;
}

/* BLAUW SPREEKWOLKJE */
.speech-bubble {
  width: 210px;               
  height: 180px; 
  min-width: 160px;
  min-height: 160px;            
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;            
  align-items: center;      
  justify-content: center;   
  text-align: center;       
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  padding: 30px;
  position: relative;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* staartje linksboven → wijst naar titel */
.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 35%;      /* midden */
  transform: translateX(-50%) rotate(-10deg);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 20px solid var(--blue);
}

/* overlay van video & bijsluiter */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.overlay.active {
  display: flex;
}

.overlay-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 360px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  font-family: "Open Sans", sans-serif;
}

.overlay-content h3 {
  font-family: "Exo", sans-serif;
  color: var(--blue);
  margin-top: 0;
}

.overlay-content label {
  display: block;
  margin-top: 20px;
  margin-bottom: 6px;
  font-weight: 600;
}

.overlay-content select {
  width: 90%;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #EEE6F7;
  font-family: "Open Sans", sans-serif;
  margin-bottom: 10px;
}

.blue-button {
  padding:10px 20px;
  margin-bottom: 20px;
  border-radius: 20px;
  background-color: var(--blue);
  color: white;
  font-family: "Exo", sans-serif;
  box-shadow: 0 0px 5px rgba(0, 0, 0, 0.27);
}

.blue-button:hover {
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.27);
  background-color: var(--darker-blue);
}

/* taalbuttons rechtsboven */
.language-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
}

.language-switcher ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  text-align: right;
  justify-content: flex-end;
}

.language-switcher a {
  text-decoration: none;
  color: var(--dark-grey);
  font-weight: bold;
  font-size: 18px;
  padding: 20px;
  display: inline-block;
  transition: background-color 0.3s, color 0.3s;
  border-bottom: 2px solid transparent; /* standaard geen zichtbare lijn */
}

.language-switcher a.active {
  background-color: var(--blue);
  color: white;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.27);
  cursor: default;
}

.language-switcher a.unactive:hover {
  color: var(--darker-grey);
  background-color: rgba(173, 216, 230, 0.6);
  transition: background-color 0.3s, color 0.3s;
  border-bottom: 2px solid var(--blue);
}

/* ---------- VIDEO ---------- */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--blue);
  cursor: pointer;
}

.close-btn:hover {
  color: var(--darker-blue);
  text-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ------------------- ronde buttons ------------------- */
.icon-btn{
  display:flex;
  width:44px;
  height:44px;
  border-radius:50%;
  align-items:center;
  justify-content:center;
  background:transparent;
  border: none;
  text-decoration:none;
  color:var(--blue);
  box-shadow:none;
  transition: all .2s ease;
  outline: none;
}

/* schaduw icon button in stuk 'voor patiënten' */
.icon-background{
    background:white;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.25);
}

.icon-btn svg{
  width:20px;
  height:20px;
  display:block;
}

.patient-card:hover .icon-background {
  box-shadow: 0 0 18px rgba(0,0,0,0.45);
}

.patient-card .icon-group{
  display:flex;
  margin: 10px 30px;
  gap:10px;
  align-items:center;
}

/* Inbrija hand afbeelding */
.image-cell {
  background-color: var(--light-blue);
  position: relative;
  overflow: visible;
  min-height: 174px;
}

.floating-image {
  position: absolute;
  left: 0px; 
  bottom: 0px;
  width: 250px;
  height: auto;
  max-width: none;
  pointer-events: none;
  z-index: 10;
  transform: rotate(60deg) scaleX(-1);
}

/* afbeelding IMIS-inhalatie helemaal rechts */
.zoomed-picture {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
  display: block;
}

.inhalator {
  height:220%;
  width: auto;
  display: block;
  position: absolute;
  transform: translate(-50%, -50%); /* centrum exact */
  top: 50%;
  left: 50%;
}

/* IMIS kaart als positioneer-anker voor het imis logo in de foto */
.imis-card {
  position: relative;
  overflow: hidden;
}

/* Klein logo rechtsonder in IMIS foto */
.imis-logo {
  position: absolute;
  left: 20px;
  bottom: 15px;
  width: 100px;
  height: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transition: transform 0.3s ease;
  will-change: transform; 
}

.imis-card:hover .imis-logo {
  transform: scale(1.2);
}

/* Kaartjes kleuren */
.card-blue {
  background: var(--blue) !important;
  color: #fff !important;
}

.card-lightblue {
  background: var(--light-blue) !important;
  color: var(--blue) !important;
  font-weight:700;
}

.card-darkblue {
  background: var(--dark-blue) !important;
  color: white !important;
}

.card-darkerblue {
  background: var(--darker-blue) !important;
  color: white !important;
}

/* Zorg dat de hover op de hele card werkt */
.patient-card,  .patient-cardvideo  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:22px 30px;
  min-height: 130px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.patient-cardvideo {
  cursor: default !important;
}

.patient-card .label{
  font-family:"Open Sans", sans-serif;
  font-weight:700;
  font-size:24px;
  text-align: left;
}

.patient-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.patient-card:hover::before {
  opacity: 1;
}

/* Hover op de hele card */
.patient-card:hover {
  box-shadow: 0 0px 30px rgba(0,0,0,0.27);
}

.patient-card:hover .icon-btn {
  transform: scale(1.2);
}

.video-options {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* patient-grid: 4 kolommen in 1 rij */
.patient-grid{
  display:grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap:0;
  grid-auto-rows: 160px;
}

/* fullscreen video */
#fullscreenVideoPlayer {
  z-index: 3000;
  pointer-events: auto;
  max-width: 90%;
  max-height: 90%;
}

#fullscreenVideoOverlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
}

.fullscreen-video-wrapper {
  position: fixed;       /* zorg dat hij over het hele scherm ligt */
  top: 0;
  left: 0;
  width: 100vw;          /* volledige breedte */
  height: 100vh;         /* volledige hoogte */
  display: flex;
  justify-content: center; /* video horizontaal centreren */
  align-items: center;     /* video verticaal centreren */
  margin: 0;               /* geen marges */
  padding: 0;              /* geen padding */
  box-sizing: border-box;  /* zodat padding geen extra ruimte geeft */
  z-index: 1001;           /* boven overlay-backdrop */
}

.fullscreen-video-wrapper video {
  max-width: 100%;    /* past zich aan de container aan */
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0;           /* voorkom extra ruimte rondom */
}

/* ---------- FOOTER ---------- */
.footer {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}
.footer .center {
  font-size: 10px;
  font-family: "Open Sans", sans-serif;
  font-weight: 500px;
  text-align: left;
  color: var(--blue);
  line-height: 1.4;
}

.footer .logo.merz {
  max-height: 40px;
}

.footer .logo.INBRIJA {
  max-height: 70px;
}

/* responsive maken van de website */
@media (min-width:1600px){
  .wrap {
    max-width: 1500px;
  }
}

@media (max-width:1100px){
  .patient-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  .footer .logo.merz {
    max-height: 30px;
  }
  .footer .logo.inbrija {
    max-height: 40px;
  }
  .patient-card, .patient-cardvideo{
    min-height: 60px;
    padding: 20px;
  }
  .patient-card .label{
    font-size: 22px;
  }
}
/* Responsive: kaarten onder elkaar */
@media (max-width:660px){
  .top{
    grid-template-columns: 1fr;
  }  
  .patient-grid{
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

}

@media (max-width:480px){
  .title {
    font-size: 40px;
    line-height:1.1;
  }
  .language-switcher a {
    padding: 20px;
  }
  .language-switcher {
    display: flex;
    flex-direction: column; 
  }
  .language-switcher ul {
    margin: 20px 0px;
  }
}
