/* Allgemeine Gestaltung */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f7fa;
  margin: 0;
  padding: 20px;
  font-size: 16px;
  display: flex;
  flex-direction: column; /* Buttons untereinander anzeigen */
  justify-content: center; /* Vertikale Zentrierung */
  align-items: center; /* Horizontale Zentrierung */
  height: 100%;
}

h2, h3.panel-title {
  text-align: center;
  color: #333;
}

/* Panel-Stil */
.panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 950px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.panel-heading {
  background-color: #f5f5f5;
  padding: 10px 20px;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #ddd;
}

.panel-footer {
  padding: 10px 20px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  text-align: right;
  font-size: 16px;
  color: #555;
}

.panel-heading h3 {
  margin: 0;
  color: #555;
}

.panel-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  /* max-height: 100vh; */
  text-align: center;
  padding: 5px;
  flex: 1;
  overflow-y: auto;
}

.panel-menu-grid {
    display: grid; /* Verwende CSS Grid für das Kachel-Layout */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive Spalten */
    gap: 20px; /* Abstand zwischen den Kacheln */
    padding: 20px; /* Innenabstand des Grid-Containers */
    flex-grow: 1; /* Lässt das Grid im Panel wachsen */
    align-items: center; /* Zentriert die Kacheln vertikal im Grid-Bereich */
    justify-items: center; /* Zentriert die Kacheln horizontal in ihrer Zelle */
}

.menu-tile {
    display: flex;
    flex-direction: column; /* Icon und Text untereinander */
    justify-content: center; /* Zentriert Inhalt vertikal */
    align-items: center; /* Zentriert Inhalt horizontal */
    text-align: center;
    padding: 30px 20px; /* Innenabstand der Kachel */
    background-color: #007bff; /* Hintergrundfarbe der Kachel */
    color: white; /* Textfarbe */
    border-radius: 10px; /* Abgerundete Ecken */
    text-decoration: none; /* Keine Unterstreichung */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
    transition: transform 0.2s, box-shadow 0.2s; /* Sanfte Übergänge für Hover-Effekt */
    width: 100%; /* Kachel füllt die Breite ihrer Grid-Zelle */
    min-height: 120px; /* Mindesthöhe der Kachel, anpassen falls nötig */
    box-sizing: border-box; /* Stellt sicher, dass Padding in der Gesamtgröße enthalten ist */
}

.menu-tile i {
    font-size: 48px; /* Größe des Icons */
    margin-bottom: 10px; /* Abstand zwischen Icon und Text */
}

.menu-tile span {
    font-size: 18px; /* Größe des Textes */
    font-weight: bold;
}

/* Formularfeld-Stil */
.form-group {
  margin-bottom: 20px;
}

select{
  width: 95%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 16px;
  color: #636c72;
  padding: 10px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #777;
  border: 1px solid #ccc;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  margin: 10px 10px;
}

.btn-primary, .btn-info {
  width: 75%;
}

.btn:hover{
  background-color: #555;
  color: white;
}

.save{
  background-color: #FF5733;
}

.save:hover{
  background-color: #ae0b0b;
}

.removeSatzBtn{
  background-color: #e80e0e; /* Rot */
}

.removeSatzBtn:hover{
  background-color: #ae0b0b; /* Rot */
}

/* Zusätzliche Buttons (z.B. "Erstellen", "Verlauf") */
.btn-info {
  background-color: #17a2b8; /* Blautöne für Info */
}

.btn-info:hover {
  background-color: #138496;
}

button i {
  font-size: 20px;
}

button:disabled {
  background-color: lightgray;
}

button:hover:disabled {
  background-color: lightgray;
  cursor: not-allowed;
}

/* Tabellenstil für Auswertung */
table {
  width: 100%;
  /* margin-top: 20px; */
  border-collapse: collapse;
}

table th, table td {
  /* padding: 12px; */
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f1f1f1;
}

thead{
  padding:0px;
}

.eintrag-tabelle {
  width: 100%;
  max-width: 400px;
  margin: 10px auto;
  border-collapse: collapse;
  font-size: 14px;
  text-align: center;
}

.eintrag-tabelle th,
.eintrag-tabelle td {
  border: 1px solid #ccc;
  padding: 8px;
  white-space: nowrap;
}

.eintrag-tabelle td {
  background-color: #fff;
}

.input{
  width: 95%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 16px;
  color: #636c72;
  padding: 10px;
}

