:root {
  --goud: #d4af37;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 10px;
  background: #2a2a2a;
  color: #e8e8e8;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* 3D PASSWORD LOCK - CLEAN */
.password-lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #2a2a2a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.password-lock-container {
  background: #303030;
  border: 1px solid var(--goud);
  border-radius: 6px;
  padding: 40px;
  max-width: 400px;
  width: 95%;
  box-shadow: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.password-lock-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: none;
}

.lock-header {
  text-align: center;
  margin-bottom: 30px;
}

.lock-header h2 {
  margin: 0 0 8px 0;
  font-size: 1.3rem;
  color: var(--goud);
  letter-spacing: 0;
}

.lock-header p {
  margin: 0;
  font-size: 0.95rem;
  color: #aaa;
  font-weight: 300;
}

/* SHAKE ANIMATION */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
  20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.password-lock-container.shake {
  animation: shake 0.5s ease-in-out;
}

.password-display {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.password-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 2px solid #d4af37;
  border-radius: 8px;
  padding: 16px 24px;
  height: 60px;
  margin: 0;
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(212, 175, 55, 0.2);
}

.digit-display {
  font-family: 'Courier New', monospace;
  font-size: 2.5rem;
  font-weight: bold;
  color: #d4af37;
  text-shadow: 
    0 0 10px rgba(212, 175, 55, 0.8),
    0 0 20px rgba(212, 175, 55, 0.4);
  min-width: 30px;
  text-align: center;
  animation: digitGlow 2s ease-in-out infinite;
}

@keyframes digitGlow {
  0%, 100% { 
    opacity: 1;
    text-shadow: 
      0 0 10px rgba(212, 175, 55, 0.8),
      0 0 20px rgba(212, 175, 55, 0.4);
  }
  50% { 
    opacity: 0.9;
    text-shadow: 
      0 0 15px rgba(212, 175, 55, 1),
      0 0 30px rgba(212, 175, 55, 0.6);
  }
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 65px);
  gap: 4px;
  margin-bottom: 25px;
}

.key {
  width: 65px;
  height: 65px;
  border: 1px solid var(--goud);
  background: #303030;
  color: var(--goud);
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

.key:hover {
  background: #3a3a3a;
}

.key:active {
  transform: none;
}

.delete-key {
  font-size: 1rem;
  display: none;
  width: 50px;
  height: 50px;
  position: absolute;
  right: calc(50% - 170px);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin: 0;
}

.delete-key.show {
  display: flex;
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.enter-key {
  grid-column: 2 / 4;
  width: auto;
  background: #303030;
  border-color: var(--goud);
  border: 1px solid var(--goud);
  color: var(--goud);
  font-weight: bold;
  border-radius: 4px;
  font-size: 1rem;
  padding: 0 10px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enter-key:hover {
  background: #404040;
}

.lock-message {
  text-align: center;
  font-size: 0.95rem;
  font-weight: bold;
  min-height: 24px;
  letter-spacing: 0.5px;
}


.offerte-wrapper {
  max-width: 90%;
  margin: 0 auto;
  padding: 12mm;
  background: #303030;
  border-radius: 4px;
  box-shadow: none;
  page-break-after: auto;
  page-break-inside: avoid;
  break-inside: avoid;
  overflow: visible;
}

.offerte-wrapper * {
  max-width: 100%;
  page-break-inside: avoid;
  break-inside: avoid;
  overflow: visible;
}

/* TITELS */
h2, h3 {
  color: var(--goud);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* HEADER */
/* Header styles verwijderd - zie inline styles in HTML */

.elegant-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.4) 50%, transparent 100%);
}

nav { 
  display: flex; 
  gap: 25px; 
  flex: 1;
  align-items: center;
}

nav a { 
  color: var(--goud); 
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.5px;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--goud) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--goud);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

nav a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav a:hover {
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
  letter-spacing: 1px;
}

nav a.active { 
  font-weight: bold;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
  color: #ffd700;
}

nav a.active::before {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--goud) 0%, var(--goud) 100%);
}

/* MOBILE RESPONSIVE STYLING */

/* Tablet */
@media (max-width: 1024px) {
  body {
    padding: 8px;
  }

  .password-lock-container {
    padding: 40px 35px;
    max-width: 90%;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    justify-content: center;
  }

  .header-blok {
    flex-direction: column;
    gap: 15px;
  }

  .bedrijf-info {
    flex-direction: column;
  }

  .bedrijf-box {
    width: 100%;
  }
}

