   .planvigo-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    font-family: var(--pv-font-family-secondary);
    margin: 3rem;
    width: calc(100% - 6rem); /* Volle Breite minus der Ränder */
    max-height: calc(100vh - 200px);
  }

  .planvigo-table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    min-width: 320px;
    table-layout: fixed;
    margin-bottom: 20px;
    border-radius: 15px;
    border: 1px solid var(--pv-color-border);
    display: block;
    overflow: hidden;
  }

  .planvigo-table thead {
    display: table;
    width: 100%;
    table-layout: fixed;
    padding-right: 17px;
    box-sizing: border-box;
  }

  .planvigo-table thead th:first-child {
    border-radius: 15px 0 0 0;
  }

  .planvigo-table thead th:last-child {
    border-radius: 0 15px 0 0;
  }

  .planvigo-table tbody {
    display: block;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    width: calc(100% + 17px);
    scrollbar-gutter: stable;
  }

  .planvigo-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .planvigo-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 15px;
  }

  .planvigo-table tbody tr:last-child td:last-child {
    border-radius: 0 0 15px 0;
  }
 
 .planvigo-table thead th,
  .planvigo-table tbody td {
    padding: 12px 16px;
    font-size: var(--pv-font-h5-size);
    font-weight: 500;
    border-right: 1px solid var(--pv-color-border);
    border-bottom: 1px solid var(--pv-color-border);
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    color: var(--pv-text-color);
  }

  /* Fix for double borders and rounded corners */
  .planvigo-table thead th:last-child,
  .planvigo-table tbody td:last-child {
      border-right: none;
  }
  .planvigo-table tbody tr:last-child td {
      border-bottom: none;
  }

  .planvigo-table thead th {
    background-color: var(--pv-color-accent);
    font-family: var(--pv-font-family-primary);
    font-weight: 600;
    color: var(--pv-button-text-color);
    text-transform: uppercase;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    color: var(--pv-button-text-color);
  }

  /* Linke Spalte: coral background, weiße Schrift */
  .planvigo-table thead th:first-child,
  .planvigo-table tbody td:first-child {
    width: 70px;
    font-family: var(--pv-font-family-primary);
    font-weight: 600;
    font-size: var(--pv-font-h5-size);
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Rechte Spalte im Body: normaler Text */
  .planvigo-table tbody td:last-child {
    width: auto;
    color: var(--pv-color-text-primary);
    font-weight: 500;
    text-align: left;
    font-size: var(--pv-font-h5-size);
  }

  .planvigo-table tbody tr:nth-child(even) {
    background-color: var(--pv-table-zebra-bg);
  }

  .planvigo-table tbody tr:hover {
    background-color: #e9e9e9;
  }

  .form-table {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--pv-color-bg);
    border-radius: 15px;
    overflow: hidden;
    align-items: center;
  }


  .form-table .form-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background-color: var(--pv-table-zebra-bg);
  }

  .form-table th {
    color: var(--pv-button-text-color);
    text-align: left;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 500;
    font-family: var(--pv-font-family-primary);
  }

/* Form Sections - Clean Design */
.form-section {
  margin: 40px auto;
  padding: 40px;
  max-width: 80%;
  background: var(--pv-color-bg);
  border-radius: 15px;
  transition: all 0.3s ease;
  align-self: center;
}
 



.form-section h3 {
  margin: 0 0 25px 0;
  color: var(--pv-primary);
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
}

.form-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  border-radius: 2px;
}

.form-section .form-table {
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100%;
}

.form-section .form-table th {
  background: none;
  color: #2c3e50;
  font-weight: 500;
  padding: 20px 0;
  border: none;
  border-bottom: 2px solid #ecf0f1;
  text-align: left;
  width: 250px;
  font-size: 18px;
}

.form-section .form-table td {
  padding: 20px 0;
  border: none;
  border-bottom: 1px solid #ecf0f1;
}

