/*
 Theme Name:     Divi Child
 Theme URI:      https://neuglas.de
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://neuglas.de/
 Template:       Divi
 Version:        1.0.2
*/
 
/* Your custom CSS starts here */

/* GTH Global Font Style */
body, button, input, select, textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
  font-size: 14px !important;
  color: #333 !important;
  line-height: 1.6;
}


/* Mitarbeiter Edit Seite */

.gth-ma-form-section {
  margin-bottom: 2.5rem;
}

.gth-ma-form-section h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.gth-ma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gth-ma-field {
  display: flex;
  flex-direction: column;
}

.gth-ma-field label {
  font-weight: 600;
  margin-bottom: 5px;
}

.gth-ma-field input,
.gth-ma-field select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: white;
}

.gth-ma-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.gth-ma-actions button {
  padding: 0.6rem 1.2rem;
  border: none;
  background-color: #006699;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.gth-ma-actions button[name="mitarbeiter_loeschen"] {
  background-color: #aa2222;
}
/* Mitarbeiter */

.gth-ma-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.gth-ma-edit-group {
    display: flex;
    flex-direction: column;
}

.gth-ma-edit-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.gth-ma-edit-group input,
.gth-ma-edit-group select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.label-inline {
  display: flex;
  align-items: center;
  padding-bottom: 5px; /* je nach Optik evtl. 2px oder 6px testen */
  font-weight: 500; /* optional für bessere Lesbarkeit */
}

