.start-main {
  padding: 0 16px 40px;
  text-align: center;
}

.start-main .hero-block {
  margin-top: 48px;
}

.start-main .hero-sub-quiz,
.start-main .hero-text-quiz{
  text-align:center;
  padding-right:0;
}

.start-main .button-link {
  margin-top: 1rem;
  background-color: #c20000;
  color: white;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: background 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

.start-main .button-link:hover {
  background-color: #a80000;
}

.hidden{
  display:none !important;
}

/* Lehrer-Korrektur: Button rechts und Slide-In-Panel (nur Startseite) */
#teacher-correct-toggle{
  position:fixed;
  top:33%;
  right:0;
  transform:translateY(-50%);
  z-index:900;
  writing-mode:vertical-rl;
  text-orientation:mixed;
  padding:14px 10px;
  background-color:#b91c1c;
  color:#ffffff;
  border:none;
  border-radius:6px 0 0 6px;
  font-size:1.0em;
  font-weight:400;
  font-family:Consolas, Monaco, 'Courier New', monospace;
  cursor:pointer;
  display:block;
}
#teacher-correct-toggle:hover{
  background-color:#991b1b;
}

#teacher-correct-panel{
  position:fixed;
  top:10vh;
  right:0;
  height:54vh;
  width:33%;
  max-width:900px;
  min-width:260px;
  background-color:#9ca3af;
  border-left:none;
  border-radius:16px 0 0 16px;
  overflow:hidden;
  box-shadow:-4px 0 12px rgba(0,0,0,0.7);
  z-index:2000;
  transform:translateX(100%);
  transition:transform 0.3s ease-out;
  display:flex;
  flex-direction:column;
}
#teacher-correct-panel.open{
  transform:translateX(0);
}

#teacher-correct-header{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-bottom:1px solid rgba(255,255,255,0.20);
  background-color:rgba(0,0,0,0.65);
}
#teacher-correct-title{
  flex:1;
}
#teacher-correct-nav{
  display:flex;
  gap:6px;
}
#teacher-correct-nav button{
  background-color:#1f2937;
  color:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:4px;
  padding:4px 8px;
  font-size:11px;
  cursor:pointer;
}
#teacher-correct-nav button:hover{
  background-color:#374151;
}

#teacher-correct-close{
  position:absolute;
  left:14px;
  display:inline-flex;
  align-items:flex-start;
  justify-content:center;
  background-color:#b91c1c;
  color:#ffffff;
  border:1px solid #ffffff;
  border-radius:6px;
  font-size:22px;
  width:34px;
  height:28px;
  padding:2px 0 0;
  margin:0;
  line-height:1;
  cursor:pointer;
}

.teacher-correct-close-x{
  position:relative;
  display:inline-block;
  transform:translateY(-1px);
}
#teacher-correct-close:hover{
  background-color:#dc2626;
}

#teacher-correct-title{
  font-weight:bold;
  color:#ffffff;
  font-size:20px;
  margin-left:0;
  text-align:center;
}

#teacher-correct-body{
  padding:18px 16px;
  overflow-y:auto;
  flex:1;
}

#pre-release-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:95000;
  transition:background 0.22s ease-out;
}

#pre-release-overlay.open{
  background:rgba(0,0,0,0.90);
}

.pre-release-overlay-card{
  width:min(560px, calc(100% - 32px));
  background:rgba(0,0,0,0.15);
  border:1px solid rgba(255,255,255,0.25);
  border-radius:14px;
  padding:18px 18px 16px;
  box-shadow:0 18px 46px rgba(0,0,0,0.55);
}

.pre-release-title{
  color:#ffffff;
  font-size:22px;
  font-weight:600;
  text-align:center;
  margin:0 0 14px;
}

.pre-release-input{
  width:100%;
  box-sizing:border-box;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.35);
  background:rgba(255,255,255,0.12);
  color:#ffffff;
  padding:12px 12px;
  font-size:18px;
  outline:none;
  text-align:center;
}

.pre-release-input:focus{
  border-color:rgba(255,255,255,0.70);
}

.pre-release-submit{
  width:100%;
  margin-top:12px;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.45);
  background:#ffffff;
  color:#111827;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}

.pre-release-submit:hover{
  filter:brightness(0.96);
}

.pre-release-error{
  margin-top:10px;
  color:#ffffff;
  text-align:center;
  font-size:14px;
}
#teacher-correct-body label{
  display:block;
  font-size:16px;
  color:#ffeb99;
  margin-bottom:8px;
}
#teacher-correct-body textarea,
#teacher-correct-body input[type="text"]{
  width:100%;
  box-sizing:border-box;
  margin-top:4px;
  margin-bottom:4px;
  background-color:#ccc4c4;
  border:1px solid #999999;
  border-radius:4px;
  color:#000000;
  font-family:Consolas, Monaco, 'Courier New', monospace;
  font-size:15px;
  padding:6px 8px;
}
#teacher-correct-body textarea{
  min-height:40px;
  resize:vertical;
}

#teacher-correct-footer{
  padding:8px 12px;
  border-top:1px solid gold;
  display:flex;
  justify-content:flex-start;
  gap:10px;
  background-color:#333366;
}
#teacher-correct-footer button,
#tc-image-delete-btn,
#tc-image-upload{
  padding:6px 12px !important;
  font-size:13px !important;
  font-family:Consolas, Monaco, 'Courier New', monospace;
  border-radius:4px !important;
  border-width:1px !important;
  border-style:solid !important;
  border-color:#ffffff !important;
  margin:0 !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

