
/* ============================================
   widgets.css — Bereich: widgets
   ============================================ */
.welcome{
  text-align: center;
  padding: 80px 40px;
}

.welcome h1{
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--text);
}

.welcome p{
  color: var(--text-muted);
  font-size: 16px;
}

.btn{
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  background: var(--border-light);
  border: 1px solid var(--border);
}
.btn:hover{
  background: var(--surface-hover);
}

.btn-sm{
  font-size: 12px;
  padding: 4px 8px;
}

.btn-primary{
  padding: 10px 20px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-block;
}

.btn-primary:hover{
  background: #e6d23a;
}

.btn-primary-dark{
  padding: 10px 20px;
  background: var(--text);
  color: var(--accent);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-block;
}

.btn-primary-dark:hover{
  background: #222222;
}

.btn-secondary{
  padding: 8px 16px;
  background: #f0f0f0;
  color: var(--text);
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-secondary:hover{
  background: #e0e0e0;
}

.hint{
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.info-box{
  text-align: center;
  padding: 32px 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  margin: 80px auto;
  margin-top: 0;
  margin-bottom: 0;
}

.info-box .icon{
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.info-box h2{
  margin-bottom: 16px;
  font-size: 24px;
  color: var(--text);
}

.info-box p{
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.6;
}

.info-box .account-actions{
  margin-top: 24px;
}

/* Pending-Approval-Warteseite — zentrierte, schicke Karte im Dilk-Design */
.approval-wait-card{
  max-width: 480px;
  margin: 12vh auto;
  padding: 56px 40px 48px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
}

.approval-wait-card__icon{
  width: 88px;
  height: 88px;
  line-height: 88px;
  margin: 0 auto 24px;
  font-size: 44px;
  background: var(--accent);
  color: var(--text);
  border-radius: var(--radius-round);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.approval-wait-card__title{
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.approval-wait-card__message{
  color: var(--text-light);
  line-height: 1.7;
}

.approval-wait-card__message p{
  margin: 0 0 10px;
}

.approval-wait-card__hint{
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.approval-wait-card__actions{
  margin-top: 32px;
}

.approval-wait-card__actions .btn-primary{
  padding: 12px 24px;
  font-size: 15px;
}

.checkbox-inline{
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-inline input[type="checkbox"]{
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-inline label{
  display: inline;
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
}

.flash-container{
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  /* Über Modals (2000) — Erfolgs-/Fehler-Flashes müssen auch bei offenem
     Modal sichtbar bleiben. Unter dem Incognito-Gate (10000). */
  z-index: 3000;
  width: 100%;
  max-width: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.notification-prompt[hidden]{
  display: none;
}

.notification-prompt{
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  /* Wie Flashes: über Modals (2000), unter Incognito-Gate (10000). */
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: calc(100% - 32px);
}

.notification-prompt__text{
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
}

.notification-prompt__enable{
  background: var(--primary);
  color: var(--inverse-text);
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
}

.notification-prompt__later{
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.flash-message{
  pointer-events: auto;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  animation: flash-fade-in 0.3s ease-out forwards;
  max-width: 500px;
  width: 100%;
  margin-left: auto;
}

.flash-message.removing{
  animation: flash-fade-out 0.3s ease-in forwards;
}

.flash-message.notice{
  background-color: #f0f9f0;
  border: 1px solid #d0e8d0;
}

.flash-message.notice .flash-message__text{
  color: #2d7a2d;
}

.flash-message.notice .flash-icon--success{
  color: var(--success);
}

.flash-message.alert{
  background-color: #fff8f0;
  border: 1px solid #ffe0c0;
}

.flash-message.alert .flash-message__text{
  color: #8a5a00;
}

.flash-message.alert .flash-icon--warning{
  color: #ff9500;
}

.flash-message__content{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.flash-icon{
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.flash-message__text{
  font-size: 14px;
  line-height: 1.5;
}

.flash-message__close{
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 16px;
  color: var(--text-light);
  font-size: 28px;
  line-height: 1;
  transition: color 0.2s;
}

.flash-message__close:hover{
  color: var(--text);
}

@keyframes flash-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes flash-fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.incognito-overlay{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
}

.incognito-overlay__card{
  max-width: 420px;
  padding: 28px 32px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.incognito-overlay__card h2{
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--text);
}

.incognito-overlay__card p{
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}