.gth-delete-btn-small {
  background-color: #e63946;
  color: #fff;
  border: none;
  padding: 4px 10px;
  font-size: 0.9rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.gth-delete-btn-small:hover {
  background-color: #c92435;
}


.gth-vertrag-formular {
  max-width: 900px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: "Helvetica", sans-serif;
  font-size: 15px;
}

/* Zwei-Spalten-Layout */
.gth-form-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.gth-form-vertrag {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;	
}

.gth-form-vertrag label {
  font-weight: bold;
  margin-bottom: 7px;	
}

.gth-form-vertrag input,
.gth-form-vertrag select,
.gth-form-vertrag textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

.gth-form-vertrag textarea {
  resize: vertical;
}

.gth-form-group {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

.gth-form-group label {
  font-weight: bold;
  margin-bottom: 4px;
}

.gth-form-group input,
.gth-form-group select,
.gth-form-group textarea {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

.gth-form-group textarea {
  resize: vertical;
}

h3 {
  font-size: 18px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
  margin-top: 1rem;
}

.gth-add-object-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #007cba;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.gth-add-object-btn:hover {
  background-color: #005a94;
}

.gth-submit-btn {
  margin-top: 10px;
  padding: 12px 24px;
  background-color: #a4cc12;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

.gth-submit-btn:hover {
  background-color: #9cc114;
}

.gth-zurueck-btn {
  margin-top: 0px;
  padding: 12px 24px;
  background-color: #299CB7;
  border: none;
  color: white;
  font-size: 16px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
}

.gth-zurueck-btn:hover {
  background-color: #2691a3;
}

.gth-popup {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #28a745;
  color: white;
  padding: 1.5em 3em;
  border-radius: 12px;
  font-size: 1.2em;
  z-index: 9999;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  display: none;
  text-align: center;
  line-height: 2.2;
}

select.drop-frw {
  margin-top: 10px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin-right: 7px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 13px;
  font-size: 12px;
  color: #333;
  width: 100%;
  max-width: 75px;
  transition: border-color 0.3s ease;
}

select.drop-frw:focus {
  border-color: #0073aa;
  outline: none;
  background-color: #fff;
}

select.drop {
  margin-top: 10px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin-right: 7px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 13px;
  font-size: 12px;
  color: #333;
  width: 100%;
  max-width: 180px;
  transition: border-color 0.3s ease;
}

select.drop:focus {
  border-color: #0073aa;
  outline: none;
  background-color: #fff;
}

#add-objekt-btn {
  display: block;
  margin: 30px auto 20px auto;
  width: 350px;
  padding: 10px 15px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f1f1f1;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  align-content:center;
}

#add-objekt-btn:hover {
  background-color: #a4cc12;
  border-color: #999;
}

input.gth-input-number {
  width: 60px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  color: #333;
  background-color: #f9f9f9;
  transition: border-color 0.2s ease;
}

input.gth-input-number:focus {
  border-color: #0073aa;
  outline: none;
  background-color: #fff;
}

input.gth-input-text {
  width: 100%;
  max-width: 250px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background-color: #f9f9f9;
  transition: border-color 0.2s ease;
}

input.gth-input-text:focus {
  border-color: #0073aa;
  outline: none;
  background-color: #fff;
}

/* ADD Vertrag Kopfbereich */

.objekt-kopfzeile {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.gebaeude-eingabe {
  flex: 0 0 70%;
}

.objekt-entfernen {
  flex: 0 0 30%;
}

.anlage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.anlage-feld {
  display: flex;
  flex-direction: column;
  min-width: 160px;
}

.anlage-feld label {
  font-size: 13px;
  margin-bottom: 3px;
  font-weight: 500;
  color: #444;
}

.anlage-feld select,
.anlage-feld input {
  height: 40px;
  padding: 5px 8px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.gth-remove-btn {
  background-color: #e74c3c;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.gth-remove-btn:hover {
  background-color: #c0392b;
}


.anlage-col {
  display: flex;
  flex-direction: column;
}

.anlage-entfernen {
  margin-left: auto;
}

.anlage-entfernen .remove-anlage {
  font-size: 10px !important;
  padding: 3px 8px;
  background-color: #e74c3c;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
  display: inline-block;
}

.objekt-entfernen button.remove-objekt {
  width: 100%;
  padding: 0px 5px;
  background-color: #e74c3c;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.objekt-entfernen button.remove-objekt:hover {
  background-color: #c0392b;
}

.gth-archiv-ueberschrift {
    color: white;
	padding-bottom: 10px;
	padding-top: 25px;
}

/* Dashboard Kopfbereich */

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.dashboard-header .greeting {
  font-size: 2em;
  font-weight: 600;
  color: #222;
}

.dashboard-btn-group {
  display: flex;
  gap: 10px; /* Abstand zwischen Buttons */
}

.dashboard-header .dashboard-add-btn {
  background-color: #0073aa;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background 0.3s ease;
}
.dashboard-header .dashboard-add-btn:hover {
  background-color: #005d8f;
}

/* Kartenbereich */
.dashboard-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 40px;
}

.dashboard-card {
  background: white;
  border: 1px solid #ccc;
  padding: 20px 25px;
  border-radius: 12px;
  flex: 1;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.dashboard-card strong {
  font-size: 2.4em;
  color: #224c61;
  display: block;
  margin-top: 10px;
}

.dashboard-add-btn2 .plus-icon {
  font-size: 1.9em;
  margin-right: 0px;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}

.dashboard-add-btn .plus-icon {
  font-size: 1.4em;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}

.vertrag-suche-form {
  display: flex;
  gap: 10px;
  margin: 20px auto;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.vertrag-suche {
  padding: 10px 35px;
  border: 2px solid #0073aa;
  border-radius: 8px;
  font-size: 1rem;
  width: 280px;
  transition: border-color 0.3s ease;
}

.vertrag-suche:focus {
  border-color: #005d8f;
  outline: none;
}

.vertrag-suche-btn {
  background-color: #0073aa;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.vertrag-suche-btn:hover {
  background-color: #005d8f;
}

/* Delete */

.gth-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.gth-popup-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.gth-popup-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.gth-delete-confirm,
.gth-cancel-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.gth-delete-confirm {
  background: #c9302c;
  color: white;
}

.gth-cancel-btn {
  background: #ccc;
}

.gth-delete-btn {
  margin-top: 0px;
  padding: 12px 24px;
  background-color: red;
  border: none;
  color: white;
  font-size: 16px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
}

.gth-delete-btn:hover {
  background-color: #666;
}


/* GTH Wartungsliste Tabelle */
.gth-vertraege-tabelle {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 13px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.gth-vertraege-tabelle th,
.gth-vertraege-tabelle td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.gth-vertraege-tabelle th {
  background-color: #f5f5f5;
  color: #333;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.gth-vertraege-tabelle tr:hover {
  background-color: #fafafa;
}

.gth-vertraege-tabelle a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
}

.gth-vertraege-tabelle a:hover {
  text-decoration: underline;
}


/* GTH Mitarbeiterliste Tabelle */
.gth-ma-tabelle {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 13px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.gth-ma-tabelle th,
.gth-ma-tabelle td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.gth-ma-tabelle th {
  background-color: #f5f5f5;
  color: #333;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.gth-ma-tabelle tr:hover {
  background-color: #fafafa;
}

.gth-ma-tabelle a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
}

.gth-ma-tabelle a:hover {
  text-decoration: none;
}




.filter-zeile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Optional, für Mobilgeräte */
  gap: 10px;
  margin-bottom: 20px;
}

.alphabet-filter a {
  margin-right: 8px;
  font-weight: bold;
  color: #0073aa;
  text-decoration: none;
}

.alphabet-filter a:hover {
  text-decoration: underline;
}

.vertrag-suche {
  display: flex;
  gap: 5px;
  border: 0px;
  align-items: center;
}

.vertrag-suche input[type="text"] {
  padding: 5px 10px;
  font-size: 14px;
}

.vertrag-suche button {
  padding: 6px 12px;
  background-color: #eee;
  border: 1px solid #ccc;
  cursor: pointer;
}


/* ❌ Gebäude-Entfernen-Button */
.remove-objekt {
  background: transparent;
  color: #d11a2a;
  border: none;
  font-size: 0.95em;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;
  display: inline-block;
  transition: color 0.2s ease;
}
.remove-objekt:hover {
  color: #a30000;
}

/* + weitere Anlage Button */
.add-anlage-btn {
  background-color: #0073aa;
  color: white;
  border: none;
  padding: 6px 14px;
  margin-top: 10px;
  margin-bottom: 25px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1.0em;
  transition: background-color 0.3s ease;
}
.add-anlage-btn:hover {
  background-color: #005d8f;
}