#tc-save{
  background-color:#16a34a;
  color:#f9fafb;
}
#tc-save:hover{
  background-color:#22c55e;
}
.tc-save-dirty{
  animation:tcSavePulse 1.2s ease-in-out infinite alternate;
}
@keyframes tcSavePulse{
  0%{ box-shadow:0 0 0 0 rgba(34,197,94,0.4); transform:scale(1); }
  100%{ box-shadow:0 0 12px 4px rgba(34,197,94,0.9); transform:scale(1.03); }
}

#tc-cancel{
  background-color:#1e293b;
  color:#f9fafb;
}
#tc-cancel:hover{
  background-color:#334155;
}

#tc-publish{
  background-color:#166534;
  color:#f9fafb;
}
#tc-publish:hover{
  background-color:#14532d;
}

#tc-media-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:4px;
  margin-bottom:8px;
  font-size:13px;
  color:#ffeb99;
}
#tc-media-actions button{
  padding:4px 10px;
  border:none;
  border-radius:4px;
  outline:none;
  margin:0;
  line-height:1.3;
}
#tc-media-actions button:focus{
  outline:none;
}
#tc-audio-delete-btn,
#tc-video-delete-btn,
#tc-image-delete-btn{
  background-color:#7f1d1d;
  color:#fee2e2;
  cursor:pointer;
  font-size:13px;
}
#tc-audio-delete-btn:hover,
#tc-video-delete-btn:hover,
#tc-image-delete-btn:hover{
  background-color:#b91c1c;
}
#tc-audio-upload,
#tc-video-upload,
#tc-image-upload{
  background-color:#1e293b;
  color:#f9fafb;
  cursor:pointer;
  font-size:13px;
}
#tc-audio-upload:hover,
#tc-video-upload:hover,
#tc-image-upload:hover{
  background-color:#334155;
}

#tc-media-status-row{
  margin-top:0;
  margin-bottom:8px;
}
#tc-image-status{
  font-size:12px;
  color:#bbf7d0;
}

/* Tooltips für Footer-Buttons */
#teacher-correct-footer button[data-tooltip]{
  position:relative;
}
#teacher-correct-footer button[data-tooltip]::after{
  content:attr(data-tooltip);
  white-space:pre-line;
  position:absolute;
  left:0;
  bottom:110%;
  transform:none;
  background-color:rgba(0,0,0,0.9);
  color:#f9fafb;
  padding:6px 10px;
  border-radius:4px;
  font-size:11px;
  line-height:1.3;
  width:100%;
  max-width:100%;
  text-align:left;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.15s ease-out;
  z-index:2100;
}
#teacher-correct-footer button[data-tooltip]:hover::after{
  opacity:1;
}

#schaetzfrage-wrap{
  width:100%;
  padding:0 10%;
  box-sizing:border-box;
}

#schaetzfrage-admin{
  display:flex;
  justify-content:center;
  gap:10px;
  margin:0 0 14px;
}

#schaetzfrage-admin button{
  padding:8px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.35);
  background:rgba(255,255,255,0.10);
  color:#f8fafc;
  font-weight:700;
  font-family:'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  cursor:pointer;
}

#schaetzfrage-admin button:hover{
  background:rgba(255,255,255,0.16);
}

#schaetzfrage-edit{
  margin-top:18px;
}

#schaetzfrage-edit label{
  display:block;
  text-align:left;
  font-weight:700;
  color:#e0e7ff;
  margin:0 0 10px;
  font-family:'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#schaetzfrage-edit textarea,
#schaetzfrage-edit input[type="text"]{
  width:100%;
  box-sizing:border-box;
  margin-top:6px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(255,255,255,0.12);
  color:#ffffff;
  font-size:16px;
  font-family:'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#schaetzfrage-edit textarea{
  resize:vertical;
}

#schaetzfrage-label{
  font-weight:800;
  letter-spacing:0.6px;
  color:#e0e7ff;
  text-align:left;
  margin:2px 0 10px;
}

#schaetzfrage-question{
  text-align:center;
  font-size:25px;
  font-weight:700;
  color:#c20000;
  margin:14px 0 24px;
  line-height:1.25;
}

#schaetzfrage-answers{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin:0 0 20px;
}

button.schaetz-answer{
  width:100%;
  border:none;
  border-radius:12px;
  padding:12px 14px;
  text-align:center;
  font-size:21px;
  font-weight:700;
  font-family:'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color:rgba(255,255,255,0.55);
  color:#000000;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(0,0,0,0.25);
}

button.schaetz-answer:hover{
  filter:brightness(1.08);
}

button.schaetz-answer.is-disabled{
  cursor:default;
}

button.schaetz-answer.is-correct{
  background-color:rgba(34,197,94,0.65);
}

button.schaetz-answer.is-wrong{
  background-color:rgba(239,68,68,0.65);
}

#schaetzfrage-explanation{
  display:none;
  text-align:center;
  background-color:rgba(255,255,255,0.55);
  border:1px solid rgba(0,0,0,0.18);
  border-radius:12px;
  padding:12px 14px;
  color:#000000;
  font-size:21px;
  line-height:1.35;
  margin-top:10px;
}

@media (max-width:900px){
  #schaetzfrage-wrap{
    padding:0 6%;
  }
}

#schaetzfrage-explanation.open{
  display:block;
}

@media (max-width:600px){
  #teacher-correct-toggle{
    top:auto;
    bottom:10px;
    transform:none;
    writing-mode:horizontal-tb;
    border-radius:6px;
    padding:10px 16px;
  }
  #teacher-correct-panel{
    width:100%;
    max-width:none;
  }
}
