* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-y: hidden;
  font-family: Arial, sans-serif;
  background: #1e1e1e;
  color: #fff;
}

header, footer {
  background: #2c2c2c;
  padding: 10px 20px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

#main-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

#workspace {
  display: flex;
  height: calc(100vh - 50px); /* Höhe der top-bar berücksichtigen */
  overflow: hidden;
  flex: 1;
}

#customer-info {
  width: 300px;
  min-width: 280px;
  max-width: 320px;
  background: #2a2a2a;
  padding: 20px;
  border-right: 2px solid #3a3a3a;
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
}

#customer-info h3 {
  margin-top: 0;
}

.stat-line {
  margin: 10px 0;
  font-size: 13px;
}

.progress-bar {
  background: #444;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 4px;
}

.progress {
  background: #4caf50;
  height: 100%;
}

#call-area {
  flex: 1;
  padding: 20px;
  padding-bottom: 80px; /* Platz für fixierten Button */
  overflow-y: auto;
  height: 100vh;
  box-sizing: border-box;
}

#section-label {
  font-size: 16px;
  margin-bottom: 12px;
  padding: 10px 16px;
  background: #2a2a2a;
  border-left: 4px solid #4caf50;
  border-radius: 6px;
  color: #ddd;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#question {
  font-size: 25px;
  margin-bottom: 20px;
  background: #f0e6d2;
  color: #222;
  padding: 15px 20px;
  border-radius: 16px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  max-width: 85%;
}

#question::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 30px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #f0e6d2 transparent transparent transparent;
}

#question:empty,
#feedback:empty {
  display: none;
}

.choice-btn {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background: #007bff;
  color: white;
  cursor: pointer;
}

#feedback {
  margin-top: 20px;
  margin-bottom: 20px;
  background: #d5f0d5;
  color: #000;
  padding: 10px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
}

#answer-button {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #444;
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 18px;
  cursor: not-allowed;
}

#answer-button.ringing {
  background: red;
  animation: blink 1s infinite;
  cursor: pointer;
}

@keyframes blink {
  0% { background-color: red; }
  50% { background-color: darkred; }
  100% { background-color: red; }
}

.customer-box {
  background: #333;
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0 20px;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid #444;
  box-shadow: 0 0 5px #111;
  display: none;
}

.customer-box div {
  margin-bottom: 4px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  background: #202020;
  padding: 8px 15px;
  font-size: 13px;
  color: #ccc;
  border-bottom: 1px solid #333;
}

.shift-box {
  background: #2a2a2a;
  border-left: 4px solid #ffd700;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: bold;
  color: #eee;
}

.user-box {
  color: #aaa;
}

.progress-box {
  background: #2f2f2f;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px;
  margin: 15px 0;
  box-shadow: 0 0 5px #111;
  font-size: 13px;
}

.progress-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: #ccc;
}

.progress-info {
  margin-top: 6px;
  font-size: 12px;
  color: #bbb;
}

.sidebar-menu {
  margin-top: 10px;
}

.sidebar-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 10px;
}

.sidebar-menu a {
  display: block;
  background: #333;
  color: #fff;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s ease;
}

.sidebar-menu a:hover {
  background: #444;
}
.fade-in {
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-box {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  border: 1px solid #444;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.section-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #fff;
}

.section-subtitle {
  font-size: 18px;
  margin: 20px 0 10px;
  color: #ccc;
}

.form-input {
  width: 100%;
  padding: 10px;
  background: #1e1e1e;
  border: 1px solid #444;
  color: #eee;
  border-radius: 6px;
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 15px;
}

.call-step-box {
  background: #333;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid #444;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.option-box {
  background: #2b2b2b;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 6px;
}
.section-box {
  background: #2a2a2a;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #3a3a3a;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  margin-bottom: 40px;
}

.section-title {
  font-size: 22px;
  color: #fff;
  margin-bottom: 20px;
}

.form-card {
  background: #1f1f1f;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #444;
  margin-bottom: 25px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: #262626;
  border: 1px solid #444;
  border-radius: 6px;
  color: #eee;
  margin-bottom: 10px;
  font-size: 14px;
}

textarea.form-input {
  min-height: 60px;
  resize: vertical;
}

.option-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.option-box {
  background: #2b2b2b;
  padding: 12px;
  border: 1px solid #444;
  border-radius: 6px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #ccc;
  margin: 6px 0;
}
.form-wrapper {
  background: #2a2a2a;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 50px;
}

.form-headline {
  font-size: 22px;
  margin-bottom: 20px;
  color: #fff;
}

.callform {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-section {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #3a3a3a;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

.form-section h3 {
  margin-top: 0;
  color: #ccc;
  font-size: 18px;
  margin-bottom: 10px;
}

.form-field {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #2d2d2d;
  color: #eee;
  border: 1px solid #444;
  font-size: 15px;
}

textarea.form-field {
  min-height: 60px;
  resize: vertical;
}

.option-block {
  background: #2c2c2c;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #444;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #ccc;
  font-size: 14px;
}

.sidebar-menu {
  transition: max-height 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
  max-height: 500px; /* wenn sichtbar */
  opacity: 1;
}

.sidebar-menu.hidden {
  max-height: 0;
  opacity: 0;
}
.hidden {
  display: none;
}


/* WebKit-basierte Browser (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: #4caf50;
  border-radius: 5px;
  border: 2px solid #1e1e1e;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #66bb6a;
}