/* Mobiele telefoons */
@media (max-width: 768px) {
  body {
    padding: 5px;
    font-size: 0.9rem;
    overflow-x: hidden;
  }

  .offerte-wrapper {
    padding: 15px;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* PASSWORD LOCK */
  .password-lock-container {
    padding: 35px 25px;
    max-width: 95%;
  }

  .lock-header h2 {
    font-size: 1.3rem;
  }

  .lock-header p {
    font-size: 0.9rem;
  }

  .numpad {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .numpad-button {
    width: 70px;
    height: 70px;
    font-size: 1.3rem;
  }

  /* HEADER */
  .logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }

  .logo-image {
    height: 60px;
  }
  
  .header-blok {
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
  }
  
  nav a {
    font-size: 0.85rem;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.12) 100%);
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
    flex: 1 1 auto;
    min-width: 80px;
    text-align: center;
  }
  
  nav a:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.2) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
  }
  
  nav a.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.3) 100%);
    border-color: var(--goud);
  }

  /* KLANT INFO - Mobiel stack */
  .klant-info {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  /* HEADER BLOK */
  .header-blok {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
  }

  .bedrijf-info {
    flex-direction: column;
    gap: 10px;
  }

  .bedrijf-box {
    width: 100%;
    flex-direction: column;
    padding: 12px;
  }

  .bedrijf-logo {
    align-self: center;
  }

  .bedrijf-logo img {
    height: 50px;
  }

  .bedrijf-tekst {
    text-align: center;
  }

  /* KLANT GEGEVENS */
  .klant-velden {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .klant-veld {
    width: 100% !important;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"] {
    width: 100%;
    font-size: 0.9rem;
    padding: 10px;
  }

  /* CALCULATOR GRID */
  .calculator-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  /* OFFERTE BLOKKEN */
  .offerte-blok {
    padding: 12px;
  }

  .offerte-blok h3 {
    font-size: 1.1rem;
  }

  /* INPUT VELDEN */
  .werk-item {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  .werk-item input,
  .werk-item select {
    width: 100% !important;
    font-size: 0.9rem;
  }

  /* TOTAAL FRAME */
  .totaal-frame {
    padding: 15px;
  }

  .totaal-regel {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .totaal-input {
    width: 100%;
  }

  /* BUTTONS */
  button {
    padding: 14px;
    font-size: 1rem;
  }

  /* FOOTER */
  footer {
    padding: 25px 20px;
    font-size: 0.85rem;
  }
}

/* Kleine mobiele telefoons */
@media (max-width: 480px) {
  body {
    padding: 3px;
    font-size: 0.85rem;
  }

  .password-lock-container {
    padding: 25px 15px;
  }

  .numpad-button {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .logo-image {
    height: 50px;
  }

  nav a {
    font-size: 0.8rem;
    padding: 6px 10px;
    min-width: 70px;
  }

  .offerte-blok {
    padding: 10px;
    margin-bottom: 15px;
  }

  .offerte-blok h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .regel {
    padding: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .prijsblok {
    width: 100%;
    justify-content: space-between;
  }

  .prijsblok input {
    width: 50px !important;
    font-size: 0.9rem;
  }

  input,
  select,
  textarea {
    font-size: 0.85rem !important;
  }

  button {
    padding: 12px;
    font-size: 0.95rem;
  }

  .offerte-footer {
    padding: 15px;
    font-size: 0.65rem;
  }
}

/* MOBILE RESPONSIVE HEADER */
@media (max-width: 700px) {
  nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    justify-content: center;
  }
  
  nav a {
    font-size: 0.85rem;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.12) 100%);
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
  }
  
  nav a:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.2) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
  }
  
  nav a.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.3) 100%);
    border-color: var(--goud);
  }
}

