/* ===== WOCHEN-DISPLAY-SYSTEM – Shared Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Hauptpalette: Grün ── */
  --primary:        #16A34A;   /* Grün – Hauptfarbe */
  --primary-dark:   #15803D;
  --primary-deeper: #166534;
  --primary-light:  #F0FDF4;   /* Sehr helles Grün */
  --primary-mid:    #22C55E;

  /* ── semantisch beibehalten ── */
  --green:          #16A34A;
  --green-light:    #4ADE80;
  --green-bg:       #DCFCE7;

  /* ── Akzente (sehr sparsam) ── */
  --blue:           #0891B2;
  --blue-note:      #0369A1;
  --amber:          #D97706;
  --amber-light:    #FEF9ED;
  --red:            #DC2626;

  /* ── Neutrale ── */
  --text:           #111827;
  --text-soft:      #374151;
  --muted:          #9CA3AF;
  --border:         #E5E7EB;
  --border-soft:    #F3F4F6;
  --bg:             #F7FDF9;   /* Ganz leicht grünlich */
  --surface:        #FFFFFF;

  --font:    'Nunito', Arial, 'Helvetica Neue', sans-serif;
  --radius:  8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.03);
  --shadow:    0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.03);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

input, textarea, select {
  font-family: var(--font);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,.10);
}
select option { background: #fff; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  transition: all .15s;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: .1px;
}
.btn:hover { background: var(--bg); border-color: #D1D5DB; color: var(--text); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-blue { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-blue:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-danger { background: var(--surface); color: var(--red); border-color: #FECACA; }
.btn-danger:hover { background: #FEF2F2; border-color: var(--red); }
.btn-sm { padding: 5px 11px; font-size: 12px; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,20,10,.45);
  backdrop-filter: blur(3px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal {
  background: var(--surface);
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
}
.modal h2 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -.2px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 5px;
}
.modal .actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ── Toast ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--text);
  color: #fff;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  animation: toastIn .2s ease;
  max-width: 320px;
}
.toast.success { background: var(--primary); }
.toast.error   { background: var(--red); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