.form-section .form-table input {
  padding: 15px 20px;
  border-color: var(--pv-primary);
  border-width: 2px;
  border-radius: 10px;
  font-size: var(--pv-font-body-size);
  transition: all 0.3s ease;
  background: var(--pv-color-bg);
  font-family: inherit;
}

.form-section .form-table textarea {
  width: 100%;
  padding: 15px 20px;
  border-color: var(--pv-primary);
  border-width: 2px;
  border-radius: 10px;
  font-size: var(--pv-font-body-size);
  transition: all 0.3s ease;
  background: var(--pv-color-bg);
  font-family: inherit;
}

.form-section .form-table input:focus {
  outline: none;
  border-color: var(--pv-hover);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  transform: translateY(-1px);
}

.form-section .form-table textarea:focus {
  outline: none;
  border-color: var(--pv-hover);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  transform: translateY(-1px);
}

.form-section .form-table input:hover {
  border-color: var(--pv-hover);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-section .form-table textarea:hover {
  border-color: var(--pv-hover);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Spezielle Checkbox-Styles */
.form-section .form-table input[type="checkbox"] {
  width: auto;
  height: 15px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 2px;
}


/* Textarea-Styles */
.form-section .form-table textarea {
  width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: var(--pv-font-body-size);
  border-color: var(--pv-primary);
  border-width: 2px;
  transition: all 0.3s ease;
  background: var(--pv-color-bg);
  font-family: inherit;
  min-height: 100px;
  resize: vertical;
}

.form-section .form-table textarea:focus {
  outline: none;
  border-color: var(--pv-hover);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  transform: translateY(-1px);
}

.form-section .form-table textarea:hover {
  border-color: #bdc3c7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-section .form-table input:focus {
  outline: none;
  border-color: var(--pv-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

/* Laptops mit kleineren Bildschirmen (1024px - 1440px) */
@media (max-width: 1440px) {
  .planvigo-table-wrapper {
    margin: 2rem 1.5rem;
    width: calc(100% - 3rem);
  }

  .planvigo-table thead th,
  .planvigo-table tbody td {
    padding: 10px 12px;
    font-size: var(--pv-font-body-size);
  }

  .planvigo-table thead th:first-child,
  .planvigo-table tbody td:first-child {
    width: 50px;
    font-size: var(--pv-font-body-size);
  }

  .planvigo-table tbody td:last-child {
    font-size: var(--pv-font-body-size);
  }

  .form-section {
    margin: 30px auto;
    padding: 30px;
    width: 95%;
  }

  .form-table input {
    width: 100%;
  }
}

/* Tablets und kleinere Laptops (768px - 1024px) */
@media (max-width: 1024px) {
  .planvigo-table-wrapper {
    margin: 1.5rem 1rem;
    width: calc(100% - 2rem);
    overflow-x: auto;
  }

  .planvigo-table {
    min-width: 600px;
  }

  .planvigo-table thead th,
  .planvigo-table tbody td {
    padding: 8px 10px;
    font-size: var(--pv-font-small-size);
  }

  .planvigo-table thead th:first-child,
  .planvigo-table tbody td:first-child {
    width: 45px;
    font-size: var(--pv-font-small-size);
  }

  .planvigo-table tbody td:last-child {
    font-size: var(--pv-font-small-size);
  }

  .form-section {
    margin: 25px auto;
    padding: 25px;
    width: 95%;
  }

  .form-section h3 {
    font-size: var(--pv-font-h4-size);
  }

  .form-table input,
  .form-table textarea {
    font-size: var(--pv-font-small-size);
  }

  .form-table input {
    width: 100%;
  }
}

/* Kleine Tablets und große Smartphones (480px - 768px) */
@media (max-width: 768px) {
  .planvigo_container {
    margin-top: 150px !important;
    padding: 0.5rem;
  }

  .planvigo-table-wrapper {
    margin: 1rem 0.5rem;
    width: calc(100% - 1rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .planvigo-table {
    min-width: 500px;
  }

  .planvigo-table thead th,
  .planvigo-table tbody td {
    padding: 6px 8px;
    font-size: 12px;
    border: 1px solid var(--pv-color-border);
  }

  .planvigo-table thead th:first-child,
  .planvigo-table tbody td:first-child {
    width: 40px;
    font-size: 12px;
    padding: 6px 4px;
  }

  .planvigo-table tbody td:last-child {
    font-size: 12px;
  }

  .form-section {
    margin: 15px auto;
    padding: 15px;
    width: 98%;
    border-radius: 8px;
  }

  .form-section h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
  }

  .form-table {
    max-width: 100%;
  }

  .form-table input,
  .form-table textarea {
    width: 100% !important;
    font-size: 12px;
    padding: 6px 8px;
  }

  .form-table th,
  .form-table td {
    padding: 8px 6px;
    font-size: 12px;
  }

  .form-table th {
    padding: 10px 6px;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 12px;
    width: 100%;
    margin: 0.5rem 0;
  }

  .btn-primary {
    width: 100%;
  }
}

/* Kleine Smartphones (unter 480px) */
@media (max-width: 480px) {
  .planvigo_container {
    margin-top: 120px !important;
    padding: 0.25rem;
  }

  .simple-overlay {
    padding: 1rem;
  }

  .big-text {
    font-size: 1.5rem;
  }

  .small-text {
    font-size: 0.9rem;
  }

  .planvigo-table-wrapper {
    margin: 0.75rem 0.25rem;
    width: calc(100% - 0.5rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .planvigo-table {
    min-width: 400px;
    margin-bottom: 100px;
  }

  .planvigo-table thead th,
  .planvigo-table tbody td {
    padding: 5px 6px;
    font-size: 11px;
    border: 1px solid var(--pv-color-border);
  }

  .planvigo-table thead th:first-child,
  .planvigo-table tbody td:first-child {
    width: 35px;
    font-size: 11px;
    padding: 5px 3px;
  }

  .planvigo-table tbody td:last-child {
    font-size: 11px;
    word-break: break-word;
  }

  .form-section {
    margin: 10px auto;
    padding: 10px;
    width: 99%;
    border-radius: 6px;
  }

  .form-section h3 {
    font-size: var(--pv-font-small-size);
    margin: 0 0 10px 0;
  }

  .form-table {
    max-width: 100%;
  }

  .form-table input,
  .form-table textarea {
    width: 100% !important;
    font-size: 11px;
    padding: 4px 6px;
  }

  .form-table th {
    font-size: 11px;
    padding: 8px 4px;
  }

  .form-table td {
    font-size: 11px;
    padding: 6px 4px;
  }

  .btn {
    padding: 0.5rem 0.8rem;
    font-size: 11px;
    width: 100%;
    margin: 0.3rem 0;
  }

  h1 {
    font-size: 40px;
    margin: 20px;
  }

  h2 {
    font-size: 18px;
  }
}

/* Extra kleine Geräte (unter 360px) */
@media (max-width: 360px) {
  .planvigo-table-wrapper {
    margin: 0.5rem 0;
    width: 100%;
  }

  .planvigo-table {
    min-width: 320px;
    font-size: 10px;
  }

  .planvigo-table thead th,
  .planvigo-table tbody td {
    padding: 4px 4px;
    font-size: 10px;
  }

  .planvigo-table thead th:first-child,
  .planvigo-table tbody td:first-child {
    width: 30px;
    font-size: 10px;
    padding: 4px 2px;
  }

  .form-section {
    margin: 8px auto;
    padding: 8px;
    width: 100%;
  }

  .form-section h3 {
    font-size: 12px;
  }

  .btn {
    padding: 0.4rem 0.6rem;
    font-size: 10px;
  }
}