/* HEADER BLOK */
.header-blok { 
  display:flex; 
  justify-content:space-between; 
  gap:30px; 
  margin-bottom:20px; 
  page-break-inside: avoid; 
  break-inside: avoid; 
  overflow: visible; 
}
.bedrijf-info { 
  display:flex; 
  gap:12px; 
  font-size:0.75rem; 
}
.bedrijf-box {
  background: #2a2a2a;
  border: 1px solid #d4af37;
  border-radius: 4px;
  padding: 15px;
  display: flex;
  gap: 15px;
  box-shadow: none;
}
.bedrijf-logo {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.bedrijf-logo img { 
  width:160px; 
  height: 160px;
  border-radius:4px;
  border: 1px solid #d4af37;
  box-shadow: none;
  object-fit: contain;
  background: #0f0f0f;
}
.bedrijf-text {
  flex: 1;
  position: relative;
  z-index: 1;
}
.bedrijf-text h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #d4af37;
  text-shadow: none;
}
.bedrijf-text p {
  margin: 5px 0;
  line-height: 1.4;
  font-size: 0.75rem;
  color: #e0e0e0;
}
.bedrijf-text a {
  color: #d4af37;
  text-decoration: none;
  transition: all 0.2s;
}
.bedrijf-text a:hover {
  text-decoration: underline;
  text-shadow: 0 1px 4px rgba(212,175,55,0.4);
}
.klant-info { 
  display:grid; 
  grid-template-columns:1fr 1fr; 
  gap:8px 12px; 
  background: linear-gradient(120deg, #1a1a1a 60%, #2a2a2a 100%);
  border: 2px solid #d4af37;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.klant-info label { 
  font-size:0.7rem; 
  color: #d4af37;
  font-weight: 600;
}

/* INPUTS */
input, textarea { width:100%; padding:6px; border-radius:6px; border:1px solid #333; background:#151515; color:#f5f5f5; font-size:0.85rem; }
input:focus, textarea:focus { border-color: var(--goud); }

/* WERKZAAMHEDEN */
.regel { padding:10px; background:#111; border-radius:8px; border:1px solid #222; margin-bottom:8px; page-break-inside: avoid; break-inside: avoid; overflow: visible; }
.regel-header { display:grid; grid-template-columns:18px 1fr; gap:8px; margin-bottom:8px; font-size:0.9rem; }
.optie { cursor:pointer; }
.optie.gestreept { text-decoration:line-through; opacity:0.5; }
.prijsblok { display:flex; gap:8px; font-size:0.85rem; color:var(--goud); font-weight:600; justify-content:flex-end; align-items:center; flex-wrap:wrap; }
.prijsblok input { width:60px; padding:4px; border:1px solid var(--goud); background:#fff; color:#000; font-size:0.8rem; }
.prijsblok span { min-width: auto; }
.subtotaal { font-weight:bold; color:var(--goud); }

/* BIJZONDERHEDEN */
.bijzonderheden-regel {
  padding: 15px;
  background: linear-gradient(120deg, #1a1a1a 60%, #2a2a2a 100%);
  border: 2px solid #d4af37;
  border-radius: 10px;
  margin: 15px 0;
  display: flex;
  gap: 15px;
  align-items: stretch;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.bijzonderheden-header {
  flex: 0 1 70%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bijzonderheden-header label {
  color: #d4af37;
  font-weight: 600;
  font-size: 0.9rem;
}
.bijzonderheden-header textarea {
  min-height: 50px;
  max-height: 60px;
  resize: none;
  padding: 8px;
  border: 1px solid #d4af37;
  background: #fff;
  color: #000;
  font-size: 0.8rem;
  border-radius: 6px;
  flex: 1;
}
.bijzonderheden-prijs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: auto;
}
.bijzonderheden-prijs span {
  color: #d4af37;
  font-weight: 600;
  font-size: 0.85rem;
}
.bijzonderheden-prijs input {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid #d4af37;
  background: #fff;
  color: #000;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
  border-radius: 6px;
}

/* FOTO-UPLOAD */
.foto-container { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px; 
  margin: 20px 0;
}
.foto-vak { 
  width: 100%;
  height: 150px;
  background: linear-gradient(120deg, #1a1a1a 60%, #2a2a2a 100%);
  border: 2px solid #d4af37;
  border-radius: 12px; 
  display:flex; 
  justify-content:center; 
  align-items:center; 
  cursor:pointer; 
  overflow:hidden; 
  position:relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}
.foto-vak:hover {
  box-shadow: 0 8px 24px rgba(212,175,55,0.3);
  transform: translateY(-4px);
  background: linear-gradient(120deg, #232323 60%, #333 100%);
}
.foto-vak::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(255,255,255,0.05) 0%, rgba(212,175,55,0.05) 100%);
  pointer-events: none;
  z-index: 0;
}
.foto-vak .plus { 
  font-size:3.5rem; 
  color:#d4af37; 
  font-weight:bold;
  text-shadow: 0 2px 8px rgba(212,175,55,0.4);
  z-index: 1;
  position: relative;
  transition: all 0.3s ease;
}
.foto-vak:hover .plus {
  text-shadow: 0 4px 16px rgba(212,175,55,0.6);
  transform: scale(1.1);
}
.foto-vak img.preview { 
  width:100%; 
  height:auto; 
  object-fit:contain;
  z-index: 1;
  position: relative;
}
.foto-vak input[type='file'] { 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

/* TOTAAL BLOK */
.totaal-blok { background:#000; padding:12px 15px; border-radius:8px; border:1px solid #333; margin-top:15px; font-size:0.9rem; page-break-inside: avoid; break-inside: avoid; overflow: visible; line-height:1.5; }

/* TOTAAL FRAME */
.totaal-frame {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 60%, #1a1a1a 100%);
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
  box-shadow: 0 6px 24px rgba(212,175,55,0.2), 0 0 30px rgba(212,175,55,0.1) inset;
  page-break-inside: avoid;
  break-inside: avoid;
}
.totaal-regel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 0.95rem;
}
.totaal-regel:first-child {
  padding-top: 0;
}
.totaal-regel:last-child {
  padding-bottom: 0;
}
.totaal-label {
  color: #f5f5f5;
  font-weight: 500;
}
.totaal-input {
  width: 120px;
  padding: 8px 12px;
  border: 1.5px solid #d4af37;
  background: #fff;
  color: #000;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
  border-radius: 6px;
}

/* KNOP */
button { width:100%; padding:12px; margin-top:15px; background:linear-gradient(135deg, var(--goud), #f5e6a8); border:none; border-radius:6px; color:#000; font-weight:bold; cursor:pointer; font-size:0.95rem; }
button:hover { transform:translateY(-2px); }

/* FOOTER */
/* Footer styles verwijderd - zie inline styles in HTML */