/* Styling für das Overlay oder die Erfolgsmeldung */
.success-message {
  background-color: #dff0d8;
  border: 1px solid #d0e9c6;
  color: #3c763d;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}

.panel-footer {
  padding: 10px 20px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  text-align: right;
  font-size: 16px;
  color: #555;
}

.user-info {
  float: left;
  font-weight: bold;
}

.logout-link {
  text-decoration: none;
  color: #555;
  font-weight: bold;
  margin-left: 20px;
}

.logout-link:hover {
  text-decoration: underline;
  color: #0056b3;
}

.session-warning {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ffcc00;
  color: #000;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 9999;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.session-warning.hidden {
  display: none;
}

.uebungsbild-container {
  text-align: center;
  /* margin-bottom: 15px; */
}

.uebungsbild {
  max-width: 95%;
  max-height: 500px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.register{
  text-align: center; 
  margin-top: 10px;
}

.register a{
  text-decoration: none;
  color: black;
}

.accordion-button { 
  cursor: pointer;
  position: relative;
  padding: 10px; 
  width: 95%; 
  text-align: left;
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #555; 
  margin-top: 5px;
  margin-bottom: 5px; 
  border-radius: 4px; 
}

.accordion-content { 
  display: none; 
  padding: 10px; 
  border: 1px solid #ccc; 
  border-radius: 4px; 
  background: #f9f9f9; 
}

.accordion-arrow {
  float: right;
  font-size: 15px;
  transition: transform 0.2s;
}

.accordion-button.open .accordion-arrow {
  /* dreht den Pfeil nach oben */
  transform: rotate(180deg);
}

.satz-row { 
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  padding: 10px;
}


.satz-row > .input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.satz-input {
  width: 85px;
  text-align: center;
  padding: 6px 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.satz-label {
  font-weight: 600;
  text-align: center;
  width: 100%;
  margin-bottom: 4px;
  color: #333;
  font-size: 16px;
}

.plus-button { 
  margin-top: 10px; 
}

.trend-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.trend-card {
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1em;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 95%;
  margin-top: 5px;
  margin-bottom: 5px;
}

.tc-header {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 5px;
  padding-top: 15px;
  padding-left: 15px;
  padding-right: 15px;
}

.tc-title {
  font-weight: bold;
  font-size: 14px;
  color: #223;
  overflow-wrap: break-word;
}

.tc-trend {
  font-size: 14px;
  font-weight: bold;
  min-width: 80px;
  text-align: right;
}

.tc-details {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  font-size: 0.96em;
  padding-left: 15px;
  padding-bottom: 15px;
  padding-right: 15px;
}
.tc-details div {
  display: flex;
  align-items: center;
}
.tc-label {
  font-weight: 600;
  color: #777;
}
.tc-date, .tc-w {
  color: black;
  font-variant-numeric: tabular-nums;
  padding-left: 10px;
}

.btn-gewicht-minus, .btn-gewicht-plus, .btn-wdh-minus, .btn-wdh-plus {
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 20px;
  background: #777;
  color: #fff;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  user-select: none;
  transition: background-color 0.2s ease;
}

.btn-gewicht-minus:hover, .btn-gewicht-plus:hover,
.btn-wdh-minus:hover, .btn-wdh-plus:hover {
  background: #ddd;
}


@media (max-width: 1000px) {

  /* Allgemeine Gestaltung */
  body {
    margin: 0;
    padding: 40px 20px 20px 20px;
    display: flex;
    flex-direction: column; /* Buttons untereinander anzeigen */
    justify-content: center; /* Vertikale Zentrierung */
    align-items: center; /* Horizontale Zentrierung */
  }

  /* Panel-Stil */
  .panel {
    width: 100%;
    max-width: 950px;
    border-radius: 8px;
  }

  .panel-heading {
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
  }

  .panel-footer {
    padding: 10px 20px;
  }

  .panel-body {
    display: flex;
    flex-direction: column; /* Buttons untereinander anzeigen */
    justify-content: center; /* Vertikale Zentrierung */
    align-items: center; /* Horizontale Zentrierung */
    height: 100%; /* Volle Höhe des Panels, falls gewünscht */
    padding: 5px;
  }

  .panel-menu-grid {
    grid-template-columns: 1fr; /* Eine Spalte auf kleineren Bildschirmen */
    padding: 15px;
    gap: 15px;
  }

  .menu-tile {
    padding: 25px 15px;
    min-height: 100px;
  }

  .menu-tile i {
    font-size: 40px;
  }

  .menu-tile span {
    font-size: 16px;
  }

  /* Formularfeld-Stil */
  .form-group {
    margin-bottom: 5px;
  }

  select, input {
    width: 95%;
    padding: 10px;
    /* margin-top: 5px; */
    border-radius: 5px;
    padding: 10px;
  }

  button i {
    font-size: 20px;
  }

  /* Tabellenstil für Auswertung */
  table {
    width: 95%;
    border-collapse: collapse;
  }

  table th, table td {
    padding: 5px;
  }

  .eintrag-tabelle {
    width: 95%;
    max-width: 400px;
    margin: 10px auto;
    border-collapse: collapse;
    font-size: 14px;
  }

  .eintrag-tabelle th,
  .eintrag-tabelle td {
    padding: 8px;
    white-space: nowrap
  }

  /* Styling für das Overlay oder die Erfolgsmeldung */
  .success-message {
    padding: 15px;
    border-radius: 5px;
    margin: 20px;
  }

  .panel-footer {
    padding: 10px 20px;
    font-size: 16px;
  }

  .logout-link {
    margin-left: 20px;
  }

  .session-warning {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 9999;
    font-weight: bold;
    display: flex;
  }

  .uebungsbild {
    max-width: 95%;
    max-height: 500px;
  }

  .register{
    margin-top: 10px;
  }

  #create_trainingsplan {
    display: none;
  }
}

.menu-tile:nth-child(1) { background-color: #FF5733; } /* Blau für Einzelübungen */
.menu-tile:nth-child(2) { background-color: #FF5733; } /* Grün für Trainingsplan starten */
.menu-tile:nth-child(3) { background-color: #FF5733; } /* Gelb für Trainingsplan erstellen (Textfarbe anpassen) */
.menu-tile:nth-child(4) { background-color: #FF5733; } /* Türkis für Verlauf */

/* Hover-Effekte für farbige Kacheln */
.menu-tile:nth-child(1):hover { background-color: #ae0b0b;}
.menu-tile:nth-child(2):hover { background-color: #ae0b0b;}
.menu-tile:nth-child(3):hover { background-color: #ae0b0b;}
.menu-tile:nth-child(4):hover { background-color: #ae0b0b;}